|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
blackhawkmx Smarty Regular
Joined: 20 May 2005 Posts: 76
|
Posted: Tue Dec 09, 2008 11:05 pm Post subject: looking for a good wysiwyg editor |
|
|
as it stands, i'm using the fckeditor to add content for web site. I'm using the fckeditor plugin for smarty. But the issue is that I would like to put in some php or smarty code into the source code area of my fckeditor, not just plain text. Every time I save it, either deletes the <?php tags or replaces the < sign with html special characters depending on what i'm doing, and the result is static text.
So my question is, is there way to insert php code in the fckeditor? or should i try using a different wysiwyg to implement both html and (php or smarty code). if so what editors are best for my case and work good with smarty?
Thanks _________________ Bring it back to basics. You and I can make it right! |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Tue Dec 09, 2008 11:33 pm Post subject: |
|
|
Try to use stripslashes on your $_POST returns. |
|
Back to top |
|
blackhawkmx Smarty Regular
Joined: 20 May 2005 Posts: 76
|
Posted: Tue Dec 09, 2008 11:55 pm Post subject: |
|
|
no luck bro,
I tried
Code: |
...
$fck_description = $_POST['description'];
$fck_description = stripslashes($fck_description);
...
|
but it didnt change my situation...
In a seperate file I also tried enabling this line from fckconfig.js....
Code: |
FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ; // PHP style server side code
|
...nothing... _________________ Bring it back to basics. You and I can make it right! |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|