Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You might be able to use <a href="http://docs.cksource.com/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options/ProtectedSource.Add" rel="nofollow">ProtectedSource</a> to get what you want:</p> <blockquote> <p>The editor offers a way to "protect" part of the source to remain untouched while editing or changing views. Just use the "FCKConfig.ProtectedSource.Add" function in the configuration file.</p> </blockquote> <p>But:</p> <blockquote> <p>Note that there currently isn't any way to "lock" displayed content in the editor. The content protected with ProtectedSource will actually be invisible during editing. It may be used instead, for example, to protect custom non standard tags or server side scripts. By default, FCKeditor uses it to protect &lt;script&gt; tags from activation during editing.</p> </blockquote> <p>You might be able to use this together with a placeholder image:</p> <ul> <li>Your plugin adds both the "real" protect tags and the placeholder.</li> <li>The server strips out the placeholder and does things to the real tag; however, if the placeholder isn't there but the "real" stuff is then delete the "real" stuff.</li> <li>When editing, the server inserts the placeholder image before sending things off to the browser.</li> </ul> <p>All this seems a little convoluted so you might be better off with a simpler kludge:</p> <ul> <li>Plugin just inserts a placeholder image with a specific <code>class</code> or a fake attribute of your choosing.</li> <li>Tweak the image plugin to ignore your placeholder.</li> <li>Replace the placeholder image with the real stuff on the server.</li> <li>Replace the real stuff with a placeholder image when sending it back to the browser when they're editing the content.</li> </ul> <p>Or, you could use your own custom tag (i.e. <code>&lt;dynamicelement&gt;</code>) and then use <a href="http://docs.cksource.com/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options/ProtectedTags" rel="nofollow">ProtectedTags:</a></p> <blockquote> <p>In many situations, it is important to be able to switch to the source view in FCKeditor and add a few custom tags, needed for custom processing, or whatever. The problem is that browsers don't know how to handle non standard HTML tags, and usually break the DOM tree when finding them (specially IE).</p> </blockquote> <p>That combined with some CSS to display <code>&lt;dynamicelement&gt;</code> nicely (say some dimensions and a background image) might do the trick without too much dirty kludging.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload