Search found 493 matches

by cristi_talau
Fri Dec 30, 2022 10:32 am
Forum: Common Problems
Topic: Create radio button and define the action for the radio button
Replies: 1
Views: 521

Re: Create radio button and define the action for the radio button

Hello, Out-of-the-box, Web Author offers some form controls that can be used to edit the value of an attribute. For example, oxy_popup displays a radio button that can be used to set the value of an attribute [1]. However, it does not perform a particular action when you select a value. You have sev...
by cristi_talau
Fri Dec 30, 2022 10:20 am
Forum: General XML Questions
Topic: exclude specific tag from word error
Replies: 2
Views: 712

Re: exclude specific tag from word error

Hello, The approach recommended by Chris is correct. Web Author does not provide a UI to set this option. You will have to manually edit the options.xml [1] file and add a fragment similar with the one below: <entry> <String>spell.check.options</String> <spellCheckOptions> <field name="ignoreSp...
by cristi_talau
Fri Dec 23, 2022 3:20 pm
Forum: Common Problems
Topic: spaces are getting trimmed from content
Replies: 7
Views: 816

Re: spaces are getting trimmed from content

You need to add the "white-space: pre" property in the CSS of your framework. The rule should be:

Code: Select all

paratext {
  white-space: pre;
}
The rule that you see in the browser applied to the rendering of the XML text node that is a child of the "paratext" element.
by cristi_talau
Fri Dec 23, 2022 3:15 pm
Forum: Common Problems
Topic: No xml tags are displaying in print
Replies: 11
Views: 1251

Re: No xml tags are displaying in print

Now I understand that you want to have the element tag markers (that display the element tag name and its attributes) visible when you print the current document. To make the tag markers visible you can add the following rule to your CSS used to customize the Web Author UI (not the CSS in the framew...
by cristi_talau
Wed Dec 21, 2022 4:56 pm
Forum: Common Problems
Topic: How to configure or update some changes to UTF-8 Char Picker v24.1 plugin?
Replies: 12
Views: 1592

Re: How to configure or update some changes to UTF-8 Char Picker v24.1 plugin?

Hello, The PluginOptions.getClientOption() API is used to read options configured in the Administration Page (or the defaults for those options). This error happens probably because you did not configure these settings to appear in the Admin Page [1]. I would recommend that instead of copying code f...
by cristi_talau
Mon Dec 19, 2022 4:32 pm
Forum: Common Problems
Topic: find all node value after the current node for a specific node
Replies: 1
Views: 362

Re: find all node value after the current node for a specific node

Hello, I would try to make a DFS traversal of the DOM tree and start collecting values of the "pdc" element tag after we encounter the currently selected node. The steps will imply: Obtaining the "#document" element of the XML DOM tree Obtaining the currently selected node Iterat...
by cristi_talau
Mon Dec 19, 2022 10:55 am
Forum: Other Issues
Topic: Conkeyrefs in Vasont Inspire/Oxygen Editor
Replies: 8
Views: 1210

Re: Conkeyrefs in Vasont Inspire/Oxygen Editor

Hello,
Thanks for confirming. We have been already in touch with Vasont to fix this problem - you should hear more from Vasont soon.
Best,
Cristian
by cristi_talau
Fri Dec 16, 2022 9:37 am
Forum: Feature Request
Topic: XML view upgrades?
Replies: 7
Views: 1518

Re: XML view upgrades?

Hello,
Regarding content completion (the feature that presents valid elements), in Web Author you have to press Ctrl+Space to have them displayed. If you press Ctrl+Space do they show up?
Best,
Cristian
by cristi_talau
Tue Dec 13, 2022 10:10 am
Forum: Common Problems
Topic: OxygenXML Web author highlighted text
Replies: 2
Views: 555

Re: OxygenXML Web author highlighted text

Hello, In Web Author, the selection has two particular cases: an interval selection, and a "caret" selection where the interval is empty. Highlights are a different object. They can be added using the API, so if no customisation is implemented, there are not highligts. Coming back to your ...
by cristi_talau
Tue Dec 06, 2022 8:19 pm
Forum: Feature Request
Topic: XML view upgrades?
Replies: 7
Views: 1518

Re: XML view upgrades?

Hello, While Web Author is designed for subject matter experts and technical writers without experience with XML markup, we also invest a little bit of energy in the text-page. Currently it only has syntax highlight and content completion for XML files that are validated with DTD. In order to help u...
by cristi_talau
Fri Dec 02, 2022 12:41 pm
Forum: Common Problems
Topic: Add xpath expression dynamically in Oxygen Web Author
Replies: 8
Views: 939

Re: Add xpath expression dynamically in Oxygen Web Author

Hi, As Bogdan said, you need to force a refresh of the "charfill" element when the "@numchar" attribute is changed. One way to do this, is to register a server-side listener such as an AuthorDocumentFilter as Bogdan suggested or even an AuthorListener [1]. Here is some sample cod...
by cristi_talau
Fri Dec 02, 2022 12:09 pm
Forum: Common Problems
Topic: Attributes are removing after undo
Replies: 1
Views: 370

Re: Attributes are removing after undo

Hello,

The problem is that "element.removeAttribute()" is a low-level method that modifies the element outside of the undoable edit. You should use "controller.removeAttribute(element, ...)" instead.

Best,
Cristian
by cristi_talau
Wed Nov 23, 2022 1:54 pm
Forum: Other Issues
Topic: Pom generating a jar with extra string at the end
Replies: 4
Views: 736

Re: Pom generating a jar with extra string at the end

Hello, The pom.xml file that you use is intended to generate an archive containing an Oxygen plugin. By default, a Maven project generates a "JAR" file that contains the compiled Java classes from that project. However, an Oxygen plugin contains the JAR with compiled Java classes and some ...
by cristi_talau
Wed Nov 23, 2022 10:30 am
Forum: Feature Request
Topic: dynamic action name
Replies: 7
Views: 2662

Re: dynamic action name

Hello, We have a plugin that renders MathML with JEuclid (https://github.com/oxygenxml/web-author-mathml-plugin) and another one that renders LateX with MathJAX (https://github.com/oxygenxml-incubator/web-author-latex-plugin/). To create a plugin that renders MathML equations using MathJAX you have ...
by cristi_talau
Tue Nov 22, 2022 4:38 pm
Forum: Feature Request
Topic: dynamic action name
Replies: 7
Views: 2662

Re: dynamic action name

Hello,

When I tested the WIRIS add-on with Web Author version 23.1, it handled both rendering of MathML equations and editing with consistence between renderings.

You can try to contact WIRIS regarding this plugin. You can also add our support email address in CC.

Best,
Cristian
by cristi_talau
Tue Nov 22, 2022 11:52 am
Forum: Feature Request
Topic: dynamic action name
Replies: 7
Views: 2662

Re: dynamic action name

Hello, You have several options here: Fork our MathML plugin that uses JEuclid and modify it to use MathJAX. Use a commercial plugin from WIRIS: https://docs.wiris.com/mathtype/en/mathtype-integrations/mathtype-for-xml-editors/mathtype-for-oxygen/mathtype-for-oxygen-xml-web-author.html. Use our Late...
by cristi_talau
Tue Nov 15, 2022 12:00 pm
Forum: Common Problems
Topic: Does Oxygen web author support .scss files for styling?
Replies: 5
Views: 776

Re: Does Oxygen web author support .scss files for styling?

Hello, If you want to change the "display name" for an XML element, for example "Paragraph" instead of "p", you can follow the instructions here: https://www.oxygenxml.com/doc/versions/25.0/ug-editor/topics/rendering-elements-cc-author.html . <elementRenderings> <render...
by cristi_talau
Fri Nov 11, 2022 11:22 am
Forum: Other Issues
Topic: Conkeyrefs in Vasont Inspire/Oxygen Editor
Replies: 8
Views: 1210

Re: Conkeyrefs in Vasont Inspire/Oxygen Editor

Hello, While I cannot comment on how the Vasont integration works, I can tell you what is the default behavior of Web Author when you try to insert a content reference. It checks whether you have a key definition for that topic in the context DITA Map and if you have it inserts a conkeyref, otherwis...
by cristi_talau
Wed Nov 09, 2022 3:39 pm
Forum: Common Problems
Topic: Spell checker error when opening document
Replies: 2
Views: 610

Re: Spell checker error when opening document

Hello, This NoClassDefFound exception usually has a "cause" in its stack trace when it first appears. Can you check the first instance of this exception in the server logs? One possible cause is that the spellchecker in Web Author uses some native libraries and maybe there are some errors ...
by cristi_talau
Mon Nov 07, 2022 10:49 am
Forum: Common Problems
Topic: Does Oxygen web author support .scss files for styling?
Replies: 5
Views: 776

Re: Does Oxygen web author support .scss files for styling?

Hello, Web Author supports LESS out-of-the-box. However, it is recommended that in the deployed framework you compile LESS to CSS. To use SCSS you have to run a tool that watches for changes in SCSS files and recompiles everything to CSS. In the framework that you deploy, you will add the generated ...
by cristi_talau
Fri Nov 04, 2022 6:09 pm
Forum: General XML Questions
Topic: Can we edit the dictionary which are pre exist
Replies: 13
Views: 2198

Re: Can we edit the dictionary which are pre exist

Hello,

So, you say that the API is behaving unexpectedly? If yes, can you share with us a simple plugin that manifests the problematic behavior?

Best,
Cristian
by cristi_talau
Fri Nov 04, 2022 10:24 am
Forum: General XML Questions
Topic: Can we edit the dictionary which are pre exist
Replies: 13
Views: 2198

Re: Can we edit the dictionary which are pre exist

Hello, I do not fully understand the context of your problem: Do you use a terms dictionary as described here: https://www.oxygenxml.com/doc/versions/25.0.0/ug-waCustom/topics/wa-add-terms-list.html ? Do you use the Learn Words plugin: https://github.com/oxygenxml/web-author-learn-words-plugin/? Did...
by cristi_talau
Thu Nov 03, 2022 5:36 pm
Forum: Common Problems
Topic: how we can make oxygen to give error when user is trying to make changes which will cause validation issue.
Replies: 7
Views: 759

Re: how we can make oxygen to give error when user is trying to make changes which will cause validation issue.

Hello, We analysed the issue you reported and in general, if the user presses "Backspace" and the document would become invalid as a result of the unwrap, Web Author blocks the unwrap. I have two questions that would help us fix the issue: In your case, do you unwrap the content by pressin...
by cristi_talau
Thu Nov 03, 2022 2:38 pm
Forum: General XML Questions
Topic: Can we edit the dictionary which are pre exist
Replies: 13
Views: 2198

Re: Can we edit the dictionary which are pre exist

Hello,

Your code should look like this:

Code: Select all

authorDocumentModel.getSpellchecker().setTermsDictionary(...)
In this case, the dictionary is set only for the current document. Do you experience a different behavior?

Best,
Cristian
by cristi_talau
Thu Nov 03, 2022 2:35 pm
Forum: Common Problems
Topic: how we can make oxygen to give error when user is trying to make changes which will cause validation issue.
Replies: 7
Views: 759

Re: how we can make oxygen to give error when user is trying to make changes which will cause validation issue.

Hello, From what you described, it seems you call the "handleDeleteElementTags" method. You should extend the AuthorSchemaAwareEditingHandlerAdapter class, "implement" the handleDeleteElementTags() method, and register you subclass it in your framework. In the implementation you ...
by cristi_talau
Wed Nov 02, 2022 4:57 pm
Forum: Common Problems
Topic: how we can make oxygen to give error when user is trying to make changes which will cause validation issue.
Replies: 7
Views: 759

Re: how we can make oxygen to give error when user is trying to make changes which will cause validation issue.

Hello, Thanks for helping us understand the issue. I registered an internal issue for your use-case and I will update this thread when this "unwrap" behavior will be improved. Meanwhile you can use the following APIs: AuthorSchemaAwareEditingHandlerAdapter.handleDeleteElementTags: https://...
by cristi_talau
Wed Nov 02, 2022 4:19 pm
Forum: Common Problems
Topic: how we can make oxygen to give error when user is trying to make changes which will cause validation issue.
Replies: 7
Views: 759

Re: how we can make oxygen to give error when user is trying to make changes which will cause validation issue.

Hello, In general, there are some scenarios where it makes sense to have a temporarily invalid document. For example, delete a child element to replace it with another one. In some cases where it is obviously invalid to delete an element, Web Author blocks this by default. For example, you cannot de...
by cristi_talau
Wed Nov 02, 2022 1:41 pm
Forum: Common Problems
Topic: Can we get element name where cursor is placed
Replies: 9
Views: 859

Re: Can we get element name where cursor is placed

Hello,
If you talk about using UnwrapTagsOperation, it does not work for comments. What you can do instead is to use a custom AuthorOperation that reads the content of an XML comment, delete the XML comment node and insert the content back.
Best,
Cristian
by cristi_talau
Wed Nov 02, 2022 1:38 pm
Forum: Common Problems
Topic: Validate document
Replies: 5
Views: 586

Re: Validate document

Hello, The sample plugin I mentioned in the previous posts uses JS code that is run on the server using the Rhino JS engine. This code cannot run on the browser as it uses objects that are implemented in Java. To call this API from JS code in browser, you can invoke AuthorOperations implemented in J...
by cristi_talau
Wed Nov 02, 2022 12:43 pm
Forum: Common Problems
Topic: Validate document
Replies: 5
Views: 586

Re: Validate document

Hello, The Java API is the following: WebappDocumentValidator.getValidationTask() (details here: https://www.oxygenxml.com/InstData/Editor/SDK/javadoc/ro/sync/ecss/extensions/api/webapp/WebappDocumentValidator.html#getValidationTask--). You can see here how it is used: https://github.com/oxygenxml/w...