Hello there,
I'm still a bit confused in how to use the
I want to use a plugin for math formulas in a specific view, but not
in the others. As far as I understood, I should used the combined js
with lazyload library, so
In the header of my view:
<%= init_tinymce_hammer_if_required %>
<%= javascript_include_tag('lazyload') %>
<%= javascript_include_tag('behaviours') %>
and behaviors.js :
LazyLoad.loadOnce('/javascripts/tinymce_hammer.js', function() {
tinyMCE.init({
mode : 'exact',
elements : 'blog_post_body,blog_commentbody',
plugins :
'safari,table,paste,paste2,asciimath,asciisvg,inlinepopups',
paste_convert_headers_to_strong : true,
paste_convert_middot_lists : true,
paste_remove_spans : true,
paste_remove_styles : true,
paste_strip_class_attributes : true,
theme : 'advanced',
theme_advanced_toolbar_align : 'left',
theme_advanced_toolbar_location : 'top',
theme_advanced_buttons1 :
'undo,redo,copy,paste,pastetext,|,bold,italic,strikethrough,blockquote,charmap,bullist,numlist,removeformat,|,link,unlink,image,|,cleanup,code',
theme_advanced_buttons2 : 'asciimath,asciimathcharmap,asciisvg',
theme_advanced_buttons3 : '',
AScgiloc : '
http://www.imathas.com/editordemo/php/
svgimg.php',
ASdloc : '
http://www.imathas.com/editordemo/jscripts/tiny_mce/
plugins/asciisvg/js/d.svg'
});
});
But this is not taking effect, the editor still the same as the
default one. Can anyone help me?
Thanks in advance!
Cassio