google
yahoo
bing

Helene

March 11, 2005

helene.png
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:

  • Don’t try to run Helene directly (that is, without the <iframe> indirection). I thought it would be easier and the integration would be more seamless but that wasn’t the case
  • Helene has to run on the same server as your script. That is, because helene runs in the <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
  • Read the HOWTO of helene. It spares you some headache (it deals with removing some newline characters from the input file)
  • Don’t try to use <object> instead of <iframe>. I don’t remember exactly but I think ie had problems with <object>
  • After reading from $_POST I had to

    $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.

Filed under: PHP, Texteditor
This page and it's content is licenced under creative commons