TinyMCE 3.4.4

Make sure you have a backup and/or rename the following:

/lib/js/tinymce/

js/editors/tinymce.editor.js



Upload the attached file to the root of your installation and extract.



2.2.1

[attachment=4430:tinymce344.png]



2.2.2

[attachment=4507:tinymce344_2.png]

csc2.2.1_tinymce_3.4.4.zip

tinymce344.png

csc2.2.2_tinymce_3.4.4.zip

tinymce344_2.png

Thanks for posting this.



-Tim

thanks

I have updated the files for 2.2.2 (see first post). The only thing that was added (by CSC) is languages. I also added the “Silver” skin (have to look hard to tell the difference).



Note: You will more than likely need to clear your cache and SO's cache if applicable.

Thanks, Hope they put this in by default next release.

It looks like 2.2.3 broke tinymce plugin functionality again. Is there another update in the works? Or what is needed to change in the js files for it to work again.

Can you be more specific? It's working fine on my end.

Apparently I cleaned the cache and performed a DB repair/optimize and it's working. Should have done that before posting. looks like 2.2.3 updated the files somehow. After copying the files back to the server and doing above, tinymce is again working.



This wysiwyg update is great… not sure why it's not updated in cart releases.

Tool,



Thanks so much for posting this Tool; the installation was effortless.

I am using 2.2.3 Community Edition. I've followed all your instructions but I don't see the new TinyMCE interface. I see the same old one.

Has anyone tested these plugins with the new v3.01 cart yet?



UPDATE:



I got this to work. You have to manually replace tinymce.editor in the “js/editor” folder with the following and copy the lib files from the link above for 2.2.2:



/* editior-description:text_tinymce */
$.extend({
ceEditorMethods: {
runEditor: function(elm) {
if (typeof($.fn.tinymce) == 'undefined') {
$.ceEditor('state', 'loading');
return $.getScript(current_path + '/lib/js/tinymce/jquery.tinymce.js', function() {
$.ceEditor('state', 'loaded');
elm.ceEditor('run');
});
}

// You have to change this array if you want to add a new lang pack.
var available_langs = {ar: true, az: true, be: true, bg: true, bn: true, br: true, bs: true, ca: true, ch: true, cs: true, cy: true, da: true, de: true, dv: true, el: true, en: true, es: true, et: true, eu: true, fa: true, fi: true, fr: true, gl: true, gu: true, he: true, hi: true, hr: true, hu: true, hy: true, ia: true, id: true, ii: true, is: true, it: true, ja: true, ka: true, kl: true, ko: true, lb: true, lt: true, lv: true, mk: true, ml: true, mn: true, ms: true, nb: true, nl: true, nn: true, no: true, pl: true, ps: true, pt: true, ro: true, ru: true, sc: true, se: true, si: true, sk: true, sl: true, sq: true, sr: true, sv: true, ta: true, te: true, th: true, tr: true, tt: true, tw: true, uk: true, ur: true, vi: true, zh: true, zu: true};

var lang = (typeof(available_langs[cart_language.toLowerCase()]) != 'undefined') ? cart_language.toLowerCase() : 'en';

elm.tinymce({
script_url : current_path + '/lib/js/tinymce/tiny_mce.js',
plugins : "safari,autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
theme_advanced_resize_horizontal : false,
theme : 'advanced',
language: lang,
strict_loading_mode: true,
convert_urls: false,
remove_script_host: false,
body_class: 'wysiwyg-content',
content_css: customer_skin_path + '/customer/styles.css,' + current_path + '/skins/' + skin_name + '/admin/wysiwyg_reset.css',
file_browser_callback : function(field_name, url, type, win) {
tinyMCE.activeEditor.windowManager.open({
file : current_path + '/lib/js/elfinder/elfinder.tinymce.html',
width : 600,
height : 450,
resizable : 'yes',
inline : 'yes',
close_previous : 'no',
popup_css : false // Disable TinyMCE's default popup CSS
}, {
'window': win,
'input': field_name,
'current_location': current_location + '/',
'connector_url': fn_url('elf_connector.images?ajax_custom=1')
});
}
});
},
destroyEditor: function(elm) {
if (!$.browser.msie) {
tinyMCE.execCommand('mceRemoveControl', false, elm.attr('id'));
}
},
recoverEditor: function(elm) {
tinyMCE.execCommand('mceAddControl', false, elm.attr('id'));
}
}
});

V3.0 exemple: Replace only this code. Plugins are in the folder: or replace plugins : " whit plugins : '



plugins : 'safari,style,advimage,advlink,xhtmlxtras,inlinepopups,paste,table',
theme_advanced_buttons1: 'formatselect,fontselect,fontsizeselect,bold,italic,underline,forecolor,backcolor,|,link,image,|,numlist,bullist,indent,outdent,justifyleft,justifycenter,justifyright,blockquote,|,code',
theme_advanced_buttons2: 'undo,redo,|,tablecontrols,|,hr,|,cut,copy,paste,pastetext,pasteword',