WYSIWYG Editor Stripping Code
-
- Commander (CMDR)
- Posts: 129
- Joined: Thu Oct 19, 2006 5:33 pm
WYSIWYG Editor Stripping Code
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
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
-
- Commander (CMDR)
- Posts: 129
- Joined: Thu Oct 19, 2006 5:33 pm
Re: WYSIWYG Editor Stripping Code
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...
Re: WYSIWYG Editor Stripping Code
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.
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
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
Re: WYSIWYG Editor Stripping Code
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
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support
-
- Commander (CMDR)
- Posts: 129
- Joined: Thu Oct 19, 2006 5:33 pm
Re: WYSIWYG Editor Stripping Code
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
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
-
- Commander (CMDR)
- Posts: 129
- Joined: Thu Oct 19, 2006 5:33 pm
Re: WYSIWYG Editor Stripping Code
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
Just checking in on this - have you seen this before or have any thoughts on how to prevent the removal of code?
Thanks!
Greg
Re: WYSIWYG Editor Stripping Code
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
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
-
- Commander (CMDR)
- Posts: 129
- Joined: Thu Oct 19, 2006 5:33 pm
Re: WYSIWYG Editor Stripping Code
Hello -
Just checking up on this - any way to customize the implementation of the editor to allow these tags?
Thanks!
Greg
Just checking up on this - any way to customize the implementation of the editor to allow these tags?
Thanks!
Greg
Re: WYSIWYG Editor Stripping Code
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.
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.
Re: WYSIWYG Editor Stripping Code
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
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
http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support