Skip to content

Commit

Permalink
put message into variable
Browse files Browse the repository at this point in the history
  • Loading branch information
talyguryn committed Jul 14, 2018
1 parent 0b40929 commit c1f6389
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion build/codex-editor.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/codex-editor.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/components/modules/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c1f6389

Please sign in to comment.