Search found 491 matches

by mihaela
Fri Oct 14, 2022 10:47 am
Forum: Common Problems
Topic: oxy_buttonGroup in floating toolbars
Replies: 2
Views: 971

Re: oxy_buttonGroup in floating toolbars

Hello,

We have just released the 25 version of Web Author and it includes the support for adding oxy_buttonGroup form controls on the floating toolbar.

Here is the "What's New" list for this version:
https://www.oxygenxml.com/xml_web_author/whats_new.html

Best Regards,
Mihaela.
by mihaela
Fri Oct 14, 2022 9:32 am
Forum: Common Problems
Topic: Retrieve DITA features in custom framework
Replies: 6
Views: 1836

Re: Retrieve DITA features in custom framework

Hello, We have just released the 25 version of Web Author and, in addition to support for image maps being added in XHTML documents, it is now also possible to implement the image map feature in custom frameworks. For more details, see Implementing Image Map Support in a Custom Framework . Here is t...
by mihaela
Fri Sep 16, 2022 9:42 am
Forum: Common Problems
Topic: event listener to check selection
Replies: 1
Views: 384

Re: event listener to check selection

Hi Smita, You can use the SelectionManager API to listen on selection changes events. When the selection is changed, you can get the current selection using the sync.api.SelectionManager.getSelection method and then check if it is a fully selected element, using the sync.api.Selection.getFullySelect...
by mihaela
Mon Sep 12, 2022 2:24 pm
Forum: Common Problems
Topic: How to use following kind of tag to add or rename tag
Replies: 5
Views: 686

Re: How to use following kind of tag to add or rename tag

Hi Smita, Can you please give us more details about what do you mean by "handling Processing instruction"? Here are some documentation links: 1. Oxygen XML Editor 24.1 User Guide https://www.oxygenxml.com/doc/versions/24.1/ug-editor/ 2. Oxygen XML Web Author 24.1 User Guide https://www.oxy...
by mihaela
Mon Sep 12, 2022 10:15 am
Forum: Common Problems
Topic: How to use following kind of tag to add or rename tag
Replies: 5
Views: 686

Re: How to use following kind of tag to add or rename tag

Hi Smita, There is an API method that you can use to remove the tags of an element: ro.sync.ecss.extensions.commons.operations.CommonsOperationsUtil.unwrapTags(AuthorAccess, AuthorNode) . Then, to add the processing instructions just use the ro.sync.ecss.extensions.api.AuthorDocumentController.inser...
by mihaela
Mon Sep 12, 2022 9:02 am
Forum: Common Problems
Topic: Table column resize
Replies: 2
Views: 862

Re: Table column resize

Hello, Web Author does not support column width resize with drag and drop, for the moment (you can only change the column specification). We already have an issue registered in our internal issues tracker and we added your vote for it. We will update this thread when this feature will be available. ...
by mihaela
Fri Sep 09, 2022 9:29 am
Forum: Common Problems
Topic: How to use following kind of tag to add or rename tag
Replies: 5
Views: 686

Re: How to use following kind of tag to add or rename tag

Hello, In general to insert an XML fragment you should use the API: ro.sync.ecss.extensions.api.AuthorDocumentController.insertXMLFragment(String, int) . For example, let's say that you want to insert the first processing instruction at caret offset. This is the sample code: String myFragment = &quo...
by mihaela
Thu Sep 08, 2022 4:13 pm
Forum: Common Problems
Topic: How to set up custom DTD in content fusion
Replies: 9
Views: 3427

Re: How to set up custom DTD in content fusion

Hello, Sure, you can use custom DTDs in Content Fusion, on an enterprise server. The solution is to create a framework to associate your documents with the DTDs and then upload the framework on the Content Fusion server. Please let us know if you need more information. Best Regards, Mihaela
by mihaela
Thu Sep 08, 2022 9:21 am
Forum: Common Problems
Topic: Undo operation is not giving previous changes completely
Replies: 5
Views: 589

Re: Undo operation is not giving previous changes completely

Hi, If you used ro.sync.ecss.extensions.api.node.AuthorElement.removeAttribute(String) you have to change the code to use the ro.sync.ecss.extensions.api.AuthorDocumentController.removeAttribute(String, AuthorElement) API. The reason is that the first method must be used only when the element is fro...
by mihaela
Wed Sep 07, 2022 3:26 pm
Forum: Common Problems
Topic: Undo operation is not giving previous changes completely
Replies: 5
Views: 589

Re: Undo operation is not giving previous changes completely

Hello,

What API method do you use to remove the attribute?

Best Regards,
Mihaela
by mihaela
Wed Sep 07, 2022 12:43 pm
Forum: Common Problems
Topic: Undo operation is not giving previous changes completely
Replies: 5
Views: 589

Re: Undo operation is not giving previous changes completely

Hello, You have to use the ro.sync.ecss.extensions.api.AuthorDocumentController.setAttribute(String, AttrValue, AuthorElement) API to set attributes for an element and to make sure that undo/redo will function properly. You can also use AuthorDocumentController.setMultipleDistinctAttributes(int, int...
by mihaela
Mon Sep 05, 2022 1:43 pm
Forum: Common Problems
Topic: Find valid elements at caret position
Replies: 5
Views: 703

Re: Find valid elements at caret position

Hello, In order to help you we have to find more about your customization, like what type of schema are you using and what elements are you expecting to be valid in specific positions. You can send us this information (and your current schema) on our support email address (support@oxygenxml.com). Be...
by mihaela
Fri Sep 02, 2022 3:39 pm
Forum: Common Problems
Topic: How to get list of attributes which can be added to selected tag
Replies: 6
Views: 726

Re: How to get list of attributes which can be added to selected tag

Hello,

From ro.sync.ecss.extensions.api.node.AuthorElement you can get all the attributes and then use the ro.sync.ecss.extensions.api.AuthorDocumentController.removeAttribute(String, AuthorElement) API that I mentioned earlier, for each attribute, to remove it.

Best Regards,
Mihaela
by mihaela
Fri Sep 02, 2022 3:34 pm
Forum: Common Problems
Topic: Find valid elements at caret position
Replies: 5
Views: 703

Re: Find valid elements at caret position

Hi,

This means that your schema specifies that all these elements are valid in any position, so the API will always return the same list.
You will have to check the schema and update it to correctly set the valid elements.

Best Regards,
Mihaela
by mihaela
Fri Sep 02, 2022 2:36 pm
Forum: Common Problems
Topic: Find valid elements at caret position
Replies: 5
Views: 703

Re: Find all elements at caret position

Hi, The elements returned by the specified API are the ones that are valid (can be inserted) at the specified position in document, according to the schema associated with your document. If you invoke content completion in the same position, do you see other elements in the content completion list? ...
by mihaela
Fri Sep 02, 2022 2:14 pm
Forum: Common Problems
Topic: Not to display End tag
Replies: 8
Views: 815

Re: Not to display End tag

Hi Shilpa, Thank you for the screenshots and the explanation. What you can do is to use the -oxy-display-tags CSS that I mentioned to hide the default tags, and then recreate the start tag rendering on a before pseudo-element of embedded.figure.reference element. Note that you can find the attribute...
by mihaela
Fri Sep 02, 2022 12:32 pm
Forum: Common Problems
Topic: Not to display End tag
Replies: 8
Views: 815

Re: Not to display End tag

Hello,

Can you please send us a screenshot with the current display of the element and a picture that explains what you want to obtain, to be sure that we are reffering to the same editor mode?

Thank you,
Mihaela
by mihaela
Fri Sep 02, 2022 11:57 am
Forum: Common Problems
Topic: How to get list of attributes which can be added to selected tag
Replies: 6
Views: 726

Re: How to get list of attributes which can be added to selected tag

Hello, The ro.sync.ecss.extensions.api.AuthorDocumentController API class contains methods for modifying the Author document, so here is the place were you can first search when you need a method to modify or remove an element or an attribute. These are the methods that you need now: ro.sync.ecss.ex...
by mihaela
Fri Sep 02, 2022 11:39 am
Forum: Common Problems
Topic: How to get list of elements with which we can rename selected element and how to rename element
Replies: 7
Views: 882

Re: How to get list of elements with which we can rename selected element and how to rename element

Hi Smita, If you use the ro.sync.ecss.extensions.api.AuthorSchemaManager.createWhatElementsCanGoHereContext(int) API, you will obtain the context that you need to find the valid elements that can be inserted at caret position (there is no need to provide any of the parameters that you listed). From ...
by mihaela
Fri Sep 02, 2022 11:30 am
Forum: Common Problems
Topic: Not to display End tag
Replies: 8
Views: 815

Re: Not to display End tag

Hello, In the Author page of the Web Author both start tag and end tag are presented for all the elements, regardless of their serialization. What you can do is to use the -oxy-display-tags CSS property to hide both tags of the "embedded.figure.reference" elements. To associate a CSS with ...
by mihaela
Fri Sep 02, 2022 8:27 am
Forum: Common Problems
Topic: How to get list of attributes which can be added to selected tag
Replies: 6
Views: 726

Re: How to get list of attributes which can be added to selected tag

Hello, To get the list of available attributes for a specific node you can use the following API: ro.sync.ecss.extensions.api.AuthorSchemaManager.whatAttributesCanGoHere(WhatAttributesCanGoHereContext) . To create the context to be passed to the previous method, use the ro.sync.ecss.extensions.api.A...
by mihaela
Thu Sep 01, 2022 3:21 pm
Forum: Common Problems
Topic: Not to display End tag
Replies: 8
Views: 815

Re: Not to display End tag

Hello, When you insert an empty element in the document using the AuthorDocumentController.insertXMLFragment(String, int) API, the tag should be saved in the collapsed form, by default (<embedded.figure.reference rendition-type='online'/> in your case). Can you please give us more details? Where do ...
by mihaela
Tue Aug 30, 2022 2:56 pm
Forum: Common Problems
Topic: How to get list of elements with which we can rename selected element and how to rename element
Replies: 7
Views: 882

Re: How to get list of elements with which we can rename selected element and how to rename element

Hello, We want give popup to attribute as well. Sorry, I don't understand what you are trying to obtain (different than the default rename operation). Can you please check let me know if there is anything missing while using this method. The code from the first image should give you the list of elem...
by mihaela
Mon Aug 29, 2022 12:28 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Framework: ChangeAttributeOperation
Replies: 3
Views: 1029

Re: Framework: ChangeAttributeOperation

Hello, The JSOperation cannot be invoked in Oxygen XML Web Author using the JavaScript API , but you can use it as an operation for an Author Action (and it will work als in Web Author). So, you can use the JSOperation in the document type settings Action dialog. We will update the documentation to ...
by mihaela
Mon Aug 29, 2022 9:11 am
Forum: Common Problems
Topic: How to find the element inside cursor is placed
Replies: 1
Views: 438

Re: How to find the element inside cursor is placed

Hello, If you are developing a plugin or an AuthorOperation you can use the following Java API to find an element at a specific offset: ro.sync.ecss.extensions.api.AuthorDocumentController.getNodeAtOffset(int) The caret offset can be obtained from the AuthorEditorAccess: authorAccess.getEditorAccess...
by mihaela
Fri Aug 26, 2022 11:07 am
Forum: Common Problems
Topic: How to get list of elements with which we can rename selected element and how to rename element
Replies: 7
Views: 882

Re: How to get list of elements with which we can rename selected element and how to rename element

Hello, There is a "Rename Element" action in the contextual menu (in both Oxygen XML Editor and Web Author products) that presents a list of all elements available at caret position and you can choose one of them to rename the current element. In order to help you with more information can...
by mihaela
Thu Aug 25, 2022 1:12 pm
Forum: Common Problems
Topic: How to get list of elements with which we can rename selected element and how to rename element
Replies: 7
Views: 882

Re: How to get list of elements with which we can rename selected element and how to rename element

There is a specific operation available for renaming elements, that you can use: ro.sync.ecss.extensions.commons.operations.RenameElementOperation . To get the list of available elements at caret position, you can use the following API: ro.sync.ecss.extensions.api.AuthorSchemaManager.whatElementsCan...
by mihaela
Tue Jul 26, 2022 9:54 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: 2693

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

Hello, In the last version of Web Author (24.1) we added a Tags Display Mode switcher in the breadcrumb bar. Is this feature what you need for your use case or do you want to add it also on the toolbar? You can check our demo server to test the Tags Display Mode drop down. Best Regards, Mihaela
by mihaela
Tue Jul 19, 2022 2:10 pm
Forum: Common Problems
Topic: Elements to be highlighted in the document
Replies: 3
Views: 567

Re: Elements to be highlighted in the document

Hello,

We are glad that you implemented the elements highlighting.
Please let us know if you need further assistance.

Best Regards,
Mihaela
by mihaela
Thu Jul 14, 2022 2:16 pm
Forum: Common Problems
Topic: Elements to be highlighted in the document
Replies: 3
Views: 567

Re: Elements to be highlighted in the document

Hello, When the user clicks on the XPath you can invoke a custom Author operation that finds the node indicated by the XPath using the AuthorDocumentController.findNodesByXPath API and then adds a highlight on it, using the AuthorHighlighter API. We also have a sample plugin that adds non persistent...