OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
_backup
/
tinymce
/
tinymce
/
src
/
themes
/
silver
/
test
/
ts
/
browser
/
editor
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/20/2020 06:39:44 AM
rwxr-xr-x
📄
AutocompleterTest.ts
15.34 KB
02/20/2020 06:39:28 AM
rw-r--r--
📄
ContextFormTest.ts
10.84 KB
02/20/2020 06:39:28 AM
rw-r--r--
📄
ContextToolbarTest.ts
1.74 KB
02/20/2020 06:39:29 AM
rw-r--r--
📄
MenuGroupHeadingTest.ts
2.79 KB
02/20/2020 06:39:29 AM
rw-r--r--
📄
SilverDialogCancelTest.ts
1.23 KB
02/20/2020 06:39:30 AM
rw-r--r--
📄
SilverDialogCloseTest.ts
1.23 KB
02/20/2020 06:39:30 AM
rw-r--r--
📄
SilverDialogPopupsTest.ts
5.14 KB
02/20/2020 06:39:31 AM
rw-r--r--
📄
SilverEditorTest.ts
18 KB
02/20/2020 06:39:31 AM
rw-r--r--
📄
SilverFixedToolbarContainerTest.ts
3.66 KB
02/20/2020 06:39:32 AM
rw-r--r--
📄
SilverInlineEditorTest.ts
16.04 KB
02/20/2020 06:39:32 AM
rw-r--r--
📄
ToxWrappingTest.ts
1.2 KB
02/20/2020 06:39:33 AM
rw-r--r--
📁
bespoke
-
02/20/2020 06:41:29 AM
rwxr-xr-x
📁
color
-
02/20/2020 06:41:36 AM
rwxr-xr-x
📁
contextmenu
-
02/20/2020 06:42:59 AM
rwxr-xr-x
📁
core
-
02/20/2020 06:41:45 AM
rwxr-xr-x
📁
menubar
-
02/20/2020 06:41:46 AM
rwxr-xr-x
📁
sizing
-
02/20/2020 06:41:50 AM
rwxr-xr-x
📁
toolbar
-
02/20/2020 06:41:50 AM
rwxr-xr-x
Editing: ToxWrappingTest.ts
Close
import { Assertions, Pipeline, Chain, UiFinder } from '@ephox/agar'; import { UnitTest } from '@ephox/bedrock'; import { TinyLoader } from '@ephox/mcagar'; import { Element, Body, Attr, Traverse, Class } from '@ephox/sugar'; import Theme from '../../../../../silver/main/ts/Theme'; import Editor from 'tinymce/core/api/Editor'; import { Result } from '@ephox/katamari'; UnitTest.asynctest('Editor (Silver) test', (success, failure) => { Theme(); TinyLoader.setup( (editor: Editor, onSuccess, onFailure) => { const replacedElem = Element.fromDom(editor.getElement()); Pipeline.async({ }, [ Chain.asStep(Body.body(), [ UiFinder.cFindIn(`#${Attr.get(replacedElem, 'id')}`), Chain.binder((elem) => Traverse.nextSibling(elem).fold(() => Result.error('Replaced element has no next sibling'), Result.value)), Chain.mapper((elem) => Class.has(elem, 'tox-tinymce')), Assertions.cAssertEq('Replaced element\'s next sibling has "tox-tinymce" class', true) ]) ], onSuccess, onFailure); }, { theme: 'silver', menubar: true, base_url: '/project/tinymce/js/tinymce' }, () => { success(); }, failure ); });