Hi,
I use the Oxygen component, and I want to know how I can change the default value of the quotation marks.
I want change the "" to << >>.
Do you have an idea for do that ?
Thanks in advance for your help.
Sébastien
quotation marks
-
- Posts: 124
-
- Posts: 653
Re: quotation marks
Hi,
There is a built-in auto correct support that replaces simple quotes with a character of your choice. Since you are working with the author component there are a couple of possible approaches:
- Configure the auto correct in an Oxygen standalone preferences and then provide the option file as default options.
- You can use the API to set the auto correct option:
- You can implement this auto correct behavior yourself on the AuthorDocumentFilter.insertText() or the AuthorSchemaAwareEditingHandler.handleTyping() callback. We already have some sample code on how to replace quotes using an AuthorDocumentFilter in the User guide.
Best regards,
Alex
There is a built-in auto correct support that replaces simple quotes with a character of your choice. Since you are working with the author component there are a couple of possible approaches:
- Configure the auto correct in an Oxygen standalone preferences and then provide the option file as default options.
- You can use the API to set the auto correct option:
Code: Select all
AuthorComponentFactory.getInstance().setObjectProperty("auto.correct.double.quotes", new AutoCorrectQuotesOptions('\u00AB', '\u00BB', true));
- You can implement this auto correct behavior yourself on the AuthorDocumentFilter.insertText() or the AuthorSchemaAwareEditingHandler.handleTyping() callback. We already have some sample code on how to replace quotes using an AuthorDocumentFilter in the User guide.
Best regards,
Alex
-
- Posts: 124
Re: quotation marks
Hi,
Thanks for your quick answer.
I only have a licence for the 14.X version
The AutoCorrect options are in the 15.X version ?
Thanks in advance.
Seb
Thanks for your quick answer.
I only have a licence for the 14.X version
The AutoCorrect options are in the 15.X version ?
Thanks in advance.
Seb
-
- Posts: 653
Re: quotation marks
Hi,
The AutoCorrect options were indeed introduced in Oxygen v15.0. For version 14 you can still use the last approach (the one with AuthorDocumentFilter).
Best regards,
Alex
The AutoCorrect options were indeed introduced in Oxygen v15.0. For version 14 you can still use the last approach (the one with AuthorDocumentFilter).
Best regards,
Alex
-
- Posts: 124
Re: quotation marks
Thanks for your help.
Sébastien
Sébastien
Return to “SDK-API, Frameworks - Document Types”
Who is online
Users browsing this forum: No registered users and 1 guest