Rev 637 | Rev 759 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 637 | Rev 679 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | * Copyright (c) Tiny Technologies, Inc. All rights reserved. |
2 | * Copyright (c) Tiny Technologies, Inc. All rights reserved. |
3 | * Licensed under the LGPL or a commercial license. |
3 | * Licensed under the LGPL or a commercial license. |
4 | * For LGPL see License.txt in the project root for license information. |
4 | * For LGPL see License.txt in the project root for license information. |
5 | * For commercial licenses see https://www.tiny.cloud/ |
5 | * For commercial licenses see https://www.tiny.cloud/ |
6 | * |
6 | * |
7 | * Version: 5.9.2 (2021-09-08) |
7 | * Version: 5.10.2 (2021-11-17) |
8 | */ |
8 | */ |
9 | (function () { |
9 | (function () { |
10 | 'use strict'; |
10 | 'use strict'; |
11 | 11 | ||
12 | var global$4 = tinymce.util.Tools.resolve('tinymce.PluginManager'); |
12 | var global$4 = tinymce.util.Tools.resolve('tinymce.PluginManager'); |
Line 122... | Line 122... | ||
122 | addItem: addItem, |
122 | addItem: addItem, |
123 | toFormats: toFormats |
123 | toFormats: toFormats |
124 | }; |
124 | }; |
125 | }; |
125 | }; |
126 | 126 | ||
- | 127 | var internalEditorStyle = /^\.(?:ephox|tiny-pageembed|mce)(?:[.-]+\w+)+$/; |
|
127 | var removeCacheSuffix = function (url) { |
128 | var removeCacheSuffix = function (url) { |
128 | var cacheSuffix = global$1.cacheSuffix; |
129 | var cacheSuffix = global$1.cacheSuffix; |
129 | if (isString(url)) { |
130 | if (isString(url)) { |
130 | url = url.replace('?' + cacheSuffix, '').replace('&' + cacheSuffix, ''); |
131 | url = url.replace('?' + cacheSuffix, '').replace('&' + cacheSuffix, ''); |
131 | } |
132 | } |
Line 293... | Line 294... | ||
293 | } |
294 | } |
294 | } |
295 | } |
295 | return null; |
296 | return null; |
296 | }; |
297 | }; |
297 | global.each(getSelectors(editor, editor.getDoc(), compileFilter(getFileFilter(editor))), function (selector) { |
298 | global.each(getSelectors(editor, editor.getDoc(), compileFilter(getFileFilter(editor))), function (selector) { |
298 | if (selector.indexOf('.mce-') === -1) { |
299 | if (!internalEditorStyle.test(selector)) { |
299 | if (!selectorFilter || selectorFilter(selector)) { |
300 | if (!selectorFilter || selectorFilter(selector)) { |
300 | var selectorGroups = getGroupsBySelector(groups, selector); |
301 | var selectorGroups = getGroupsBySelector(groups, selector); |
301 | if (selectorGroups.length > 0) { |
302 | if (selectorGroups.length > 0) { |
302 | global.each(selectorGroups, function (group) { |
303 | global.each(selectorGroups, function (group) { |
303 | var menuItem = processSelector(selector, group); |
304 | var menuItem = processSelector(selector, group); |