A little help with image in Summernote

Issues related to the CMS tools of WYSIWYG Web Builder.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/cms_tools.html
A lot of information about the Content Manager System can be found in the help/manual. Please read this first before posting any questions! Also check out the demo template that is include with the software.

CMS trouble shooting / FAQ:
viewtopic.php?f=10&t=43245
Post Reply
darkoracle
 
 
Posts: 23
Joined: Mon Apr 20, 2020 3:54 pm

A little help with image in Summernote

Post by darkoracle »

Hi

When I Upload Images via Plugins / File Manager then link in my post as follows:

./files/image_name

It works perfectly but when I use summer notes add an image button and select an image from my PC it shows in the post preview but not on the final post, all I get is the broken image link icon.

Any tips?

J
User avatar
Pablo
 
Posts: 21578
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: A little help with image in Summernote

Post by Pablo »

Maybe the image is too large?
paul.maechler
 
 
Posts: 28
Joined: Wed Nov 19, 2014 9:53 pm

Re: A little help with image in Summernote

Post by paul.maechler »

I like using summernote as editor.
But is the maximum size for pictures ?
Even small pics with 150k are not working.
The page is simply not saving.

Which editor is better publishing pictures ?

Rgds
Paul
User avatar
Pablo
 
Posts: 21578
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: A little help with image in Summernote

Post by Pablo »

The maximum size of the image is determined by the browser and / or summernote.
Unfortunately, I do not have any control over this.

Other editors may have different specs.

Note that all editors are third party so they are provide "AS IS". Because it would take years of dedicated development just to create an editor like that.
paul.maechler
 
 
Posts: 28
Joined: Wed Nov 19, 2014 9:53 pm

Re: A little help with image in Summernote

Post by paul.maechler »

Ok. Got it.
Tried your wwbEditor instead.
I can upload any picture. png or jpg. Even any size.
But more then 95% of all pictures (even very small ones) or are not saving when I push "Save".
I need this functionality urgently know for a custome app.
I don't care if a I cannot save 5 MB pics. But a 50 or 100k pictures must work.
It is a matter of SQL settings ?
How can I debug the "Save" procedure ?
Do you have any working example ?
User avatar
Pablo
 
Posts: 21578
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: A little help with image in Summernote

Post by Pablo »

When using wwbEditor's insertImage, the image data will be embedded in the text (standard HTML functionality).
Even for small images this will create a lot of data.
The exact size limit is probably related to the size of 'content' field in the MySQL database which is by default a 'TEXT' field.
Changing it to LONGTEXT may help, but I have not tried this myself

More information:
https://dev.mysql.com/doc/refman/5.7/en ... ments.html
paul.maechler
 
 
Posts: 28
Joined: Wed Nov 19, 2014 9:53 pm

Re: A little help with image in Summernote

Post by paul.maechler »

That works like a charm ......

Thanks Pablo
User avatar
Pablo
 
Posts: 21578
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: A little help with image in Summernote

Post by Pablo »

Thanks! That is useful to know!
Post Reply