Automatically populate <sep> with  
Oxygen general issues.
-
- Posts: 8
- Joined: Wed Feb 19, 2020 10:52 pm
Automatically populate <sep> with  
Post by GregWait42 »
I'm trying to create a solution to some of our writers using a space or simply not populating <sep> elements. I thought I could just customize Content Completion Assistant so that <sep> elements would be automatically created with a non-breaking space inside them ( ). Unfortunately, it looks like I'm limited to choosing an existing element.
Is there a way to do what I'm trying to do so that when a user selects "sep" from Content Completion Assistant Oxygen automatically places "<sep> </sep>" in the file?
Thanks in advance for any tips/guidance!
Regards,
Greg
(Now available in chunky!).
Is there a way to do what I'm trying to do so that when a user selects "sep" from Content Completion Assistant Oxygen automatically places "<sep> </sep>" in the file?
Thanks in advance for any tips/guidance!
Regards,
Greg
(Now available in chunky!).

-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: Automatically populate <sep> with  
Post by alex_jitianu »
Hi Greg,
I think I understand what the problem is (please correct me if I miss something). The content completion configuration file can only control what elements are inserted, not what text should be put into one.
If you are working in Author mode, then a solution is to create an author action that uses the InsertFragmentOperation to insert a fragment:
The next step is to configure content completion:
1. add the newly created action in the content completion list
2. remove the built-in "sep" proposal
Best regards,
Alex
I think I understand what the problem is (please correct me if I miss something). The content completion configuration file can only control what elements are inserted, not what text should be put into one.
If you are working in Author mode, then a solution is to create an author action that uses the InsertFragmentOperation to insert a fragment:
Code: Select all
<sep> </sep>
1. add the newly created action in the content completion list
2. remove the built-in "sep" proposal
Best regards,
Alex
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Automatically populate <sep> with  
Hi,
Just to update this thread, I wrote a small article on the Oxygen XML Blog about contributing an Author action to the content completion window:
https://blog.oxygenxml.com/topics/custo ... etion.html
Regards,
Radu
Just to update this thread, I wrote a small article on the Oxygen XML Blog about contributing an Author action to the content completion window:
https://blog.oxygenxml.com/topics/custo ... etion.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
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