Make WordPress Core

Ticket #25903: wp-tinymce-scheme.varcleenup.diff

File wp-tinymce-scheme.varcleenup.diff, 2.1 KB (added by jorbin, 12 years ago)
  • src/wp-includes/js/tinymce/wp-tinymce-schema.js

     
    386386         * @param {Object} settings Name/value settings object.
    387387         */
    388388        tinymce.html.Schema = function(settings) {
    389                 var self = this, elements = {}, children = {}, patternElements = [], validStyles, schemaItems;
    390                 var whiteSpaceElementsMap, selfClosingElementsMap, shortEndedElementsMap, boolAttrMap, blockElementsMap, nonEmptyElementsMap, customElementsMap = {};
     389                var self = this, elements = {}, children = {}, patternElements = [], validStyles, schemaItems,
     390                        whiteSpaceElementsMap, selfClosingElementsMap, shortEndedElementsMap, boolAttrMap, blockElementsMap,
     391                        textBlockElementsMap, nonEmptyElementsMap, customElementsMap = {};
    391392
    392393                // Creates an lookup table map object for the specified option or the default value
    393394                function createLookupTable(option, default_value, extend) {
     
    451452                // Parses the specified valid_elements string and adds to the current rules
    452453                // This function is a bit hard to read since it's heavily optimized for speed
    453454                function addValidElements(valid_elements) {
    454                         var ei, el, ai, al, yl, matches, element, attr, attrData, elementName, attrName, attrType, attributes, attributesOrder,
    455                                 prefix, outputName, globalAttributes, globalAttributesOrder, transElement, key, childKey, value,
     455                        var ei, el, ai, al, matches, element, attr, attrData, elementName, attrName, attrType, attributes, attributesOrder,
     456                                prefix, outputName, globalAttributes, globalAttributesOrder, key, value,
    456457                                elementRuleRegExp = /^([#+\-])?([^\[\/]+)(?:\/([^\[]+))?(?:\[([^\]]+)\])?$/,
    457458                                attrRuleRegExp = /^([!\-])?(\w+::\w+|[^=:<]+)?(?:([=:<])(.*))?$/,
    458459                                hasPatternsRegExp = /[*?+]/;
     
    626627                                        }
    627628
    628629                                        // Add custom elements at span/div positions
    629                                         each(children, function(element, child) {
     630                                        each(children, function(element) {
    630631                                                if (element[cloneName])
    631632                                                        element[name] = element[cloneName];
    632633                                        });