Nothing is decided yet.
To give a bit of context, in CKEditor 4 (CK4) there are two ways to add an image.
The first one is through the quick action (/image). In this case the user can only search attachments by name (or upload a new one), and the image is inserted with no default parameters.
Image quick action default view:
Image suggestion post filtering in the quick actions, not scoped to the current page:
The second one is through the top menu image button.
In this case, the user is first proposed an exhaustive set of tabs, each offering a way to search and add an image (gallery, tree, upload, icon, url).
Once the image is selected, a second step allows customizing the image before inserting it.
In the case of Blocknote, we donāt have a top bar, and the impact of this choice on the quick actions is what is discussed here.
Option 1 - keep it simple
Only offer to insert the image through the quick actions. Users can customize the image by editing them once inserts.
Cons:
- We lose all the advanced selection options.
Option 2 - Add an entry at the top of the quick actions.
In the first image of this proposal (from CK4), you can see an āUpload imageā action.
We can replace it with a āNavigate imagesā entry that would open the modal that used to be opened through the top menu image button in CK4.
Note: We can keep the āUpload imageā action too if we want to keep having a way to quickly upload and insert an image.
In summary, the user story is: /img ā enter ā type to filter images or press enter to select the āNavigate imagesā option
/img ā select āImageā
- select āNavigate imagesā ā image modal is opened ā usual image selection and insertion flow
- type more to filter ā image inserted
Option 3 - Add to distinct quick actions
Close to option 3, but the āNavigate imagesā is moved one level up.
When typing /img, the user is offered two choices:
- Quick insert
- Navigate images
The user story is:
/img
- select āQuick insertā ā upload or type more to filter ā image inserted
- select āNavigate imagesā ā image modal is opened ā usual image selection and insertion flow
Option 4 - Add back a top menu
Mentioning it for exhaustiveness, but I wouldnāt go that road. It does not match standard āblockā editor design. It also uses more vertical space, which makes the editor harder to integrate in space-limited parts of the UI (in-place field editing, LD cellsā¦).
Iām -1 for options 1 and 4.
Iām equally +1 for options 2 and 3, but Iām unsure which choice is the best.
Thanks!
cc @tkrieck for the UX aspects and @mflorea for the editor expertise.