Skip to content

loadTypo.js#50

Open
kofifus wants to merge 1 commit intocfinke:masterfrom
kofifus:patch-3
Open

loadTypo.js#50
kofifus wants to merge 1 commit intocfinke:masterfrom
kofifus:patch-3

Conversation

@kofifus
Copy link
Copy Markdown

@kofifus kofifus commented Sep 4, 2016

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

`
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 }; );
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant