ivy-redactor v1.0.1
ivy-redactor
An Ember component for the Redactor WYSIWYG editor.
This is only a component for interacting with Redactor, and does not include Redactor itself. Redactor is commercial software that you must purchase a license for. You can do so here.
NOTE: This library is for Redactor 10. It has been tested with the latest (and likely final) release of the 10.x series, 10.2.5. It does not work with older versions due to some fairly major API changes made in Redactor 10.
Installation
For Ember CLI versions >= 0.2.3:
ember install ivy-redactorFor Ember CLI versions 0.1.5 through 0.2.3:
ember install:addon ivy-redactorFor Ember CLI versions < 0.1.5:
npm install --save-dev ivy-redactor
ember generate ivy-redactorYou'll also need to copy the Redactor library files into vendor/redactor.
Usage
{{ivy-redactor value=myHTML}}There are also a ton of Redactor settings you can set as well:
activeButtonsactiveButtonsStatesallowedAttrallowedTagsbuttonSourcebuttonsbuttonsHidebuttonsHideOnMobilecleanOnPastecleanSpacescleanStyleOnEnterconvertImagesLinksconvertLinksconvertUrlLinksconvertVideoLinksdeniedTagsformattingformattingAddlinebreakslinkNofollowlinkProtocollinkSizelinkTooltipmaxHeightminHeightparagraphizepastePlainTextplaceholderpreSpacesremoveCommentsremoveDataAttrremoveEmptyreplaceDivsreplaceStylesreplaceTagsshortcutsshortcutsAddtabAsSpacestabindextoolbar: Redactor 10.1.2 (and possibly other versions) will throw an error during teardown if this option is set tofalse. I've filed an issue with Imperavi, so hopefully this will be resolved in the next Redactor release. Until then, use this option at your own peril.toolbarExternaltoolbarFixedtoolbarFixedTargettoolbarOverflow
Please note that these are not bindings. Unfortunately, Redactor doesn't provide a way to change the settings after the editor has already been initialized.
Contributing
Fork this repo, make a new branch, and send a pull request. Make sure your change is tested or it won't be merged.
To run tests:
git clone # <this repo>
npm install
npm testOr, to start a test server that continually runs (for development):
ember test --server