Post by Frens » Tue Mar 28, 2023 3:22 am

Hi,

Sample:
Page about us

In ckeditor add the class class="img-responsive" to a image but when save its not saved.

opencart-3.0.3.8
Last edited by Frens on Tue Mar 28, 2023 9:23 pm, edited 1 time in total.

Use OC -3.0.3.8 and 4.0.1.1 & default theme


Active Member

Posts

Joined
Sat Apr 20, 2013 10:48 pm

Post by by mona » Tue Mar 28, 2023 4:23 am

As a wild guess you are saving in code mode and using the term "ck editor" like people use the term "hoover" ?

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by JNeuhoff » Tue Mar 28, 2023 6:14 pm

There is no CKEditor in OpenCart 3. It uses the Summernote editor. Please provide more details, as per the forum rules.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by Frens » Tue Mar 28, 2023 9:14 pm

In
admin/index.php?route=catalog/information/edit&user_token=....

there is a editor.

So i add a image like:

<img src="https://mysite/OC/image/catalog/test/test.jpg">


Wil ad a clas named : img-responsive

<img class="img-responsive" src="https://mysite/OC/image/catalog/test/test.jpg">

But when saved code not save,


i thought it was ck editor but is summernote ;)

Use OC -3.0.3.8 and 4.0.1.1 & default theme


Active Member

Posts

Joined
Sat Apr 20, 2013 10:48 pm

Post by by mona » Tue Mar 28, 2023 10:59 pm

by mona wrote:
Tue Mar 28, 2023 4:23 am
As a wild guess you are saving in code mode
ok summernote great.
Please send a screenshot of the code you are changing and a second of the same screen as you press send.
ie if the editor screen is black (code mode) - it will not save - if the editor screen is white (preview mode) it should save

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by JNeuhoff » Tue Mar 28, 2023 11:04 pm

As I said, we can't help you until you provide the proper details as required by forum rules, including the exact OC version.
In OC 3.0.x.x_Maintenance (based on 3.0.3.8, with PHP 8 support and bugfixes) this is not an issue.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by by mona » Tue Mar 28, 2023 11:15 pm

@ JNeuhoff
Maybe the maintenance branch should have 3.0.3.8 (Maintenance) printed on the bottom and not just 3.0.3.8 so as not to confuse ? Just an idea

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by Frens » Fri Mar 31, 2023 3:09 pm

OC v is opencart-3.0.3.8


Admin > Information > About us

When ad the class > not saving
Last edited by Frens on Fri Mar 31, 2023 6:03 pm, edited 1 time in total.

Use OC -3.0.3.8 and 4.0.1.1 & default theme


Active Member

Posts

Joined
Sat Apr 20, 2013 10:48 pm

Post by ADD Creative » Fri Mar 31, 2023 4:47 pm

You have to switch out of code view to save. See the link below for more details and a possible workaround.

viewtopic.php?t=230710

www.add-creative.co.uk


Expert Member

Posts

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

Post by Frens » Fri Mar 31, 2023 5:58 pm

Thanks for help

Not saving in the code view was the solution

Use OC -3.0.3.8 and 4.0.1.1 & default theme


Active Member

Posts

Joined
Sat Apr 20, 2013 10:48 pm

Post by Frens » Fri Mar 31, 2023 11:52 pm

Same problem in theme editor/

When i add some code to sample checkout.twig and save .
ther is a message like > You've updated themes!

When refres the page the code is not saved.

(OC -3.0.3.8)

Use OC -3.0.3.8 and 4.0.1.1 & default theme


Active Member

Posts

Joined
Sat Apr 20, 2013 10:48 pm

Post by by mona » Sat Apr 01, 2023 12:14 am

by mona wrote:
Tue Mar 28, 2023 10:59 pm
by mona wrote:
Tue Mar 28, 2023 4:23 am
As a wild guess you are saving in code mode
If the editor screen is black (code mode) - it will not save - if the editor screen is white (preview mode) it should save
If the editor screen is black (code mode) - it will not save - if the editor screen is white (preview mode) it should save

It will be in every place that uses summernote (the editor)
https://www.google.com/search?q=bug+in+ ... +code+mode

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by Frens » Sat Apr 01, 2023 1:06 am

Its Black :-[

Use OC -3.0.3.8 and 4.0.1.1 & default theme


Active Member

Posts

Joined
Sat Apr 20, 2013 10:48 pm

Post by by mona » Sat Apr 01, 2023 1:38 am

From another post .. but see the button </>
use it to swap from a black to a white screen and visa versa

EDIT in a black screen
SAVE in a white screen

Attachments

Screen Shot 2023-03-29 at 12.13.22.png

Screen Shot 2023-03-29 at 12.13.22.png (68.21 KiB) Viewed 1885 times

Screen Shot 2023-03-29 at 12.13.14.png

Screen Shot 2023-03-29 at 12.13.14.png (112.35 KiB) Viewed 1885 times


DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by Frens » Sat Apr 01, 2023 1:49 am

Hi
Thanks its ok now
see alse message above from ADD Creative

My last question consermed the Twig editor , also not save the code . ( theme editor)

Attachments

checkout.JPG

checkout.JPG (77.98 KiB) Viewed 1873 times


Use OC -3.0.3.8 and 4.0.1.1 & default theme


Active Member

Posts

Joined
Sat Apr 20, 2013 10:48 pm
Who is online

Users browsing this forum: No registered users and 101 guests