Page 1 of 1

[SOLVED] - Product description editor not wrapping in code view - Version 3.0.3.2

Posted: Sat Mar 28, 2020 12:10 pm
by jrunique
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.

Re: Product description editor not wrapping in code view - Version 3.0.3.2

Posted: Sat Mar 28, 2020 1:42 pm
by thekrotek
In admin/view/javascript/summernote/opencart.js file add

lineWrapping: true,

AFTER

lineNumbers: true,

Re: Product description editor not wrapping in code view - Version 3.0.3.2

Posted: Sat Mar 28, 2020 4:40 pm
by jrunique
Thank you very much for your help, that line of code has fixed it. :)

Re: [SOLVED] - Product description editor not wrapping in code view - Version 3.0.3.2

Posted: Fri Mar 12, 2021 4:02 pm
by leekojr
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!

Re: [SOLVED] - Product description editor not wrapping in code view - Version 3.0.3.2

Posted: Thu Jan 27, 2022 11:29 am
by tdaubs
Make sure to clear out your browser cache after making this change else you won't see any difference.