OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
_backup
/
tinymce
/
tinymce
/
src
/
core
/
test
/
ts
/
browser
/
init
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/20/2020 06:14:55 AM
rwxr-xr-x
📄
ContentCssTest.ts
2.67 KB
02/20/2020 06:14:11 AM
rw-r--r--
📄
ContentStylePositionTest.ts
1.3 KB
02/20/2020 06:14:11 AM
rw-r--r--
📄
EditorCustomThemeTest.ts
1.83 KB
02/20/2020 06:14:12 AM
rw-r--r--
📄
EditorInitializationTest.ts
8.06 KB
02/20/2020 06:14:12 AM
rw-r--r--
📄
InitEditorIconTest.ts
1.73 KB
02/20/2020 06:14:13 AM
rw-r--r--
📄
InitEditorNoThemeIframeTest.ts
1.65 KB
02/20/2020 06:14:13 AM
rw-r--r--
📄
InitEditorNoThemeInlineTest.ts
1.88 KB
02/20/2020 06:14:14 AM
rw-r--r--
📄
InitEditorOnHiddenElementTest.ts
705 bytes
02/20/2020 06:14:14 AM
rw-r--r--
📄
InitEditorPluginInitErrorTest.ts
1.69 KB
02/20/2020 06:14:15 AM
rw-r--r--
📄
InitEditorThemeFunctionIframeTest.ts
1.96 KB
02/20/2020 06:14:15 AM
rw-r--r--
📄
InitEditorThemeFunctionInlineTest.ts
2.05 KB
02/20/2020 06:14:16 AM
rw-r--r--
📄
InitIframeEditorWithCustomAttrsTest.ts
1.26 KB
02/20/2020 06:14:16 AM
rw-r--r--
Editing: EditorCustomThemeTest.ts
Close
import { Pipeline } from '@ephox/agar'; import { LegacyUnit, TinyLoader } from '@ephox/mcagar'; import { UnitTest } from '@ephox/bedrock'; import { document } from '@ephox/dom-globals'; UnitTest.asynctest('browser.tinymce.core.init.EditorCustomThemeTest', function () { const success = arguments[arguments.length - 2]; const failure = arguments[arguments.length - 1]; const suite = LegacyUnit.createSuite(); suite.test('getContainer/getContentAreaContainer', function (editor) { LegacyUnit.equal(editor.getContainer().id, 'editorContainer', 'Should be the new editorContainer element'); LegacyUnit.equal(editor.getContainer().nodeType, 1, 'Should be an element'); LegacyUnit.equal(editor.getContentAreaContainer().id, 'iframeContainer', 'Should be the new iframeContainer element'); LegacyUnit.equal(editor.getContentAreaContainer().nodeType, 1, 'Should be an element'); }); TinyLoader.setup(function (editor, onSuccess, onFailure) { Pipeline.async({}, suite.toSteps(editor), onSuccess, onFailure); }, { add_unload_trigger: false, disable_nodechange: true, automatic_uploads: false, entities: 'raw', indent: false, base_url: '/project/tinymce/js/tinymce', theme (editor, targetnode) { const editorContainer = document.createElement('div'); editorContainer.id = 'editorContainer'; const iframeContainer = document.createElement('div'); iframeContainer.id = 'iframeContainer'; editorContainer.appendChild(iframeContainer); targetnode.parentNode.insertBefore(editorContainer, targetnode); if (editor.initialized) { editor.fire('SkinLoaded'); } else { editor.on('init', function () { editor.fire('SkinLoaded'); }); } return { iframeContainer, editorContainer }; } }, success, failure); });