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