<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Introducing ACJEditor its a RTE</title>
	<atom:link href="http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/</link>
	<description>Axel Jensen on Flex, Coldfusion and... other stuff</description>
	<lastBuildDate>Sat, 27 Feb 2010 00:57:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: B. Innovative</title>
		<link>http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/comment-page-1/#comment-1498</link>
		<dc:creator>B. Innovative</dc:creator>
		<pubDate>Sat, 21 Feb 2009 23:23:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/#comment-1498</guid>
		<description>Excellent work! 

I&#039;m trying to expand this editor to use images. I&#039;ve borrowed some of this code from Another Flava(http://anotherflava.com/?p=243). 

There&#039;s an upload function in php that accompanies the code (uploads to an acj/images folder under the original file name). My main problem is that when calling one of the below statements to insert the image, I receive an error.

###img = &#039;acj/images/&#039;;
textArea.htmlText = &quot;&quot;;
-OR-
textArea.htmlText = &quot;&quot;;

The htmlText output does not receive the  tag. It displays this:


However, the xHtmlText displays correctly:


The xHtmlText has the closing tag but the HtmlText doesn&#039;t?! Very strange!

This error gets thrown when debugging: 
TypeError: Error #1085: The element type &quot;IMG&quot; must be terminated by the matching end-tag &quot;&quot;. 

Looking at the error, it&#039;s easy to see what is wrong. No  tag! After the error is thrown, the conversion from HTML to xHTML is broken, meaning nothing else that is typed into the RTE gets converted to xHtml. The most interesting part is that the image DOES get displayed in the RTE correctly! 

Any ideas why I can&#039;t get the function to place the  tag into the textArea.htmlText? It just does not seem logical to me that the / within the img tag or the  tag would be stripped off when using an assignment statement to the htmlText.

Any help would be greatly appreciated. Email me for full source code, if needed.</description>
		<content:encoded><![CDATA[<p>Excellent work! </p>
<p>I&#8217;m trying to expand this editor to use images. I&#8217;ve borrowed some of this code from Another Flava(http://anotherflava.com/?p=243). </p>
<p>There&#8217;s an upload function in php that accompanies the code (uploads to an acj/images folder under the original file name). My main problem is that when calling one of the below statements to insert the image, I receive an error.</p>
<p>###img = &#8216;acj/images/&#8217;;<br />
textArea.htmlText = &#8220;&#8221;;<br />
-OR-<br />
textArea.htmlText = &#8220;&#8221;;</p>
<p>The htmlText output does not receive the  tag. It displays this:</p>
<p>However, the xHtmlText displays correctly:</p>
<p>The xHtmlText has the closing tag but the HtmlText doesn&#8217;t?! Very strange!</p>
<p>This error gets thrown when debugging:<br />
TypeError: Error #1085: The element type &#8220;IMG&#8221; must be terminated by the matching end-tag &#8220;&#8221;. </p>
<p>Looking at the error, it&#8217;s easy to see what is wrong. No  tag! After the error is thrown, the conversion from HTML to xHTML is broken, meaning nothing else that is typed into the RTE gets converted to xHtml. The most interesting part is that the image DOES get displayed in the RTE correctly! </p>
<p>Any ideas why I can&#8217;t get the function to place the  tag into the textArea.htmlText? It just does not seem logical to me that the / within the img tag or the  tag would be stripped off when using an assignment statement to the htmlText.</p>
<p>Any help would be greatly appreciated. Email me for full source code, if needed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: supermoos</title>
		<link>http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/comment-page-1/#comment-1418</link>
		<dc:creator>supermoos</dc:creator>
		<pubDate>Wed, 14 Jan 2009 13:43:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/#comment-1418</guid>
		<description>Great work!

But..

Did you ever solve the problem about URL styles not appearing on load?</description>
		<content:encoded><![CDATA[<p>Great work!</p>
<p>But..</p>
<p>Did you ever solve the problem about URL styles not appearing on load?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: artur</title>
		<link>http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/comment-page-1/#comment-1125</link>
		<dc:creator>artur</dc:creator>
		<pubDate>Fri, 28 Nov 2008 10:33:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/#comment-1125</guid>
		<description>how can i disable the rollover URL link that is automatically enabled on words that have URLS?

its a usability horror.

thanks

artur</description>
		<content:encoded><![CDATA[<p>how can i disable the rollover URL link that is automatically enabled on words that have URLS?</p>
<p>its a usability horror.</p>
<p>thanks</p>
<p>artur</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/comment-page-1/#comment-1029</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sun, 12 Oct 2008 21:07:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/#comment-1029</guid>
		<description>To preface, I think all the work being done here is great.  Just one thought:  For those who are concerned about displaying HTML formatted in a Flex RTE in a different medium (e.g. HTML webpage), why bother override all of the flex controls?  This includes the RTE, the HTMLText of all of the text capable controls, etc.  Instead, simply take the code from any of the posts above, throw it in a utility and convert it on the way out to the server for storage? Similarly, convert it on the way back into flex when being called from the server. This way all of the text within flex can use the native flex formatting that adobe has chosen, and all external text called off a DB is xhtml compliant.  

For instance:  
UTIL CLASS

public static function SetHtmlTextOnReturnFromServer(str:String):String{ // code here to convert and return}

public static function SetHtmlTextOnSendToServer(str:String):String
{ // code here to convert flex &quot;html&quot; to xhtml compliant text }</description>
		<content:encoded><![CDATA[<p>To preface, I think all the work being done here is great.  Just one thought:  For those who are concerned about displaying HTML formatted in a Flex RTE in a different medium (e.g. HTML webpage), why bother override all of the flex controls?  This includes the RTE, the HTMLText of all of the text capable controls, etc.  Instead, simply take the code from any of the posts above, throw it in a utility and convert it on the way out to the server for storage? Similarly, convert it on the way back into flex when being called from the server. This way all of the text within flex can use the native flex formatting that adobe has chosen, and all external text called off a DB is xhtml compliant.  </p>
<p>For instance:<br />
UTIL CLASS</p>
<p>public static function SetHtmlTextOnReturnFromServer(str:String):String{ // code here to convert and return}</p>
<p>public static function SetHtmlTextOnSendToServer(str:String):String<br />
{ // code here to convert flex &#8220;html&#8221; to xhtml compliant text }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/comment-page-1/#comment-885</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 25 Aug 2008 12:28:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/#comment-885</guid>
		<description>if you find yourself modifying it and think it&#039;s good enough to give out, and its not hardcoded for anything specific in your project, zip it up, and send it back, i&#039;ll put it up on the blog.</description>
		<content:encoded><![CDATA[<p>if you find yourself modifying it and think it&#8217;s good enough to give out, and its not hardcoded for anything specific in your project, zip it up, and send it back, i&#8217;ll put it up on the blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/comment-page-1/#comment-882</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Mon, 25 Aug 2008 02:55:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/#comment-882</guid>
		<description>insert an  This... should be;
insert an &amp; n b s p ; This...</description>
		<content:encoded><![CDATA[<p>insert an  This&#8230; should be;<br />
insert an &amp; n b s p ; This&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/comment-page-1/#comment-881</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Mon, 25 Aug 2008 02:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/#comment-881</guid>
		<description>the little bugger ate my inline tags. please find the previous post with the angle brackets replaced wit square brackets;

I have been playing with acjEditor. A couple of comments;

It doesn&#039;t compile under flex 2.01 unless you change the [mwToolBar to [MX:HBOX and add a leading slash to the @Embed&#039;s. Also it doesn&#039;t like IUITextField it prefers UITextField. It also shoving htmlText into it doesn&#039;t always cause it to allow getting out the xhtmlText. I added a kludge like this;

	private function update():void {
		if (this.htmlText.length ] 0)
		{
	        xhtmlText = richTextEditorToHtml( this.htmlText );
		}
		else
		{
	        xhtmlText = richTextEditorToHtml( _htmlText );
		}
    }

and this;

	public function set htmlText(value:String):void
	{
		_htmlText = value;
		htmlTextChanged = true;
		invalidateProperties();
		update();
	}

If there&#039;s a better way please let me know.

A couple of minor additions that might be nice;

1) When a [p][/p] has no text, insert an &#160; This will allow some persnickety renders like MS Word to render a blank line. A better idea might be to replace it with a [br/]

2) Add a property that will allow &quot;styles&quot; on certain tags such as [p style=&quot;myStyle&quot;] they would only be added to the xhtmlText output, and not do anything whilst editing.

Regarding the issue of how to handle reusing the html, what I did was to save the htmlText to the DB, and then stuff it into the htmlText field when I needed to, and get back the xhtmlText. &#039;tain&#039;t pretty but it seems to work.

Thanks for the tool.

Paul</description>
		<content:encoded><![CDATA[<p>the little bugger ate my inline tags. please find the previous post with the angle brackets replaced wit square brackets;</p>
<p>I have been playing with acjEditor. A couple of comments;</p>
<p>It doesn&#8217;t compile under flex 2.01 unless you change the [mwToolBar to [MX:HBOX and add a leading slash to the @Embed's. Also it doesn't like IUITextField it prefers UITextField. It also shoving htmlText into it doesn't always cause it to allow getting out the xhtmlText. I added a kludge like this;</p>
<p>	private function update():void {<br />
		if (this.htmlText.length ] 0)<br />
		{<br />
	        xhtmlText = richTextEditorToHtml( this.htmlText );<br />
		}<br />
		else<br />
		{<br />
	        xhtmlText = richTextEditorToHtml( _htmlText );<br />
		}<br />
    }</p>
<p>and this;</p>
<p>	public function set htmlText(value:String):void<br />
	{<br />
		_htmlText = value;<br />
		htmlTextChanged = true;<br />
		invalidateProperties();<br />
		update();<br />
	}</p>
<p>If there&#8217;s a better way please let me know.</p>
<p>A couple of minor additions that might be nice;</p>
<p>1) When a [p][/p] has no text, insert an &nbsp; This will allow some persnickety renders like MS Word to render a blank line. A better idea might be to replace it with a [br/]</p>
<p>2) Add a property that will allow &#8220;styles&#8221; on certain tags such as [p style="myStyle"] they would only be added to the xhtmlText output, and not do anything whilst editing.</p>
<p>Regarding the issue of how to handle reusing the html, what I did was to save the htmlText to the DB, and then stuff it into the htmlText field when I needed to, and get back the xhtmlText. &#8217;tain&#8217;t pretty but it seems to work.</p>
<p>Thanks for the tool.</p>
<p>Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victor</title>
		<link>http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/comment-page-1/#comment-858</link>
		<dc:creator>Victor</dc:creator>
		<pubDate>Fri, 01 Aug 2008 07:32:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/#comment-858</guid>
		<description>for my purposes I add some code witch allows to add image. It is an dialog with upload image to server and via JSON(AJAX) get uploaded image url and past it to text area. It is poor implementation. I don&#039;t know will i continue it (I think about some image editor before pasting), but if you need code example, you can mail me.</description>
		<content:encoded><![CDATA[<p>for my purposes I add some code witch allows to add image. It is an dialog with upload image to server and via JSON(AJAX) get uploaded image url and past it to text area. It is poor implementation. I don&#8217;t know will i continue it (I think about some image editor before pasting), but if you need code example, you can mail me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/comment-page-1/#comment-483</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 14 May 2008 02:52:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/#comment-483</guid>
		<description>Currently there isn&#039;t, but if you made the function a setter, and, you could do that, by making all of the functions in reverse... 

i dont think it would be that hard to re engineer... 

but i&#039;m running short on time these days... let me know if you come up with something and i&#039;ll integrate it.

Thanks for reading.
Axel</description>
		<content:encoded><![CDATA[<p>Currently there isn&#8217;t, but if you made the function a setter, and, you could do that, by making all of the functions in reverse&#8230; </p>
<p>i dont think it would be that hard to re engineer&#8230; </p>
<p>but i&#8217;m running short on time these days&#8230; let me know if you come up with something and i&#8217;ll integrate it.</p>
<p>Thanks for reading.<br />
Axel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Garry Schafer</title>
		<link>http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/comment-page-1/#comment-482</link>
		<dc:creator>Garry Schafer</dc:creator>
		<pubDate>Mon, 12 May 2008 19:42:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/#comment-482</guid>
		<description>It&#039;s fantastic for GETTING the xhtmlText -- but is there any way of taking the output of that and pushing it back in as xhtmlText? I can take the xhtmlText and push back in as htmlText  -- but it comes out all wrong.

The proprietary htmlText, though messy, pulls and pushes properly....</description>
		<content:encoded><![CDATA[<p>It&#8217;s fantastic for GETTING the xhtmlText &#8212; but is there any way of taking the output of that and pushing it back in as xhtmlText? I can take the xhtmlText and push back in as htmlText  &#8212; but it comes out all wrong.</p>
<p>The proprietary htmlText, though messy, pulls and pushes properly&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rt30000</title>
		<link>http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/comment-page-1/#comment-471</link>
		<dc:creator>rt30000</dc:creator>
		<pubDate>Tue, 06 May 2008 16:19:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/#comment-471</guid>
		<description>Is there any way to control the font-size??</description>
		<content:encoded><![CDATA[<p>Is there any way to control the font-size??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hsTed</title>
		<link>http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/comment-page-1/#comment-458</link>
		<dc:creator>hsTed</dc:creator>
		<pubDate>Sat, 26 Apr 2008 18:22:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/#comment-458</guid>
		<description>Nice work ... can&#039;t wait to try this version</description>
		<content:encoded><![CDATA[<p>Nice work &#8230; can&#8217;t wait to try this version</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Авиакомпания &#34;Самара&#34;: переход на летнее время и летнее расписание - Aviation Today</title>
		<link>http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/comment-page-1/#comment-397</link>
		<dc:creator>Авиакомпания &#34;Самара&#34;: переход на летнее время и летнее расписание - Aviation Today</dc:creator>
		<pubDate>Thu, 03 Apr 2008 21:07:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/#comment-397</guid>
		<description>[...] Introducing ACJEditor its a RTE [...]</description>
		<content:encoded><![CDATA[<p>[...] Introducing ACJEditor its a RTE [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Президент Пакистана дал 48 часов на расследование теракта</title>
		<link>http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/comment-page-1/#comment-392</link>
		<dc:creator>Президент Пакистана дал 48 часов на расследование теракта</dc:creator>
		<pubDate>Thu, 03 Apr 2008 04:17:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/#comment-392</guid>
		<description>[...] Introducing ACJEditor its a RTE [...]</description>
		<content:encoded><![CDATA[<p>[...] Introducing ACJEditor its a RTE [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ВЗГЛЯД / Штормовоепредупреждение объявлено в Челябинской области&#8230;</title>
		<link>http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/comment-page-1/#comment-390</link>
		<dc:creator>ВЗГЛЯД / Штормовоепредупреждение объявлено в Челябинской области&#8230;</dc:creator>
		<pubDate>Thu, 03 Apr 2008 02:49:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/#comment-390</guid>
		<description>[...] Introducing ACJEditor its a RTE [...]</description>
		<content:encoded><![CDATA[<p>[...] Introducing ACJEditor its a RTE [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: В Керченском проливе затонуло судно</title>
		<link>http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/comment-page-1/#comment-389</link>
		<dc:creator>В Керченском проливе затонуло судно</dc:creator>
		<pubDate>Thu, 03 Apr 2008 01:57:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/#comment-389</guid>
		<description>[...] Introducing ACJEditor its a RTE [...]</description>
		<content:encoded><![CDATA[<p>[...] Introducing ACJEditor its a RTE [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NWLearning</title>
		<link>http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/comment-page-1/#comment-381</link>
		<dc:creator>NWLearning</dc:creator>
		<pubDate>Wed, 02 Apr 2008 16:35:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.axelscript.com/2008/04/02/introducing-acjeditor-its-a-rte/#comment-381</guid>
		<description>thanks Axel...

I&#039;ve been looking at the &lt;a href=&quot;http://www.flashtexteditor.com/flexdemo/full/&quot; rel=&quot;nofollow&quot;&gt;Flash Text Editor&lt;/a&gt; for Flex by Igor Dimitrijevic.

His demo has a hard wired image that gets inserted... but I&#039;m not sure how a user would &#039;browse&#039; to an image locally...

Apparently Igor and Jesse Warden have collaborated on this issue for some time beiginning in &#039;05</description>
		<content:encoded><![CDATA[<p>thanks Axel&#8230;</p>
<p>I&#8217;ve been looking at the <a href="http://www.flashtexteditor.com/flexdemo/full/" rel="nofollow">Flash Text Editor</a> for Flex by Igor Dimitrijevic.</p>
<p>His demo has a hard wired image that gets inserted&#8230; but I&#8217;m not sure how a user would &#8216;browse&#8217; to an image locally&#8230;</p>
<p>Apparently Igor and Jesse Warden have collaborated on this issue for some time beiginning in &#8216;05</p>
]]></content:encoded>
	</item>
</channel>
</rss>
