Framework Customization: "Show Placeholders for emtpy Elements" does not work.
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 16
- Joined: Wed Jan 12, 2022 6:17 pm
Framework Customization: "Show Placeholders for emtpy Elements" does not work.
Hello,
i have the following Issue:
We've created / Customized some XML-Frameworks. The Option "Show Placeholders for emtpy Elements" does not take any effect in this customized Frameworks. Placeholders will not be shown regardless if the above mentioned preference is set to true (checked).
Because this is not an Issue with the Default Frameworks provided by Oxygen, i don't assume that this is a bug, but instead something of my Framework Customization may prevent that this preference works.
Unfortunatley i have no (more) idea what could interfere with this preference. Does anyone have a Hint what could prevent this preference to work?
Could this be an Issue with our CSS-Declarations / Stylesfilters or maybe other mechanics. ?
Greetings Stevee.
i have the following Issue:
We've created / Customized some XML-Frameworks. The Option "Show Placeholders for emtpy Elements" does not take any effect in this customized Frameworks. Placeholders will not be shown regardless if the above mentioned preference is set to true (checked).
Because this is not an Issue with the Default Frameworks provided by Oxygen, i don't assume that this is a bug, but instead something of my Framework Customization may prevent that this preference works.
Unfortunatley i have no (more) idea what could interfere with this preference. Does anyone have a Hint what could prevent this preference to work?
Could this be an Issue with our CSS-Declarations / Stylesfilters or maybe other mechanics. ?
Greetings Stevee.
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Framework Customization: "Show Placeholders for emtpy Elements" does not work.
Hi Stevee,
I created a very simple sample XML file:
and test.css:
and the setting seems to work for me when editing the XML file in the Author mode. Can you try the same simple example on your side?
Did you use this specific CSS property somewhere in your custom CSSs?
https://www.oxygenxml.com/doc/versions/ ... nsion.html
Because it will override the preferences setting.
Also does that particular empty XML element have some static :before or :after text set on it using the CSS or a custom styles filter? Because the place holder no longer gets shown in this case.
Regards,
Radu
I created a very simple sample XML file:
Code: Select all
<?xml-stylesheet type="text/css" href="topic.css"?>
<root>
<para>some text<b/></para>
</root>
Code: Select all
* {
display:block;
}
b{
display:inline;
}
Did you use this specific CSS property somewhere in your custom CSSs?
https://www.oxygenxml.com/doc/versions/ ... nsion.html
Because it will override the preferences setting.
Also does that particular empty XML element have some static :before or :after text set on it using the CSS or a custom styles filter? Because the place holder no longer gets shown in this case.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 16
- Joined: Wed Jan 12, 2022 6:17 pm
Re: Framework Customization: "Show Placeholders for emtpy Elements" does not work.
Hi Radu,
thank you for your reply.
The Example you have posted works on my side.
Thanks to your hints i found the Issue that causes this Problem when using our Custom-Framework.
We have set empty Content to the CSS Pseudoelement :before of every Node.
We make intensive Use of the Stylesfilter and i think this was done because otherwise the Stylesfilter was not callbacked with the :before Pseudo Notes but it seems that this is not an Issue anymore so i can remove that Style from the CSS-Files.
thank you for your reply.
The Example you have posted works on my side.
Thanks to your hints i found the Issue that causes this Problem when using our Custom-Framework.
We have set empty Content to the CSS Pseudoelement :before of every Node.
We make intensive Use of the Stylesfilter and i think this was done because otherwise the Stylesfilter was not callbacked with the :before Pseudo Notes but it seems that this is not an Issue anymore so i can remove that Style from the CSS-Files.
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Framework Customization: "Show Placeholders for emtpy Elements" does not work.
Hi,
Yes, from what I remember our intention about this probably was that when you start setting static text (even empty static text) for the element, you may want to take full control of the placeholder text so we no longer show that.
Regards,
Radu
Yes, from what I remember our intention about this probably was that when you start setting static text (even empty static text) for the element, you may want to take full control of the placeholder text so we no longer show that.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.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