Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Play! Framework example project with Aloha WYSIWYG HTML Editor
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Type||Name||Latest commit message||Commit time|
|Failed to load latest commit information.|
Play Framework 2.x Example Project integrating the Aloha WYSIWYG Editor ===================================== I am constantly needing to update static content in Templates in my Play! Framework project, so I decided to integrate the Aloha Editor, an HTML5 WYSIWYG Editor. It is free to use, and they offer an example of integration an saving with a POST to the server on this page: http://www.aloha-editor.org/howto-store-data-with-aloha-editor-ajax.php UPDATE May 8, 2013: http://www.poornerd.com/2013/05/08/how-to-edit-messages-in-the-browser-while-developing-play-framework-templates/ ===================================== 1) make the editing of content in various scala templates easier, by setting the scala template filename in the session using the URL as the key: @session.put("aloha.filename." + request.uri,"index.scala.html") 2) Inline editing of ALL messages included in all templates using the @Messages("key") tag - accomplished by overwriting this. UPDATE May 3, 2013: http://www.poornerd.com/2013/05/03/wysiwyg-editing-of-play-framework-templates-with-the-aloha-editor/ ===================================== Now you can save the changed HTML from the WYSIWYG Editor directly back into the Scala Template! Turn it on / off via application.conf: play-aloha.admin=true