Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

looking for a good wysiwyg editor

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
blackhawkmx
Smarty Regular


Joined: 20 May 2005
Posts: 76

PostPosted: Tue Dec 09, 2008 11:05 pm    Post subject: looking for a good wysiwyg editor Reply with quote

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
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Tue Dec 09, 2008 11:33 pm    Post subject: Reply with quote

Try to use stripslashes on your $_POST returns.
Back to top
View user's profile Send private message
blackhawkmx
Smarty Regular


Joined: 20 May 2005
Posts: 76

PostPosted: Tue Dec 09, 2008 11:55 pm    Post subject: Reply with quote

no luck bro,
I tried

Code:
 
...
$fck_description = $_POST['description'];
$fck_description = stripslashes($fck_description);
...


but it didnt change my situation... Sad

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP