I’m working on a documentation feature for my app.
I need to register html blocs including text and images.
I used summernote lite > this works (bit buggy) and I can register html but i can insert only 1 image.
Every time I try to upload more than 1 image the html is cut off without any image.
I don’t know the answer but I know that setting my database field to varchar instead of text has got me a few times. Varchar limits characters to 255 by default. Maybe you are simply running out of characters. Again just guessing from experience.
Thanks brad for your insight.
I experienced the same then changed the string to text.
The problem seems coming from the base encoding with several images.
I see you are reporting a few non-related issues here. Please post different issues in different topics! It’s really hard to follow the topic when you are jumping from topic to topic!
My question was only related to the initial issue reported here, which you call “the html is cut off”.
All i asked is you to provide an example of the html code that is being “cut off” in the database. Also, how do you upload/insert the images in summernote exactly? Is it following the tutorial about summernote image upload? Or is it something else you are doing?
For the other issues, please create separate topic explaining the issues in details.
Hi Teodor,
I just updated my previous edit focused on the html issue.
All i asked is you to provide an example of the html code that is being “cut off” in the database. Also, how do you upload/insert the images in summernote exactly?
Well you are directly embedding the the base64 image in the summernote, which means that this is thousands of symbols, which means that you most probably hit the database field max chars.
It’s not a great idea to embed base64, you should upload images like explained here: