Search found 494 matches

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...
by cristi_talau
Wed Nov 02, 2022 11:59 am
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,
You can use the "nodeType" property of the node: https://developer.mozilla.org/en-US/doc ... e/nodeType .
Best,
Cristian
by cristi_talau
Tue Nov 01, 2022 11:53 am
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, There is no JS API for that. You have two options: 1. Use a hard-coded list of possible children / possible parents. 2. Use a Java API: https://www.oxygenxml.com/InstData/Editor/SDK/javadoc/ro/sync/ecss/extensions/api/AuthorSchemaManager.html#whatElementsCanGoHere-ro.sync.contentcompletion.xm...
by cristi_talau
Tue Nov 01, 2022 10:05 am
Forum: Common Problems
Topic: Unnecessary differences are showing while comparing
Replies: 1
Views: 355

Re: Unnecessary differences are showing while comparing

Hello, If the diff view identifies a change where there is no difference, we should solve this problem in Web Author itself. The first step would be to be able to reproduce the problem. Can you share two small files that have no difference, but, when compared, Web Author identifies a change? Best, C...
by cristi_talau
Tue Nov 01, 2022 10:03 am
Forum: Common Problems
Topic: Java version compatibility
Replies: 3
Views: 1050

Re: Java version compatibility

Hello, This kind of error comes with more details in the server logs [1]. Can you look inside the log and post also the stack trace of that Exception? Also, it is better to use Java 17 which is a long-term support release and will be also officially supported in Web Author in a future relase. Best, ...
by cristi_talau
Mon Oct 31, 2022 11:15 am
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,
The getNodeAtSelection() method returns a node which implements the DOM level 3 API. So, you ca use properties like childNodes on it.
Or do you want to check whether that node can have a child "xyz"?
Best,
Cristian
by cristi_talau
Mon Oct 31, 2022 10:57 am
Forum: Common Problems
Topic: Validate document
Replies: 5
Views: 586

Re: Validate document

Hello, In Web Author there is the notion of a "valid document". I am not sure if you want to validate smaller pieces of content inside the document (you mentioned the caret position), and how would you determine the validity of such a fragment - XML Schemas validate entire documents only. ...
by cristi_talau
Mon Oct 31, 2022 10:35 am
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, You can obtain the selection as you mentioned: var sel = this.editor.getSelectionManager().getSelection() Then use one of the methods here: https://www.oxygenxml.com/maven/com/oxygenxml/oxygen-webapp/25.0.0.0/jsdoc/sync.api.Selection.html, for example: sel.getNodeAtSelection().getTagName() Be...
by cristi_talau
Thu Oct 27, 2022 12:33 pm
Forum: General XML Questions
Topic: Can we edit the dictionary which are pre exist
Replies: 13
Views: 2199

Re: Can we edit the dictionary which are pre exist

Hello, Sorry for the late reply. You are right - if you delete one of the ".dic" files it will be copied over again when the server restarts. You can workaround this issue by deleting the ".dic" files from the source JAR (located in "tomcat\webapps\oxygen-xml-web-author\WEB-...
by cristi_talau
Wed Oct 26, 2022 11:41 am
Forum: Common Problems
Topic: Java version compatibility
Replies: 3
Views: 1050

Re: Java version compatibility

Hello, Oxygen XML Web Author officially supports only Java 8 and 11. We are currently working to add official support Java 17 in an upcoming release. Fortunately, there compatibility is pretty decent - we only had to do the following changes: 1. Set the JDK_JAVA_OPTIONS environment variable to --add...
by cristi_talau
Tue Sep 27, 2022 10:04 am
Forum: Common Problems
Topic: How to configure or update some changes to UTF-8 Char Picker v24.1 plugin?
Replies: 12
Views: 1593

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

Hello, The error you received was in a step that was required for running JS tests. I deleted that step and made a couple of other fixes. This pom.xml file seems to work: <?xml version="1.0"?> <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/m...
by cristi_talau
Thu Sep 15, 2022 1:14 pm
Forum: Common Problems
Topic: How to find next node
Replies: 3
Views: 585

Re: How to find next node

Hello, The code that I included in the first reply can be continued to return the next sibling. node.getEndOffset() is inclusive, this means that it returns the offset before the end tag of the node. So "node.getEndOffset()+1" returns the offset after the end tag, which is included in the ...
by cristi_talau
Wed Sep 14, 2022 3:53 pm
Forum: Common Problems
Topic: How to configure or update some changes to UTF-8 Char Picker v24.1 plugin?
Replies: 12
Views: 1593

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

Hello, The source code of the plugin is available here: https://github.com/oxygenxml/web-author-charpicker-plugin . The build might use some tools that are not public. We are also open to feature requests for this plugin. So, if you want a feature that we think might benefit more users, we may imple...
by cristi_talau
Mon Sep 12, 2022 2:09 pm
Forum: Common Problems
Topic: How to find next node
Replies: 3
Views: 585

Re: How to find next node

Hello, I will assume you have an instance of AuthorNode . In this case you can obtain its siblings using a code like below: AuthorNode node = ...; AuthorParentNode parent = (AuthorParentNode) node.getParent(); List<AuthorNode> siblings = parent.getContentNodes(); Now you can just the element after n...
by cristi_talau
Mon Sep 12, 2022 1:42 pm
Forum: General XML Questions
Topic: how pass parameters in ChangeAttributesOperation
Replies: 1
Views: 649

Re: how pass parameters in ChangeAttributesOperation

Hello, The documentation for the operation is here: https://www.oxygenxml.com/doc/versions/24.1/ug-editor/topics/dg-default-author-operations.html#dg-default-author-operations__changeattributesoperation . According to it, the invocation should look like: actionsManager.invokeOperation( 'ro.sync.ecss...
by cristi_talau
Mon Aug 08, 2022 10:05 am
Forum: Common Problems
Topic: Line breaks and empty spaces added when merging
Replies: 10
Views: 3081

Re: Line breaks and empty spaces added when merging

Hello, As far as I understand, you have the "Do not break lines, do not indent" option configured for Oxygen XML Editor as described here: https://www.oxygenxml.com/doc/versions/24.1/ug-editor/topics/preferences-author-serialization.html#preferences-author-serialization__compatibility_with...
by cristi_talau
Wed Aug 03, 2022 11:24 am
Forum: Common Problems
Topic: Create a display tag dropdown with tag display options as a toolbar action in Oxygen web author
Replies: 18
Views: 2658

Re: Create a display tag dropdown with tag display options as a toolbar action in Oxygen web author

The "tags-mode" loading option is imposing the "full-tags-with-attributes" display mode. If you just want to provide a default, you can use the following server option "tagless.editor.tags.display.mode" which is documented here: https://www.oxygenxml.com/doc/versions/24...
by cristi_talau
Thu Jul 21, 2022 2:27 pm
Forum: Common Problems
Topic: Create table in web author
Replies: 1
Views: 433

Re: Create table in web author

Hello, The simplest way is to create an Author-mode action and add it to the toolbar. Such actions can be created using Oxygen XML Editor using the Document Type Configuration dialog box (https://www.oxygenxml.com/doc/versions/24.1/ug-editor/topics/the-document-type-dialog.html). For more details se...
by cristi_talau
Thu Jul 21, 2022 9:57 am
Forum: Common Problems
Topic: _comment invalid element
Replies: 1
Views: 443

Re: _comment invalid element

Hello, I think I need more details to understand your request. An XML element cannot be named "_comment" because the name cannot start with underscore. If you are trying to insert a comment node (<!-- comment -->), you may have some customisation to enable this insertion - in Web Author yo...
by cristi_talau
Wed Jul 20, 2022 4:20 pm
Forum: General XML Questions
Topic: get copied data in code and do paste operation web author
Replies: 12
Views: 2363

Re: get copied data in code and do paste operation web author

Hello, In Web Author users can paste content in two ways: Using the Ctrl+V (or Cmd+V) shortcut. Using the "Paste special" action from the contextual menu which shows a dialog where the users need to paste the content. In Desktop applications, there is usually a "Paste" button tha...
by cristi_talau
Thu Jun 23, 2022 9:49 am
Forum: Feature Request
Topic: Enhanced XML text view authoring
Replies: 7
Views: 1812

Re: Enhanced XML text view authoring

Hello,
Regarding the tag completion, I just realised that in Web Author you have to press Ctrl+Space for the proposals to come up while in Oxygen XML Author they appear automatically. Does it work work for you if you press Ctrl+Space?
Best,
Cristian
by cristi_talau
Wed Jun 22, 2022 12:54 pm
Forum: Feature Request
Topic: Enhanced XML text view authoring
Replies: 7
Views: 1812

Re: Enhanced XML text view authoring

Hello, Do you use XML Schema for your DITA topics - you should be able to see that from the first few lines of the XML file. Tag completion works only for DTD. If you are using DTD, we might need to troubleshoot the problem further. Regarding the text-page preference, your feedback is very useful fo...
by cristi_talau
Tue Jun 21, 2022 2:22 pm
Forum: Feature Request
Topic: Enhanced XML text view authoring
Replies: 7
Views: 1812

Re: Enhanced XML text view authoring

Hello, Thanks for your feedback. I added a feature request to autocomplete the end-tag of an element. Regarding auto-completing element names, they are supported now for a DTD schema. Do you use some other type of schema? Do you use DITA or something else? That being said, our focus is to make the A...
by cristi_talau
Tue Jun 07, 2022 6:13 pm
Forum: Feature Request
Topic: review comment tagging - Hooray! BUT...
Replies: 5
Views: 1863

Re: review comment tagging - Hooray! BUT...

Hello, The review comments are stored in the XML document as processing-instructions, as described in our user manual: https://www.oxygenxml.com/doc/versions/24.1/ug-editor/topics/track-changes-format.html . The mentions are encoded as @"User Name" in the "comment" attribute of s...
by cristi_talau
Thu May 19, 2022 10:07 am
Forum: Feature Request
Topic: review comment tagging - Hooray! BUT...
Replies: 5
Views: 1863

Re: review comment tagging - Hooray! BUT...

Hello, Thank you very much for your feedback. We discussed internally about this email notification feature - it would be very useful. However, there are several details that we need to figure out: What happens if the users deletes the comment, what happens if the user does not "save" the ...
by cristi_talau
Wed May 04, 2022 9:03 am
Forum: Common Problems
Topic: Differences when converting *.framework to *.exf files
Replies: 7
Views: 1636

Re: Differences when converting *.framework to *.exf files

Hello, When using EXF, you should explicitly specify which JS files to load using the webResource element as described here [1]. The "web/" folder is loaded only for the old ".framework" format which did not have a way to specify which JS files to load. I will update the document...
by cristi_talau
Wed Apr 13, 2022 8:08 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Copy Paste Operation in framework
Replies: 1
Views: 703

Re: Copy Paste Operation in framework

Hello, If you want to interract with the user's clipboard, you will probably need to implement an action in JavaScript. If you simply want to move an element around, you can use the ro.sync.ecss.extensions.commons.operations.MoveElementOperation [1]. Best, Cristian [1] https://www.oxygenxml.com/doc/...
by cristi_talau
Tue Apr 12, 2022 11:02 am
Forum: SDK-API, Frameworks - Document Types
Topic: Multiple data directories
Replies: 5
Views: 1107

Re: Multiple data directories

Hello,
If you use our Windows or Linux installer, the installer will update the builtin plugins that were installed as part of the previous installation. It will not modify the plugins outside the installation directory.
Best,
Cristian
by cristi_talau
Fri Apr 08, 2022 11:02 am
Forum: SDK-API, Frameworks - Document Types
Topic: Multiple data directories
Replies: 5
Views: 1107

Re: Multiple data directories

Hello,
Our installers upgrade the builtin frameworks and plugins and leave the user-provided ones unchanged. If you are using the WAR distribution, you can create a similar process yourself.
Best,
Cristian
by cristi_talau
Wed Apr 06, 2022 9:33 am
Forum: SDK-API, Frameworks - Document Types
Topic: Multiple data directories
Replies: 5
Views: 1107

Re: Multiple data directories

Hello, Web Author supports only one "data directory". It has some flexibility on how it loads frameworks and plugins. If you ca share what you want to achieve with two such folders, we may be able to find a solution to support your use-case. For example, there is an "additional.framew...