From 4f7bfa4e10c92340cb9b98bf2809de768fe80191 Mon Sep 17 00:00:00 2001 From: Spencer Markowski Date: Wed, 30 Nov 2011 20:08:46 -0500 Subject: [PATCH] Passes editor_selector specified in configuration to jquery versions of tiny_mce. --- lib/tiny_mce/helpers.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/tiny_mce/helpers.rb b/lib/tiny_mce/helpers.rb index 582bcf8..10f8045 100644 --- a/lib/tiny_mce/helpers.rb +++ b/lib/tiny_mce/helpers.rb @@ -20,8 +20,7 @@ def raw_tiny_mce_init(options = {}, raw_options = nil) configuration.add_options(options, raw_options) if uses_jquery? - #TODO: Use dynamic editor_selector from configuration - tinymce_js += "$(function(){ $('textarea.mceEditor').tinymce(" + tinymce_js += "$(function(){ $('textarea.#{configuration.options['editor_selector']}').tinymce(" tinymce_js += configuration.to_json tinymce_js += ");" tinymce_js += "});"