Search found 494 matches

by cristi_talau
Wed May 31, 2023 10:52 am
Forum: Feature Request
Topic: regarding images are loading every time while loading the editor
Replies: 18
Views: 2469

Re: regarding images are loading every time while loading the editor

Hello,

Please make sure to restart the server after modifying the plugins.

Best,
Cristian
by cristi_talau
Tue May 30, 2023 1:19 pm
Forum: Feature Request
Topic: regarding images are loading every time while loading the editor
Replies: 18
Views: 2469

Re: regarding images are loading every time while loading the editor

Hello, You can take a look at this plugin to see how it finds the location of the plugin directory: https://github.com/oxygenxml/web-author-learn-words-plugin/blob/BRANCH_OXYGEN_RELEASE_25_1/src/main/java/com/oxygenxml/learnword/LearnWordPlugin.java#L17 . Then it uses it in another plugin class: htt...
by cristi_talau
Thu May 25, 2023 12:57 pm
Forum: Feature Request
Topic: Block Other Users From Deleting Comments
Replies: 10
Views: 2348

Re: Block Other Users From Deleting Comments

Hello,
You are right, to find the comments you should follow a different route:

Code: Select all

AuthorDocumentModel.getAuthorAccess().getReviewController().getCommentHighlights()
Best,
Cristian
by cristi_talau
Thu May 25, 2023 11:37 am
Forum: Common Problems
Topic: ClassNotFoundException on maven Dependency
Replies: 4
Views: 926

Re: ClassNotFoundException on maven Dependency

Hello,
As far as I can see you have only the JAR with the classes you wrote and a resources folder. You should also include JARs that are Maven dependencies, such as the gson library.

Best,
Cristian
by cristi_talau
Wed May 24, 2023 10:05 am
Forum: Common Problems
Topic: ClassNotFoundException on maven Dependency
Replies: 4
Views: 926

Re: ClassNotFoundException on maven Dependency

Hello, Adding the dependency in Maven makes it available to your code at compile time. To have it available also at runtime, you need to configure the classpath of your framework in the Document Type Configuration dialog box: https://www.oxygenxml.com/doc/versions/25.1/ug-editor/topics/the-document-...
by cristi_talau
Wed May 24, 2023 9:45 am
Forum: Feature Request
Topic: Diff Tool Merge Change as a Tracked Change
Replies: 5
Views: 1003

Re: Diff Tool Merge Change as a Tracked Change

Hello, The use-case that you describe seems very reasonable - I registered it as a feature request for Content Fusion. Currently there are several approaches that might prove useful: When creating a review task, create it from the original translations file and then replace the content of the file w...
by cristi_talau
Thu May 11, 2023 8:33 pm
Forum: Common Problems
Topic: web author is asking for authorization even when web dav URL has all the necessary information
Replies: 1
Views: 557

Re: web author is asking for authorization even when web dav URL has all the necessary information

Hello, What happens is that Web Author tries to make a PROPFIND request to your server using the URL that you are trying to open and your server does not respond with HTTP status 200. To fix the problem you should also implement the PROPFIND method in the WebDAV server. This problem happens only on ...
by cristi_talau
Thu May 11, 2023 2:07 pm
Forum: Common Problems
Topic: Static resources from the Framework Directory not available after upgrading to oXygen Web Author 25.1
Replies: 2
Views: 487

Re: Static resources from the Framework Directory not available after upgrading to oXygen Web Author 25.1

Hello, In the past, all the files in the web directory were loaded, regardless of what was configured in EXF. Now, Web Author takes the path that you append to sync.ext.Registry.extensionURL and searches for it in all folders that are configured as webResources . What you could do is to move the pag...
by cristi_talau
Fri May 05, 2023 1:30 pm
Forum: Common Problems
Topic: Error loading valid DITA document
Replies: 5
Views: 698

Re: Error loading valid DITA document

Hello,
If you do not throw the Exception from your unlock method, I would expect that the problem will be fixed.
Best,
Cristian
by cristi_talau
Fri May 05, 2023 9:36 am
Forum: Common Problems
Topic: Error loading valid DITA document
Replies: 5
Views: 698

Re: Error loading valid DITA document

Hello, We investigated the errors you reported and here is our conclusion: You experience a case in which documents remain in memory after the HTTP session of the user expires. This causes them to be persisted to the Web Author disk after 12h (the duration of the HTTP session). This is a case that s...
by cristi_talau
Wed Apr 12, 2023 8:10 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Trigger DeleteElementsOperation when a document is opened
Replies: 5
Views: 612

Re: Trigger DeleteElementsOperation when a document is opened

Hello,
Another idea would be set up an AuthorDocumentFilter that detects that multiple critdates were inserted and deletes the old ones.
Best,
Cristian
by cristi_talau
Tue Apr 11, 2023 1:01 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Trigger DeleteElementsOperation when a document is opened
Replies: 5
Views: 612

Re: Trigger DeleteElementsOperation when a document is opened

Hello, One option to implement this would be to delete the old revised elements when new ones are inserted. There are several approaches here: Implement a Schematron validation rule with a Quick fix. The quick fix allows users to delete the old revised elements with a single click, Display a form co...
by cristi_talau
Tue Apr 11, 2023 12:56 pm
Forum: Common Problems
Topic: Override existing shortcut key
Replies: 1
Views: 398

Re: Override existing shortcut key

Hello,

The ID is 'Author/UnwrapElement'. You can find this ID by following the instructions here: https://www.oxygenxml.com/maven/com/oxy ... ction.html

Best,
Cristian
by cristi_talau
Tue Apr 11, 2023 9:35 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Trigger DeleteElementsOperation when a document is opened
Replies: 5
Views: 612

Re: Trigger DeleteElementsOperation when a document is opened

Hello, Triggering actions when a document loads is technically possible using the JS API. You can find more details in this tutorial [1] where you have both the event when the document loads and the code to invoke an operation. However, modifying the document when it is opened may not be the best UX...
by cristi_talau
Fri Apr 07, 2023 2:14 pm
Forum: Common Problems
Topic: Start-up error when migrating from 25.0 to 25.1
Replies: 4
Views: 624

Re: Start-up error when migrating from 25.0 to 25.1

Hello, The error is appears because Web Author is distributed with a patched version of Slf4j. Your Web Author Component WAR it seems to contain the original version of slf4j library. Can you check the WEB-INF/lib folder of the resulting WAR to see if it contains a slf4j.jar library. If yes, you sho...
by cristi_talau
Thu Apr 06, 2023 2:31 pm
Forum: Feature Request
Topic: Typescript / Angular 2 management in Front developement
Replies: 1
Views: 525

Re: Typescript / Angular 2 management in Front developement

Hello, We do not have much experience with Angular. We have a sample plugin that uses React to render a form-control here: https://github.com/oxygenxml/web-author-sample-plugins/tree/master/web-author-react-form-control . You may be able to draw some inspiration from it. Regarding the IDE support, w...
by cristi_talau
Thu Apr 06, 2023 2:11 pm
Forum: Common Problems
Topic: Start-up error when migrating from 25.0 to 25.1
Replies: 4
Views: 624

Re: Start-up error when migrating from 25.0 to 25.1

Hello,

This error appears while the application stops because it failed to start. I would expect to have more errors before this one in the logs. Can you share a larger snippet of the logs?

Best,
Cristian
by cristi_talau
Thu Apr 06, 2023 11:33 am
Forum: Common Problems
Topic: Error retrieving keys for insertion in contextualized topic
Replies: 3
Views: 490

Re: Error retrieving keys for insertion in contextualized topic

Hello, DITAAccess.getKeysForInsertion cannot be made to work in Web Author unless we create a new override which has an extra parameter that is the ContextKeyManager. Regarding, the handler DITAExternalObjectInsertionHandler we will start from a user-facing feature: support for drag&drop with ke...
by cristi_talau
Wed Apr 05, 2023 10:29 am
Forum: Common Problems
Topic: Error retrieving keys for insertion in contextualized topic
Replies: 3
Views: 490

Re: Error retrieving keys for insertion in contextualized topic

Hello, You are using the DITAAccess.getKeysForInsertion API. However, this API works correctly only in Oxygen XML Editor / Author and it returns the keys from the "Context" DITA Map (opened in the DITA Maps Manager side-view. In Web Author this API does not work correctly as it does not kn...
by cristi_talau
Fri Mar 31, 2023 11:19 am
Forum: Common Problems
Topic: How to customize the Behavior of Drag/Drop Operations ?
Replies: 1
Views: 410

Re: How to customize the Behavior of Drag/Drop Operations ?

Hello, Drag & Drop involves both browser-side functionality and server-side processing of the objects that were dropped. To help you decide which path to follow, we need to understand your use-case better. For, example, if you want to customize the XML element inserted when the user drops a link...
by cristi_talau
Mon Mar 27, 2023 3:02 pm
Forum: Common Problems
Topic: Count words
Replies: 6
Views: 892

Re: Count words

Hello, The code you wrote does not take into account whether elements are "block" or "inline". To improve the behavior, you need to traverse the entire XML DOM and take into account the element boundaries when you count the words. You can use node.childNodes to get the children o...
by cristi_talau
Fri Mar 24, 2023 1:15 pm
Forum: Common Problems
Topic: Count words
Replies: 6
Views: 892

Re: Count words

Hello, In the JS API you can use the AuthorEditingSupport.getDocument() [1] method to get a reference to a Document node in the XML DOM. Then you can use standard DOM methods to obtain the textContent of the root element. Best, Cristian [1] https://www.oxygenxml.com/maven/com/oxygenxml/oxygen-webapp...
by cristi_talau
Thu Mar 23, 2023 7:18 pm
Forum: Common Problems
Topic: Count words
Replies: 6
Views: 892

Re: Count words

Hello, The action you mentioned is not available in Web Author out of the box. However, it can be implemented in a plugin. The main steps are the following: 1. Implement a custom action: https://www.oxygenxml.com/maven/com/oxygenxml/oxygen-webapp/25.1.0.0/jsdoc/tutorial-customaction.html 2. Count th...
by cristi_talau
Tue Mar 07, 2023 11:51 am
Forum: Common Problems
Topic: No xml tags are displaying in print
Replies: 11
Views: 1251

Re: No xml tags are displaying in print

Hello,
You can try to use the "-webkit-print-color-adjust:exact;" property on all elements:

Code: Select all

* {
  -webkit-print-color-adjust:exact !important;
}
Best,
Cristian
by cristi_talau
Mon Mar 06, 2023 4:08 pm
Forum: General XML Questions
Topic: surround with tag on cursor position
Replies: 5
Views: 943

Re: surround with tag on cursor position

Hello,
This means that you cannot use the ToggleSurroundWithElementOperation directly. However, you can still look at the source code and draw some inspiration from there to implement your own operation.
Best,
Cristian
by cristi_talau
Mon Mar 06, 2023 3:05 pm
Forum: Common Problems
Topic: Need info about existing actions
Replies: 5
Views: 780

Re: Need info about existing actions

Hello,

The Author/Cut and Author/Copy actions were designed to be invoked by shortcut. The actions that we normally present in the context menu are Author/CutSpecial and Author/CopySpecial. They have the proper UI elements configured.

Best,
Cristian
by cristi_talau
Mon Mar 06, 2023 3:00 pm
Forum: Common Problems
Topic: No xml tags are displaying in print
Replies: 11
Views: 1251

Re: No xml tags are displaying in print

Hello, Thanks for reporting this issue. It will be fixed in Web Author version 25.1 which is planned to be released soon. As a temporary workaround you can create an HTML element with the ID: "review-panel-list" as in the code snippet below: var div = document.createElement('div'); div.id ...
by cristi_talau
Tue Feb 28, 2023 2:36 pm
Forum: General XML Questions
Topic: surround with tag on cursor position
Replies: 5
Views: 943

Re: surround with tag on cursor position

Hello, The surroundInFragment method is a low-level method that does not detect words to make bold. If you want a more refined behavior you should use the following operation in your action ro.sync.ecss.extensions.commons.operations.ToggleSurroundWithElementOperation . If you sign up for the SDK acc...
by cristi_talau
Wed Feb 08, 2023 10:59 am
Forum: Common Problems
Topic: focus-within CSS pseudo-class
Replies: 3
Views: 754

Re: focus-within CSS pseudo-class

Hello,

The focus-within pseudo-class is not supported in Web Author.
It would help us understand your use-case for this pseudoclass. This way we can either suggest an alternative solution or prioritize adding support for it.

Best,
Cristian
by cristi_talau
Mon Jan 16, 2023 6:37 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, First of all, if you can share what chars you want to add, and if it makes sense to add them by default, we can add them in the official plugin and leave you will less differences in your fork. To add a new category, you can add the following lines in the resources/main.js file (https://githu...