Is this possible? I'd like to be able to do this as well. Currently the script tags and anything in them is only visible when viewing the source. I would like to be able to put some kind of icon as a place holder.
it should be possible. I do something similar for a side-project I'm working on (in TinyMCE ...sorry!)
In that case, we have custom elements called <cwf>, which is written as something like this: <cwf id="56"></cwf>
To make that visible, I added this to the TinyMCE's editor_content.css: cwf:before{ display:block; width:36px; height:16px; content:"<" attr(id) ">"; font-size:10px; font-family:sans-serif; font-style:italic; color:#f96; text-indent:5px; }
this only works in Firefox, btw.
theoretically, this should also work with <script> elements in FCKeditor, but I can't seem to get it to work.
RE: Replacing SCRIPT tags with images
Any input would be helpful.
RE: Replacing SCRIPT tags with images
In that case, we have custom elements called <cwf>, which is written as something like this:
<cwf id="56"></cwf>
To make that visible, I added this to the TinyMCE's editor_content.css:
cwf:before{
display:block; width:36px; height:16px;
content:"<" attr(id) ">"; font-size:10px;
font-family:sans-serif; font-style:italic;
color:#f96; text-indent:5px;
}
this only works in Firefox, btw.
theoretically, this should also work with <script> elements in FCKeditor, but I can't seem to get it to work.