문제

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