Sha256: d6c4f443483b556c28f267a31cb9ca3462798f22daeb4b8c9f74162f384b992e
Contents?: true
Size: 748 Bytes
Versions: 4
Compression:
Stored size: 748 Bytes
Contents
class Skyline::Editors::Wysiwyg < Skyline::Editors::Editor def output_without_errors out = content_tag("div",text_area_tag( input_name(self.attribute_names), record.send(field.name,true), :class => "wysiwyg", :rows => 15, :cols => 90, :id => self.tag_id, :style => params_to_styles(field.style) ), :class => "section") out << self.tinymce_js end def tag_id "wysiwyg" + self.attribute_names.join("_") end def tinymce_js javascript_tag "new Skyline.Editor('#{self.tag_id}',{ contentCss : '/skyline/stylesheets/wysiwyg.css', #{"enableEditHtml : true," if current_user.allow?("tinymce_edit_html")} language : Application.locale })" end end
Version data entries
4 entries across 4 versions & 2 rubygems