<?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>80beans &#187; Jeff Kreeftmeijer</title>
	<atom:link href="http://www.80beans.com/author/jeff/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.80beans.com</link>
	<description></description>
	<lastBuildDate>Wed, 21 Jul 2010 13:03:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Introducing WysiHat Engine</title>
		<link>http://www.80beans.com/2009/10/01/wysihat-engine/</link>
		<comments>http://www.80beans.com/2009/10/01/wysihat-engine/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 15:49:35 +0000</pubDate>
		<dc:creator>Jeff Kreeftmeijer</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://www.80beans.com/?p=235</guid>
		<description><![CDATA[Since we were tired of the ugliness and size of TinyMCE — our previous WYSIWYG solution —, we decided to see if we could find a good replacement.
Luckily 37signals released a WYSIWYG editor last year called WysiHat, the “eventually better open source WYSIWYG editor”, so we tried it out. It was simple, no fancy themes [...]]]></description>
			<content:encoded><![CDATA[<p>Since we were tired of the ugliness and size of TinyMCE — our previous WYSIWYG solution —, we decided to see if we could find a good replacement.</p>
<p>Luckily <a href="http://37signals.com">37signals</a> released a WYSIWYG editor last year called <a href="http://37signals.com/svn/posts/1330-introducing-wysihat-an-eventually-better-open-source-wysiwyg-editor">WysiHat</a>, the “eventually better open source WYSIWYG editor”, so we tried it out. It was simple, no fancy themes or color schemes, just the backend code.</p>
<p>After playing with it for a while, we found a lot of hidden and undocumented features like including images or adding unordered lists. We decided to <a href="http://github.com/80beans/wysihat">fork</a> the project to write some more examples.</p>
<p>WysiHat is a great project and has a lot of potential, but probably hasn&#8217;t got the attention it deserves for a while now. There are some missing features you&#8217;d expect from a WYSIWYG editor, but the general idea is very, <em>very</em> good.</p>
<p>Joshua Peek told us the project is on hold; “<em>We&#8217;re planning to revisit the wysiwyg stuff in early 2010. So you can expect me to jump back in then.</em>”, but we hope there will be more activity from the rest of the community before that.</p>
<h3>The Engine</h3>
<p>We built the standard stuff like image uploading and html editing using WysiHat for a project we&#8217;re working on and we thought others could use it so we built the “<a href="http://github.com/80beans/wysihat-engine">WysiHat Rails Engine</a>” and released it to the world.<span id="more-235"></span></p>
<p>The goal for the engine was to quickly and easily be able to implement WysiHat editors in a project and doing so as pretty as possible. We extended the Rails Formbuilder to add the wysihat_editor form field. We added <a href="http://famspam.com/facebox">facebox</a> and some other javascript goodness and worked out an easy to use uploader. This means you could do something like this, which would give you a fully functional WYSIWYG editor:</p>
<pre>&lt;% form_for(@page) do |f| %&gt;
  &lt;%= f.error_messages %&gt;

  &lt;p&gt;
    &lt;%= f.label :content %&gt;&lt;br /&gt;
    &lt;%= f.wysihat_editor :content %&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;%= f.submit 'Create' %&gt;
  &lt;/p&gt;
% end %&gt;</pre>
<p>This will give you a full editor. The Engine also includes stylesheets and a bunch of icons so it looks good out of the box:</p>

<a href='http://www.80beans.com/2009/10/01/wysihat-engine/wysihat_01/' title='WysiHat Engine'><img width="150" height="150" src="http://www.80beans.com/wp-content/uploads/2009/10/wysihat_01-150x150.png" class="attachment-thumbnail" alt="WysiHat Engine creates a full-featured editor." title="WysiHat Engine" /></a>
<a href='http://www.80beans.com/2009/10/01/wysihat-engine/wysihat_02/' title='WysiHat'><img width="150" height="150" src="http://www.80beans.com/wp-content/uploads/2009/10/wysihat_02-150x150.png" class="attachment-thumbnail" alt="You can edit the HTML right out of the box." title="WysiHat" /></a>
<a href='http://www.80beans.com/2009/10/01/wysihat-engine/wysihat_03/' title='WysiHat'><img width="150" height="150" src="http://www.80beans.com/wp-content/uploads/2009/10/wysihat_03-150x150.png" class="attachment-thumbnail" alt="Uploading images and including them is super easy as well." title="WysiHat" /></a>

<p>There&#8217;s a <a href="http://wiki.github.com/80beans/wysihat-engine/installation">complete installation guide</a> and an <a href="http://wiki.github.com/80beans/wysihat-engine/examples">examples page</a> in the <a href="http://wiki.github.com/80beans/wysihat-engine">github project wiki</a> if you want to check it out.</p>
<p>Like WysiHat, this project is in a very early stage and like WysiHat, we would love you to help out and make this a great piece of software.</p>
<p>So if you have any issues, suggestions or ideas, don&#8217;t hesitate to <a href="http://github.com/80beans/wysihat-engine/issues">create an issue on github</a>, fork the project or contact us directly.</p>
<p><strong>UPDATE &#8211; October 3</strong></p>
<p>I got a lot of work done on the Engine yesterday. It’s a gem now and it’s hosted on <a rel="nofollow" href="http://gemcutter.org/gems/wysihat-engine">gemcutter</a>. The <a rel="nofollow" href="http://wiki.github.com/80beans/wysihat-engine/installation">installation guide</a> is updated, so that shouldn’t be a problem.</p>
<p>The ugly rake task is removed and I built a little generator, so all the stray folders in the root — like /public — are gone. I also removed the included plugins to add gem dependencies (<a rel="nofollow" href="http://github.com/thoughtbot/paperclip/">paperclip</a> and <a rel="nofollow" href="http://github.com/giraffesoft/resource_controller/">resource_controller</a>) and added the <a rel="nofollow" href="http://github.com/markcatley/responds_to_parent/">responds_to_parent</a> plugin installation to the generator, so you don’t have to worry about that. Installing the gem and running the generator is as simple as:</p>
<p><code>sudo gem install wysihat-engine</code></p>
<p>script/generate wysihat</p>
<p>While I was working on this, I realized the resource_controller gem is an unnecessary dependency. It will be removed as soon as possible to make place for a good ol’ controller. I think this will help users understand and use the gem better in their applications.</p>
<p>And let me say this one more time; have issues, ideas, suggestions or want to help out? Be sure to let us know!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.80beans.com/2009/10/01/wysihat-engine/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>
