<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Then each went to his own home &#187; Texteditor</title>
	<atom:link href="http://www.pui.ch/phred/archives/category/texteditor/feed" rel="self" type="application/rss+xml" />
	<link>http://www.pui.ch/phred</link>
	<description>Philipp Kellers weblog</description>
	<lastBuildDate>Wed, 15 Dec 2010 12:37:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Helene</title>
		<link>http://www.pui.ch/phred/archives/2005/03/helene.html</link>
		<comments>http://www.pui.ch/phred/archives/2005/03/helene.html#comments</comments>
		<pubDate>Fri, 11 Mar 2005 06:46:06 +0000</pubDate>
		<dc:creator>Philipp Keller</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Texteditor]]></category>

		<guid isPermaLink="false">http://www.pui.ch/home/?p=18</guid>
		<description><![CDATA[
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&#8217;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&#8217;t come through: user not [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.pui.ch/phred/archives/helene.png"><img alt="helene.png" src="http://www.pui.ch/phred/archives/helene-thumb.png" width="200" height="151" /></a><br />
I want to share some experiences I gained from using the javascript wysiwyg editor <a href="http://helene.muze.nl/">Helene</a>. The editor is quite cool. It supports <a href="http://www.php.net/">php</a> and <a href="http://smarty.php.net/">smarty</a> highlighting. It&#8217;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&#8217;t come through: user not found). So I share  here with you (whoever) some dos and dont&#8217;s:</p>
<ul>
<li>Don&#8217;t try to run Helene directly (that is, without the <code>&lt;iframe&gt;</code> indirection). I thought it would be easier and the integration would be more seamless but that wasn&#8217;t the case</li>
<li>Helene has to run on the same server as your script. That is, because helene runs in the <code>&lt;iframe&gt;</code>, 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 <code>&lt;form&gt;</code>). If helene runs on a different server (that is, the src-parameter of <code>&lt;iframe&gt;</code> points to a different server), javascript suppresses that for security reasons</li>
<li>Read the HOWTO of helene. It spares you some headache (it deals with removing some newline characters from the input file)</li>
<li>Don&#8217;t try to use <code>&lt;object&gt;</code> instead of <code>&lt;iframe&gt;</code>. I don&#8217;t remember exactly but I think ie had problems with <code>&lt;object&gt;</code></li>
<li>After reading from $_POST I had to <br />
<code><br />
    $source = $_POST['helene']<br />
    $source = stripslashes($source);<br />
    $source = str_replace("\r\n", "\n", $source);<br />
</code>
</li>
</ul>
<p>That&#8217;s it. I hope it helps someone. I surely hope that someone does some further improvements on this great editor.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pui.ch/phred/archives/2005/03/helene.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

