wysiwyg editor translations


Topic: wysiwyg editor translations

efilippi priority asked 1 year ago

Hello,

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'}]">
</div>

but it doesn't work.

Thank you for your help.

Eric.


Grzegorz Bujański staff commented 1 year 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.

FREE CONSULTATION

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

Status

Opened

Specification of the issue
  • User: 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