Post by jrunique » Sat Mar 28, 2020 12:10 pm

Version 3.0.3.2
Hello, I am having difficulty editing product descriptions with the built-in code editor. In previous versions the code would automatically wrap so you can see everything you are working on. Now, the code is listed as a single continuous line so I have to scroll right and left to make edits. I have attached a sample of the code view compared to a previous version of OC. I have pasted the same text in standard view to show how each version renders the code. (Lastest version adds <div> rather than <p>). I would appreciate any help you can give me.

Attachments

compare.jpg

compare.jpg (235.92 KiB) Viewed 887 times


New member

Posts

Joined
Mon Aug 15, 2016 1:47 pm

Post by thekrotek » Sat Mar 28, 2020 1:42 pm

In admin/view/javascript/summernote/opencart.js file add

lineWrapping: true,

AFTER

lineNumbers: true,

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by jrunique » Sat Mar 28, 2020 4:40 pm

Thank you very much for your help, that line of code has fixed it. :)

New member

Posts

Joined
Mon Aug 15, 2016 1:47 pm

Post by leekojr » Fri Mar 12, 2021 4:02 pm

Hi,
I am using 3.0.2.0, I have the same problem.
I've tried the way you said above but it is not working for me...
Could you please tell me if I miss anything? or how can I fix the problem in OC 3.0.2.0
Thanks!

Newbie

Posts

Joined
Mon Feb 06, 2017 9:45 pm

Post by tdaubs » Thu Jan 27, 2022 11:29 am

Make sure to clear out your browser cache after making this change else you won't see any difference.

Image
Opencart Support . Opencart Galaxy . Buy Me a Coffee?


User avatar
Active Member

Posts

Joined
Fri Apr 08, 2011 4:51 am
Location - Southern California
Who is online

Users browsing this forum: No registered users and 264 guests