| 1. | Ben Wagaman - 10 13, 2006 @ 12:31PM |
I noticed a little bug in the tiny_mce_controller.rb. If you don't have plugins, you get the usual nil error.
unless plugins.nil?
plugin_list = plugins.split(/,/)
for plugin in plugin_list
plugin_file = File.join(tinymce_dir, "plugins", plugin, "editor_plugin#{suffix}.js")
language_file = File.join(tinymce_dir, "plugins", plugin, "langs", "#{lang}.js")
content += File.read(plugin_file) + "\n"
content += File.read(language_file) + "\n" if File.exists?(language_file)
end
end
This was a quick bug fix, however after I set everything up, I'm not getting the TinyMCE box to load like the non gzipped. In the non gzipped setup, I'm calling tinyMCE.init. any differences?
<script type="text/javascript" >
tinyMCE.init({
mode:"textareas", editor_selector : "tiny_mce",
theme_advanced_toolbar_location : "top",
theme_advanced_buttons1 : "bold, italic, underline, strikethrough, separator, bullist, numlist, separator, charmap, undo, redo",
theme_advanced_buttons2 : "", theme_advanced_buttons3 : "",
theme_advanced_toolbar_align : "left"
});
</script>




Post a Comment