If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / Addon Admin Tools / New CKEditor content stripping

New CKEditor content stripping

Started by swguy on 11 Sep 2024, 7:28 PM · Views: 1,165

Results 1 to 3 of 3
11 Sep 2024, 7:28 PM
#1
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Post #1 by swguy

When you open an EZ Page for editing with CKEditor, if it has an iframe to display video (for example), the Editor simply silently clobbers that block of HTML. If you're not paying attention, as soon as you save you lose your content.

Curious to see if someone has built a check for conditions like this, or has anyone had success buying the commercial version of CKEditor? The fact that they don't just list a price ("call for a quote!") makes me a bit nervous.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

16 Sep 2024, 6:23 AM
#2
shop_suey avatar

shop_suey

Zen Follower

Join Date:
Feb 2014
Location:
Germany
Posts:
375
Plugin Contributions:
0

Post #2 by shop_suey

It will break content for non-video iframes too.
For EZ Pages and iframes just use the Plain Text editor.

Even worse is self hosted (non-iframe) html5 video. Even the plain text editor will break content. Only solution for define pages is to upload the edited file via FTP.
I'm not sure whether inserted js code will break (just don't remember anymore). I stopped to edit complex define pages e.g. the frontpage a long time ago within zen cart because of these problems.

roller-aus-blech.de
Selling on eBay? Use the fee calculator: https://webconcept.one/en/ebay-fee-calculator/

17 Sep 2024, 3:09 PM
#3
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,908
Plugin Contributions:
23

Post #3 by dbltoe

Also, one of the major changes for me is links. Many of our sites use a popup window to add info to product descriptions.

FYI, if you want to add such to a description with the new CKEditor, you can use something like:

<a href="/images/large/PS-001_LRG.jpg" onclick="window.open(this.href, '', 'resizable=no,status=no,location=no,toolbar=no,menubar=no,fullscreen=no,scrollbars=no,dependent=no,width=420,height=420'); return false;">Small Craft Navigation Aid</a>

Note that there are lots of options but we currently only set the width and height for a desktop.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com