previous post: «Comment Spam, update III»
![]()
I want to share some experiences I gained from using the javascript wysiwyg editor Helene. The editor is quite cool. It supports php and smarty highlighting. It’s a pity that neither I can reach the creator of this editor nor I can write to the helene mailing list (the email doesn’t come through: user not found). So I share here with you (whoever) some dos and dont’s:
<iframe> indirection). I thought it would be easier and the integration would be more seamless but that wasn’t the case<iframe>, you have to write to the editor (that is: textarea) after reading a file and reading from the editor when posting the form (that is, you do that via onsubmit parameter of <form>). If helene runs on a different server (that is, the src-parameter of <iframe> points to a different server), javascript suppresses that for security reasons<object> instead of <iframe>. I don’t remember exactly but I think ie had problems with <object>
$source = $_POST['helene']
$source = stripslashes($source);
$source = str_replace("\r\n", "\n", $source);
That’s it. I hope it helps someone. I surely hope that someone does some further improvements on this great editor.
RSS feed for comments on this post.
Dear Philips,
Your article is like a little light in my dark head. I have tried many times to solve problem using helene and I find nothing till now, because I am poor in java script.
I am trying to build my own CMS using smarty, and I want my smarty template file can be edited using web editor. I downloaded helene 0.5 and it only highlights PHP code. Do you have a sample completed code that show us how to use helene to highlighting smarty template code?
many thanks for your help.
with greetings from indonesia,
mas iqbal
Comment by mas iqbal — March 23, 2006 9:42 am #comment-2449