Topic: wysiwyg editor translations
efilippi priority asked 3 years 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.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Opened
- 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
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.