mirror of
https://github.com/codex-team/editor.js
synced 2024-06-01 05:22:35 +02:00
put message into variable
This commit is contained in:
parent
0b40929c62
commit
c1f63894d7
|
@ -4892,9 +4892,11 @@ var Renderer = function (_Module) {
|
|||
if (tool in this.Editor.Tools.available) {
|
||||
this.Editor.BlockManager.insert(tool, data, settings);
|
||||
} else {
|
||||
var message = 'Tool \xAB' + tool + '\xBB is not found. Check \'tools\' property at your initial CodeX Editor config.';
|
||||
|
||||
/** @todo show warning notification message */
|
||||
|
||||
_.log('Tool \xAB' + tool + '\xBB is not found. Check \'tools\' property at your initial CodeX Editor config.', 'warn');
|
||||
_.log(message, 'warn');
|
||||
}
|
||||
|
||||
return Promise.resolve();
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -74,9 +74,11 @@ export default class Renderer extends Module {
|
|||
if (tool in this.Editor.Tools.available) {
|
||||
this.Editor.BlockManager.insert(tool, data, settings);
|
||||
} else {
|
||||
let message = `Tool «${tool}» is not found. Check 'tools' property at your initial CodeX Editor config.`;
|
||||
|
||||
/** @todo show warning notification message */
|
||||
|
||||
_.log(`Tool «${tool}» is not found. Check 'tools' property at your initial CodeX Editor config.`, 'warn');
|
||||
_.log(message, 'warn');
|
||||
}
|
||||
|
||||
return Promise.resolve();
|
||||
|
|
Loading…
Reference in a new issue