|
|
@ -37,13 +37,12 @@ module.exports = Component.extend( |
|
|
let hasButtonBool = false; |
|
|
let hasButtonBool = false; |
|
|
var tb = this.get('toolbar'); |
|
|
var tb = this.get('toolbar'); |
|
|
|
|
|
|
|
|
if ( |
|
|
for (let i = 0; i < tb.length; i++) { |
|
|
tb.forEach(button => { |
|
|
if (tb[i].command === 'image-editor') { |
|
|
if (button.command === 'image-editor') { |
|
|
hasButtonBool = true; |
|
|
hasButtonBool = true; |
|
|
break; |
|
|
} |
|
|
} |
|
|
}) |
|
|
} |
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
if (!hasButtonBool) { |
|
|
if (!hasButtonBool) { |
|
|
tb.push({ |
|
|
tb.push({ |
|
|
|