Opened 17 years ago

Last modified 17 years ago

#1931 closed Bug

ProtectedSource config doesn't work properly inside attributes — at Version 2

Reported by: fournaise Owned by:
Priority: Normal Milestone: FCKeditor 2.6.3
Component: General Version: FCKeditor 2.6 Beta
Keywords: Confirmed Cc:

Description (last modified by Frederico Caldeira Knabben)

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 ?

Change History (2)

comment:1 Changed 17 years ago by fournaise

The problem occurs only with src and href attributes.

comment:2 Changed 17 years ago by Frederico Caldeira Knabben

Description: modified (diff)
Milestone: FCKeditor 2.6
Summary: [2.6beta] ProtectedSource config doesn't work properly with SmartyProtectedSource config doesn't work properly inside attributes
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy