Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/wp-inclu.../js/tinymce/themes/inlite
File: theme.js
}
[1500] Fix | Delete
};
[1501] Fix | Delete
[1502] Fix | Delete
var getUiContainerDelta = function (ctrl) {
[1503] Fix | Delete
var uiContainer = getUiContainer(ctrl);
[1504] Fix | Delete
if (uiContainer && global$2.DOM.getStyle(uiContainer, 'position', true) !== 'static') {
[1505] Fix | Delete
var containerPos = global$2.DOM.getPos(uiContainer);
[1506] Fix | Delete
var dx = uiContainer.scrollLeft - containerPos.x;
[1507] Fix | Delete
var dy = uiContainer.scrollTop - containerPos.y;
[1508] Fix | Delete
return Option.some({
[1509] Fix | Delete
x: dx,
[1510] Fix | Delete
y: dy
[1511] Fix | Delete
});
[1512] Fix | Delete
} else {
[1513] Fix | Delete
return Option.none();
[1514] Fix | Delete
}
[1515] Fix | Delete
};
[1516] Fix | Delete
var setUiContainer = function (editor, ctrl) {
[1517] Fix | Delete
var uiContainer = global$2.DOM.select(editor.settings.ui_container)[0];
[1518] Fix | Delete
ctrl.getRoot().uiContainer = uiContainer;
[1519] Fix | Delete
};
[1520] Fix | Delete
var getUiContainer = function (ctrl) {
[1521] Fix | Delete
return ctrl ? ctrl.getRoot().uiContainer : null;
[1522] Fix | Delete
};
[1523] Fix | Delete
var inheritUiContainer = function (fromCtrl, toCtrl) {
[1524] Fix | Delete
return toCtrl.uiContainer = getUiContainer(fromCtrl);
[1525] Fix | Delete
};
[1526] Fix | Delete
var UiContainer = {
[1527] Fix | Delete
getUiContainerDelta: getUiContainerDelta,
[1528] Fix | Delete
setUiContainer: setUiContainer,
[1529] Fix | Delete
getUiContainer: getUiContainer,
[1530] Fix | Delete
inheritUiContainer: inheritUiContainer
[1531] Fix | Delete
};
[1532] Fix | Delete
[1533] Fix | Delete
var hasMouseWheelEventSupport = 'onmousewheel' in domGlobals.document;
[1534] Fix | Delete
var hasWheelEventSupport = false;
[1535] Fix | Delete
var classPrefix = 'mce-';
[1536] Fix | Delete
var Control, idCounter = 0;
[1537] Fix | Delete
var proto$1 = {
[1538] Fix | Delete
Statics: { classPrefix: classPrefix },
[1539] Fix | Delete
isRtl: function () {
[1540] Fix | Delete
return Control.rtl;
[1541] Fix | Delete
},
[1542] Fix | Delete
classPrefix: classPrefix,
[1543] Fix | Delete
init: function (settings) {
[1544] Fix | Delete
var self = this;
[1545] Fix | Delete
var classes, defaultClasses;
[1546] Fix | Delete
function applyClasses(classes) {
[1547] Fix | Delete
var i;
[1548] Fix | Delete
classes = classes.split(' ');
[1549] Fix | Delete
for (i = 0; i < classes.length; i++) {
[1550] Fix | Delete
self.classes.add(classes[i]);
[1551] Fix | Delete
}
[1552] Fix | Delete
}
[1553] Fix | Delete
self.settings = settings = global$4.extend({}, self.Defaults, settings);
[1554] Fix | Delete
self._id = settings.id || 'mceu_' + idCounter++;
[1555] Fix | Delete
self._aria = { role: settings.role };
[1556] Fix | Delete
self._elmCache = {};
[1557] Fix | Delete
self.$ = global$7;
[1558] Fix | Delete
self.state = new ObservableObject({
[1559] Fix | Delete
visible: true,
[1560] Fix | Delete
active: false,
[1561] Fix | Delete
disabled: false,
[1562] Fix | Delete
value: ''
[1563] Fix | Delete
});
[1564] Fix | Delete
self.data = new ObservableObject(settings.data);
[1565] Fix | Delete
self.classes = new ClassList(function () {
[1566] Fix | Delete
if (self.state.get('rendered')) {
[1567] Fix | Delete
self.getEl().className = this.toString();
[1568] Fix | Delete
}
[1569] Fix | Delete
});
[1570] Fix | Delete
self.classes.prefix = self.classPrefix;
[1571] Fix | Delete
classes = settings.classes;
[1572] Fix | Delete
if (classes) {
[1573] Fix | Delete
if (self.Defaults) {
[1574] Fix | Delete
defaultClasses = self.Defaults.classes;
[1575] Fix | Delete
if (defaultClasses && classes !== defaultClasses) {
[1576] Fix | Delete
applyClasses(defaultClasses);
[1577] Fix | Delete
}
[1578] Fix | Delete
}
[1579] Fix | Delete
applyClasses(classes);
[1580] Fix | Delete
}
[1581] Fix | Delete
global$4.each('title text name visible disabled active value'.split(' '), function (name) {
[1582] Fix | Delete
if (name in settings) {
[1583] Fix | Delete
self[name](settings[name]);
[1584] Fix | Delete
}
[1585] Fix | Delete
});
[1586] Fix | Delete
self.on('click', function () {
[1587] Fix | Delete
if (self.disabled()) {
[1588] Fix | Delete
return false;
[1589] Fix | Delete
}
[1590] Fix | Delete
});
[1591] Fix | Delete
self.settings = settings;
[1592] Fix | Delete
self.borderBox = BoxUtils.parseBox(settings.border);
[1593] Fix | Delete
self.paddingBox = BoxUtils.parseBox(settings.padding);
[1594] Fix | Delete
self.marginBox = BoxUtils.parseBox(settings.margin);
[1595] Fix | Delete
if (settings.hidden) {
[1596] Fix | Delete
self.hide();
[1597] Fix | Delete
}
[1598] Fix | Delete
},
[1599] Fix | Delete
Properties: 'parent,name',
[1600] Fix | Delete
getContainerElm: function () {
[1601] Fix | Delete
var uiContainer = UiContainer.getUiContainer(this);
[1602] Fix | Delete
return uiContainer ? uiContainer : funcs.getContainer();
[1603] Fix | Delete
},
[1604] Fix | Delete
getParentCtrl: function (elm) {
[1605] Fix | Delete
var ctrl;
[1606] Fix | Delete
var lookup = this.getRoot().controlIdLookup;
[1607] Fix | Delete
while (elm && lookup) {
[1608] Fix | Delete
ctrl = lookup[elm.id];
[1609] Fix | Delete
if (ctrl) {
[1610] Fix | Delete
break;
[1611] Fix | Delete
}
[1612] Fix | Delete
elm = elm.parentNode;
[1613] Fix | Delete
}
[1614] Fix | Delete
return ctrl;
[1615] Fix | Delete
},
[1616] Fix | Delete
initLayoutRect: function () {
[1617] Fix | Delete
var self = this;
[1618] Fix | Delete
var settings = self.settings;
[1619] Fix | Delete
var borderBox, layoutRect;
[1620] Fix | Delete
var elm = self.getEl();
[1621] Fix | Delete
var width, height, minWidth, minHeight, autoResize;
[1622] Fix | Delete
var startMinWidth, startMinHeight, initialSize;
[1623] Fix | Delete
borderBox = self.borderBox = self.borderBox || BoxUtils.measureBox(elm, 'border');
[1624] Fix | Delete
self.paddingBox = self.paddingBox || BoxUtils.measureBox(elm, 'padding');
[1625] Fix | Delete
self.marginBox = self.marginBox || BoxUtils.measureBox(elm, 'margin');
[1626] Fix | Delete
initialSize = funcs.getSize(elm);
[1627] Fix | Delete
startMinWidth = settings.minWidth;
[1628] Fix | Delete
startMinHeight = settings.minHeight;
[1629] Fix | Delete
minWidth = startMinWidth || initialSize.width;
[1630] Fix | Delete
minHeight = startMinHeight || initialSize.height;
[1631] Fix | Delete
width = settings.width;
[1632] Fix | Delete
height = settings.height;
[1633] Fix | Delete
autoResize = settings.autoResize;
[1634] Fix | Delete
autoResize = typeof autoResize !== 'undefined' ? autoResize : !width && !height;
[1635] Fix | Delete
width = width || minWidth;
[1636] Fix | Delete
height = height || minHeight;
[1637] Fix | Delete
var deltaW = borderBox.left + borderBox.right;
[1638] Fix | Delete
var deltaH = borderBox.top + borderBox.bottom;
[1639] Fix | Delete
var maxW = settings.maxWidth || 65535;
[1640] Fix | Delete
var maxH = settings.maxHeight || 65535;
[1641] Fix | Delete
self._layoutRect = layoutRect = {
[1642] Fix | Delete
x: settings.x || 0,
[1643] Fix | Delete
y: settings.y || 0,
[1644] Fix | Delete
w: width,
[1645] Fix | Delete
h: height,
[1646] Fix | Delete
deltaW: deltaW,
[1647] Fix | Delete
deltaH: deltaH,
[1648] Fix | Delete
contentW: width - deltaW,
[1649] Fix | Delete
contentH: height - deltaH,
[1650] Fix | Delete
innerW: width - deltaW,
[1651] Fix | Delete
innerH: height - deltaH,
[1652] Fix | Delete
startMinWidth: startMinWidth || 0,
[1653] Fix | Delete
startMinHeight: startMinHeight || 0,
[1654] Fix | Delete
minW: Math.min(minWidth, maxW),
[1655] Fix | Delete
minH: Math.min(minHeight, maxH),
[1656] Fix | Delete
maxW: maxW,
[1657] Fix | Delete
maxH: maxH,
[1658] Fix | Delete
autoResize: autoResize,
[1659] Fix | Delete
scrollW: 0
[1660] Fix | Delete
};
[1661] Fix | Delete
self._lastLayoutRect = {};
[1662] Fix | Delete
return layoutRect;
[1663] Fix | Delete
},
[1664] Fix | Delete
layoutRect: function (newRect) {
[1665] Fix | Delete
var self = this;
[1666] Fix | Delete
var curRect = self._layoutRect, lastLayoutRect, size, deltaWidth, deltaHeight, repaintControls;
[1667] Fix | Delete
if (!curRect) {
[1668] Fix | Delete
curRect = self.initLayoutRect();
[1669] Fix | Delete
}
[1670] Fix | Delete
if (newRect) {
[1671] Fix | Delete
deltaWidth = curRect.deltaW;
[1672] Fix | Delete
deltaHeight = curRect.deltaH;
[1673] Fix | Delete
if (newRect.x !== undefined) {
[1674] Fix | Delete
curRect.x = newRect.x;
[1675] Fix | Delete
}
[1676] Fix | Delete
if (newRect.y !== undefined) {
[1677] Fix | Delete
curRect.y = newRect.y;
[1678] Fix | Delete
}
[1679] Fix | Delete
if (newRect.minW !== undefined) {
[1680] Fix | Delete
curRect.minW = newRect.minW;
[1681] Fix | Delete
}
[1682] Fix | Delete
if (newRect.minH !== undefined) {
[1683] Fix | Delete
curRect.minH = newRect.minH;
[1684] Fix | Delete
}
[1685] Fix | Delete
size = newRect.w;
[1686] Fix | Delete
if (size !== undefined) {
[1687] Fix | Delete
size = size < curRect.minW ? curRect.minW : size;
[1688] Fix | Delete
size = size > curRect.maxW ? curRect.maxW : size;
[1689] Fix | Delete
curRect.w = size;
[1690] Fix | Delete
curRect.innerW = size - deltaWidth;
[1691] Fix | Delete
}
[1692] Fix | Delete
size = newRect.h;
[1693] Fix | Delete
if (size !== undefined) {
[1694] Fix | Delete
size = size < curRect.minH ? curRect.minH : size;
[1695] Fix | Delete
size = size > curRect.maxH ? curRect.maxH : size;
[1696] Fix | Delete
curRect.h = size;
[1697] Fix | Delete
curRect.innerH = size - deltaHeight;
[1698] Fix | Delete
}
[1699] Fix | Delete
size = newRect.innerW;
[1700] Fix | Delete
if (size !== undefined) {
[1701] Fix | Delete
size = size < curRect.minW - deltaWidth ? curRect.minW - deltaWidth : size;
[1702] Fix | Delete
size = size > curRect.maxW - deltaWidth ? curRect.maxW - deltaWidth : size;
[1703] Fix | Delete
curRect.innerW = size;
[1704] Fix | Delete
curRect.w = size + deltaWidth;
[1705] Fix | Delete
}
[1706] Fix | Delete
size = newRect.innerH;
[1707] Fix | Delete
if (size !== undefined) {
[1708] Fix | Delete
size = size < curRect.minH - deltaHeight ? curRect.minH - deltaHeight : size;
[1709] Fix | Delete
size = size > curRect.maxH - deltaHeight ? curRect.maxH - deltaHeight : size;
[1710] Fix | Delete
curRect.innerH = size;
[1711] Fix | Delete
curRect.h = size + deltaHeight;
[1712] Fix | Delete
}
[1713] Fix | Delete
if (newRect.contentW !== undefined) {
[1714] Fix | Delete
curRect.contentW = newRect.contentW;
[1715] Fix | Delete
}
[1716] Fix | Delete
if (newRect.contentH !== undefined) {
[1717] Fix | Delete
curRect.contentH = newRect.contentH;
[1718] Fix | Delete
}
[1719] Fix | Delete
lastLayoutRect = self._lastLayoutRect;
[1720] Fix | Delete
if (lastLayoutRect.x !== curRect.x || lastLayoutRect.y !== curRect.y || lastLayoutRect.w !== curRect.w || lastLayoutRect.h !== curRect.h) {
[1721] Fix | Delete
repaintControls = Control.repaintControls;
[1722] Fix | Delete
if (repaintControls) {
[1723] Fix | Delete
if (repaintControls.map && !repaintControls.map[self._id]) {
[1724] Fix | Delete
repaintControls.push(self);
[1725] Fix | Delete
repaintControls.map[self._id] = true;
[1726] Fix | Delete
}
[1727] Fix | Delete
}
[1728] Fix | Delete
lastLayoutRect.x = curRect.x;
[1729] Fix | Delete
lastLayoutRect.y = curRect.y;
[1730] Fix | Delete
lastLayoutRect.w = curRect.w;
[1731] Fix | Delete
lastLayoutRect.h = curRect.h;
[1732] Fix | Delete
}
[1733] Fix | Delete
return self;
[1734] Fix | Delete
}
[1735] Fix | Delete
return curRect;
[1736] Fix | Delete
},
[1737] Fix | Delete
repaint: function () {
[1738] Fix | Delete
var self = this;
[1739] Fix | Delete
var style, bodyStyle, bodyElm, rect, borderBox;
[1740] Fix | Delete
var borderW, borderH, lastRepaintRect, round, value;
[1741] Fix | Delete
round = !domGlobals.document.createRange ? Math.round : function (value) {
[1742] Fix | Delete
return value;
[1743] Fix | Delete
};
[1744] Fix | Delete
style = self.getEl().style;
[1745] Fix | Delete
rect = self._layoutRect;
[1746] Fix | Delete
lastRepaintRect = self._lastRepaintRect || {};
[1747] Fix | Delete
borderBox = self.borderBox;
[1748] Fix | Delete
borderW = borderBox.left + borderBox.right;
[1749] Fix | Delete
borderH = borderBox.top + borderBox.bottom;
[1750] Fix | Delete
if (rect.x !== lastRepaintRect.x) {
[1751] Fix | Delete
style.left = round(rect.x) + 'px';
[1752] Fix | Delete
lastRepaintRect.x = rect.x;
[1753] Fix | Delete
}
[1754] Fix | Delete
if (rect.y !== lastRepaintRect.y) {
[1755] Fix | Delete
style.top = round(rect.y) + 'px';
[1756] Fix | Delete
lastRepaintRect.y = rect.y;
[1757] Fix | Delete
}
[1758] Fix | Delete
if (rect.w !== lastRepaintRect.w) {
[1759] Fix | Delete
value = round(rect.w - borderW);
[1760] Fix | Delete
style.width = (value >= 0 ? value : 0) + 'px';
[1761] Fix | Delete
lastRepaintRect.w = rect.w;
[1762] Fix | Delete
}
[1763] Fix | Delete
if (rect.h !== lastRepaintRect.h) {
[1764] Fix | Delete
value = round(rect.h - borderH);
[1765] Fix | Delete
style.height = (value >= 0 ? value : 0) + 'px';
[1766] Fix | Delete
lastRepaintRect.h = rect.h;
[1767] Fix | Delete
}
[1768] Fix | Delete
if (self._hasBody && rect.innerW !== lastRepaintRect.innerW) {
[1769] Fix | Delete
value = round(rect.innerW);
[1770] Fix | Delete
bodyElm = self.getEl('body');
[1771] Fix | Delete
if (bodyElm) {
[1772] Fix | Delete
bodyStyle = bodyElm.style;
[1773] Fix | Delete
bodyStyle.width = (value >= 0 ? value : 0) + 'px';
[1774] Fix | Delete
}
[1775] Fix | Delete
lastRepaintRect.innerW = rect.innerW;
[1776] Fix | Delete
}
[1777] Fix | Delete
if (self._hasBody && rect.innerH !== lastRepaintRect.innerH) {
[1778] Fix | Delete
value = round(rect.innerH);
[1779] Fix | Delete
bodyElm = bodyElm || self.getEl('body');
[1780] Fix | Delete
if (bodyElm) {
[1781] Fix | Delete
bodyStyle = bodyStyle || bodyElm.style;
[1782] Fix | Delete
bodyStyle.height = (value >= 0 ? value : 0) + 'px';
[1783] Fix | Delete
}
[1784] Fix | Delete
lastRepaintRect.innerH = rect.innerH;
[1785] Fix | Delete
}
[1786] Fix | Delete
self._lastRepaintRect = lastRepaintRect;
[1787] Fix | Delete
self.fire('repaint', {}, false);
[1788] Fix | Delete
},
[1789] Fix | Delete
updateLayoutRect: function () {
[1790] Fix | Delete
var self = this;
[1791] Fix | Delete
self.parent()._lastRect = null;
[1792] Fix | Delete
funcs.css(self.getEl(), {
[1793] Fix | Delete
width: '',
[1794] Fix | Delete
height: ''
[1795] Fix | Delete
});
[1796] Fix | Delete
self._layoutRect = self._lastRepaintRect = self._lastLayoutRect = null;
[1797] Fix | Delete
self.initLayoutRect();
[1798] Fix | Delete
},
[1799] Fix | Delete
on: function (name, callback) {
[1800] Fix | Delete
var self = this;
[1801] Fix | Delete
function resolveCallbackName(name) {
[1802] Fix | Delete
var callback, scope;
[1803] Fix | Delete
if (typeof name !== 'string') {
[1804] Fix | Delete
return name;
[1805] Fix | Delete
}
[1806] Fix | Delete
return function (e) {
[1807] Fix | Delete
if (!callback) {
[1808] Fix | Delete
self.parentsAndSelf().each(function (ctrl) {
[1809] Fix | Delete
var callbacks = ctrl.settings.callbacks;
[1810] Fix | Delete
if (callbacks && (callback = callbacks[name])) {
[1811] Fix | Delete
scope = ctrl;
[1812] Fix | Delete
return false;
[1813] Fix | Delete
}
[1814] Fix | Delete
});
[1815] Fix | Delete
}
[1816] Fix | Delete
if (!callback) {
[1817] Fix | Delete
e.action = name;
[1818] Fix | Delete
this.fire('execute', e);
[1819] Fix | Delete
return;
[1820] Fix | Delete
}
[1821] Fix | Delete
return callback.call(scope, e);
[1822] Fix | Delete
};
[1823] Fix | Delete
}
[1824] Fix | Delete
getEventDispatcher(self).on(name, resolveCallbackName(callback));
[1825] Fix | Delete
return self;
[1826] Fix | Delete
},
[1827] Fix | Delete
off: function (name, callback) {
[1828] Fix | Delete
getEventDispatcher(this).off(name, callback);
[1829] Fix | Delete
return this;
[1830] Fix | Delete
},
[1831] Fix | Delete
fire: function (name, args, bubble) {
[1832] Fix | Delete
var self = this;
[1833] Fix | Delete
args = args || {};
[1834] Fix | Delete
if (!args.control) {
[1835] Fix | Delete
args.control = self;
[1836] Fix | Delete
}
[1837] Fix | Delete
args = getEventDispatcher(self).fire(name, args);
[1838] Fix | Delete
if (bubble !== false && self.parent) {
[1839] Fix | Delete
var parent = self.parent();
[1840] Fix | Delete
while (parent && !args.isPropagationStopped()) {
[1841] Fix | Delete
parent.fire(name, args, false);
[1842] Fix | Delete
parent = parent.parent();
[1843] Fix | Delete
}
[1844] Fix | Delete
}
[1845] Fix | Delete
return args;
[1846] Fix | Delete
},
[1847] Fix | Delete
hasEventListeners: function (name) {
[1848] Fix | Delete
return getEventDispatcher(this).has(name);
[1849] Fix | Delete
},
[1850] Fix | Delete
parents: function (selector) {
[1851] Fix | Delete
var self = this;
[1852] Fix | Delete
var ctrl, parents = new Collection$2();
[1853] Fix | Delete
for (ctrl = self.parent(); ctrl; ctrl = ctrl.parent()) {
[1854] Fix | Delete
parents.add(ctrl);
[1855] Fix | Delete
}
[1856] Fix | Delete
if (selector) {
[1857] Fix | Delete
parents = parents.filter(selector);
[1858] Fix | Delete
}
[1859] Fix | Delete
return parents;
[1860] Fix | Delete
},
[1861] Fix | Delete
parentsAndSelf: function (selector) {
[1862] Fix | Delete
return new Collection$2(this).add(this.parents(selector));
[1863] Fix | Delete
},
[1864] Fix | Delete
next: function () {
[1865] Fix | Delete
var parentControls = this.parent().items();
[1866] Fix | Delete
return parentControls[parentControls.indexOf(this) + 1];
[1867] Fix | Delete
},
[1868] Fix | Delete
prev: function () {
[1869] Fix | Delete
var parentControls = this.parent().items();
[1870] Fix | Delete
return parentControls[parentControls.indexOf(this) - 1];
[1871] Fix | Delete
},
[1872] Fix | Delete
innerHtml: function (html) {
[1873] Fix | Delete
this.$el.html(html);
[1874] Fix | Delete
return this;
[1875] Fix | Delete
},
[1876] Fix | Delete
getEl: function (suffix) {
[1877] Fix | Delete
var id = suffix ? this._id + '-' + suffix : this._id;
[1878] Fix | Delete
if (!this._elmCache[id]) {
[1879] Fix | Delete
this._elmCache[id] = global$7('#' + id)[0];
[1880] Fix | Delete
}
[1881] Fix | Delete
return this._elmCache[id];
[1882] Fix | Delete
},
[1883] Fix | Delete
show: function () {
[1884] Fix | Delete
return this.visible(true);
[1885] Fix | Delete
},
[1886] Fix | Delete
hide: function () {
[1887] Fix | Delete
return this.visible(false);
[1888] Fix | Delete
},
[1889] Fix | Delete
focus: function () {
[1890] Fix | Delete
try {
[1891] Fix | Delete
this.getEl().focus();
[1892] Fix | Delete
} catch (ex) {
[1893] Fix | Delete
}
[1894] Fix | Delete
return this;
[1895] Fix | Delete
},
[1896] Fix | Delete
blur: function () {
[1897] Fix | Delete
this.getEl().blur();
[1898] Fix | Delete
return this;
[1899] Fix | Delete
},
[1900] Fix | Delete
aria: function (name, value) {
[1901] Fix | Delete
var self = this, elm = self.getEl(self.ariaTarget);
[1902] Fix | Delete
if (typeof value === 'undefined') {
[1903] Fix | Delete
return self._aria[name];
[1904] Fix | Delete
}
[1905] Fix | Delete
self._aria[name] = value;
[1906] Fix | Delete
if (self.state.get('rendered')) {
[1907] Fix | Delete
elm.setAttribute(name === 'role' ? name : 'aria-' + name, value);
[1908] Fix | Delete
}
[1909] Fix | Delete
return self;
[1910] Fix | Delete
},
[1911] Fix | Delete
encode: function (text, translate) {
[1912] Fix | Delete
if (translate !== false) {
[1913] Fix | Delete
text = this.translate(text);
[1914] Fix | Delete
}
[1915] Fix | Delete
return (text || '').replace(/[&<>"]/g, function (match) {
[1916] Fix | Delete
return '&#' + match.charCodeAt(0) + ';';
[1917] Fix | Delete
});
[1918] Fix | Delete
},
[1919] Fix | Delete
translate: function (text) {
[1920] Fix | Delete
return Control.translate ? Control.translate(text) : text;
[1921] Fix | Delete
},
[1922] Fix | Delete
before: function (items) {
[1923] Fix | Delete
var self = this, parent = self.parent();
[1924] Fix | Delete
if (parent) {
[1925] Fix | Delete
parent.insert(items, parent.items().indexOf(self), true);
[1926] Fix | Delete
}
[1927] Fix | Delete
return self;
[1928] Fix | Delete
},
[1929] Fix | Delete
after: function (items) {
[1930] Fix | Delete
var self = this, parent = self.parent();
[1931] Fix | Delete
if (parent) {
[1932] Fix | Delete
parent.insert(items, parent.items().indexOf(self));
[1933] Fix | Delete
}
[1934] Fix | Delete
return self;
[1935] Fix | Delete
},
[1936] Fix | Delete
remove: function () {
[1937] Fix | Delete
var self = this;
[1938] Fix | Delete
var elm = self.getEl();
[1939] Fix | Delete
var parent = self.parent();
[1940] Fix | Delete
var newItems, i;
[1941] Fix | Delete
if (self.items) {
[1942] Fix | Delete
var controls = self.items().toArray();
[1943] Fix | Delete
i = controls.length;
[1944] Fix | Delete
while (i--) {
[1945] Fix | Delete
controls[i].remove();
[1946] Fix | Delete
}
[1947] Fix | Delete
}
[1948] Fix | Delete
if (parent && parent.items) {
[1949] Fix | Delete
newItems = [];
[1950] Fix | Delete
parent.items().each(function (item) {
[1951] Fix | Delete
if (item !== self) {
[1952] Fix | Delete
newItems.push(item);
[1953] Fix | Delete
}
[1954] Fix | Delete
});
[1955] Fix | Delete
parent.items().set(newItems);
[1956] Fix | Delete
parent._lastRect = null;
[1957] Fix | Delete
}
[1958] Fix | Delete
if (self._eventsRoot && self._eventsRoot === self) {
[1959] Fix | Delete
global$7(elm).off();
[1960] Fix | Delete
}
[1961] Fix | Delete
var lookup = self.getRoot().controlIdLookup;
[1962] Fix | Delete
if (lookup) {
[1963] Fix | Delete
delete lookup[self._id];
[1964] Fix | Delete
}
[1965] Fix | Delete
if (elm && elm.parentNode) {
[1966] Fix | Delete
elm.parentNode.removeChild(elm);
[1967] Fix | Delete
}
[1968] Fix | Delete
self.state.set('rendered', false);
[1969] Fix | Delete
self.state.destroy();
[1970] Fix | Delete
self.fire('remove');
[1971] Fix | Delete
return self;
[1972] Fix | Delete
},
[1973] Fix | Delete
renderBefore: function (elm) {
[1974] Fix | Delete
global$7(elm).before(this.renderHtml());
[1975] Fix | Delete
this.postRender();
[1976] Fix | Delete
return this;
[1977] Fix | Delete
},
[1978] Fix | Delete
renderTo: function (elm) {
[1979] Fix | Delete
global$7(elm || this.getContainerElm()).append(this.renderHtml());
[1980] Fix | Delete
this.postRender();
[1981] Fix | Delete
return this;
[1982] Fix | Delete
},
[1983] Fix | Delete
preRender: function () {
[1984] Fix | Delete
},
[1985] Fix | Delete
render: function () {
[1986] Fix | Delete
},
[1987] Fix | Delete
renderHtml: function () {
[1988] Fix | Delete
return '<div id="' + this._id + '" class="' + this.classes + '"></div>';
[1989] Fix | Delete
},
[1990] Fix | Delete
postRender: function () {
[1991] Fix | Delete
var self = this;
[1992] Fix | Delete
var settings = self.settings;
[1993] Fix | Delete
var elm, box, parent, name, parentEventsRoot;
[1994] Fix | Delete
self.$el = global$7(self.getEl());
[1995] Fix | Delete
self.state.set('rendered', true);
[1996] Fix | Delete
for (name in settings) {
[1997] Fix | Delete
if (name.indexOf('on') === 0) {
[1998] Fix | Delete
self.on(name.substr(2), settings[name]);
[1999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function