Customizing Options and FeaturesEdit online
It is possible to customize the online editor that is built in to the Oxygen Content Fusion interface by using a custom framework, but it is also possible to customize certain options and features by making changes to particular configuration files. For example, you can configure term lists used by the spell checker or AutoCorrect feature, and you can configure various options to customize the editing experience for all users.
Configuring Options for the Users' Editing Experience
The functionality of the Oxygen Content Fusion built-in visual editor shares many of the same options used in Oxygen XML Editor/Author. The options are stored in an options.xml file that is located in the /fusion/data/config/webauthor/options folder. You can adjust this file to configure the options used for the editing experience of all users.
<?xml version="1.0" encoding="UTF-8"?>
<serialized version="18.1" xml:space="preserve">
<serializableOrderedMap>
<entry>
<String>author.show.comments</String>
<Boolean>true</Boolean>
</entry>
</serializableOrderedMap>
</serialized>
An
additional <entry>
should be added in this file for each option.Key | Type | Description |
---|---|---|
additional.frameworks.directories | See example entry below the table |
An array of java.lang.String objects representing paths to the additional frameworks folders (may also contain editor variables). |
author.convert.external.content.on.paste | Boolean |
Option that controls whether or not the content pasted in Author mode should be converted to match the destination styles. |
author.convert.external.content.space.preserve | Boolean |
Option that controls whether or not the content pasted in Author mode should be converted to match the destination styles in space-preserved elements. |
author.format.compatibility | Integer | Use this option to control how line breaks are handled when a document is
serialized. 0 - (Default value) None. 1 - Do not break, do not indent. 2 - Break lines only after block elements, do not indent. |
author.image.width.autoscale.limit | Integer | If set to a value greater than 0, images wider than this number of pixels will be resized. By default 1024. |
author.show.comments | Boolean | Show the comment nodes in the author page. |
author.show.processing.instructions | Boolean | Show the pi nodes in the author page. |
auto.correct.double.quotes | See example entry below the table | If set, Web Author automatically replaces double quotes with the specified quotation symbols. |
auto.correct.single.quotes | See example entry below the table | If set, Web Author automatically replaces single quotes with the specified quotation symbols. |
autocorrect.feature.state | Boolean | Used to enable/disable the auto-correct feature. |
autocorrect.use.suggeestions.from.spell.check.dicts | Boolean | Used to enrich the auto-correct suggestions with entries from spell checking dictionaries. |
automatically.accept.certificates | Boolean | Option that controls if Oxygen will accept all HTTPS certificates. |
default.xml.schema.version | String | The XML Schema version to use if it is not specified in the schema file (see the schema version note below the table). The default version is 1.0. |
dita.fill.link.format.attribute | Boolean | Use true to force the insertion of the format attribute
when inserting a link in DITA even when the attribute has a default value. |
dita.fill.link.scope.attribute | Boolean | Use true to force the insertion of the scope attribute
when inserting a link in DITA even when the attribute has a default value. |
dita.fill.link.type.attribute | Boolean | Use true to force the insertion of the type attribute
when inserting a link in DITA even when the attribute has a default value. |
dita.ot.directory | String | The directory path to the default DITA OT installation. |
editor.line.width | Integer | Used to define the number of characters after which a hard line-wrapping action is performed (default is 100). |
http.max.simultaneous.connections.per.host | Integer | Limits the number of connections the HTTP client can open to the same server host. |
http.proxy.direct | String | Comma-separated list of hosts for which the proxy is bypassed. |
http.proxy.host | String | Proxy hostname or IP address. |
http.proxy.password | String | Proxy password. |
http.proxy.port | Integer | Proxy port. |
http.proxy.set | Boolean | HTTP proxy uses manual configuration. |
http.proxy.system | Boolean | "True" to detect HTTP proxy from system. |
http.proxy.user | String | Proxy user. |
http.read.timeout.seconds | Integer | An integer number that configures the timeout used when waiting for an HTTP request. |
insertOnlyElementsFromCCList | Boolean | If set to true, the content completion list will only show elements that are valid at the current position. |
Schematron_custom_language | String | The two-letter country code (for example:
en ,fr ). |
Schematron_language_option | Integer |
2 (default value) - The Schematron 3 - The language attributes are ignored. All messages will be presented. 4 - A custom language defined by the option
|
showAllPossibleElementsInCCList | Boolean | If set to true, the content completion list will show all the elements in the schema, even those that are not valid at the current position. |
show.caret.position.info | Boolean | Use false to disable the tooltip popup that is normally displayed at the cursor position. |
show.profiling.attributes | Boolean | Use false to disable the rendering of profiling attributes. |
spell.check.options | See example entry below the table | Can be used to set some spell-checking options, including the default language
used when no xml:lang attribute is set. |
topic.content.refs.limit | Integer | The maximum number of references that can be contained within a DITA map to display it in the View Topic Content mode. |
track.changes.initial.state | Integer | Option for track changes initial state.
|
undo.history.limit.v10.3 | Integer | The number of operations that can be undone. By default 200. |
validate.as.you.type | Boolean | Use false to turn off the automatic validation. |
validate.max.errors.number | Integer | The maximum number of validation errors that can be shown. Default value is 100. |
xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" vc:minVersion="1.1"
<entry> <String> additional.frameworks.directories </String> <String-array> <String> /path/to/frameworks </String> </String-array> </entry>Example entry for auto.correct.single.quotes and auto.correct.double.quotes option:
<entry> <String>auto.correct.single.quotes</String> <!–- or auto.correct.double.quotes --> <autoCorrectQuotes> <field name="enabled"> <Boolean>true</Boolean> </field> <field name="startQuote"> <Character>‘</Character> </field> <field name="endQuote"> <Character>’</Character> </field> </autoCorrectQuotes> </entry>Example entry for using spell.check.options to setting the default language:
<entry> <String>spell.check.options</String> <spellCheckOptions> <field name="language"> <String>de_DE</String> </field> </spellCheckOptions> </entry>Example entry for using spell.check.options to disable the default Hunspell spell checker:
<entry> <String>spell.check.options</String> <spellCheckOptions> <field name="preferredChecker"> <Integer>2</Integer> </field> </spellCheckOptions> </entry>
Adding Custom Term Lists for the Spell Checker
You can create personalized term lists that are used to store specialized terms (learned words) or control forbidden words. They can then be added to one of the directories that store the spell check dictionaries and the spell checker will merge them with all the dictionaries and other term lists for a particular language.
- Create a term list file (with a .tdi file extension). The name of the file must begin with a two letter prefix that indicates the language it should be attached to, followed by an underscore or hyphen, and then a descriptive name (for example, en_US_myterms.tdi for term list in the US version of the English language or en_myterms.tdi for a less specific English term list). For a list of language codes, see https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes.
- In the term list file (.tdi extension), add
the terms you want to be included in your custom dictionary. If you need to specify
forbidden terms, those words simply need to be preceded by an asterisk. Add one word per
row, as in the following
example:
parabola asimptotic *hyperbola
- Save the file (.tdi) in the /fusion/data/config/webauthor/options/spell folder.
- Restart the server for the spell checker to start using the new terms list.
Customizing the AutoCorrect Terms List
The Oxygen Content Fusion built-in visual editor includes an AutoCorrect feature to automatically correct misspelled words as you type. There is a default list of commonly misspelled words and symbols for each supported language, but you can modify the list to suit your needs.
- In Oxygen XML Editor/Author, go to .
- Make whatever changes you require and click Apply. If you need help with any of the options in this preferences page, see https://www.oxygenxml.com/doc/ug-editor/topics/autocorrect-preferences-page.html.
- Go to and note the location where the dictionaries are stored.
- Navigate to that location with a file explorer and look for a patch file (it should look like: en_patch.xml).
- Copy or move that patch file to the /fusion/data/config/webauthor/options/autocorrect folder.
- Restart the server for the AutoCorrect feature to start using the new terms list.
Alternate Method for Customizing the AutoCorrect Terms List (Without Using Oxygen XML Editor/Author)
- Create a patch file called en_patch.xml with content like
this:
<?xml version="1.0" encoding="UTF-8"?> <replacements> <deletion match="i" substitution="I"/> <deletion match="(c)" substitution="©"/> </replacements>
- Save it in the options/autocorrect folder that is located inside
your Oxygen Data Directory
(
oxygen.data.dir/options/autocorrect
). - Restart the server for the AutoCorrect feature to start using the new terms list.