oxy_textArea Unexpected Behavior/Not Working in Oxygen XML Web Author
Oxygen general issues.
-
- Posts: 32
- Joined: Mon Apr 10, 2017 8:56 pm
oxy_textArea Unexpected Behavior/Not Working in Oxygen XML Web Author
Hello,
I'm using both oxy_textfield and oxy_textArea to edit attributes. Both functions work properly in the Oxygen XML Editor environment. However, when I deploy to Oxygen XML Web Author, oxy_textfield works as expected and oxy_textArea does not.
The attributes can be modified successfully through the attributes window. However, when they are modified in the oxy_textArea, Oxygen XML Web Author:


The code is:
Can you please let me know if I am doing something wrong? If I am not, can you please let me know if there is a work-around for this?
Thanks so much!
I'm using both oxy_textfield and oxy_textArea to edit attributes. Both functions work properly in the Oxygen XML Editor environment. However, when I deploy to Oxygen XML Web Author, oxy_textfield works as expected and oxy_textArea does not.
The attributes can be modified successfully through the attributes window. However, when they are modified in the oxy_textArea, Oxygen XML Web Author:
- Creates a new span immediately following the element with the attribute to be modified
- Dumps the content of the oxy_textArea into the new span
- Reverts the content of the oxy_textArea to whatever it was before creating the span


The code is:
Code: Select all
oxy_label(text, "Contract Number: ", styles, "width: 1.7in;color:white")
oxy_textfield(edit, '@contractNumber', columns, 15)
oxy_label(text, "Equipment Covered: ", styles, "width: 1.7in; text-align: right;color:white")
oxy_textArea(
edit, '@equipmentCovered',
contentType, 'text/plain',
rows, 3,
columns, 25
)
Thanks so much!
-
- Posts: 517
- Joined: Thu Sep 04, 2014 4:22 pm
Re: oxy_textArea Unexpected Behavior/Not Working in Oxygen XML Web Author
Post by cristi_talau »
Hello,
I tried to reproduce your problem with our demo deployment on these files: https://gist.github.com/ctalau/c376cdab ... 9e36820595 , but I was not successful.
The live URL is here:
https://www.oxygenxml.com/webapp-demo-a ... r-edit.xml
I am not sure how is your situation different.
As far as I understand you use the textfield to edit the value of an attribute, and for some reason the text content of the element is set instead. If you want to set the text content of the element using a form-control and have the text span hidden, you can use the "-oxy-collapse-text" CSS value for "visibility". More details here https://www.oxygenxml.com/doc/versions/ ... nsion.html .
Best,
Cristian
I tried to reproduce your problem with our demo deployment on these files: https://gist.github.com/ctalau/c376cdab ... 9e36820595 , but I was not successful.
The live URL is here:
https://www.oxygenxml.com/webapp-demo-a ... r-edit.xml
I am not sure how is your situation different.
As far as I understand you use the textfield to edit the value of an attribute, and for some reason the text content of the element is set instead. If you want to set the text content of the element using a form-control and have the text span hidden, you can use the "-oxy-collapse-text" CSS value for "visibility". More details here https://www.oxygenxml.com/doc/versions/ ... nsion.html .
Best,
Cristian
-
- Posts: 32
- Joined: Mon Apr 10, 2017 8:56 pm
Re: oxy_textArea Unexpected Behavior/Not Working in Oxygen XML Web Author
Hi Christian,
Thanks for the quick response!
I am only interested in editing the attribute values.
I tried the demo you put up and experienced the same behavior I saw in my files. The oxy_textfield updates the attribute properly. The oxy_textArea does not. This seems to happen in the web version only. (Oxygen XML Editor works properly on my laptop).
To demonstrate what I am seeing, I created a screen capture video and put it on youtube: https://youtu.be/ZHMpz0mHY6Y
You'll notice that when I update the oxy_textfield, the attribute related to the field changes. When I update the oxy_textArea:
I've verified this behavior in Chrome, FireFox and IE on both Mac and PC.
Thanks for the quick response!
I am only interested in editing the attribute values.
I tried the demo you put up and experienced the same behavior I saw in my files. The oxy_textfield updates the attribute properly. The oxy_textArea does not. This seems to happen in the web version only. (Oxygen XML Editor works properly on my laptop).
To demonstrate what I am seeing, I created a screen capture video and put it on youtube: https://youtu.be/ZHMpz0mHY6Y
You'll notice that when I update the oxy_textfield, the attribute related to the field changes. When I update the oxy_textArea:
- A new div is created
- The new div is populated with the content of what I entered in the oxy_textArea field (this should populate the attribute for the text area)
- The attribute value for the textArea is not updated
- The content of the text area is reverted back to reflect the (unchanged) attribute value
I've verified this behavior in Chrome, FireFox and IE on both Mac and PC.
-
- Posts: 517
- Joined: Thu Sep 04, 2014 4:22 pm
Re: oxy_textArea Unexpected Behavior/Not Working in Oxygen XML Web Author
Post by cristi_talau »
Hello,
Sorry, I was trying to use the attributes panel to change the value in the text-area. I can now reproduce the problem. I registered an internal issue for this. It will be available in a maintenance build.
Best,
Cristian
Sorry, I was trying to use the attributes panel to change the value in the text-area. I can now reproduce the problem. I registered an internal issue for this. It will be available in a maintenance build.
Best,
Cristian
-
- Posts: 517
- Joined: Thu Sep 04, 2014 4:22 pm
Re: oxy_textArea Unexpected Behavior/Not Working in Oxygen XML Web Author
Post by cristi_talau »
Hello,
I wanted to let you know that the fix is now available in the latest maintenance build of 19.0 version on our website [1].
Best,
Cristian
[1] https://www.oxygenxml.com/xml_web_autho ... uthor.html
I wanted to let you know that the fix is now available in the latest maintenance build of 19.0 version on our website [1].
Best,
Cristian
[1] https://www.oxygenxml.com/xml_web_autho ... uthor.html
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service