Content Completion Assistant - Remove convert ol/ul to p option
Post here questions and problems related to editing and publishing DITA content.
Content Completion Assistant - Remove convert ol/ul to p option
My team recently upgraded to Oxygen v19 and some of my teammates have mentioned that the new 'Convert ol/ul to p' option is confusing and interrupting the workflow they are used to. While I can understand the usefulness of the option, they are used to inserting multiple empty <li> elements and then filling them in with content. I have looked through the framework preferences related to Content Completion, but I didn't see this operation listed with the others.
Is there a simple way to remove this from the list of options or make it so it is not the default in the Content Completion Assistant?
Is there a simple way to remove this from the list of options or make it so it is not the default in the Content Completion Assistant?
-
- Posts: 402
- Joined: Mon May 09, 2016 9:37 am
Re: Content Completion Assistant - Remove convert ol/ul to p option
Post by sorin_carbunaru »
Hello,
Thank you for sending us feedback on this new action!
Unfortunately for you, the 'Convert li to p' action cannot be removed from the Content Completion framework preferences. I did think of a possible solution to remove it, but it implies using a little bit of our Java API, and it would also remove the list items promotion and demotion shortcuts (read more at https://www.oxygenxml.com/doc/versions/ ... item_nodes), and you might not want that. Let me know if you would be interested in such a solution...
On the other hand, I added an issue on our side to analyze your feedback (EXM-39489 - for reference purposes).
All the best,
Sorin Carbunaru
oXygen XML
Thank you for sending us feedback on this new action!
Unfortunately for you, the 'Convert li to p' action cannot be removed from the Content Completion framework preferences. I did think of a possible solution to remove it, but it implies using a little bit of our Java API, and it would also remove the list items promotion and demotion shortcuts (read more at https://www.oxygenxml.com/doc/versions/ ... item_nodes), and you might not want that. Let me know if you would be interested in such a solution...
On the other hand, I added an issue on our side to analyze your feedback (EXM-39489 - for reference purposes).
All the best,
Sorin Carbunaru
oXygen XML
-
- Posts: 402
- Joined: Mon May 09, 2016 9:37 am
Re: Content Completion Assistant - Remove convert ol/ul to p option
Post by sorin_carbunaru »
The possible fix is a custom AuthorActionEventHandler that returns a null list of content completions actions.
I already implemented this and exported it as a JAR. You can find it at http://www.oxygenxml.com/userFiles/1417170517085722.zip. Add the JAR in the classpath of your framework (Options -> Preferences -> Document Type Associations -> [Your framework] -> Classpath tab), then choose your class as an individual extension point (Extensions tab -> Author action event handler -> Choose).
Code: Select all
public class EnterHandler extends AuthorActionEventHandlerBase {
/**
* @see ro.sync.ecss.extensions.api.AuthorActionEventHandler#handleEvent(ro.sync.ecss.extensions.api.AuthorAccess, ro.sync.ecss.extensions.api.AuthorActionEventHandler.AuthorActionEventType)
*/
@Override
public boolean handleEvent(AuthorAccess authorAccess, AuthorActionEventType eventType) {
return false;
}
/**
* @see ro.sync.ecss.extensions.api.AuthorActionEventHandler#canHandleEvent(ro.sync.ecss.extensions.api.AuthorAccess, ro.sync.ecss.extensions.api.AuthorActionEventHandler.AuthorActionEventType)
*/
@Override
public boolean canHandleEvent(AuthorAccess authorAccess, AuthorActionEventType eventType) {
return false;
}
/**
* @see ro.sync.ecss.extensions.api.Extension#getDescription()
*/
@Override
public String getDescription() {
return null;
}
/**
* @see ro.sync.ecss.extensions.api.AuthorActionEventHandlerBase#getContentCompletionActions(ro.sync.ecss.extensions.api.AuthorAccess, int)
*/
@Override
public List<IAuthorExtensionAction> getContentCompletionActions(AuthorAccess authorAccess,
int caretOffset) {
return null;
}
}
Re: Content Completion Assistant - Remove convert ol/ul to p option
I wasn't able to get Oxygen to see the extension. Here are the steps I took:
1. Extracted the JAR to ${frameworks}\dita\resources.
2. Verified the resources directory is on the classpath (DITA Document Type window/Classpath tab).
3. On the Extensions tab, clicked the Author action event handler Choose button.
Zero classes are found.
1. Extracted the JAR to ${frameworks}\dita\resources.
2. Verified the resources directory is on the classpath (DITA Document Type window/Classpath tab).
3. On the Extensions tab, clicked the Author action event handler Choose button.
Zero classes are found.
-
- Posts: 402
- Joined: Mon May 09, 2016 9:37 am
Re: Content Completion Assistant - Remove convert ol/ul to p option
Post by sorin_carbunaru »
Hello,
You should reference the JAR directly, not the parent folder. Try it this way and it should work.
You should reference the JAR directly, not the parent folder. Try it this way and it should work.
-
- Posts: 402
- Joined: Mon May 09, 2016 9:37 am
Re: Content Completion Assistant - Remove convert ol/ul to p option
Post by sorin_carbunaru »
Hello,
I don't remember what made me think that you cannot remove the list to paragraph conversion items from the content completion window, but actually you can do that. See image below.
This would be the preferred way, as my last suggestion had some side-effects.
Best regards,
Sorin Carbunaru
I don't remember what made me think that you cannot remove the list to paragraph conversion items from the content completion window, but actually you can do that. See image below.
This would be the preferred way, as my last suggestion had some side-effects.
Best regards,
Sorin Carbunaru
Return to “DITA (Editing and Publishing DITA Content)”
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