Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

TinyMCE 3.4.4 Rate Topic   * * * * - 2 votes

 
  • The Tool
  • Been Here Way Too Long Member
  • Members
  • Join Date: 30-Mar 07
  • 3,410 posts

Posted 04 August 2011 - 07:05 PM #1

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
Attached File  tinymce344.png   20.99KB   334 downloads

2.2.2
Attached File  tinymce344_2.png   38.79KB   296 downloads

Attached Files



 
  • GizmoDaddy
  • Junior Member
  • Members
  • Join Date: 21-May 09
  • 7 posts

Posted 23 August 2011 - 01:55 PM #2

Thanks for posting this.

-Tim

 
  • brokensword
  • Junior Member
  • Members
  • Join Date: 12-Jul 10
  • 46 posts

Posted 01 September 2011 - 01:41 PM #3

thanks

 
  • The Tool
  • Been Here Way Too Long Member
  • Members
  • Join Date: 30-Mar 07
  • 3,410 posts

Posted 02 September 2011 - 01:24 AM #4

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.

 

Posted 15 September 2011 - 09:09 AM #5

Thanks, Hope they put this in by default next release.
Be first or just be plain better.
EPOS for Retail and Hospitality

 
  • carterj
  • Junior Member
  • Members
  • Join Date: 11-May 09
  • 93 posts

Posted 01 October 2011 - 04:04 PM #6

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.
Using CS-CART 4.2.x

 
  • The Tool
  • Been Here Way Too Long Member
  • Members
  • Join Date: 30-Mar 07
  • 3,410 posts

Posted 02 October 2011 - 03:43 AM #7

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

 
  • carterj
  • Junior Member
  • Members
  • Join Date: 11-May 09
  • 93 posts

Posted 04 October 2011 - 05:17 PM #8

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.
Using CS-CART 4.2.x

 
  • tuari
  • Junior Member
  • Members
  • Join Date: 22-Aug 09
  • 40 posts

Posted 21 October 2011 - 10:09 PM #9

Tool,

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

 
  • mifzal
  • Senior Member
  • Trial users
  • Join Date: 20-Oct 11
  • 179 posts

Posted 23 October 2011 - 06:37 PM #10

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.

 
  • carterj
  • Junior Member
  • Members
  • Join Date: 11-May 09
  • 93 posts

Posted 29 May 2012 - 08:56 PM #11

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'));
  }
}
});

Using CS-CART 4.2.x

 
  • posto
  • Senior Member
  • Members
  • Join Date: 19-Sep 11
  • 160 posts

Posted 30 May 2012 - 04:49 AM #12

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',

Templates for v3

**see Posto's Templates Tread**