Bootstrap Editor add-on for TinyMCE
The TinyMCE plugin allows evoking Bootstrap Editor directly from your editor. The plughin has two buttons - one to edit the entire content, and the other to edit just the selected block.
Also, the plugin includes plugin to enable Bootstrap (or Foundation) styles in TinyMCE.
Installation
- Unpack archived files directly to
tinymce/plugins
. - Turn on the plugin in
initialization script:
plugins: 'jsplusInclude,jsplusBootstrapEditor,jsplusFileUploaderLite'
-
Specify framework (Bootstrap or Foundation) for Include CSS/JS add-on:
jsplusInclude: { framework: "b3" // or "b4", "f5", "f6", "f6x" }
b3
means Bootstrap 3 here.
This option will affect to all other CSS framework-specific add-ons too.
Read more about framework option or including CSS framework into the page. - Add these buttons to the toolbar definition:
- the button for editing whole the content within Bootstrap Editor
jsplusBootstrapEditor
- the button for editing selected block within Bootstrap Editor
jsplusBootstrapEditorSelected
- Quick uploading of images and inserting their originals
jsplusFastUploadImage
- Quick uploading of images and inserting their thumbnails
jsplusFastUploadPreview
- Quick uploading of files and inserting links to them
jsplusFastUploadFile
- Now you can use your installed plugins. Do not forget to sure that browser cache was cleared.
Configuration
Optionally, you can configure the plugin for your needs. A number of parameters are available for that. Parameters are a key-value structure that's passed along with the main config of TinyMCE.
Pass the parameters as follows:
tinymce.init({
selector: 'textarea',
jsplusBootstrapEditor: {
key1: "value1",
key2: true
}
});
Explore the list of available options to see what settings are available to you.