#1931: ProtectedSource config doesn't work properly inside attributes
------------------------+---------------------------------------------------
Reporter: fournaise | Owner:
Type: Bug | Status: new
Priority: Normal | Milestone:
Component: General | Version:
Resolution: | Keywords:
------------------------+---------------------------------------------------
Changes (by fredck):
* summary: [2.6beta] ProtectedSource config doesn't work properly with
Smarty => ProtectedSource config doesn't work
properly inside attributes
* milestone: FCKeditor 2.6 =>
Old description:
> When using Smarty protection source in FCKEditor 2.6beta :
> FCKConfig.ProtectedSource.Add( /<\{[\s\S]*?\}>/g );
> FCKConfig.ProcessHTMLEntities = false ; //true
>
> The following code is broken when swithing between wysiwyg/source edition
> :
> <p><a href="{if $a=1}url1.htm{else}url2.htm{/if}">TEST</a></p>
> <p>{if $a=1}url1.htm{else}url2.htm{/if}</p>
>
> become :
> <p><a
> href="%7Bif%20$a=1%7Durl1.htm%7Belse%7Durl2.htm%7B/if%7D">TEST</a></p>
> <p>{if $a=1}url1.htm{else}url2.htm{/if}</p>
>
> conclusion:
> Smarty code is protected only in tag and not in attribute.
>
> Is it a bug ? how to avoid this behavior ?
New description:
When using Smarty protection source in FCKEditor 2.6beta :
{{{
FCKConfig.ProtectedSource.Add( /<\{[\s\S]*?\}>/g );
FCKConfig.ProcessHTMLEntities = false ; //true
}}}
The following code is broken when swithing between wysiwyg/source edition
:
{{{
<p><a href="{if $a=1}url1.htm{else}url2.htm{/if}">TEST</a></p>
<p>{if $a=1}url1.htm{else}url2.htm{/if}</p>
}}}
become :
{{{
<p><a
href="%7Bif%20$a=1%7Durl1.htm%7Belse%7Durl2.htm%7B/if%7D">TEST</a></p>
<p>{if $a=1}url1.htm{else}url2.htm{/if}</p>
}}}
conclusion:
Smarty code is protected only in tag and not in attribute.
Is it a bug ? how to avoid this behavior ?
--
Ticket URL: <http://dev.fckeditor.net/ticket/1931#comment:2>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac