newbthenewbd / grav-plugin-tinymce-editor

TinyMCE Editor Integration Plugin for Grav
Other
60 stars 10 forks source link

Use Grav native media system #5

Closed titoko closed 6 years ago

titoko commented 6 years ago

Hi, I'm currently looking on how to fallback on native Grav media system to allow the user to use action like crop, cropresize etc ... (https://learn.getgrav.org/content/media)

I have 2 idea on that :

or

I let you know if I have a working POC

newbthenewbd commented 6 years ago

Honestly, I don't quite understand what functionality You would like added, as the image actions themselves seem to work just fine.

You can apply an action to an image by uploading the image with the use of the native Grav file picker, clicking the Insert button (the one with a + icon) next to the image and appending the image action under Source, so that under Tools > Source code the resulting tag looks similar to this:

<img src="some-page/image.png?negate" alt="" width="123" height="456" />

Since I may have likely understood something wrongly, I'm keeping the issue open for now and request elaboration.

titoko commented 6 years ago

Well this is what I was looking for but never tought to just try... So closing the issues

Thanks