Get hidden text in author view
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 47
- Joined: Thu Jun 19, 2014 3:55 pm
Get hidden text in author view
Hi,
we are using the Eclipse Oxygen Author in Version 15.2.
If I drop a content reference into the editor, the author tab shows the reference content. In the text tab are requird elments hidden to remain the xml file valid. Is there a way to get these elements by giving the start and end offset?
Best regards,
Denis
we are using the Eclipse Oxygen Author in Version 15.2.
If I drop a content reference into the editor, the author tab shows the reference content. In the text tab are requird elments hidden to remain the xml file valid. Is there a way to get these elements by giving the start and end offset?
Best regards,
Denis
Denis Zygann
KGU Consulting GmbH
http://www.kgu-consulting.com
KGU Consulting GmbH
http://www.kgu-consulting.com
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Get hidden text in author view
Hi Denis,
Is this a question? The Text page presents the XML content as it is, it cannot be customized to present content which is not there. It is based on an Eclipse Styled text to which you can gain access using ro.sync.exml.workspace.api.editor.page.text.WSTextEditorPage.getTextComponent().
The text page also has a couple of XML-specific API if you cast it to ro.sync.exml.workspace.api.editor.page.text.xml.WSXMLTextEditorPage.
Regards,
Radu
Yes.If I drop a content reference into the editor, the author tab shows the reference content.
In the text tab are requird elments hidden to remain the xml file valid.
Is this a question? The Text page presents the XML content as it is, it cannot be customized to present content which is not there. It is based on an Eclipse Styled text to which you can gain access using ro.sync.exml.workspace.api.editor.page.text.WSTextEditorPage.getTextComponent().
The text page also has a couple of XML-specific API if you cast it to ro.sync.exml.workspace.api.editor.page.text.xml.WSXMLTextEditorPage.
What elements?Is there a way to get these elements by giving the start and end offset?
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 47
- Joined: Thu Jun 19, 2014 3:55 pm
Re: Get hidden text in author view
Hi Radu,
my problem is a required attribute value in the text tab. If I drop the conref, the required elements and the required attributes will be created in the text tab. Now I have the problem, that a attribute value has to be set on a element in the text tab. If not the xml file is not valid.
I would to set a default value for this attribute, but I need these elements, which are hidden in the author tab. I can look for these elements in the file, but it would be nice, if I could get only the hidden part. Is this possible?
I hope the explaination is a bit more clear.
Best regards,
Denis
my problem is a required attribute value in the text tab. If I drop the conref, the required elements and the required attributes will be created in the text tab. Now I have the problem, that a attribute value has to be set on a element in the text tab. If not the xml file is not valid.
I would to set a default value for this attribute, but I need these elements, which are hidden in the author tab. I can look for these elements in the file, but it would be nice, if I could get only the hidden part. Is this possible?
I hope the explaination is a bit more clear.
Best regards,
Denis
Denis Zygann
KGU Consulting GmbH
http://www.kgu-consulting.com
KGU Consulting GmbH
http://www.kgu-consulting.com
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Get hidden text in author view
Hi Denis,
I still don't fully understand. I don't understand if your problem is related to editing in the Text editing mode or in the Author editing mode or a mixture of both.
Please see some comments below:
You drop something in the Text editing mode from probably a custom view. And you have added a drop listener which creates the conref to that dropped target. Do I understand this correctly?
Regards,
Radu
I still don't fully understand. I don't understand if your problem is related to editing in the Text editing mode or in the Author editing mode or a mixture of both.
Please see some comments below:
Ok, so you are editing the XML content in the Text editing mode.my problem is a required attribute value in the text tab.
If I drop the conref, the required elements and the required attributes will be created in the text tab.
You drop something in the Text editing mode from probably a custom view. And you have added a drop listener which creates the conref to that dropped target. Do I understand this correctly?
But you said the required elements and attributes were created when the conref is dropped.Now I have the problem, that a attribute value has to be set on a element in the text tab. If not the xml file is not valid.
When an element makes a conref, it sometimes has required child elements which are hidden by default in the Author editing mode. But they can be edited using the API, they just are not visibile because the DITA CSS sets display:none on them. So you can access those hidden elements in the Author editing mode.I would to set a default value for this attribute, but I need these elements, which are hidden in the author tab.
I don't understand your entire interaction with the editor.I can look for these elements in the file, but it would be nice, if I could get only the hidden part. Is this possible?
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 47
- Joined: Thu Jun 19, 2014 3:55 pm
Re: Get hidden text in author view
Hi,
Thank you!
Regards,
Denis
You are right, I was blinded...But they can be edited using the API, they just are not visibile because the DITA CSS sets display:none on them. So you can access those hidden elements in the Author editing mode.
Thank you!
Regards,
Denis
Denis Zygann
KGU Consulting GmbH
http://www.kgu-consulting.com
KGU Consulting GmbH
http://www.kgu-consulting.com
Return to “SDK-API, Frameworks - Document Types”
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