OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
_backup
/
tinymce
/
tinymce
/
src
/
core
/
test
/
ts
/
browser
/
content
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/20/2020 06:14:55 AM
rwxr-xr-x
📄
EditorContentNotInitializedTest.ts
3 KB
02/20/2020 06:13:03 AM
rw-r--r--
📄
EditorContentTest.ts
4.56 KB
02/20/2020 06:13:05 AM
rw-r--r--
📄
EditorContentWsTest.ts
769 bytes
02/20/2020 06:13:04 AM
rw-r--r--
📄
EditorGetContentTextFormatTest.ts
949 bytes
02/20/2020 06:13:05 AM
rw-r--r--
📄
EditorGetContentTreeTest.ts
1.83 KB
02/20/2020 06:13:06 AM
rw-r--r--
📄
EditorResetContentTest.ts
2.51 KB
02/20/2020 06:13:06 AM
rw-r--r--
📄
InsertContentCommandTest.ts
18.76 KB
02/20/2020 06:13:07 AM
rw-r--r--
📄
InsertContentForcedRootFalseTest.ts
1.79 KB
02/20/2020 06:13:07 AM
rw-r--r--
📄
InsertContentTest.ts
8.71 KB
02/20/2020 06:13:08 AM
rw-r--r--
📄
InsertContentWebKitBugs.ts
1.12 KB
02/20/2020 06:13:08 AM
rw-r--r--
📄
InsertListTest.ts
2.52 KB
02/20/2020 06:13:09 AM
rw-r--r--
Editing: EditorContentWsTest.ts
Close
import { Chain, Pipeline, Logger } from '@ephox/agar'; import { UnitTest } from '@ephox/bedrock'; import { ApiChains, Editor } from '@ephox/mcagar'; import Theme from 'tinymce/themes/silver/Theme'; UnitTest.asynctest('browser.tinymce.core.content.EditorContentWsTest', (success, failure) => { Theme(); Pipeline.async({}, [ Logger.t('Editor initialized on pre element should retain whitespace on get/set content', Chain.asStep({}, [ Editor.cFromHtml('<pre> a </pre>', { inline: true, base_url: '/project/tinymce/js/tinymce' }), ApiChains.cAssertContent(' a '), ApiChains.cSetContent(' b '), ApiChains.cAssertContent(' b '), Editor.cRemove ])) ], function () { success(); }, failure); });