Open kofifus opened 8 years ago
Implements a loadTypo function that returns a promise resolved when the given dictionaries are loaded
const aff = 'https://cdn.rawgit.com/kofifus/Typo.js/312bf158a814dda6eac3bd991e3a133c84472fc8/typo/dictionaries/en_US/en_US.aff'; const dic = 'https://cdn.rawgit.com/kofifus/Typo.js/312bf158a814dda6eac3bd991e3a133c84472fc8/typo/dictionaries/en_US/en_US.dic'; let typoLoaded=loadTypo(aff, dic); typoLoaded.then(typo => { do something with typo }; );
Implements a loadTypo function that returns a promise resolved when the given dictionaries are loaded