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

added check for inlineImage name of images #3

Merged
merged 1 commit into from
Jan 26, 2022

Conversation

janeznovak
Copy link

@janeznovak janeznovak commented Jan 21, 2022

Added the check for images of name imageInline for ckeditor5.
The event didn't return any images, because it checked only for the name "image", but in ckeditor5 you can also have "imageInline".

Edit: changed inlineImage to imageInline, which is the correct name.

@janeznovak janeznovak changed the title removed logs added check for inlineImage type of images Jan 21, 2022
@janeznovak janeznovak changed the title added check for inlineImage type of images added check for inlineImage name of images Jan 21, 2022
@shibbirweb
Copy link
Owner

shibbirweb commented Jan 21, 2022

@janeznovak Thanks for contributing to this plugin.
Can you please give an example of an inline image? so, that I can confirm your changes.

@janeznovak
Copy link
Author

I can give you the link to the official documentation of ckeditor5, https://ckeditor.com/docs/ckeditor5/latest/features/images/images-styles.html. Otherwise all i do is upload an image from my computer to the ckeditor. The picture:
image
which gets sent to my server. When I logged out the name, it was inlineImage and not image.

@shibbirweb
Copy link
Owner

I can give you the link to the official documentation of ckeditor5, https://ckeditor.com/docs/ckeditor5/latest/features/images/images-styles.html. Otherwise all i do is upload an image from my computer to the ckeditor. The picture: image which gets sent to my server. When I logged out the name, it was inlineImage and not image.

can you upload a demo project and console log everything?

@janeznovak
Copy link
Author

That would take some time, because it is a commercial product with strapi, so I would neet to delete all the entities in it, and probably can't even share the code. So that would mean that I would need to make a smaller project at home with bare minimum code. As I said, I can do that, it will just take some time.

@shibbirweb
Copy link
Owner

shibbirweb commented Jan 21, 2022

That would take some time, because it is a commercial product with strapi, so I would neet to delete all the entities in it, and probably can't even share the code. So that would mean that I would need to make a smaller project at home with bare minimum code. As I said, I can do that, it will just take some time.

just create a demo repository. no need real data or server. Just add HTML with cdn image link and apply plugin

@janeznovak
Copy link
Author

Will try at home.

@shibbirweb
Copy link
Owner

Will try at home.

Okay. Thanks for contributing.

@janeznovak
Copy link
Author

My pleasure. Hope it'll help.

@janeznovak
Copy link
Author

janeznovak commented Jan 21, 2022

OK, so I made a Vue app with ckeditor and your plugin. I put it in my repo. Here is the link to it: https://github.com/janeznovak/ckeditor5-image-remove-event-callback-plugin/tree/demo1. You have the steps to install the app and reproduce the "problem"(if we can call it that) in the readme.

@shibbirweb
Copy link
Owner

OK, so I made a Vue app with ckeditor and your plugin. I put it in my repo. Here is the link to it: https://github.com/janeznovak/ckeditor5-image-remove-event-callback-plugin/tree/demo1. You have the steps to install the app and reproduce the "problem"(if we can call it that) in the readme.

I will check and confirm. If your changes ok then I will merge. (Sorry for late response.)

@shibbirweb
Copy link
Owner

OK, so I made a Vue app with ckeditor and your plugin. I put it in my repo. Here is the link to it: https://github.com/janeznovak/ckeditor5-image-remove-event-callback-plugin/tree/demo1. You have the steps to install the app and reproduce the "problem"(if we can call it that) in the readme.

Your suggestion is right. I merge your pull request. Thanks for your valuable contribution.

@shibbirweb shibbirweb closed this Jan 26, 2022
@shibbirweb shibbirweb reopened this Jan 26, 2022
@shibbirweb shibbirweb merged commit a4dd48e into shibbirweb:master Jan 26, 2022
@janeznovak
Copy link
Author

OK, so I made a Vue app with ckeditor and your plugin. I put it in my repo. Here is the link to it: https://github.com/janeznovak/ckeditor5-image-remove-event-callback-plugin/tree/demo1. You have the steps to install the app and reproduce the "problem"(if we can call it that) in the readme.

Your suggestion is right. I merge your pull request. Thanks for your valuable contribution.

Happy to do it:smiley:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants