tinymce.full.js
function (cssText) {
        var self = this, doc = self.doc, head, styleElm;

        // Prevent inline from loading the same styles twice
        if (self !== DOMUtils.DOM && doc === document) {
          var addedStyles = DOMUtils.DOM.addedStyles;

          addedStyles = addedStyles || [];
          if (addedStyles[cssText]) {
            return;
          }

          addedStyles[cssText] = true;
          DOMUtils.DOM.addedStyles = addedStyles;
        }

        // Create style element if needed
        styleElm = doc.getElementById('mceDefaultStyles');
        if (!styleElm) {
          styleElm = doc.createElement('style');
          styleElm.id = 'mceDefaultStyles';
          styleElm.type = 'text/css';

          head = doc.getElementsByTagName('head')[0];
          if (head.firstChild) {
            head.insertBefore(styleElm, head.firstChild);
          } else {
            head.appendChild(styleElm);
          }
        }

        // Append style data to old or new style element
        if (styleElm.styleSheet) {
          styleElm.styleSheet.cssText += cssText;
        } else {
          styleElm.appendChild(doc.createTextNode(cssText));
        }
      }
function (cssText) {
        var self = this, doc = self.doc, head, styleElm;

        // Prevent inline from loading the same styles twice
        if (self !== DOMUtils.DOM && doc === document) {
          var addedStyles = DOMUtils.DOM.addedStyles;

          addedStyles = addedStyles || [];
          if (addedStyles[cssText]) {
            return;
          }

          addedStyles[cssText] = true;
          DOMUtils.DOM.addedStyles = addedStyles;
        }

        // Create style element if needed
        styleElm = doc.getElementById('mceDefaultStyles');
        if (!styleElm) {
          styleElm = doc.createElement('style');
          styleElm.id = 'mceDefaultStyles';
          styleElm.type = 'text/css';

          head = doc.getElementsByTagName('head')[0];
          if (head.firstChild) {
            head.insertBefore(styleElm, head.firstChild);
          } else {
            head.appendChild(styleElm);
          }
        }

        // Append style data to old or new style element
        if (styleElm.styleSheet) {
          styleElm.styleSheet.cssText += cssText;
        } else {
          styleElm.appendChild(doc.createTextNode(cssText));
        }
      }
function ( cssText ) { var self = this , doc = self . doc , head , styleElm ; // Prevent inline from loading the same styles twice if ( self !== DOMUtils . DOM && doc === document ) { var addedStyles = DOMUtils . DOM . addedStyles ; addedStyles = addedStyles || [ ] ; if ( addedStyles [ cssText ] ) { return ; } addedStyles [ cssText ] = true ; DOMUtils . DOM . addedStyles = addedStyles ; } // Create style element if needed styleElm = doc . getElementById ( 'mceDefaultStyles' ) ; if ( ! styleElm ) { styleElm = doc . createElement ( 'style' ) ; styleElm . id = 'mceDefaultStyles' ; styleElm . type = 'text/css' ; head = doc . getElementsByTagName ( 'head' ) [ 0 ] ; if ( head . firstChild ) { head . insertBefore ( styleElm , head . firstChild ) ; } else { head . appendChild ( styleElm ) ; } } // Append style data to old or new style element if ( styleElm . styleSheet ) { styleElm . styleSheet . cssText += cssText ; } else { styleElm . appendChild ( doc . createTextNode ( cssText ) ) ; } }
Adds a style element at the top of the document with the specified cssText content.

@method addStyle
@param {String} cssText CSS Text style to add to top of head of document.
Adds a style element at the top of the document with the specified cssText content .