Вход Регистрация
Файл: library/wysihtml5/src/dom/insert_css.js
Строк: 28
<?php
wysihtml5
.dom.insertCSS = function(rules) {
  
rules rules.join("n");
  
  return {
    
into: function(doc) {
      var 
styleElement doc.createElement("style");
      
styleElement.type "text/css";
      
      if (
styleElement.styleSheet) {
        
styleElement.styleSheet.cssText rules;
      } else {
        
styleElement.appendChild(doc.createTextNode(rules));
      }
      
      var 
link doc.querySelector("head link");
      if (
link) {
        
link.parentNode.insertBefore(styleElementlink);
        return;
      } else {
        var 
head doc.querySelector("head");
        if (
head) {
          
head.appendChild(styleElement);
        }
      }
    }
  };
};
?>
Онлайн: 3
Реклама