WYSIWYG Editor Stripping Code

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
gdelorey@mitcs.com
Commander (CMDR)
Commander (CMDR)
Posts: 129
Joined: Thu Oct 19, 2006 5:33 pm

WYSIWYG Editor Stripping Code

Post by gdelorey@mitcs.com » Tue Feb 07, 2017 10:52 am

Hello -

We are trying to configure a CMS page (Website > Webpages) to hold dropdown navigation due to some custom menu options we're looking for. However, when we paste our bootstrap navbar code into the editor, the WYSIWYG tools are stripping chunks of the HTML out. Is there any way to modify the editor to leave any pasted code as-is?

Thanks,
Greg

gdelorey@mitcs.com
Commander (CMDR)
Commander (CMDR)
Posts: 129
Joined: Thu Oct 19, 2006 5:33 pm

Re: WYSIWYG Editor Stripping Code

Post by gdelorey@mitcs.com » Tue Feb 07, 2017 10:53 am

I should add - the reason we want to place it in a Webpages control is so that our client can manage the navigation without having to call us for changes...

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: WYSIWYG Editor Stripping Code

Post by AbleMods » Wed Feb 08, 2017 2:17 am

When pasting code into the HTML editor, don't do it directly into the inline editor on the page. Click the little HTML icon (next to the paintbrush) in the toolbar to open a popup. The popup gives you an edit window of the raw HTML - this is where you can paste your HTML.

The WYSIWYG will butcher most anything you paste into the inline editor.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: WYSIWYG Editor Stripping Code

Post by Katie » Wed Feb 08, 2017 3:46 am

I usually turn off the inline WYSIWYG editor via the Configure > Store > General settings page. If you're not using it, then it's just one more step to take.
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

gdelorey@mitcs.com
Commander (CMDR)
Commander (CMDR)
Posts: 129
Joined: Thu Oct 19, 2006 5:33 pm

Re: WYSIWYG Editor Stripping Code

Post by gdelorey@mitcs.com » Wed Feb 08, 2017 5:23 am

Hi Joe & Katie -

Thanks for your replies. Sorry for not explaining that better - I wasn't pasting into the WYSIWYG editor window, but the HTML window directly from the wysiwyg editor as Joe suggests. I've attached two screenshots showing the before save and after save of my code - looks to be pulling the <nav> tag out.

Thanks,
Greg

gdelorey@mitcs.com
Commander (CMDR)
Commander (CMDR)
Posts: 129
Joined: Thu Oct 19, 2006 5:33 pm

Re: WYSIWYG Editor Stripping Code

Post by gdelorey@mitcs.com » Wed Feb 15, 2017 11:33 am

Hi AC -

Just checking in on this - have you seen this before or have any thoughts on how to prevent the removal of code?

Thanks!
Greg

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: WYSIWYG Editor Stripping Code

Post by AbleMods » Thu Feb 16, 2017 2:10 am

No I've never seen it happen before. I didn't realize the html editor did any grooming of the content at all...wouldn't think it should be doing that.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

gdelorey@mitcs.com
Commander (CMDR)
Commander (CMDR)
Posts: 129
Joined: Thu Oct 19, 2006 5:33 pm

Re: WYSIWYG Editor Stripping Code

Post by gdelorey@mitcs.com » Thu Mar 30, 2017 9:53 am

Hello -

Just checking up on this - any way to customize the implementation of the editor to allow these tags?

Thanks!
Greg

User avatar
tripleW
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 46
Joined: Wed Oct 30, 2013 5:38 am

Re: WYSIWYG Editor Stripping Code

Post by tripleW » Fri Mar 31, 2017 7:22 am

Hi Greg,

I've noticed that the WYSIWIG won't save/recognize HTML5 tags. I just always have to disable it.

Since it's 3rd party software I don't know of a way to alter it.

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: WYSIWYG Editor Stripping Code

Post by Katie » Sun Apr 02, 2017 1:30 am

Hi,

We are using the TinyMCE integration for WYSIWYG support. I found a FAQ on how to enable HTML5, but I'm not sure where the code is applied.

https://www.tinymce.com/docs-3x//refere ... 3x@schema/

We are using their older version so I will put in a request to have the editor upgraded in a future release.

Katie
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

Post Reply