From bfd5827a4c5670691791d173125b4092dd96831d Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Mon, 13 Oct 2014 14:53:27 -0300 Subject: [PATCH] Remove etherpad code from tinymce --- app/helpers/tinymce_helper.rb | 12 ------------ 1 file changed, 0 insertions(+), 12 deletions(-) diff --git a/app/helpers/tinymce_helper.rb b/app/helpers/tinymce_helper.rb index 059b166..65432c2 100644 --- a/app/helpers/tinymce_helper.rb +++ b/app/helpers/tinymce_helper.rb @@ -42,22 +42,10 @@ module TinymceHelper EOS end - apply_etherpadlite_options options - #cleanup non tinymce options options = options.except :mode "noosfero.tinymce.init(#{options.to_json})" end - def apply_etherpadlite_options options - return if options[:mode] == 'simple' - return unless environment.tinymce_plugin_etherpadlite_padServerUrl.present? - options.merge! :plugin_etherpadlite_padServerUrl => environment.tinymce_plugin_etherpadlite_padServerUrl, - :plugin_etherpadlite_padNamesPrefix => environment.default_hostname, - :plugin_etherpadlite_padWidth => environment.tinymce_plugin_etherpadlite_padWidth, - :plugin_etherpadlite_padHeight => environment.tinymce_plugin_etherpadlite_padHeight - options[:plugins] << "etherpadlite" - options[:toolbar2] += " | etherpadlite" - end end -- libgit2 0.21.2