Hi,
I'm working on a extension that uses the default summernote editor where you can put in your html stuff.
This works fine.
But when clearing the screen summernote keeps a default value of "<p><br></p>" if you look at the code.
This is saved in the database.
So the screen looks empty but it submits that piece of code to the database.
On the front page I use the code <?php if ($name) { ?>
But this won't work now as there is always a value.
So I cannot display anything when there is nothing put in on the admin page.
Does someone know a workaround?
It would really help me.
Hi Reptile,
In admin/view/javascript/summernote/summernote.js
Look for:
Change it to:
That's it.
Regards,
onnets
In admin/view/javascript/summernote/summernote.js
Look for:
Code: Select all
emptyPara: '<p>' + blankHTML + '</p>',
Code: Select all
emptyPara: '',
Regards,
onnets
@OnNets, I tried your solution but it didn't work on summernote.js. But it does work on the min file summernote.min.js
For newbies, if you switch to the .min file, you will also need to change header.tpl to call summernote.min.js
For newbies, if you switch to the .min file, you will also need to change header.tpl to call summernote.min.js
Who is online
Users browsing this forum: No registered users and 266 guests