editor.js icon indicating copy to clipboard operation
editor.js copied to clipboard

Not possible to reorder built-in toolbar actions

Open sKopheK opened this issue 1 year ago • 3 comments

Hi, went through many issues and discussion threads here on github + docs and some blog posts, but could not figure out, how to change default order of move up, move down and delete toolbar actions. some screenshots show delete under move up and move down actions but in my projects its always move up, delete and move down. inlineToolbar option seems to do nothing, the only working solution seems to be manual reordering of the above mentioned actions using css which i would like to avoid:

.ce-popover__items {
  display: flex;
  flex-direction: column;

  .ce-popover-item {
    &[data-item-name="move-down"] {
      order: 1;
    }

    &[data-item-name="delete"] {
      order: 3;
    }

    &[data-item-name="move-down"] {
      order: 2;
    }
  }
}

sKopheK avatar May 27 '24 13:05 sKopheK

There is no way to reorder build-in block tunes at the moment. But in the next version we are gonna reorder them like you mentioned:

image

neSpecc avatar May 27 '24 14:05 neSpecc

some people might be used to it, don't you consider allowing custom ordering as well?

sKopheK avatar May 28 '24 08:05 sKopheK

I'm not sure that there is any significant reason to reorder the move up and delete tunes manually.

neSpecc avatar May 28 '24 09:05 neSpecc