Hi,
I have a few problems with FCKeditor making unwanted changes to the sourcecode of the page I'm editing. I'm using FCKConfig.ProtectedSource which used to work fine, but as of january 2. the editor (in IE 6 on winXP) has startet to - sometimes - remove my template-tags.
I use tags of the syntax <TMPL:something>HTML-goes-here</TMPL:something>
And in both IE and Firefox, I have problems with the editor changing $ characters into $ SOME places - not everwhere - but at least it is consistent on this point. It is still a problem though.
And - in Firefox there is a problem with the editor replicating af piece of html when the editor loads, and when I switch between code-view and WYSIWYG.
fckconfig.js contains:
FCKConfig.ProtectedSource.Add( /<script[\s\S]*?\/script>/gi ) ; // <SCRIPT> tags.
FCKConfig.ProtectedSource.Add( /<object[\s\S]*?\/object>/gi ) ; // <OBJECT> tags.
FCKConfig.ProtectedSource.Add( /<\/?tmpl:.*\/?>/gi ) ; // <TMPL:whatever/>, <TMPL:whatever> and </TMPL:whatever> tags.
I've tried with
FCKConfig.ProtectedSource.Add( /[$]/gi ) ;
to protect $ signs from change, to no avail (the regexp may be wrong, I can't be absolutely sure)
And - in Firefox, the following codesnippet:
<td width="219"><select class="dropdown_nyhedsbrev" size="1" name="country">
<option selected="selected">Land</option>
<option>---------------------</option>
<TMPL:SimpleList id="countries"><option value="$id$">$country$</option></TMPL:SimpleList>
</select></td>
is changed to
<td width="219"><select class="dropdown_nyhedsbrev" size="1" name="country">
<option selected="selected">Land</option>
<option>---------------------</option>
<TMPL:SimpleList id="countries"><option value="$id$">$country$</option></TMPL:SimpleList>
</select></td></select></td>
(extra end-select + end-td> every time the editor is loaded, or I switch between wysiwyg and code-view.
ANY suggestions or bug-fixes will be happily received.
I have a few problems with FCKeditor making unwanted changes to the sourcecode of the page I'm editing. I'm using FCKConfig.ProtectedSource which used to work fine, but as of january 2. the editor (in IE 6 on winXP) has startet to - sometimes - remove my template-tags.
I use tags of the syntax <TMPL:something>HTML-goes-here</TMPL:something>
And in both IE and Firefox, I have problems with the editor changing $ characters into $ SOME places - not everwhere - but at least it is consistent on this point. It is still a problem though.
And - in Firefox there is a problem with the editor replicating af piece of html when the editor loads, and when I switch between code-view and WYSIWYG.
fckconfig.js contains:
FCKConfig.ProtectedSource.Add( /<script[\s\S]*?\/script>/gi ) ; // <SCRIPT> tags.
FCKConfig.ProtectedSource.Add( /<object[\s\S]*?\/object>/gi ) ; // <OBJECT> tags.
FCKConfig.ProtectedSource.Add( /<\/?tmpl:.*\/?>/gi ) ; // <TMPL:whatever/>, <TMPL:whatever> and </TMPL:whatever> tags.
I've tried with
FCKConfig.ProtectedSource.Add( /[$]/gi ) ;
to protect $ signs from change, to no avail (the regexp may be wrong, I can't be absolutely sure)
And - in Firefox, the following codesnippet:
<td width="219"><select class="dropdown_nyhedsbrev" size="1" name="country">
<option selected="selected">Land</option>
<option>---------------------</option>
<TMPL:SimpleList id="countries"><option value="$id$">$country$</option></TMPL:SimpleList>
</select></td>
is changed to
<td width="219"><select class="dropdown_nyhedsbrev" size="1" name="country">
<option selected="selected">Land</option>
<option>---------------------</option>
<TMPL:SimpleList id="countries"><option value="$id$">$country$</option></TMPL:SimpleList>
</select></td></select></td>
(extra end-select + end-td> every time the editor is loaded, or I switch between wysiwyg and code-view.
ANY suggestions or bug-fixes will be happily received.
RE: unwanted code-changes
okay - apparently I don't get how this works, but < and > in the previous, was supposed to be the corresponding html-characters
P