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: InsertContentWebKitBugs.ts
Close
import { GeneralSteps, Logger, Pipeline } from '@ephox/agar'; import { TinyApis, TinyLoader } from '@ephox/mcagar'; import Theme from 'tinymce/themes/silver/Theme'; import { UnitTest } from '@ephox/bedrock'; UnitTest.asynctest('browser.tinymce.core.content.InsertContentTest', (success, failure) => { Theme(); TinyLoader.setup(function (editor, onSuccess, onFailure) { const tinyApis = TinyApis(editor); Pipeline.async({}, [ Logger.t('Insert contents on a triple click selection should not produce odd spans', GeneralSteps.sequence([ tinyApis.sSetContent('<blockquote><p>a</p></blockquote><p>b</p>'), tinyApis.sSetSelection([0, 0, 0], 0, [1], 0), tinyApis.sExecCommand('mceInsertContent', '<p>c</p>'), tinyApis.sAssertContent('<blockquote><p>c</p></blockquote><p>b</p>'), tinyApis.sAssertSelection([0, 0, 0], 1, [0, 0, 0], 1) ])) ], onSuccess, onFailure); }, { selector: 'textarea', indent: false, base_url: '/project/tinymce/js/tinymce', content_style: 'blockquote { font-size: 12px }' // Needed to produce spans with runtime styles }, success, failure); });