Is there a way to turn off the automatic closing tag of xml tags in FCKeditor? I need to insert a self closing xml tag as a placeholder and it needs to be XML compliant.
THis is my tag inserted into the editor:
<custom_xml_tag/>
This is what FCKEditor does to the above tag:
<custom_xml_tag></custom_xml_tag>
thanks in advance
THis is my tag inserted into the editor:
<custom_xml_tag/>
This is what FCKEditor does to the above tag:
<custom_xml_tag></custom_xml_tag>
thanks in advance
RE: xml self closing tags
TIP: CSS styles for custom xml tags (hack)
I noticed in some other post that one could add a style to their imported style sheet and apply it to an xml tag. I tried this but it would only work in FF, not in IE. Here is a solution for xml tag display inside the editor in IE
FCK JS hack:
To make a style work and display in the FCKeditor in IE you need to edit a js file located (\FCKEditor\editor\js\fckeditorcode_ie_1.js) and add the style name as a namespace in the html tag that is compiled when the editor is loaded. You will need to be careful when adding the namespace but the syntax is eg.' xmlns:customstylename ' and this should be inserted in the above file at the location where the html tag is written. *HINT/WARNING* * look near the end of the scripts... should be comfortable reading JavaScript code to do this *
CSS tricks
here is the css that needs to be embedded in the style sheet to display properly inside the editor in IE.
@media all {
customstylename\:display {color:red;}
}
FCKEditor source content:
Here is the xml tag that I embed in the FCKeditor source; <customstylename:display>redtext</customstylename:display>
Hope this helps those in need.
RE: xml self closing tags