A WYSIWYG textarea element for the Nitrogen Web Framework using the editor TinyMCE.
Add it as a rebar dependency by adding into the deps section of rebar.config:
{nitrogen_tinymce, ".*", {git, "git://github.com/choptastic/nitrogen_tinymce.git", {branch, master}}}Note: This requires Nitrogen 2.3.0 (or at earliest 78eaf4849 , which introduced the #before_postback{} action).
Run make in your Application. The rest should be automatic.
#tinymce{id=my_html, text=Text},-
plugins:: string() | binary() - A shortcut attribute for the plugins configuration options -
menubar:: boolean() - Whether or not to show the menubar. -
toolbar1,toolbar2,toolbar3:: string() | binary() - A shortcut attribute for the toolbarN configuration option -
options:: proplist() - An erlang proplist consisting of additional options to be passed to theinitfunction. See the TinyMCE docs for more options. Example:#tinymce{options=[{resize, false}, {height, 700}]}disables resize and sets an absolute height of 700 pixels.
Without any options specified, this is how the default editor looks:
Copyright (c) 2014, Jesse Gumm (@jessegumm)
MIT License
