7.0.0 • Published 3 years ago
@patternslib/pat-redactor v7.0.0
pat-redactor
A Patternslib plugin for redactor.
:warning: If you want to build and use this Pattern you need a Redactor 3 release a folder above the checkout of this repository. Redactor is a properitary WYSIWYG editor for the web with a commercial license which cannot be included here.
Usage
To convert any textarea to a redactor-enabled editor just give it the class pat-redactor.
The following key/values are supported in the data-pat-redactor data attribute:
toolbar-typewith values beingstandard,fixedorairtoolbar-externalwith a css-selector value pointing to the external toolbar element.toolbar-fixed-targetwith a css-selector pointing to the layer of the toolbar.buttonsas a comma/space separated list of buttons you wish to have available on the editor.air-buttonsthe buttons in the air menu by use of if you have specifiedairas the toolbar type.allowed-tagsordenied-tagsas a comma/space separated list of allowed/not-allowed html tags.file-uploadas a url where file uploads are going to be posted to.image-uploadas a url where image uploads are going to be posted to.
Installation
Download redactor.js and unzip the the file in a directory named redactor one level above this directory.
In your console,
npm install
gulp bower
gulp