Tinymce Plugin Paragraph
A plugin for the open source tinymce WYSIWYG HTML editor that allow to edit paragraph properties.
Screenshots
Contextual menu
Open the "Paragraph properties" window in the contextual menu opened on a paragraph.
General tab
Spacing tab
Borders tab
Installation
With package managers (recommanded)
bower install tinymce-plugin-paragraph --save
or
npm install tinymce-plugin-paragraph --save
Or manually
Download
wget https://github.com/sirap-group/tinymce-plugin-paragraph/archive/v0.5.0.zip
unzip v0.5.0.zip
mv tinymce-plugin-paragraph-v0.5.0 public/lib/tinymce-plugin-paragraph
Configure your app
<script type="text/javascript" src="lib/tinymce-plugin-paragraph/plugin.min.js"></script>
tinymce.init({
selector: "textarea", // change this value according to your HTML
plugins: "paragraph"
});
Developement
The javascript source files are located in the src
folder.
We use the Standard Javascript Code Style to keep the code clean and nice and browserify to keep it modular and well organized.
Finally, we use Grunt to run the developement tasks:
-
grunt-standard to lint the source files in
src
, -
grunt-browserify
to bundle it to the
plugin.js
file. -
grunt-contrib-uglify to minimize
plugin.js
toplugin.min.js
-
grunt-bump to increment the version number, updating
package.json
,bower.json
and creating a newgit tag
.
We use the Semver 2.0 (Semantic Versioning) to standardize the release version numbers (major/minor/path/pre-release).
License
According to the main project, tinymce, this plugin is open sourced and is licensed under the LGPL-v2 (GNU Lesser General Public License V2.1)