-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce the "insertImage" command #5171
Comments
@Reinmar Just a quick question:
|
OMG, I knew we'll end up in this place :D Flip the coin, I guess. But to be serious – |
Why not |
Hm... I think I recall that we anticipated this problem and we agreed that |
Because we already have We had a very long discussion about naming ~1 year ago and we agreed that a single naming convention doesn't fit all cases. We have features like undo/redo/bold (noun or verb) but also blockQuote or heading (noun). It's a bit of a mess. You would expect that a command name is a verb, but that caused issues, so we have to be flexible and as a rule of thumb consistent locally (within a package) rather than trying to be super consistent globally (impossible). |
|
Another thing which we rather didn't do (apart from So I see that |
One should not extend the other. They have different API signatures for |
Feature: Introduced the `'imageInsert'` command. Closes #245. Closes #251. BREAKING CHANGE: The `'imageUpload'` command's `files` parameter was renamed to `file`. It still can accept an array of files.
Right now we only have "imageUpload" command that uploads & inserts an image. Other features (ie file browser features) might do partially the same - insert an image (by its URL).
We could introduce the "insertImage" command that will insert an image for given URL in document selection. It will use
findOptimalPostion()
algorithm.The text was updated successfully, but these errors were encountered: