Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经使用此功能在基本类别中添加了一个自定义块
editor.BlockManager.add(id, {})
它在最后一个位置添加。
有没有办法在第一个位置添加这个块?
为了达到同样的要求,我添加了一个负order属性,如下所示:
order
editor.BlockManager.add('my-id',{ ///... category: { label:'My Cat Label', order: -1, //===>Adjust accordingly open: true }, //.... });