mirror of
https://github.com/codex-team/editor.js
synced 2024-06-19 22:25:23 +02:00
added plugin configuration (#120)
This commit is contained in:
parent
bbda0fb3ad
commit
5c95baed54
|
@ -678,7 +678,9 @@ var codex =
|
|||
|
||||
if (typeof codex.tools[tool].prepare != 'function') continue;
|
||||
|
||||
codex.tools[tool].prepare();
|
||||
if (codex.tools[tool].config) {
|
||||
codex.tools[tool].prepare(codex.tools[tool].config);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -311,7 +311,10 @@ var ui = (function(ui){
|
|||
if (typeof codex.tools[tool].prepare != 'function')
|
||||
continue;
|
||||
|
||||
codex.tools[tool].prepare();
|
||||
if (codex.tools[tool].config) {
|
||||
codex.tools[tool].prepare(codex.tools[tool].config);
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue