imposedInitialPage with Oxygen SDK 21.1
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 240
- Joined: Wed Jun 17, 2015 12:46 pm
imposedInitialPage with Oxygen SDK 21.1
Hello,
I have tried the Oxygen 21.1 SDK. I noticed that when I open a document, it opens by default in Source view (instead of Author view) whereas in the framework :
Have you changed something about that in 21.1 version ? I have not found anything about this...
Thanks,
Johann
I have tried the Oxygen 21.1 SDK. I noticed that when I open a document, it opens by default in Source view (instead of Author view) whereas in the framework :
Code: Select all
<field name="useImposedInitialPage">
<Boolean>true</Boolean>
</field>
<field name="imposedInitialPage">
<String>Author</String>
</field>
Thanks,
Johann
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: imposedInitialPage with Oxygen SDK 21.1
Hi Johann,
This API method:
has an "initialPage" argument. I think that indeed I changed a little bit its implementation in the 21 SDK.
You can set it to null in your code, meaning that the framework configuration should be used for auto-detect.
But if you set it to "Text" this means that you are imposing "Text".
I think that before my change the behavior was that even if you set the initial page to "Text" the framework had more priority. Now the framework is used only if you set it to "null".
Regards,
Radu
This API method:
Code: Select all
/**
* Creates a new author component
* @param allowedPages The pages which will be used in the editor. One of the constant fields:
* {@link EditorPageConstants#PAGE_TEXT}, {@link EditorPageConstants#PAGE_AUTHOR}, {@link EditorPageConstants#PAGE_GRID}
* @param initialPage The initial page in which the component will edit. Can be <code>null</code> in order to auto detect it.
*
* @return the new author component
* @throws AuthorComponentException
*
* @since 14.2
*/
ro.sync.ecss.extensions.api.component.AuthorComponentFactory.createEditorComponentProvider(String[] allowedPages, String initialPage)
You can set it to null in your code, meaning that the framework configuration should be used for auto-detect.
But if you set it to "Text" this means that you are imposing "Text".
I think that before my change the behavior was that even if you set the initial page to "Text" the framework had more priority. Now the framework is used only if you set it to "null".
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service