Skip to content

superp/sunrise-aloha

Repository files navigation

SunriseAloha

Install

gem "sunrise-aloha"

Usage

<%= stylesheet_link_tag "sunrise-aloha/application" %>
<%= javascript_include_tag "sunrise-aloha/application" %>

In views:

<div contenteditable="true" name="post[title]" data-url="/manage/posts/1">
  POST TITLE
</div>

<div contenteditable="true" name="post[content]" data-url="/manage/posts/1">
  POST CONTENT
</div>

To save modified content, just call javascript code:

Aloha.saveContents();

Test

rake test

Copyright © 2011 Aimbulance, released under the MIT-LICENSE.

About

Aloha editor for Sunrise CMS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published