سؤال

I'm adding a button to the htmleditor toolbar. E.g.:

this.cmp.getToolbar().add([
    {
        iconCls: 'custom-btn-clear',
        handler: this.remove_all_tags,
        scope: this,
        overflowText: 'Remove formatting'
    }
]);

I need to put it on the first position (first from left side). How can I specify buttons position?

هل كانت مفيدة؟

المحلول

Use the insert method.

myToolbar.insert(0, {});

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top