Post by godly75 » Mon Oct 15, 2018 9:23 pm

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?

Active Member

Posts

Joined
Fri Oct 27, 2017 1:21 am

Post by godly75 » Tue Oct 16, 2018 12:31 am

Any help on this?
It's really important that I can add video and other stuff to the text ...

Active Member

Posts

Joined
Fri Oct 27, 2017 1:21 am

Post by ADD Creative » Tue Oct 16, 2018 1:07 am

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.

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'));
		}
	});

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by godly75 » Tue Oct 16, 2018 3:09 am

ok thx good to know.
Correct I tested it (not the code) !
What version and when will it be updated?

Active Member

Posts

Joined
Fri Oct 27, 2017 1:21 am

Post by godly75 » Tue Oct 16, 2018 3:14 am

ok inserted and emptied cache for that that extra code and works perfect now ! :)
Better to insert the code indeed :D Thx, I would probably have made many mistakes otherwise :D

update: hm not working on other pages, I'll keep you informed.

Active Member

Posts

Joined
Fri Oct 27, 2017 1:21 am

Post by paulfeakins » Tue Oct 16, 2018 5:47 pm

ADD Creative wrote:
Tue Oct 16, 2018 1:07 am
you could not save in code view
::)

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: No registered users and 110 guests