Opened 5 years ago

Closed 5 years ago

#12397 closed Bug (invalid)

removes <ins> Tag even with allowedContent=true

Reported by: robin Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

Ckeditor removes <ins></ins> tags even with the config.allowedContent=true

Tag in question is Google Adsense's tag. Exemple : <ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-4376438685023602" data-ad-slot="3327144465"></ins>

Sometimes it isn't deleted but in most of times it is deleted when passing from source mode to "visual" mode.

Exemple #1 :

  • in source mode, paste :

<ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-4376438685023602" data-ad-slot="3327144465"></ins>

  • it deleted after passing to visual mode.

Change History (2)

comment:1 Changed 5 years ago by robin

It seems to not be deleted if there is something between <ins> and </ins>.

Exemple : <ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-4376438685023602" data-ad-slot="3327144465">&nbsp;</ins>

comment:2 Changed 5 years ago by Piotrek Koszuliński

Resolution: invalid
Status: newclosed
Version: 4.4.3

Editor removes empty inline tags regardless of ACF, because empty inline tags are not editable, so they are not valid for purpose of editing.

You can remove ins tag from http://docs.ckeditor.com/#!/api/CKEDITOR.dtd-property-S-removeEmpty to prevent this. You'll find many solutions in Google.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy