I want to add extra CSS tags to the HTML module, but seems that the code is always filtered out.
I can add text, that's no pro but simple CSS in the code is filtered out.
this wasn't the case in 2.x.
How can I disable this filter?
There was a bug in the Summernote editor where you could not save in code view. Try switching off code view before saving.
I added the following just before the last }); at the end of the admin/view/javascript/summernote/opencart.js. It may work for you, but I have not tested in any other versions.
I added the following just before the last }); at the end of the admin/view/javascript/summernote/opencart.js. It may work for you, but I have not tested in any other versions.
Code: Select all
$('.note-codable').on('blur', function() {
var sn = $(this).closest('.note-editor').siblings('textarea');
if (sn.summernote('codeview.isActivated')) {
sn.val(sn.summernote('code'));
}
});
ok inserted and emptied cache for that that extra code and works perfect now !
Better to insert the code indeed Thx, I would probably have made many mistakes otherwise
update: hm not working on other pages, I'll keep you informed.
Better to insert the code indeed Thx, I would probably have made many mistakes otherwise
update: hm not working on other pages, I'll keep you informed.
Who is online
Users browsing this forum: No registered users and 110 guests