Search found 142 matches

by Bogdan Dumitru
Tue Feb 27, 2024 12:57 pm
Forum: Common Problems
Topic: dynamic evaluate options of oxy_xpath not working
Replies: 5
Views: 299

Re: dynamic evaluate options of oxy_xpath not working

Hi, The "DeleteElementOperation" referenced in your External Author Action is a reference to one of the built-in Author Operations. An Author Operation is an extension of ro.sync.ecss.extensions.api.AuthorOperation . The only solution for you is to define a custom operation that delegates ...
by Bogdan Dumitru
Fri Feb 23, 2024 4:17 pm
Forum: Common Problems
Topic: dynamic evaluate options of oxy_xpath not working
Replies: 5
Views: 299

Re: dynamic evaluate options of oxy_xpath not working

Hi, In that case, maybe you can modify your actions to call at the end a manual refresh that updates the styles: authorDocumentModel.getAuthorAccess().getEditorAccess().refresh(nodeToRefresh) See ro.sync.exml.workspace.api.editor.page.author.WSAuthorEditorPageBase.refresh(AuthorNode): "Refresh ...
by Bogdan Dumitru
Fri Feb 23, 2024 1:44 pm
Forum: Common Problems
Topic: dynamic evaluate options of oxy_xpath not working
Replies: 5
Views: 299

Re: dynamic evaluate options of oxy_xpath not working

Hello Johann,

Indeed, oxy_xpath support is limited in Web Author. This limitation is documented here: "CSS property values that contain the oxy_xpath function are not updated correctly when the document changes."

But what is your use-case? Maybe we can guide you to something else.
by Bogdan Dumitru
Wed Feb 14, 2024 3:56 pm
Forum: Common Problems
Topic: How to disable reference resolver
Replies: 2
Views: 187

Re: How to disable reference resolver

Hello, Yes, the listeners WebappEditingSessionLifecycleListener and AuthorPreloadProcessor are invoked after resolving references (after DITAMapRefResolver.hasReferences(AuthorNode node) is invoked). To add a listener that's invoked before DITAMapRefResolver.hasReferences you can use ro.sync.ecss.ex...
by Bogdan Dumitru
Wed Nov 22, 2023 1:47 pm
Forum: Common Problems
Topic: Create PopUp Menu Customizer
Replies: 7
Views: 679

Re: Create PopUp Menu Customizer

Hi, Sorry about the broken link. The correct link is: https://www.oxygenxml.com/forum/viewtopic.php?p=72796#p72796 And here you can find a tutorial that shows how to add actions, look for addToContextMenu: https://www.oxygenxml.com/maven/com/oxygenxml/oxygen-webapp/26.0.0.0/jsdoc/tutorial-customacti...
by Bogdan Dumitru
Tue Nov 21, 2023 6:19 pm
Forum: Common Problems
Topic: Create PopUp Menu Customizer
Replies: 7
Views: 679

Re: Create PopUp Menu Customizer

Hi Isabelle, There is no dedicated API that you can use but you might be able to implement your use-case using the non-persistent highlight API. Render non-persistent highlights for spelling errors with the error type specified as highlight additional data, see the example from this post : " hi...
by Bogdan Dumitru
Mon Nov 20, 2023 1:00 pm
Forum: Common Problems
Topic: Add Highlighter on document
Replies: 2
Views: 367

Re: Add Highlighter on document

Hi Isabelle, Unfortunately, the ColorHighlightPainter API doesn't work in Web Author. Try instead setting styles via CSS by specifying the "class" attribute on the highlight. Somewhat like this: Map<String, String> attrs = new HashMap<>(); attrs.put("class", "custom-highligh...
by Bogdan Dumitru
Fri Nov 17, 2023 4:39 pm
Forum: Common Problems
Topic: Create PopUp Menu Customizer
Replies: 7
Views: 679

Re: Create PopUp Menu Customizer

Hello Isabelle, There is an API that you can use to customize spelling suggestions, see SpellcheckingEngine and WebappSpellchecker . This allows you to define and install a custom SpellcheckingEngine, somewhat like this: AuthorDocumentModel.getSpellchecker().setSpellcheckingEngine("it", ne...
by Bogdan Dumitru
Tue Oct 24, 2023 3:03 pm
Forum: Common Problems
Topic: Problem with oxy_browser Form Control
Replies: 3
Views: 694

Re: Problem with oxy_browser Form Control

Hi, Changing the form control dynamically using a StylesFilter seems to be an overcomplicated solution. Your initial problem was that the oxyBrowser form control doesn't allow loading files from the server disk, you encountered the "file protocol is disabled" message. Why don't you simply ...
by Bogdan Dumitru
Thu Oct 19, 2023 4:23 pm
Forum: Common Problems
Topic: Problem with oxy_browser Form Control
Replies: 3
Views: 694

Re: Problem with oxy_browser Form Control

Hello, Please see the note from the Oxygen XML Web Author Form Controls page : "This form control only loads external pages that do not pass through Web Author to load (i.e. files from a CMS)." . This means that you can not use oxy_browser form control in Web Author to render HTML files fr...
by Bogdan Dumitru
Wed Oct 18, 2023 2:31 pm
Forum: Common Problems
Topic: Reading data from oxygen sdk on the js page
Replies: 1
Views: 282

Re: Reading data from oxygen sdk on the js page

Hello,

The callback function has two arguments, the first argument is the error object or null and the second one is the actual result. You are actually logging the error, which is null.
by Bogdan Dumitru
Tue Oct 17, 2023 3:34 pm
Forum: Other Issues
Topic: Invoke JS Action through the operation defined in SDK
Replies: 2
Views: 357

Re: Invoke JS Action through the operation defined in SDK

Hello,

There is no way to invoke client-side actions (JS defined) from server-side (Oxygen SDK).

Regarding the void return type, if you want to return something from an AuthorOperation see AuthorOperationWithResult.
by Bogdan Dumitru
Tue Oct 10, 2023 12:30 pm
Forum: Common Problems
Topic: Overriding / Enrich arguments in defined actions
Replies: 6
Views: 745

Re: Overriding / Enrich arguments in defined actions

Hi,

The only solution is to invoke each action individually, and for the ones that need valueFromJavascript to invoke the actual operation with valueFromJavascript as an argument.
by Bogdan Dumitru
Mon Oct 09, 2023 3:19 pm
Forum: Common Problems
Topic: Overriding / Enrich arguments in defined actions
Replies: 6
Views: 745

Re: Overriding / Enrich arguments in defined actions

Hi, One correction: in the .framework you can only define actions, not operations. Operations are Java classes that implement the AuthorOperation interface. The above solution doesn't work if you want to reuse actions defined in the framework because it works just with operations. Another solution w...
by Bogdan Dumitru
Mon Oct 09, 2023 12:18 pm
Forum: Common Problems
Topic: Overriding / Enrich arguments in defined actions
Replies: 6
Views: 745

Re: Overriding / Enrich arguments in defined actions

Hello, One solution would be that instead of invoking ExecuteMultipleWebappCompatibleActionsOperation, define a custom AuthorOperation and from that operation manually call the other operations. You can pass to the custom operation your valueFromJavascript and then you can pass/dispatch it to anothe...
by Bogdan Dumitru
Wed Sep 27, 2023 5:06 pm
Forum: Common Problems
Topic: Display updated Illustration
Replies: 3
Views: 560

Re: Display updated Illustration

Hello,

There is no way to clear the image cache in Oxygen XML Web Author.
There might be a way in the next version that will be released soon, but just a solution that uses non-API. If you are interested in this, please write us on the support email address: support@oxygenxml.com.
by Bogdan Dumitru
Fri Sep 22, 2023 11:23 am
Forum: Feature Request
Topic: Replicate Insert Image Dialog from Oxygen XML Editor
Replies: 3
Views: 544

Re: Replicate Insert Image Dialog from Oxygen XML Editor

Hi Daniel,

Unfortunately, the code from the insert image dialog from Oxygen XML Editor isn't available. But you might find it useful to browse the repository with sample plugins: https://github.com/oxygenxml/web-author-sample-plugins/, you might find useful examples there.
by Bogdan Dumitru
Thu Sep 21, 2023 2:32 pm
Forum: Feature Request
Topic: Replicate Insert Image Dialog from Oxygen XML Editor
Replies: 3
Views: 544

Re: Replicate Insert Image Dialog from Oxygen XML Editor

Hello Daniel, In order to replicate the image browser dialog from Oxygen XML Editor you have to override the built-in "insert.image" action with a custom action that shows a dialog using the sync.api.Workspace.createDialog API method and that adds needed inputs. For the browsing part you c...
by Bogdan Dumitru
Thu Aug 17, 2023 4:30 pm
Forum: Common Problems
Topic: Actions at the top of the content completion list
Replies: 5
Views: 828

Re: Actions at the top of the content completion list

Hello Johann, The ContentCompletionSortPriorityAssigner API works only for elements, see the JavaDoc: "Extension that can be used to assign sorting priorities for elements". Unfortunately, actions like yours that do not replace elements from content completion aren't affected by this API. ...
by Bogdan Dumitru
Mon Aug 14, 2023 11:17 am
Forum: Feature Request
Topic: Restrict List of Files to DITA Maps When Setting Root DITA Map
Replies: 3
Views: 890

Re: Restrict List of Files to DITA Maps When Setting Root DITA Map

Just to confirm, your mean something like this?
Yes, exactly like in your screenshot.
by Bogdan Dumitru
Mon Aug 14, 2023 9:50 am
Forum: Common Problems
Topic: Custom Table in Framework - Empty Cell issue
Replies: 6
Views: 944

Re: Custom Table in Framework - Empty Cell issue

Hi,
We don't have such examples but it might help you to see the sources of the operations that the cals-table-plugin extends, see the "ro.sync.ecss.extensions.commons.table" package from here.
by Bogdan Dumitru
Fri Aug 11, 2023 11:57 am
Forum: Common Problems
Topic: How to set the language of the validation messages ?
Replies: 3
Views: 536

Re: How to set the language of the validation messages ?

Hello Vincent, There might be a possible way to achieve this. 1. Try setting the "Schematron_language_option" integer option to 3. This way the validation errors will be generated for all languages 2. Add a ro.sync.exml.workspace.api.editor.validation.ValidationProblemsFilter and filter ex...
by Bogdan Dumitru
Fri Aug 11, 2023 11:37 am
Forum: Feature Request
Topic: Restrict List of Files to DITA Maps When Setting Root DITA Map
Replies: 3
Views: 890

Re: Restrict List of Files to DITA Maps When Setting Root DITA Map

Hello Daniel,

Unfortunately, the file browser doesn't allow filtering displayed files but I've noted your interest on our internal issue tracker.
But how about having a dropdown with recently used DITA map files? Somewhat like in Oxygen XML Editor?
by Bogdan Dumitru
Thu Aug 10, 2023 11:36 am
Forum: Common Problems
Topic: How to set the language of the validation messages ?
Replies: 3
Views: 536

Re: How to set the language of the validation messages ?

Hello Vincent,

Try using the "Schematron_custom_language" and "Schematron_language_option" configuration options.
Read more about them in the Configuration Options topic.
by Bogdan Dumitru
Mon Aug 07, 2023 2:17 pm
Forum: Common Problems
Topic: Custom Table in Framework - Empty Cell issue
Replies: 6
Views: 944

Re: Custom Table in Framework - Empty Cell issue

Hi Regarding "By the way, does the web-author-CALS-plugin support my XML vocabulary?" , the web-author-CALS-plugin supports vocabularies that have CALS tables schemas. CALS tables look like this: <table> <tgroup cols="2" colsep="0"> <colspec colnum="1" colname...
by Bogdan Dumitru
Mon Aug 07, 2023 12:04 pm
Forum: Common Problems
Topic: Custom Table in Framework - Empty Cell issue
Replies: 6
Views: 944

Re: Custom Table in Framework - Empty Cell issue

Hello Nimod, If you want to span the first cell over the second, empty one, try using the column-span CSS property instead of "display: none" and "visibility: hidden". Also, notice that you can you oxy_xpath Oxygen CSS Function to compute the value for the "column-span"...
by Bogdan Dumitru
Wed Aug 02, 2023 2:32 pm
Forum: Common Problems
Topic: How to highlight a string in xml document?
Replies: 8
Views: 1224

Re: How to highlight a string in xml document?

Hello, From the "Uncaught TypeError: Cannot read properties of undefined (reading 'getType')" it seems that you call SelectionManager.createAroundNode() with an undefined object as parameter. Please double-check that. Also notice that the objects printed in the console from the last screen...
by Bogdan Dumitru
Fri Jul 28, 2023 11:55 am
Forum: Common Problems
Topic: how cache a schema file in web author
Replies: 1
Views: 401

Re: how cache a schema file in web author

Hello Shikhar,

You should set up an XML Catalog mapping, read more about it in the Using a Custom Schema in Your Framework topic.
by Bogdan Dumitru
Mon Jul 24, 2023 4:20 pm
Forum: Common Problems
Topic: how to add new action inside content completion window
Replies: 6
Views: 632

Re: how to add new action inside content completion window

Hi,

Unfortunately, there is no way to replace built-in "New [Element]" and "Split" actions with custom ones for all elements.