cirandas.net

ref: master

plugins/comment_paragraph/lib/ext/tinymce_helper.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
require_dependency 'tinymce_helper'

module TinymceHelper

  def tinymce_init_js_with_comment_paragraph(options = {})
    options = options.merge(:keep_styles => false) if environment.plugin_enabled?(CommentParagraphPlugin)
    tinymce_init_js_without_comment_paragraph(options)
  end

  alias_method_chain :tinymce_init_js, :comment_paragraph
end