Page 1 of 1

Both TinyMCE and FCKeditorX convert -> to ->

Posted: Fri Oct 10, 2008 7:03 am
by nygauk
Hi when I include the {edit} tag to edit the frontend based on whose logged in - the editor converts the tags after submission of the updated page, i.e.

from

{if $ccuser->loggedin() && $ccuser->memberof('Admins')} {edit} {/if}

to

{if $ccuser->loggedin() && $ccuser->memberof('Admins')} {edit} {/if}

The selection statement subsequently gives smarty syntax errors.

How do I prevent this corruption by the editor?

Thanks


David

Re: Both TinyMCE and FCKeditorX convert -> to ->

Posted: Fri Oct 10, 2008 10:09 am
by KO
Edit html source or disable WYSIWYG possibility.

Re: Both TinyMCE and FCKeditorX convert -> to ->

Posted: Fri Oct 10, 2008 11:46 am
by nygauk
Thanks KO.

I know that but if you have a front end user that doesn't know HTML they will enter their stuff, exit and the edit prompt will have become corrupted!

How can I maintain the integrity of the selection statement across the various (non-HTML conversant) frontend user edits that will take place?

Dave

Re: Both TinyMCE and FCKeditorX convert -> to ->

Posted: Fri Oct 10, 2008 12:07 pm
by Connie
you can define whether FCKEditor will convert or not,

the customization is done mostly in the FCKEDITORXcfg.js.php

but all settings which are not done here are read from /FCKeditor/fckconfig.js

read here:
http://docs.fckeditor.net/FCKeditor_2.x ... codeOutput

check, that it is set to "false", not to "true" in your configuration:

Code: Select all

"FCKConfig.HtmlEncodeOutput = false ;"  


the options for HTML-Output are described here:

http://docs.fckeditor.net/FCKeditor_2.x ... TML_Output

Re: Both TinyMCE and FCKeditorX convert -> to ->

Posted: Fri Oct 10, 2008 6:21 pm
by nygauk
Thanks Connie - but I've read the documentation, checked the settings (FCKConfig.HtmlEncodeOutput is set to false) and it still does it!

Any more ideas anyone?

Thanks

Re: Both TinyMCE and FCKeditorX convert -> to ->

Posted: Fri Oct 10, 2008 7:23 pm
by Connie
maybe the FCKEditor-Forum at fckeditor.net?

did you log out, clear the cache, log in again?

Re: Both TinyMCE and FCKeditorX convert -> to ->

Posted: Fri Oct 10, 2008 7:26 pm
by nygauk
I'll try the forum - thanks for your help Connie