Topic: wysiwyg editor translations

efilippi priority asked 3 years ago


how can i set the wysiwyg editor translations using data attributes ?

The documentation says :

Options can be passed via data attributes, JavaScript, or jQuery. For data attributes, append the option name to data-mdb-, as in data-mdb-styles-section="false".

wysiwygTranslations (Array) : Defines custom texts

I tried

<div class="wysiwyg" data-mdb-wysiwyg-translations="[{'paragraph':'Paragraphe'},{'textStyle':'Style'}]">

but it doesn't work.

Thank you for your help.


Grzegorz Bujański staff commented 3 years ago

his is one of the few options that will not work properly this way due to the type of data to be passed. In this case, I recommend using the initialization via JS.

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: 3.2.0
  • Device: computer / smartphone
  • Browser: firefox
  • OS: Debian
  • Provided sample code: No
  • Provided link: Yes