Post by SkyD » Tue Dec 20, 2016 2:35 am

I find wysiwyg editor frustrating, I can't quiet seem to figure out how to get open cart to run in just a basic html editor with no fluff just code.

Does anybody have a solution or Extension they can recommend for this?

Thank You Kindly
SkyD

New member

Posts

Joined
Tue Dec 20, 2016 2:31 am

Post by cyclops12 » Tue Dec 20, 2016 5:56 pm

What about This one

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by thekrotek » Wed Dec 21, 2016 12:55 am

SkyD wrote:I find wysiwyg editor frustrating, I can't quiet seem to figure out how to get open cart to run in just a basic html editor with no fluff just code.
You mean, just a text area? You can simply switch to source code in Summernote.
cyclops12 wrote:What about This one
Isn't CKEditor is also a WYSIWYG?:-)

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 cyclops12 » Wed Dec 21, 2016 3:01 am

thekrotek wrote:
cyclops12 wrote:What about This one
Isn't CKEditor is also a WYSIWYG?:-)
Havent used it myself just remember others saying it was alot better than the summernote editor
But it does say it has a built-in HTML-editor

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by Johnathan » Thu Dec 22, 2016 11:25 pm

CKEditor and Summernote are both WYSIWYG editors, and both have an HTML source mode. OpenCart used to use CKEditor, then switched to Summernote in OpenCart 2.0. Personally, I like Summernote better than CKEditor -- the source code generated by CKEditor was horrendous, though I don't know if that's improved in newer versions. They're fairly equal in terms of features, though some people do like CKEditor better.

However, it seems like SkyD wants to just turn off Summernote, in which case the easiest way is to just rename the library (so the link breaks, and won't load anything in the admin). To do that you'd rename this file to something else, like summernote.js_DISABLED:

/admin/view/javascript/summernote/summernote.js

If you do that you probably also want to expand the textarea fields so they're a bit larger, so you'd add some styling like this somewhere in the /admin/view/stylesheet/stylesheet.css file:

Code: Select all

textarea {
	height: 300px !important;
}

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by thekrotek » Sat Dec 24, 2016 6:08 am

I'm in the same boat with Johnathan: Summernote's code is WAY cleaner, than CKEditor's. Probably, because Summernote is more simple.

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 michael2820 » Sat Jan 07, 2017 6:53 pm

Johnathan wrote:the source code generated by CKEditor was horrendous
You can allow CKeditor to KEEP the code, see my post here about configuring CKeditor to allow and keep html code and "sourcedialog mode".

I am 65 and have been using Frontpage for many years and CKeditor for many years and similar critics: both editors change html code by default. It is bad, that they both do that. It is bad, that CK by default NOT allow html code in source view. I admit that, but if you know how to change that, CKeditor can be customized much better.

--- please reply only with verified data, that is: no 'I think', 'maybe' etc. ---


User avatar
Active Member

Posts

Joined
Sun May 15, 2011 8:16 pm
Location - Denmark OC 2102

Post by IP_CAM » Sun Jan 08, 2017 12:09 am

Just to mention it, some Extensions exist for Summernote Editors!
Ernie
---
Hide the Editor in HTML Modules
This simple OCMOD will add a checkbox above each of the description editors, once checked and saved the Summernote editor will be disabled. This allows you to freely add in HTML, CSS and JavaScript without the editor removing or reformatting it.
https://www.opencart.com/index.php?rout ... n_id=27750
---
Summernote Paste Plain Text
Whit this extension you can copy any text from any site or from word and it will paste it as a plain text which is easy to edit. Pasted text will be un-stylized thus the user does not have to remove the style or html commands.
https://www.opencart.com/index.php?rout ... n_id=25675
---
Summernote Editor Full Toolbar
Summernote editor all toolbar buttons are activated. Also added codeview in codemirror and syntax highlight button support.
https://www.opencart.com/index.php?rout ... n_id=24953
---

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 SkyD » Sun Jan 08, 2017 1:10 am

IP_CAM wrote:Just to mention it, some Extensions exist for Summernote Editors!
Ernie
---
Hide the Editor in HTML Modules
This simple OCMOD will add a checkbox above each of the description editors, once checked and saved the Summernote editor will be disabled. This allows you to freely add in HTML, CSS and JavaScript without the editor removing or reformatting it.
https://www.opencart.com/index.php?rout ... n_id=27750

---
This is exactly what i needed but it doesn't work for 2.3.0.2

Thank You though :)

New member

Posts

Joined
Tue Dec 20, 2016 2:31 am

Post by cyclops12 » Sun Jan 08, 2017 3:06 am

Here you go SkyD....

Edited to work in 2.3.0.2

Attachments


Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by SkyD » Mon Jan 09, 2017 8:54 am

cyclops12 wrote:Here you go SkyD....

Edited to work in 2.3.0.2

Hello,
I must be missing something, i installed it and nothing happened, i check under modifications and it appears but there is no extensions or changes to my cart other then that.
Suggestions?

Thank You

New member

Posts

Joined
Tue Dec 20, 2016 2:31 am

Post by cyclops12 » Mon Jan 09, 2017 6:16 pm

All that extension does is remove the editor in html modules
If you are using an html module then all the editor buttons that normally appear along the top are hidden.
Isnt that what you wanted??

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by SkyD » Wed Jan 11, 2017 1:50 am

cyclops12 wrote:All that extension does is remove the editor in html modules
If you are using an html module then all the editor buttons that normally appear along the top are hidden.
Isnt that what you wanted??
Exactly what i wanted, but nothing happened or changed when I installed the modifcation.

New member

Posts

Joined
Tue Dec 20, 2016 2:31 am

Post by cyclops12 » Wed Jan 11, 2017 2:19 am

I installed this on a default 2.3.0.2 version....
This is the html module without the extension installed
without_ext.JPG

without_ext.JPG (44.18 KiB) Viewed 6229 times

This is with the extension installed
with_ext.JPG

with_ext.JPG (43.18 KiB) Viewed 6229 times

And this is the result of clicking on the save option
ext_saved.JPG

ext_saved.JPG (36.7 KiB) Viewed 6229 times

If it doesnt work for you then perhaps you have another mod that is controlling one of the files

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by SkyD » Mon Jan 16, 2017 11:20 pm

I have installed REES46, i guess thats the reason.
Thank you so much for that though its awesome that you went through all that trouble for me!

Thank You

New member

Posts

Joined
Tue Dec 20, 2016 2:31 am
Who is online

Users browsing this forum: No registered users and 7 guests