简体   繁体   中英

How to change locale in aurelia-froala-editor?

How to change language of froala-editor using aurelia ? Where do I exactly need to add scripts of language files?

Have already checked https://www.froala.com/wysiwyg-editor/languages but I cannot figure out how to add these script files in aurelia.

just import the language that you need, the languages are located in froala-editor/js/languages folder.

import 'froala-editor';
import 'froala-editor/js/languages/fr';

then define the language:

$('.editor').froalaEditor({
  language: 'fr'
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM