I am using the CKeditor module only as an administrator, so I don't need any security protection.
When I add Google Adsense code into a block, CKeditor stripes away the <ins>
tag. I am aware of this solution though I rather want CKeditor to not stripe away anything. In other words: I don't want to whitelist any tags, I just want to be sure that nothing gets deleted. Is there a solution for this?
Another way might be: Can I configure the Switch to plain text editor toggle to START with a plain text editor as default, allowing me to Switch to rich text editor?
UPDATE: Some additional info: I'm using the latest version of CKeditor, loaded from: //cdn.ckeditor.com/4.4.3/full-all
The profile in use is "Full HTML". In its settings at ADVANCED CONTENT FILTER "disabled" is checked. In ADVANCED OPTIONS, Custom JavaScript configuration, I have set:
config.fillEmptyBlocks = false;
config.autoParagraph = false;
config.allowedContent = true;
To reproduce the problem, just toggle to plain text, paste the following HTML, toggle to rich text and to plain text again. Only "foo bar" will remain.
foo <ins class="adsbygoogle" style="display:inline-block" ></ins> bar
<ins>
tag solves the problem. If that's true, you could use<ins class="adsbygoogle" style="display:inline-block" > </ins>
and completely solve the problem. Alternatively, if you don't need to rearrange the ad positions, I'd consider inserting the code directly in the theme template files.