-
Notifications
You must be signed in to change notification settings - Fork 0
poornerd/play-aloha
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
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
About
Play! Framework example project with Aloha WYSIWYG HTML Editor
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published