-
Notifications
You must be signed in to change notification settings - Fork 94
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
Add imageSize75 #77
Comments
I also would like to know hos to add the imageSize75. I already did the following: }); And in summernote.js I added this And this in the
But when clicking on the image in the editor only 100%, 50% and 25% appears. What more needs to be done? |
It seems we need someone from the team for this? I have tried a lot of stuff to make it work, but still no luck |
Hi John, did you find solution for this ? |
Hi Sandeep! Sorry but no luck for this |
Hey, guys! Have solution. var ImageResize75PercentButton = function(context) {
return $.summernote.ui.button({
contents: '<span class="note-fontsize-10">75%</span>',
tooltip: 'Уменьшить до 75%',
click: context.createInvokeHandler("editor.resize", "0.75")
}).render()
}
$.summernote.options.buttons['resize75'] = ImageResize75PercentButton
$.summernote.options.popover.image = [
["resize", ["resizeFull", "resize75", "resizeHalf", "resizeQuarter", "resizeNone"]],
["float", ["floatLeft", "floatRight", "floatNone"]],
["remove", ["removeMedia"]],
] Add it as Summernote JS plugin. |
Is it possible to add option imageSize75?
I try to use this summernote-image-attributes.js but it does not work
The text was updated successfully, but these errors were encountered: