parttio / tinymce-for-flow

TinyMCE wrapper for Vaadin 10+
Other
8 stars 6 forks source link

Is I18n possible? #7

Open sascha-broich opened 4 years ago

sascha-broich commented 4 years ago

Is it possible to configure the language for TinyMCE? It looks like there are additional files and a configuration object necessary: https://www.tiny.cloud/docs/configure/localization/

sascha-broich commented 4 years ago

Found the solution.

  1. Download the localization file from here, extract the js file and put it in the static web content
  2. Use the TinyMce::setConfig method with "{\"language_url\":\"<web content path>/<language>.js\"}"
windgaucho commented 2 years ago

Can you please tell me where to put that file in a vaadin project? I can't get it to work. I am using vaadin 22.0.5

sascha-broich commented 2 years ago

Hm, I've not tried it with that version. It should be placed where all your other static web stuff (CSS, JS, images) is, as this section explains. If that doesn't work, maybe, depending on what you have, it would be one of those two locations, as described here:

windgaucho commented 2 years ago

Hi @sascha-broich, thanks for your response. Yes I already try that locations, but with no success.

Can you please show me an example how your are using it? it would be of great help. Thanks