Ticket #25903: wp-tinymce-scheme.varcleenup.diff
| File wp-tinymce-scheme.varcleenup.diff, 2.1 KB (added by , 12 years ago) |
|---|
-
src/wp-includes/js/tinymce/wp-tinymce-schema.js
386 386 * @param {Object} settings Name/value settings object. 387 387 */ 388 388 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 = {}; 391 392 392 393 // Creates an lookup table map object for the specified option or the default value 393 394 function createLookupTable(option, default_value, extend) { … … 451 452 // Parses the specified valid_elements string and adds to the current rules 452 453 // This function is a bit hard to read since it's heavily optimized for speed 453 454 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, 456 457 elementRuleRegExp = /^([#+\-])?([^\[\/]+)(?:\/([^\[]+))?(?:\[([^\]]+)\])?$/, 457 458 attrRuleRegExp = /^([!\-])?(\w+::\w+|[^=:<]+)?(?:([=:<])(.*))?$/, 458 459 hasPatternsRegExp = /[*?+]/; … … 626 627 } 627 628 628 629 // Add custom elements at span/div positions 629 each(children, function(element , child) {630 each(children, function(element) { 630 631 if (element[cloneName]) 631 632 element[name] = element[cloneName]; 632 633 });