how do I know if the user is in text mode or author ?
Oxygen general issues.
-
- Posts: 124
- Joined: Tue May 29, 2012 5:42 pm
how do I know if the user is in text mode or author ?
Post by sebastienlavandier »
Hello,
I need to know if the user is in text mode or in the author mode.
How I can do that ?
Do you have an idea ?
Thanks in advance for your answer.
Bye
I need to know if the user is in text mode or in the author mode.
How I can do that ?
Do you have an idea ?
Thanks in advance for your answer.
Bye
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: how do I know if the user is in text mode or author ?
Hi Sebastien,
Assuming you are using a workspace access plugin, the code would be like:
Regards,
Radu
Assuming you are using a workspace access plugin, the code would be like:
Code: Select all
WSEditor currentEditorAccess = pluginWorkspaceAccess.getCurrentEditorAccess(StandalonePluginWorkspace.MAIN_EDITING_AREA);
if(currentEditorAccess != null) {
String currentPageID = currentEditorAccess.getCurrentPageID();
if(EditorPageConstants.PAGE_TEXT.equals(currentPageID)) {
//Editing in text
} else if(EditorPageConstants.PAGE_AUTHOR.equals(currentPageID)) {
//Editing in author
}
}
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 124
- Joined: Tue May 29, 2012 5:42 pm
Re: how do I know if the user is in text mode or author ?
Post by sebastienlavandier »
Hi Radu,
Thanks for your answer that works well.
Bye
Thanks for your answer that works well.
Bye
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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