put message into variable

This commit is contained in:
Taly 2018-07-14 16:30:50 +03:00
parent 0b40929c62
commit c1f63894d7
No known key found for this signature in database
GPG key ID: F8569511A387BDFB
3 changed files with 7 additions and 3 deletions

View file

@ -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

View file

@ -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();