Closed gurunathsane closed 11 years ago
The latest versions of tinymce-rails
include a tinymce_configuration
helper method which you may find useful to use in your JavaScript to get the TinyMCE configuration hash. e.g.
<script>
MyTinyMCEConfig = <%= tinymce_configuration.to_json %>;
</script>
I am using this gem. I create 2-3 sets in config/tinymce.yml, In my page I use more than 2 instances of tinymce with configrations specified in config file. Also this instances in a list (ul) I am trying to add sortable on this list. As I drag-drop one instance tinymce get disable also its contents are losed, After googling I remove tinymce before drag and apply after drop as tinyMCE.execCommand "mceRemoveControl", true, "tinymceID" and tinyMCE.execCommand "mceAddControl", true, "tinymceID"
Now my problem is that after this tiny mce not uses settings in my config files at all.