*

kriskoyk

  • *****
  • 285 posts
WYSiWYG editor (tinyMCEv5.4) - translation
« on: November 19, 2020, 07:29:39 PM »
WYSiWYG editor (tinyMCE v5.4) translates and if so where are its translation files?

*

MB Themes

Re: WYSiWYG editor (tinyMCEv5.4) - translation
« Reply #1 on: November 19, 2020, 09:16:07 PM »
@kriskoyk
You would have to download language and upload it into assets / tinymce and then change language in each generator.
Problem is this cannot be done automatically as not all languages exist
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 285 posts
Re: WYSiWYG editor (tinyMCEv5.4) - translation
« Reply #2 on: November 20, 2020, 01:40:12 AM »
When you say generator what file is meant?

From the tinymce website the instructions say: In this example we will set the editor language to Swedish.

tinymce.init ({
   selector: 'textarea', // change this value according to your HTML
   language: 'sv_SE'
});


In which file is this code located?

*

MB Themes

Re: WYSiWYG editor (tinyMCEv5.4) - translation
« Reply #3 on: November 20, 2020, 08:35:42 AM »
@kriskoyk
Yes it is code that generate tinymce.
It can be in multiple, for admin and for front.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 285 posts
Re: WYSiWYG editor (tinyMCEv5.4) - translation
« Reply #4 on: November 20, 2020, 11:30:20 AM »
The question is where is this code, in which file?

*

kriskoyk

  • *****
  • 285 posts
Re: WYSiWYG editor (tinyMCEv5.4) - translation
« Reply #5 on: November 21, 2020, 01:02:09 AM »
The code " tinymce.init ({
   selector: 'textarea', // change this value according to your HTML
   language: 'sv_SE'
}); " for admin is here: oc-admin \ themes \ omega \ pages \ form or here: oc-admin \ themes \ modern \ pages \ form and the translation works properly. I can not find the file in the front section code to change the language there too.
  Any help?
« Last Edit: November 21, 2020, 12:05:05 PM by kriskoyk »

*

MB Themes

Re: WYSiWYG editor (tinyMCEv5.4) - translation
« Reply #6 on: November 21, 2020, 06:34:00 PM »
Oc admin - depends on theme you use.
I do not quite remember front (not on pc), check oc-includes/osclass/ ... functions.php, utils.php or frm/item.form.php
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 285 posts
Re: WYSiWYG editor (tinyMCEv5.4) - translation
« Reply #7 on: November 21, 2020, 07:05:46 PM »
Yes it is here: oc-includes \ osclass \ functions.php
It works very well.
Thanks for the help

*

MB Themes

Re: WYSiWYG editor (tinyMCEv5.4) - translation
« Reply #8 on: November 23, 2020, 08:06:10 PM »
Nice to hear that ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots