Skip to content
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

Should CKFinder command work without Image plugin #2643

Closed
jodator opened this issue Aug 21, 2019 · 4 comments · Fixed by ckeditor/ckeditor5-ckfinder#49
Closed

Should CKFinder command work without Image plugin #2643

jodator opened this issue Aug 21, 2019 · 4 comments · Fixed by ckeditor/ckeditor5-ckfinder#49
Assignees
Labels
package:ckfinder status:discussion type:question This issue asks a question (how to...).

Comments

@jodator
Copy link
Contributor

jodator commented Aug 21, 2019

The CKFinderCommand expects both 'link' and 'imageUpload' commands to be present:

https://github.com/ckeditor/ckeditor5-ckfinder/blob/0f941b00aed5fc6462cabfebba12ee0c9de522e0/src/ckfindercommand.js#L45

but it probably could work without the image plugin as a link only solution (or insert image only).

@Reinmar
Copy link
Member

Reinmar commented Aug 21, 2019

I guess it should. But we need then error messages (notifications) for the user why inserting e.g. an image didn't work.

OTOH, was this ever requested by someone?

@jodator
Copy link
Contributor Author

jodator commented Aug 21, 2019

OTOH, was this ever requested by someone?

nope - I've just found it when checking this: ckeditor/ckeditor5-vue#89.

@Reinmar
Copy link
Member

Reinmar commented Aug 27, 2019

@Mgsy confirms that this issue appears from time to time. So, the minimum would be to mention that in the documentation.

BTW, I also realised that relying on imageUpload command's state doesn't make much sense because the upload could've been done in the CKFinder manager. And then you just need to insert the image via URL into the content. Which should also happen via a command. And the state of this command matters. How does it work right now?

@jodator
Copy link
Contributor Author

jodator commented Aug 27, 2019

OMG.. we're using insertImage to insert image (which is OK) but we check imageUpload command state... (which is 🤦‍♂️).

https://github.com/ckeditor/ckeditor5-ckfinder/blob/63ac6d1ac29664e45c171b8f9eea9f2691f69fc7/src/ckfindercommand.js#L41

https://github.com/ckeditor/ckeditor5-ckfinder/blob/63ac6d1ac29664e45c171b8f9eea9f2691f69fc7/src/ckfindercommand.js#L142

I'd do it ASAP as those are some small fixes to address.

@jodator jodator self-assigned this Aug 27, 2019
Reinmar referenced this issue in ckeditor/ckeditor5-ckfinder Sep 13, 2019
Fix: CKFinderCommand should work when either `'link'` or `'imageInsert'` command is enabled. Closes #48.
@mlewand mlewand transferred this issue from ckeditor/ckeditor5-ckfinder Oct 9, 2019
@mlewand mlewand added this to the iteration 27 milestone Oct 9, 2019
@mlewand mlewand added status:discussion type:question This issue asks a question (how to...). package:ckfinder labels Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:ckfinder status:discussion type:question This issue asks a question (how to...).
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants