class Admin.Views.Wysiwyg extends Backbone.View el: 'body' textarea: '.wysiwyg' initialize: (options) => editor = new wysihtml5.Editor options.id, #textarea-id toolbar: options.toolbarID # id of toolbar element parserRules: wysihtml5ParserRules # defined in parser rules set stylesheets: [ WYSIWYG_BASE_STYLES, WYSIWYG_CUSTOM_STYLES ] # defined in admin.html.erb