Add tabs/panes to the right panel in Oxygen Web Author
Oxygen general issues.
-
- Posts: 515
- Joined: Wed May 20, 2009 2:40 pm
Re: Add tabs/panes to the right panel in Oxygen Web Author
Hello,
Yes, you can create a plugin that uses the JavaScript API to add a custom view in Web Author.
Here is a tutorial about customizing side views:
https://www.oxygenxml.com/maven/com/oxy ... mview.html
This is the link to the JavaScript API documentation:
https://www.oxygenxml.com/maven/com/oxy ... index.html
And here is a sample plugin that contributes an 'Elements' view In Web Author:
https://github.com/oxygenxml/web-author ... ments-view
Best Regards,
Mihaela
Yes, you can create a plugin that uses the JavaScript API to add a custom view in Web Author.
Here is a tutorial about customizing side views:
https://www.oxygenxml.com/maven/com/oxy ... mview.html
This is the link to the JavaScript API documentation:
https://www.oxygenxml.com/maven/com/oxy ... index.html
And here is a sample plugin that contributes an 'Elements' view In Web Author:
https://github.com/oxygenxml/web-author ... ments-view
Best Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
http://www.oxygenxml.com
-
- Posts: 29
- Joined: Mon Jun 27, 2022 9:09 pm
Re: Add tabs/panes to the right panel in Oxygen Web Author
Is there any way to add functionality to the side panel based on caret position or a specific tag position? How can we fetch any selected element, tag or position to create a contextual functionality?
-
- Posts: 515
- Joined: Wed May 20, 2009 2:40 pm
Re: Add tabs/panes to the right panel in Oxygen Web Author
Hi,
The ViewRenderer has an editorChanged(editor) callback, received when the focused editor is changed.
You can use sync.api.Editor#getSelectionManager method to obtain the SelectionManager.
Then listen on its SELECTION_CHANGED event to update the view according to the current selection.
Best Regards,
Mihaela
The ViewRenderer has an editorChanged(editor) callback, received when the focused editor is changed.
You can use sync.api.Editor#getSelectionManager method to obtain the SelectionManager.
Then listen on its SELECTION_CHANGED event to update the view according to the current selection.
Best Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
http://www.oxygenxml.com
-
- Posts: 515
- Joined: Wed May 20, 2009 2:40 pm
Re: Add tabs/panes to the right panel in Oxygen Web Author
Hi,
The following sample plugin creates a custom view that presents the elements that can be inserted at the caret position. It uses the API that I mentioned in my previous post, so you ca use it as an example:
https://github.com/oxygenxml/web-author ... ments-view
Best Regards,
Mihaela
The following sample plugin creates a custom view that presents the elements that can be inserted at the caret position. It uses the API that I mentioned in my previous post, so you ca use it as an example:
https://github.com/oxygenxml/web-author ... ments-view
Best Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
http://www.oxygenxml.com
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