Hello.
I have some problem with CKEditor in Drupal: when I paste source code of special script via CKEditor, this code after saving has been trimmed.
For example:
<!-- Yandex.Metrika counter -->
<script type="text/javascript">
(function (d, w, c) {
(w[c] = w[c] || []).push(function() {
try {
w.yaCounter21128653 = new Ya.Metrika({id:21128653,
webvisor:true,
clickmap:true,
trackLinks:true,
accurateTrackBounce:true});
} catch(e) { }
});var n = d.getElementsByTagName("script")[0],
s = d.createElement("script"),
f = function () { n.parentNode.insertBefore(s, n); };
s.type = "text/javascript";
s.async = true;
s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js";if (w.opera == "[object Opera]") {
d.addEventListener("DOMContentLoaded", f, false);
} else { f(); }
})(document, window, "yandex_metrika_callbacks");
</script>
<noscript><div><img src="//mc.yandex.ru/watch/21128653" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
THIS CODE AFTER SAVING:
<!-- Yandex.Metrika counter --><noscript><div><img src="//mc.yandex.ru/watch/21128653" style="position:absolute; left:-9999px;" alt="" /></div></noscript><!-- /Yandex.Metrika counter -->
What is most interesting, even if I using standart drupal plain text editor when module CKEditor is active, the bug repeats. So I must only turn off CKEditor for use this script :(
This feature (script) is very important for my site, because it's a part of web-site analizing service (http://metrika.yandex.ru).
CKEditor |
ver 7.x-1.13, Drupal 7.x, Full html mode, Setting "Пропускать только разрешенные HTML-теги" (Pass only allowed HTML-tags) is turn off. |
Have you tried turning off
Have you tried turning off Advance Content Filter?
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
Thanks
It's a good idea :)