Search found 296 matches

by cristi_talau
Thu Dec 03, 2020 8:39 pm
Forum: XML Schemas
Topic: need to make a questionare in xml
Replies: 1
Views: 11

Re: need to make a questionare in xml

Hello, This is an interesting use-case. In Web Author, the rendering of the XML document is configurable using CSS [1]. Also, the files are usually read and stored from a CMS or versioning system. You may need to write a custom connector if you want a different behavior [2]. If you share more detail...
by cristi_talau
Thu Dec 03, 2020 2:23 pm
Forum: Common Problems
Topic: Custom-Mapping of IDs to names
Replies: 9
Views: 199

Re: Custom-Mapping of IDs to names

Hello, To read the text content of an XML node, you could use the DOM API [1], for example, node.textContent. To modify the content of a node you have to invoke a server-side operation, as you mentioned. To set the text content of an element you can use the ReplaceElementContentOperation [2]. Best, ...
by cristi_talau
Wed Dec 02, 2020 7:49 pm
Forum: Common Problems
Topic: Rendering include content in DocBook
Replies: 3
Views: 127

Re: Rendering include content in DocBook

Hello, I managed to reproduce your problem in a test case. It seems that the XML parser that we use handles xi:include resolution and it does not invoke the URIResolver. The URIResolver hit that you got was to generate the target for the link icon rendered near the xi:include element. I registered a...
by cristi_talau
Thu Nov 26, 2020 8:44 pm
Forum: Common Problems
Topic: Concept for custom java interaction
Replies: 2
Views: 50

Re: Concept for custom java interaction

The documentation is a bit misleading the exception has to be an instance of "AuthorOpertionException" and its "isOperationRejectedOnPurpose" should return true to be displayed on the client. Unfortunately, only strings can be passed to the client-side code. Then, as you thought you have to parse it...
by cristi_talau
Thu Nov 26, 2020 12:10 am
Forum: Common Problems
Topic: Custom code after Git/commit
Replies: 2
Views: 46

Re: Custom code after Git/commit

Hello, Yes. The action callback is called after the action is executed regardless of its "successfulness" - in general, it is hard to say what success means for an action, although for commit it is pretty clear. One option would be to check if the editor is dirty: https://www.oxygenxml.com/maven/com...
by cristi_talau
Thu Nov 26, 2020 12:01 am
Forum: Common Problems
Topic: ChangeAttributeOperation - element location
Replies: 8
Views: 81

Re: ChangeAttributeOperation - element location

Now I understand your problem. Starting from the node at selection, you could traverse the DOM and compute the XPath of that element like /topic[1]/body[1]/p[1]/xref[2].
by cristi_talau
Wed Nov 25, 2020 11:36 pm
Forum: Common Problems
Topic: ChangeAttributeOperation - element location
Replies: 8
Views: 81

Re: ChangeAttributeOperation - element location

In this case, as I mentioned, instead of looking at the click target, you can rely on the editor to set the selection and just ask it for the element at selection using code like below:

Code: Select all

editor.getSelectionManager().getSelection().getNodeAtSelection()
by cristi_talau
Wed Nov 25, 2020 11:17 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Problem with java script - customizing Oxygen Web author !
Replies: 1
Views: 60

Re: Problem with java script - customizing Oxygen Web author !

You are right - due to security restrictions imposed by the browser, JS code is usually not allowed to read clipboard content. An exception is during the user "paste" event. If you manage to find different solutions that work on different browsers, you can link them together using some platform dete...
by cristi_talau
Wed Nov 25, 2020 11:06 pm
Forum: Common Problems
Topic: How to get current document type
Replies: 1
Views: 19

Re: How to get current document type

The Document.documentType property is specified by this property: https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-412266927 , but Web Author does not support this part of the DOM specification. To identity the document type you can look at the document structure. For example, for DITA there is a...
by cristi_talau
Wed Nov 25, 2020 11:02 pm
Forum: Common Problems
Topic: ChangeAttributeOperation - element location
Replies: 8
Views: 81

Re: ChangeAttributeOperation - element location

Hello, In version 23.0, Web Author added support to configure a floating contextual toolbar that is displayed near the user selection in two cases, when an element is selected, or when the user selection is inside an element. To this end you can add CSS rules like: xref:-oxy-selection-inside, xref:-...
by cristi_talau
Tue Nov 24, 2020 2:10 pm
Forum: Common Problems
Topic: ChangeAttributeOperation - element location
Replies: 8
Views: 81

Re: ChangeAttributeOperation - element location

With our existing API, you can implement an approximation of this behavior by calling editor.getSelectionManager().getSelection().getNodeAtSelection() However, if we understand what you are trying to achieve we may propose an alternative way of doing this. Is this request related to your other post ...
by cristi_talau
Tue Nov 24, 2020 9:54 am
Forum: Common Problems
Topic: Custom-Mapping of IDs to names
Replies: 9
Views: 199

Re: Custom-Mapping of IDs to names

Hello,

One thing to check: The JAR with the LinkTextResolver should be bundled in the framework archive. The plugins are uploaded in a different location in Web Author.

Best,
Cristian
by cristi_talau
Mon Nov 23, 2020 3:18 pm
Forum: Common Problems
Topic: Extending LinkTextResolver
Replies: 8
Views: 121

Re: Extending LinkTextResolver

Hello, First of all, the recommended way to authenticate users is described here in our integration guide [1]. Regarding your questions, 1. The link text source is not customizable using CSS. 2. DITALinkText resolver is an all-or-nothing approach. At most you can delegate to the original implementat...
by cristi_talau
Fri Nov 20, 2020 6:24 pm
Forum: Feature Request
Topic: Oxygen Web Author print setup
Replies: 5
Views: 1769

Re: Oxygen Web Author print setup

I am updating this that to let you know that Oxygen XML Web Author version 23 was released it now contains functionality that lets you download the document as PDF. The Print action was also updated to convert the document to PDF first. The PDF output is customizable with CSS. [1] For more details a...
by cristi_talau
Fri Nov 20, 2020 6:10 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Add transform to PDF option in oxygen web author
Replies: 5
Views: 1504

Re: Add transform to PDF option in oxygen web author

I am updating this thread to let you know that Oxygen XML Web Author version 23 was released it now contains functionality that lets you download the document as PDF. The PDF output is customizable with CSS. For more details about this release you can check out the what's new page: https://www.oxyge...
by cristi_talau
Fri Nov 20, 2020 4:52 pm
Forum: Common Problems
Topic: Custom button to open site in a new tab
Replies: 3
Views: 260

Re: Custom button to open site in a new tab

I am writing to let you know that Oxygen XML Web Author version 23 was released and that now links are opened in a new tab directly, without a preview. This way, even if a page does not support being loaded in an iframe can now be opened. For more details about this release you can check out the wha...
by cristi_talau
Fri Nov 20, 2020 4:50 pm
Forum: Other Issues
Topic: Link attribute in web author for PI element not working
Replies: 14
Views: 890

Re: Link attribute in web author for PI element not working

Hello, I am writing to let you know that Oxygen XML Web Author version 23 was released and now if you use OpenInSystemAppOperation , the link is opened directly in a new tab. This way errors related to pages that do not support being loaded in an iframe are fixed. For more details about this release...
by cristi_talau
Fri Nov 20, 2020 1:09 pm
Forum: Common Problems
Topic: Document Controller:: insertHtml
Replies: 1
Views: 53

Re: Document Controller:: insertHtml

Hello, First of all, the methods that you discovered are not API. To implement the same behavior using API you should create your own AuthorOperationWithResult [1] and that calls: authorDocumentModel.getActionsSupport().handleHtmlPaste(htmlString); Then invoke this operation from JavaScript code usi...
by cristi_talau
Wed Nov 18, 2020 6:20 pm
Forum: Common Problems
Topic: Adding event listener to images
Replies: 4
Views: 113

Re: Adding event listener to images

Hello, Starting with version 23.0 (to be released soon), Web Author can be configured to display a contextual floating-toolbar when the user selects an image (e.g. by clicking on it). This floating toolbar could contain a button to trigger the "Replace Image" action that you plan to implement. Do yo...
by cristi_talau
Mon Nov 16, 2020 8:16 pm
Forum: Common Problems
Topic: Custom-Mapping of IDs to names
Replies: 9
Views: 199

Re: Custom-Mapping of IDs to names

Hello, 1. Frameworks developed for Oxygen XML Editor are compatible with Web Author. ExtensionsBundle is also supported for Web Author. For example, in DITA, we have the same framework. So, the ExtensionsBundle implemented for the desktop application works in Web Author as well. We did not make any ...
by cristi_talau
Mon Nov 16, 2020 7:47 pm
Forum: Common Problems
Topic: Adding event listener to images
Replies: 4
Views: 113

Re: Adding event listener to images

Hello, Currently, there is no API to intercept mouse events on an image. To implement such API we need to understand your use-case better: Would it be sufficient to call sync.actions.AbstractAction when the use double-clicks the image? Do you want to do a specific thing, like turn resize handles on?...
by cristi_talau
Mon Nov 16, 2020 12:30 pm
Forum: Common Problems
Topic: Handle drag and drop
Replies: 5
Views: 143

Re: Handle drag and drop

Hello, Dropping multiple files in the editor is currently not supported. I registered an issue in our internal tracking system. In order to understand the priority of this feature, it would be helpful to share some information about the workflow that requires the ability to drop multiple images. Bes...
by cristi_talau
Thu Nov 12, 2020 9:04 pm
Forum: Common Problems
Topic: Custom-Mapping of IDs to names
Replies: 9
Views: 199

Re: Custom-Mapping of IDs to names

Hello, Your use-case is fairly common. Regarding the LinkTextResolver approach, I expect to work in Web Author as well. In the DITA framework we use this approach to present topic title for links. Regarding the ID chooser, yes, you will need to create a custom action and bind it to a form control. A...
by cristi_talau
Wed Nov 11, 2020 7:12 pm
Forum: Common Problems
Topic: Not able to edit document. It is always showing "The document is read-only."
Replies: 3
Views: 101

Re: Not able to edit document. It is always showing "The document is read-only."

Hello,

It seems that the problems comes from the communication between Web Author and Componize. I am trying to get someone from Componize involved as well.

Best,
Cristian
by cristi_talau
Wed Nov 04, 2020 2:56 pm
Forum: XHTML
Topic: namespace attribute on element insertion?
Replies: 1
Views: 355

Re: namespace attribute on element insertion?

Hello, The XHTML framework has many actions that use InsertFragmentOperation with a fragment that contains the XHTML namespace declaration. If the root element contains the namespace declaration for the default namespace being the XHTML namespace, then the namespace declaration is omitted from the n...
by cristi_talau
Sat Oct 31, 2020 9:32 pm
Forum: Common Problems
Topic: How to load images
Replies: 9
Views: 426

Re: How to load images

Hello, For Web Author Component Integration starter project, only the framework packaging is different [1]. However, frameworks can be uploaded from the Admin page as well after the resulting web application is installed. Regarding the example framework, you can take a look at the LightWeight DITA f...
by cristi_talau
Fri Oct 30, 2020 9:50 pm
Forum: Common Problems
Topic: How to load images
Replies: 9
Views: 426

Re: How to load images

Hello,

Here we describe how to create a framework extension [1]. This assumes you have Oxygen XML Editor installed.

Best,
Cristian

[1] https://www.oxygenxml.com/doc/versions/ ... zzf_pns_vz
by cristi_talau
Thu Oct 29, 2020 12:38 am
Forum: Common Problems
Topic: How to load images
Replies: 9
Views: 426

Re: How to load images

Hello, The default DITA CSS uses the value of the href attribute as the relative URL of the image, to be resolved against the URL of the topic. You can write your own CSS as part of a framework [1] to compute the URL in a different way. You can use some Oxygen-specific CSS extensions like oxy_concat...
by cristi_talau
Fri Oct 23, 2020 12:09 pm
Forum: Common Problems
Topic: Custom button to open site in a new tab
Replies: 3
Views: 260

Re: Custom button to open site in a new tab

Hello, We are aware of this problem and it will be fixed in Web Author version 23.0 which is scheduled in about a month. We will update this thread when the release will be available. The problem is caused because the web page that you want to open does not like to be loaded in an iframe preview. Th...
by cristi_talau
Tue Sep 29, 2020 9:25 pm
Forum: Feature Request
Topic: dynamic action name
Replies: 1
Views: 330

Re: dynamic action name

Hello, The builtin button does not offer this degree of flexibility. However you can implement a custom form control that behaves like a button, but has a dynamic name. Here is a tutorial [1] and we also have an example which renders MathML equations on GitHub [2]. Best, Cristian [1] https://www.oxy...