Answer the question
In order to leave comments, you need to log in
How to pass parameters to Imperavi Redactor via data-* attributes?
I recently noticed that in the Imperavi Redactor WYSIWYG editor, parameters can be set not only in the script itself, but also through the data-* attributes.
<textarea class="form-control margin-top-10" id="wysiwyg" name="ftdesc" data-min-Height="380" ></textarea>
$('textarea[id^="wysiwyg"]').redactor({
toolbarFixedBox: true,
minHeight: 400,
autoresize: true,
buttonSource: true,
plugins: ['table'],
buttons: ['html','formatting','bold','italic','orderedlist','unorderedlist','link','image','table','horizontalrule']
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question