Getting the editor instance can be done in JS inside the initialized event like below.
$(selector).on('froalaEditor.initialized', function (e, editor) {
// Editor instance.
console.log(editor);
// The main editable DOM element. console.log(editor.el); // The options used for the current instance. console.log(editor.opts); // Editor toolbar object. console.log(editor.$tb); }).froalaEditor();
Quick Tip: Using the editor instance instead of the jQuery way of calling methods is a handy method of easily extending the editor behavior. For example, when storing the selection, you could do editor.selection.save()
instead of $(selector).froalaEditor('selection.save');
.