PSML editor config
The editor-config.xml
contains configurations for editors, used to edit the document.
It is located at:
template/[project]/psml/[document type]/
The config has the following format:
<editor-configs> <editor-config name="[editor name]"> // config options for editor </editor-config> <editor-config name="[editor name]"> // config options for editor </editor-config> </editor-configs>
where editor name
can be one of the following:
PSMLProperties
– for options see PSML properties editor.PSMLMetadata
– same options as PSML properties editor but used for document metadata properties.PSMLXRefs
– for options see PSML XRefs editor.PSMLCreation
– same options as PSML properties editor but used for document and fragment creation. Requires PageSeeder v5.98 or higher.
The editor name of PSMLLabelValues
is not supported as of PageSeeder v6.
The following text is for legacy reference only.
PageSeeder no longer uses the editor-config.json
JSON format to configure the editor. PageSeeder v5.96 or higher uses the edtor-config.xml
XML file described above.
The config has the following format:
{ "EditorA": { // config options for editor A }, "EditorB": { // config options for editor B } }
where Editor
can be one of the following:
PSMLXRefsConfig
– for options see PSML XRefs editor (JSON) (obsolete).PSMLPropertiesConfig
– for options see PSML properties editor (JSON) (obsolete).PSMLMetadataConfig
– same options as PSML properties editor but used for document metadata properties.PSMLLabelValuesConfig
– same options as PSML properties editor except it supports type “richtext” and the PSML document must use inline/block labels instead of properties as shown in this example:<fragment id="8" type="details"> <para>Title <inline label="title">Alice's Adventures in Wonderland</inline></para> <para>ISBN<inline label="isbn">9783161484100</inline></para> <para>Author <inline label="author">Lewis Caroll</inline></para> <para>Language <inline label="language">English</inline> <inline label="language">Spanish</inline></para> <para>Available Date <inline label="available-date">2012-01-01 </inline> </para> <para>Related <inline label="related"> <xref .../><xref .../></inline> </para> <block label="richtext">Description <block label="description"> <para>When <bold>Alice</bold> sees a white rabbit ...</para> </block> </block> </fragment>