Post by Girlinabillion » Sun Sep 08, 2019 12:10 am

Hello!

Is there a way to stop the HTML editor from adding "http://" in front of all the links created with the insert link button? I try to use relative links whenever possible on my site - especially while in development when the domain will change upon conversion to live.... and it's getting old having to manually type in the a href in source code view for every link-- not to mention, oftentimes making changes in the regular editor view will override my typed in a href and put the "http://" in front again, thus breaking all my links. And... I will be switching over to https once I go live-- so there's that as well. I just prefer relative links, and would like to use the insert link function like it was before in 1.5x. This is causing me so much extra grief and frustration.....

Also-- I'm using Journal 3 in case that changes anyone's response.

Thanks!
Amanda

New member

Posts

Joined
Sun Jun 02, 2013 12:08 pm

Post by cyclops12 » Sun Sep 08, 2019 12:37 am

It looks like this is set in admin/view/javascript/summernote/summernote.js
around line 4345
This is using defaullt theme, not sure if it will be different in Journal though

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by Girlinabillion » Sun Dec 22, 2019 11:58 am

cyclops12 wrote:
Sun Sep 08, 2019 12:37 am
It looks like this is set in admin/view/javascript/summernote/summernote.js
around line 4345
This is using defaullt theme, not sure if it will be different in Journal though
Thanks for the reply-- sorry, I didn't realize that the notifications aren't working on this forum, so I didn't realize someone had responded.

I tried commenting out those lines:

Code: Select all

      $.each(anchors, function (idx, anchor) {
        // if url doesn't match an URL schema, set http:// as default
        //linkUrl = /^[A-Za-z][A-Za-z0-9+-.]*\:[\/\/]?/.test(linkUrl) ?
        //  linkUrl : 'http://' + linkUrl;
But it didn't seem to affect it, so maybe Journal Theme does have it somewhere else. I'll submit a ticket and see.

Thanks!

New member

Posts

Joined
Sun Jun 02, 2013 12:08 pm

Post by JNeuhoff » Sun Dec 22, 2019 10:33 pm

You may want to get in touch with the Journal support on this, because the so-called Journal themes are not following OpenCart standards, and they are commercial software not even available from the OpenCart marketplace. E.g. there should be no need to replace the OpenCart Summernote or other features which aren't relevant to a web theme.

If the standard 'summernote.js' is used in OpenCart 3.0.3.2, then it's just a matter of commenting out the lines 4344 and 4345, as explained by Girlinabillion.

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 Girlinabillion » Mon Dec 23, 2019 1:13 am

JNeuhoff wrote:
Sun Dec 22, 2019 10:33 pm
You may want to get in touch with the Journal support on this, because the so-called Journal themes are not following OpenCart standards, and they are commercial software not even available from the OpenCart marketplace. E.g. there should be no need to replace the OpenCart Summernote or other features which aren't relevant to a web theme.

If the standard 'summernote.js' is used in OpenCart 3.0.3.2, then it's just a matter of commenting out the lines 4344 and 4345, as explained by Girlinabillion.
I submitted a ticket to Journal, so we'll see what they come back with. Journal theme has its whole own admin panel setup and might be using their own html editor. Hard to say.

Thanks guys :)

New member

Posts

Joined
Sun Jun 02, 2013 12:08 pm
Who is online

Users browsing this forum: No registered users and 7 guests