javascript - WYSIWYG Ckeditor is removing several html tags -
Recently I am having trouble with CKD
It's very well in custom CMS Integrated, though it seems to separate some tags, most important: 'data-toggle' ,
'data-target' and all
fonts-awesom E CSS class
Given that I am using Bootstrap for the templateing engine, there is no such leak, why is this happening?
Example:
& lt; A class = "BTN BTN-block BTN-inverse" data-toggle = "model" data-target = "# download model" href = "#" & gt; Download trial & lt; / A & gt; becomes:
& lt; One class = "BTN BTN-block BTN-inverse" href = "#" & gt; Download trial & lt; / A & gt; Can anyone add a set of HTML defined tags in the ckditor? Or any other editor who will play well?
In your config.js file, you can be prevented by using any stripping flag
config.allowedContent = true; Reference:
Similar questions related to CSS classes:
CkEditor will still strip certain tags for advice. If this is happening, you can add it again to your config.js file.
Additional Disabled Content: 'Data-Toggle [*] {*}'
Comments
Post a Comment