OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
_backup
/
tinymce
/
tinymce
/
src
/
themes
/
silver
/
demo
/
ts
/
dialogs
/
spec
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/20/2020 06:37:26 AM
rwxr-xr-x
📄
AlertBannerDialogSpec.ts
725 bytes
02/20/2020 06:37:29 AM
rw-r--r--
📄
AnchorDialogSpec.ts
609 bytes
02/20/2020 06:37:30 AM
rw-r--r--
📄
CharmapDialogSpec.ts
942 bytes
02/20/2020 06:37:30 AM
rw-r--r--
📄
CodeSampleDialogSpec.ts
977 bytes
02/20/2020 06:37:31 AM
rw-r--r--
📄
ColorPickerDialogSpec.ts
810 bytes
02/20/2020 06:37:31 AM
rw-r--r--
📄
CustomRediallingSpec.ts
734 bytes
02/20/2020 06:37:32 AM
rw-r--r--
📄
DocumentPropsDialogSpec.ts
1.35 KB
02/20/2020 06:37:32 AM
rw-r--r--
📄
FindReplaceDialogSpec.ts
128 bytes
02/20/2020 06:37:33 AM
rw-r--r--
📄
ImageDialogSpec.ts
2.42 KB
02/20/2020 06:37:33 AM
rw-r--r--
📄
LinkDialogSpec.ts
1.22 KB
02/20/2020 06:37:34 AM
rw-r--r--
📄
MediaDialogSpec.ts
1.58 KB
02/20/2020 06:37:34 AM
rw-r--r--
📄
PreviewDialogSpec.ts
413 bytes
02/20/2020 06:37:35 AM
rw-r--r--
📄
TableCellDialogSpec.ts
3.37 KB
02/20/2020 06:37:35 AM
rw-r--r--
📄
TableDialogSpec.ts
2.92 KB
02/20/2020 06:37:36 AM
rw-r--r--
📄
TableRowDialogSpec.ts
2.5 KB
02/20/2020 06:37:36 AM
rw-r--r--
📄
TemplateDialogSpec.ts
1003 bytes
02/20/2020 06:37:38 AM
rw-r--r--
Editing: LinkDialogSpec.ts
Close
import { console } from '@ephox/dom-globals'; export default { title: 'Insert link', body: { type: 'panel', items: [ { name: 'url', type: 'urlinput', filetype: 'file', label: 'URL' }, { name: 'text', type: 'input', label: 'Text to display' }, { name: 'title', type: 'input', label: 'Title' }, { name: 'target', type: 'selectbox', label: 'Target', items: [ { text: 'None', value: '' }, { text: 'Blank', value: '_blank' }, ] } ] }, buttons: [ { type: 'cancel', name: 'cancel', text: 'Cancel' }, { type: 'submit', name: 'save', text: 'Save', primary: true } ], initialData: { url: { value: 'my.html', text: 'my.html', meta: { } }, text: 'Some text', title: 'Some title', target: '_blank' }, onSubmit: (api) => { const data = api.getData(); console.log({ url: data.url, text: data.text, title: data.title, target: data.target }); api.close(); } };