Outline on custom frameworks
Posted: Fri Jul 09, 2021 5:24 pm
Hello everyone,
I have difficulties to activate / display "Outline" pane in a custom framework.
I followed the different ways of doing described in this link https://www.oxygenxml.com/doc/versions/ ... -pane.html.
I tried to add the webAuthorOutlineConfig.xml in a folder "outline". I keep the docbook one even if I have a custom framework.
The "outline" folder has been added to the classpath of the framework.
I also tried the outlineConfigurationProvider:
I do not see any error and no "Outline" pane is displayed.
What did I miss ?
Thanks,
Johann
I have difficulties to activate / display "Outline" pane in a custom framework.
I followed the different ways of doing described in this link https://www.oxygenxml.com/doc/versions/ ... -pane.html.
I tried to add the webAuthorOutlineConfig.xml in a folder "outline". I keep the docbook one even if I have a custom framework.
Code: Select all
<outline>
<structureMode editable="yes" default="no">
<preferredAttributes names="id xml:id"/>
</structureMode>
<tocMode editable="yes" default="yes">
<elements names="section sect1 sect2 sect3 sect4 sect5 simplesect article book"/>
</tocMode>
</outline>
Code: Select all
<field name="classpath">
<String-array>
...
<String>${framework}/outline/</String>
...
</String-array>
</field>
I also tried the outlineConfigurationProvider:
Code: Select all
goog.events.listen(workspace,sync.api.Workspace.EventType.BEFORE_EDITOR_LOADED,function(e)
{
e.options.outlineConfigurationProvider = function(callback) {
callback("{\n" +
" \"structureMode\": {\n" +
" \"editable\": \"yes\",\n" +
" \"defaultMode\": \"no\",\n" +
" \"preferredAttributes\": {\"names\": \"id xml:id\"}\n" +
" },\n" +
" \"tocMode\": {\n" +
" \"editable\": \"yes\",\n" +
" \"defaultMode\": \"yes\",\n" +
" \"elements\": {\"names\": \"topic\"}\n" +
" }\n" +
"}");
}
What did I miss ?
Thanks,
Johann