Post by trickyzxr » Wed Mar 25, 2015 5:36 am

Hi,

I am using code in my product description. When I add an item and change to the source code I see the default <p>&nbsp;</p> or what ever it is. I can then paste my code in and save. Product shows fine when looking in the store but if I go back to admin to edit I can't switch to source code and the html show in a small scrollable text box above the main description box making it very hard to edit the code. Attached screenshot with arrow pointing to text box when I go into the product editing without trying to view source code.

Has anyone come across this problem and know has to resolve please? Thanks.

Attachments

screenshot.jpg

screenshot.jpg (37.4 KiB) Viewed 14993 times


New member

Posts

Joined
Tue Mar 06, 2012 11:46 am

Post by trickyzxr » Wed Mar 25, 2015 5:51 am

OK just to let you know sorted it. I added code bit by bit and found the below was causing the issue! So removed. Obviously rem lines not liked. Simples!!!

Code: Select all

<!-- *************************************************************************************-->
var image  = "imagename";
<!-- *************************************************************************************-->
Last edited by straightlight on Wed Mar 04, 2020 7:08 am, edited 1 time in total.
Reason: Added code tags.

New member

Posts

Joined
Tue Mar 06, 2012 11:46 am

Post by trickyzxr » Wed Mar 25, 2015 6:13 am

OK spoke to soon!

If you edit / add product. Then switch to code view paste in code and save. Now edit again and if you switch to code view then back to normal view and save and then go back to edit the little box appears again.

So it looks like if you edit and switch to code view don't switch back to normal view instead save and then go back in and the little text box no longer appears.

SO don't keep swapping back and forth switch once edit then save and go back in.

is this a bug?

New member

Posts

Joined
Tue Mar 06, 2012 11:46 am

Post by PatrickG » Wed Mar 25, 2015 4:28 pm

Are you using the standard editor and have you tried using an alternative editor such as CKEditor? The only thing to be wary of with CKEditor though is that it does try to be too helpful at times in closing and adding tags when you don't want them!

New member

Posts

Joined
Wed Mar 18, 2015 10:32 pm

Post by trickyzxr » Thu Mar 26, 2015 3:47 am

Hi Patrick

Thanks for your reply I am using Dreamweaver CS5 to create the code so I can test it before loading. It is just weird the way it will paste in ok then view correctly the first time but if swapping to source view screws the page up when looking again. I can see in the oc_product dB it replaces all the quotes etc with HTML & codes. I made sure I removed all the & and escape characters but still no joy!

New member

Posts

Joined
Tue Mar 06, 2012 11:46 am

Post by IP_CAM » Thu Mar 26, 2015 3:53 am

It a rather dangerous task to to use 'wysiwyg' HTML Generators, generally, to create html Source, to be placed into CODE. So, make sure, you only have clean real basic HTML Source, or then clean, directly 'included' CSS-Stuff, nothing else, possibly included, or even linked to where/whatever, by Dreamweaver.
Just an Idea, out of older days... ;)
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by trickyzxr » Tue Mar 31, 2015 1:45 pm

Indeed! So as long as you don't swap between source and normal view the small description box doesn't appear so just need to remember that.

New member

Posts

Joined
Tue Mar 06, 2012 11:46 am

Post by bluebrad » Mon Oct 10, 2022 8:56 am

im having the problem with

Code: Select all

<object id="tb-dis" data="https://hiddenurl.com/discription-html.php" width="100%" height="800px">Error</object>
im using this to create a static Description across 1000+ items that are similar. this way i can change 1 HTML file for may
if i live Source open and save it works. but if i close the product and come back or switch back to WISIWG mode it removes the object code.

New member

Posts

Joined
Tue Dec 05, 2017 2:49 pm


Post by ADD Creative » Mon Oct 10, 2022 5:24 pm

bluebrad wrote:
Mon Oct 10, 2022 8:56 am
im having the problem with

Code: Select all

<object id="tb-dis" data="https://hiddenurl.com/discription-html.php" width="100%" height="800px">Error</object>
im using this to create a static Description across 1000+ items that are similar. this way i can change 1 HTML file for may
if i live Source open and save it works. but if i close the product and come back or switch back to WISIWG mode it removes the object code.
It would be helpful if you stated your OpenCart version.

www.add-creative.co.uk


Guru Member

Posts

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

Users browsing this forum: No registered users and 48 guests