<?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"
	>
<channel>
	<title>Comments on: Xinha wysiwyg Text Editor Plugin for Ruby on Rails</title>
	<atom:link href="http://morebs.com/2008/03/17/xinha-wysiwyg-editor-plugin-for-ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://morebs.com/2008/03/17/xinha-wysiwyg-editor-plugin-for-ruby-on-rails/</link>
	<description>don't get your fingers caught</description>
	<pubDate>Thu, 20 Nov 2008 20:36:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: sgk</title>
		<link>http://morebs.com/2008/03/17/xinha-wysiwyg-editor-plugin-for-ruby-on-rails/#comment-39</link>
		<dc:creator>sgk</dc:creator>
		<pubDate>Mon, 17 Nov 2008 19:52:10 +0000</pubDate>
		<guid isPermaLink="false">http://morebs.com/2008/03/17/xinha-wysiwyg-editor-plugin-for-ruby-on-rails/#comment-39</guid>
		<description>please strike that lost the pasted text</description>
		<content:encoded><![CDATA[<p>please strike that lost the pasted text</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sgk</title>
		<link>http://morebs.com/2008/03/17/xinha-wysiwyg-editor-plugin-for-ruby-on-rails/#comment-37</link>
		<dc:creator>sgk</dc:creator>
		<pubDate>Mon, 17 Nov 2008 18:11:28 +0000</pubDate>
		<guid isPermaLink="false">http://morebs.com/2008/03/17/xinha-wysiwyg-editor-plugin-for-ruby-on-rails/#comment-37</guid>
		<description>Just installed xinha in a rails app for a client.  Works great on the dev box, thanks alot for this.  However, when pushed to the server it loads on first use but then no longer functions after first "update". ie. "edit" or "new" only show as basic rails text_area and xinha does not appear. Killing server process and restart, works once then fails.  Anybody else experienced this problem?
I m going to try changing javascript caching, but jsut thought maybe there d be fast track to solving this.
Thanks, sgk</description>
		<content:encoded><![CDATA[<p>Just installed xinha in a rails app for a client.  Works great on the dev box, thanks alot for this.  However, when pushed to the server it loads on first use but then no longer functions after first &#8220;update&#8221;. ie. &#8220;edit&#8221; or &#8220;new&#8221; only show as basic rails text_area and xinha does not appear. Killing server process and restart, works once then fails.  Anybody else experienced this problem?<br />
I m going to try changing javascript caching, but jsut thought maybe there d be fast track to solving this.<br />
Thanks, sgk</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gavin</title>
		<link>http://morebs.com/2008/03/17/xinha-wysiwyg-editor-plugin-for-ruby-on-rails/#comment-35</link>
		<dc:creator>Gavin</dc:creator>
		<pubDate>Wed, 13 Aug 2008 02:39:38 +0000</pubDate>
		<guid isPermaLink="false">http://morebs.com/2008/03/17/xinha-wysiwyg-editor-plugin-for-ruby-on-rails/#comment-35</guid>
		<description>Hey - Im a newbie to RoR but this looks like just the tool I need to set up a blogging site and write blogs quickly, online.

Could someone please suggest the best method of storing the blog content though? ie. what happens to the info in the Xinha text field once I click submit?
Can this be stored as text on a database?

thanks</description>
		<content:encoded><![CDATA[<p>Hey - Im a newbie to RoR but this looks like just the tool I need to set up a blogging site and write blogs quickly, online.</p>
<p>Could someone please suggest the best method of storing the blog content though? ie. what happens to the info in the Xinha text field once I click submit?<br />
Can this be stored as text on a database?</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terence</title>
		<link>http://morebs.com/2008/03/17/xinha-wysiwyg-editor-plugin-for-ruby-on-rails/#comment-34</link>
		<dc:creator>Terence</dc:creator>
		<pubDate>Sat, 02 Aug 2008 06:19:12 +0000</pubDate>
		<guid isPermaLink="false">http://morebs.com/2008/03/17/xinha-wysiwyg-editor-plugin-for-ruby-on-rails/#comment-34</guid>
		<description>Thanks for this plugin. I think it's quite impressive. I don't know much about Ruby or Rails for that matter. I managed to get it working quite easily. 

The only comment I would make is that once you have done everything as described above, edit this line :editors =&#62; ['post_body']. Replace the post_body with the id of your field. If I had realised this from the beginning it would have saved me an hour of trying to understand how Xinha works.

Thanks again.</description>
		<content:encoded><![CDATA[<p>Thanks for this plugin. I think it&#8217;s quite impressive. I don&#8217;t know much about Ruby or Rails for that matter. I managed to get it working quite easily. </p>
<p>The only comment I would make is that once you have done everything as described above, edit this line :editors =&gt; [&#8217;post_body&#8217;]. Replace the post_body with the id of your field. If I had realised this from the beginning it would have saved me an hour of trying to understand how Xinha works.</p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Ramalho</title>
		<link>http://morebs.com/2008/03/17/xinha-wysiwyg-editor-plugin-for-ruby-on-rails/#comment-33</link>
		<dc:creator>David Ramalho</dc:creator>
		<pubDate>Thu, 10 Jul 2008 15:24:20 +0000</pubDate>
		<guid isPermaLink="false">http://morebs.com/2008/03/17/xinha-wysiwyg-editor-plugin-for-ruby-on-rails/#comment-33</guid>
		<description>Hey :), caught your plugin via Google and started using, it beats setting up xinha by hand :), so thank you . 

Now, I wanted to configure a toolbar with different buttons and separators and the plugin wasn't liking Arrays with Arrays very much so I added some recursive power to it and now you can setup the toolbar option via your plugin , yay :)

I've added 

  def stringify_array(values)
    text = "[ "
    text += values.collect{&#124;v&#124; if v.instance_of? Array then stringify_array(v) + "," else "'" + v + "'," end }.join.chop
    text += " ]"
  end

to xinha_helper.rb

and now you can do stuff like

  uses_xinha(:setup =&#62; {
               :skin =&#62; 'silva' },
             :options =&#62; {
              :editors =&#62; ['content_text_node_content'],
              :toolbar =&#62; [ ['separator'],["separator","bold","italic","underline","strikethrough"],['separator'] ]
              },
             :only =&#62; [:new, :edit, :post_edit])


Again, thank you and hopefully I've helped a bit too :)</description>
		<content:encoded><![CDATA[<p>Hey :), caught your plugin via Google and started using, it beats setting up xinha by hand :), so thank you . </p>
<p>Now, I wanted to configure a toolbar with different buttons and separators and the plugin wasn&#8217;t liking Arrays with Arrays very much so I added some recursive power to it and now you can setup the toolbar option via your plugin , yay <img src='http://morebs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;ve added </p>
<p>  def stringify_array(values)<br />
    text = &#8220;[ &#8221;<br />
    text += values.collect{|v| if v.instance_of? Array then stringify_array(v) + &#8220;,&#8221; else &#8220;&#8216;&#8221; + v + &#8220;&#8216;,&#8221; end }.join.chop<br />
    text += &#8221; ]&#8221;<br />
  end</p>
<p>to xinha_helper.rb</p>
<p>and now you can do stuff like</p>
<p>  uses_xinha(:setup =&gt; {<br />
               :skin =&gt; &#8217;silva&#8217; },<br />
             :options =&gt; {<br />
              :editors =&gt; [&#8217;content_text_node_content&#8217;],<br />
              :toolbar =&gt; [ [&#8217;separator&#8217;],[&#8221;separator&#8221;,&#8221;bold&#8221;,&#8221;italic&#8221;,&#8221;underline&#8221;,&#8221;strikethrough&#8221;],[&#8217;separator&#8217;] ]<br />
              },<br />
             :only =&gt; [:new, :edit, :post_edit])</p>
<p>Again, thank you and hopefully I&#8217;ve helped a bit too <img src='http://morebs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dan</title>
		<link>http://morebs.com/2008/03/17/xinha-wysiwyg-editor-plugin-for-ruby-on-rails/#comment-23</link>
		<dc:creator>dan</dc:creator>
		<pubDate>Sun, 06 Apr 2008 23:46:11 +0000</pubDate>
		<guid isPermaLink="false">http://morebs.com/2008/03/17/xinha-wysiwyg-editor-plugin-for-ruby-on-rails/#comment-23</guid>
		<description>I noticed that my use of xinha-plugin as part of the plugin name caused some issues and moved the rubyforge page to http://rubyforge.org/projects/xinha/ and changed the body of the post to reflect this too.  You shouldn't have that problem anymore Irfan. Thanks for the comments</description>
		<content:encoded><![CDATA[<p>I noticed that my use of xinha-plugin as part of the plugin name caused some issues and moved the rubyforge page to <a href="http://rubyforge.org/projects/xinha/" rel="nofollow">http://rubyforge.org/projects/xinha/</a> and changed the body of the post to reflect this too.  You shouldn&#8217;t have that problem anymore Irfan. Thanks for the comments</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Irfan Baig</title>
		<link>http://morebs.com/2008/03/17/xinha-wysiwyg-editor-plugin-for-ruby-on-rails/#comment-22</link>
		<dc:creator>Irfan Baig</dc:creator>
		<pubDate>Fri, 04 Apr 2008 03:00:32 +0000</pubDate>
		<guid isPermaLink="false">http://morebs.com/2008/03/17/xinha-wysiwyg-editor-plugin-for-ruby-on-rails/#comment-22</guid>
		<description>solution is the last line above :)

nice job!</description>
		<content:encoded><![CDATA[<p>solution is the last line above <img src='http://morebs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>nice job!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Irfan Baig</title>
		<link>http://morebs.com/2008/03/17/xinha-wysiwyg-editor-plugin-for-ruby-on-rails/#comment-21</link>
		<dc:creator>Irfan Baig</dc:creator>
		<pubDate>Fri, 04 Apr 2008 02:48:44 +0000</pubDate>
		<guid isPermaLink="false">http://morebs.com/2008/03/17/xinha-wysiwyg-editor-plugin-for-ruby-on-rails/#comment-21</guid>
		<description>On running script/server got this 
......
    from .../vendor/plugins/xinha-plugin/lib/xinha.rb:66:in `included'
    from .../vendor/plugins/xinha-plugin/init.rb:81:in `eval'

init.rb =&#62; require 'xinha_helper'</description>
		<content:encoded><![CDATA[<p>On running script/server got this<br />
&#8230;&#8230;<br />
    from &#8230;/vendor/plugins/xinha-plugin/lib/xinha.rb:66:in `included&#8217;<br />
    from &#8230;/vendor/plugins/xinha-plugin/init.rb:81:in `eval&#8217;</p>
<p>init.rb =&gt; require &#8216;xinha_helper&#8217;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
