| Línea 33... |
Línea 33... |
| 33 |
readonly isImmediatePropagationStopped: () => boolean;
|
33 |
readonly isImmediatePropagationStopped: () => boolean;
|
| 34 |
readonly stopImmediatePropagation: () => void;
|
34 |
readonly stopImmediatePropagation: () => void;
|
| 35 |
};
|
35 |
};
|
| 36 |
type MappedEvent<T extends {}, K extends string> = K extends keyof T ? T[K] : any;
|
36 |
type MappedEvent<T extends {}, K extends string> = K extends keyof T ? T[K] : any;
|
| 37 |
interface NativeEventMap {
|
37 |
interface NativeEventMap {
|
| 38 |
'beforepaste': Event;
|
38 |
beforepaste: Event;
|
| 39 |
'blur': FocusEvent;
|
39 |
blur: FocusEvent;
|
| 40 |
'beforeinput': InputEvent;
|
40 |
beforeinput: InputEvent;
|
| 41 |
'click': MouseEvent;
|
41 |
click: MouseEvent;
|
| 42 |
'compositionend': Event;
|
42 |
compositionend: Event;
|
| 43 |
'compositionstart': Event;
|
43 |
compositionstart: Event;
|
| 44 |
'compositionupdate': Event;
|
44 |
compositionupdate: Event;
|
| 45 |
'contextmenu': PointerEvent;
|
45 |
contextmenu: PointerEvent;
|
| 46 |
'copy': ClipboardEvent;
|
46 |
copy: ClipboardEvent;
|
| 47 |
'cut': ClipboardEvent;
|
47 |
cut: ClipboardEvent;
|
| 48 |
'dblclick': MouseEvent;
|
48 |
dblclick: MouseEvent;
|
| 49 |
'drag': DragEvent;
|
49 |
drag: DragEvent;
|
| 50 |
'dragdrop': DragEvent;
|
50 |
dragdrop: DragEvent;
|
| 51 |
'dragend': DragEvent;
|
51 |
dragend: DragEvent;
|
| 52 |
'draggesture': DragEvent;
|
52 |
draggesture: DragEvent;
|
| 53 |
'dragover': DragEvent;
|
53 |
dragover: DragEvent;
|
| 54 |
'dragstart': DragEvent;
|
54 |
dragstart: DragEvent;
|
| 55 |
'drop': DragEvent;
|
55 |
drop: DragEvent;
|
| 56 |
'focus': FocusEvent;
|
56 |
focus: FocusEvent;
|
| 57 |
'focusin': FocusEvent;
|
57 |
focusin: FocusEvent;
|
| 58 |
'focusout': FocusEvent;
|
58 |
focusout: FocusEvent;
|
| 59 |
'input': InputEvent;
|
59 |
input: InputEvent;
|
| 60 |
'keydown': KeyboardEvent;
|
60 |
keydown: KeyboardEvent;
|
| 61 |
'keypress': KeyboardEvent;
|
61 |
keypress: KeyboardEvent;
|
| 62 |
'keyup': KeyboardEvent;
|
62 |
keyup: KeyboardEvent;
|
| 63 |
'mousedown': MouseEvent;
|
63 |
mousedown: MouseEvent;
|
| 64 |
'mouseenter': MouseEvent;
|
64 |
mouseenter: MouseEvent;
|
| 65 |
'mouseleave': MouseEvent;
|
65 |
mouseleave: MouseEvent;
|
| 66 |
'mousemove': MouseEvent;
|
66 |
mousemove: MouseEvent;
|
| 67 |
'mouseout': MouseEvent;
|
67 |
mouseout: MouseEvent;
|
| 68 |
'mouseover': MouseEvent;
|
68 |
mouseover: MouseEvent;
|
| 69 |
'mouseup': MouseEvent;
|
69 |
mouseup: MouseEvent;
|
| 70 |
'paste': ClipboardEvent;
|
70 |
paste: ClipboardEvent;
|
| 71 |
'selectionchange': Event;
|
71 |
selectionchange: Event;
|
| 72 |
'submit': Event;
|
72 |
submit: Event;
|
| 73 |
'touchend': TouchEvent;
|
73 |
touchend: TouchEvent;
|
| 74 |
'touchmove': TouchEvent;
|
74 |
touchmove: TouchEvent;
|
| 75 |
'touchstart': TouchEvent;
|
75 |
touchstart: TouchEvent;
|
| 76 |
'touchcancel': TouchEvent;
|
76 |
touchcancel: TouchEvent;
|
| 77 |
'wheel': WheelEvent;
|
77 |
wheel: WheelEvent;
|
| 78 |
}
|
78 |
}
|
| 79 |
type EditorEvent<T> = NormalizedEvent<T>;
|
79 |
type EditorEvent<T> = NormalizedEvent<T>;
|
| 80 |
interface EventDispatcherSettings {
|
80 |
interface EventDispatcherSettings {
|
| 81 |
scope?: any;
|
81 |
scope?: any;
|
| 82 |
toggleEvent?: (name: string, state: boolean) => void | boolean;
|
82 |
toggleEvent?: (name: string, state: boolean) => void | boolean;
|
| Línea 150... |
Línea 150... |
| 150 |
whitespace_elements?: string;
|
150 |
whitespace_elements?: string;
|
| 151 |
transparent_elements?: string;
|
151 |
transparent_elements?: string;
|
| 152 |
wrap_block_elements?: string;
|
152 |
wrap_block_elements?: string;
|
| 153 |
}
|
153 |
}
|
| 154 |
interface SchemaSettings extends ElementSettings {
|
154 |
interface SchemaSettings extends ElementSettings {
|
| 155 |
custom_elements?: string;
|
155 |
custom_elements?: string | Record<string, CustomElementSpec>;
|
| 156 |
extended_valid_elements?: string;
|
156 |
extended_valid_elements?: string;
|
| 157 |
invalid_elements?: string;
|
157 |
invalid_elements?: string;
|
| 158 |
invalid_styles?: string | Record<string, string>;
|
158 |
invalid_styles?: string | Record<string, string>;
|
| 159 |
schema?: SchemaType;
|
159 |
schema?: SchemaType;
|
| 160 |
valid_children?: string;
|
160 |
valid_children?: string;
|
| Línea 198... |
Línea 198... |
| 198 |
[name: string]: {};
|
198 |
[name: string]: {};
|
| 199 |
}
|
199 |
}
|
| 200 |
interface SchemaRegExpMap {
|
200 |
interface SchemaRegExpMap {
|
| 201 |
[name: string]: RegExp;
|
201 |
[name: string]: RegExp;
|
| 202 |
}
|
202 |
}
|
| - |
|
203 |
interface CustomElementSpec {
|
| - |
|
204 |
extends?: string;
|
| - |
|
205 |
attributes?: string[];
|
| - |
|
206 |
children?: string[];
|
| - |
|
207 |
padEmpty?: boolean;
|
| - |
|
208 |
}
|
| 203 |
interface Schema {
|
209 |
interface Schema {
|
| 204 |
type: SchemaType;
|
210 |
type: SchemaType;
|
| 205 |
children: Record<string, SchemaMap>;
|
211 |
children: Record<string, SchemaMap>;
|
| 206 |
elements: Record<string, SchemaElement>;
|
212 |
elements: Record<string, SchemaElement>;
|
| 207 |
getValidStyles: () => Record<string, string[]> | undefined;
|
213 |
getValidStyles: () => Record<string, string[]> | undefined;
|
| Línea 225... |
Línea 231... |
| 225 |
isInline: (name: string) => boolean;
|
231 |
isInline: (name: string) => boolean;
|
| 226 |
isWrapper: (name: string) => boolean;
|
232 |
isWrapper: (name: string) => boolean;
|
| 227 |
getCustomElements: () => SchemaMap;
|
233 |
getCustomElements: () => SchemaMap;
|
| 228 |
addValidElements: (validElements: string) => void;
|
234 |
addValidElements: (validElements: string) => void;
|
| 229 |
setValidElements: (validElements: string) => void;
|
235 |
setValidElements: (validElements: string) => void;
|
| 230 |
addCustomElements: (customElements: string) => void;
|
236 |
addCustomElements: (customElements: string | Record<string, CustomElementSpec>) => void;
|
| 231 |
addValidChildren: (validChildren: any) => void;
|
237 |
addValidChildren: (validChildren: any) => void;
|
| 232 |
}
|
238 |
}
|
| 233 |
type Attributes$1 = Array<{
|
239 |
type Attributes$1 = Array<{
|
| 234 |
name: string;
|
240 |
name: string;
|
| 235 |
value: string;
|
241 |
value: string;
|
| Línea 372... |
Línea 378... |
| 372 |
annotationChanged: (name: string, f: AnnotationListenerApi) => void;
|
378 |
annotationChanged: (name: string, f: AnnotationListenerApi) => void;
|
| 373 |
remove: (name: string) => void;
|
379 |
remove: (name: string) => void;
|
| 374 |
removeAll: (name: string) => void;
|
380 |
removeAll: (name: string) => void;
|
| 375 |
getAll: (name: string) => Record<string, Element[]>;
|
381 |
getAll: (name: string) => Record<string, Element[]>;
|
| 376 |
}
|
382 |
}
|
| - |
|
383 |
interface IsEmptyOptions {
|
| - |
|
384 |
readonly skipBogus?: boolean;
|
| - |
|
385 |
readonly includeZwsp?: boolean;
|
| - |
|
386 |
readonly checkRootAsContent?: boolean;
|
| - |
|
387 |
readonly isContent?: (node: Node) => boolean;
|
| - |
|
388 |
}
|
| 377 |
interface GeomRect {
|
389 |
interface GeomRect {
|
| 378 |
readonly x: number;
|
390 |
readonly x: number;
|
| 379 |
readonly y: number;
|
391 |
readonly y: number;
|
| 380 |
readonly w: number;
|
392 |
readonly w: number;
|
| 381 |
readonly h: number;
|
393 |
readonly h: number;
|
| Línea 388... |
Línea 400... |
| 388 |
clamp: (rect: GeomRect, clampRect: GeomRect, fixedSize?: boolean) => GeomRect;
|
400 |
clamp: (rect: GeomRect, clampRect: GeomRect, fixedSize?: boolean) => GeomRect;
|
| 389 |
create: (x: number, y: number, w: number, h: number) => GeomRect;
|
401 |
create: (x: number, y: number, w: number, h: number) => GeomRect;
|
| 390 |
fromClientRect: (clientRect: DOMRect) => GeomRect;
|
402 |
fromClientRect: (clientRect: DOMRect) => GeomRect;
|
| 391 |
}
|
403 |
}
|
| 392 |
interface NotificationManagerImpl {
|
404 |
interface NotificationManagerImpl {
|
| 393 |
open: (spec: NotificationSpec, closeCallback: () => void) => NotificationApi;
|
405 |
open: (spec: NotificationSpec, closeCallback: () => void, hasEditorFocus: () => boolean) => NotificationApi;
|
| 394 |
close: <T extends NotificationApi>(notification: T) => void;
|
406 |
close: <T extends NotificationApi>(notification: T) => void;
|
| 395 |
getArgs: <T extends NotificationApi>(notification: T) => NotificationSpec;
|
407 |
getArgs: <T extends NotificationApi>(notification: T) => NotificationSpec;
|
| 396 |
}
|
408 |
}
|
| 397 |
interface NotificationSpec {
|
409 |
interface NotificationSpec {
|
| 398 |
type?: 'info' | 'warning' | 'error' | 'success';
|
410 |
type?: 'info' | 'warning' | 'error' | 'success';
|
| 399 |
text: string;
|
411 |
text: string;
|
| 400 |
icon?: string;
|
412 |
icon?: string;
|
| 401 |
progressBar?: boolean;
|
413 |
progressBar?: boolean;
|
| 402 |
timeout?: number;
|
414 |
timeout?: number;
|
| 403 |
closeButton?: boolean;
|
- |
|
| 404 |
}
|
415 |
}
|
| 405 |
interface NotificationApi {
|
416 |
interface NotificationApi {
|
| 406 |
close: () => void;
|
417 |
close: () => void;
|
| 407 |
progressBar: {
|
418 |
progressBar: {
|
| 408 |
value: (percent: number) => void;
|
419 |
value: (percent: number) => void;
|
| Línea 427... |
Línea 438... |
| 427 |
url: string;
|
438 |
url: string;
|
| 428 |
blobInfo: BlobInfo;
|
439 |
blobInfo: BlobInfo;
|
| 429 |
status: boolean;
|
440 |
status: boolean;
|
| 430 |
error?: UploadFailure;
|
441 |
error?: UploadFailure;
|
| 431 |
}
|
442 |
}
|
| - |
|
443 |
type BlockPatternTrigger = 'enter' | 'space';
|
| 432 |
interface RawPattern {
|
444 |
interface RawPattern {
|
| 433 |
start?: any;
|
445 |
start?: any;
|
| 434 |
end?: any;
|
446 |
end?: any;
|
| 435 |
format?: any;
|
447 |
format?: any;
|
| 436 |
cmd?: any;
|
448 |
cmd?: any;
|
| 437 |
value?: any;
|
449 |
value?: any;
|
| 438 |
replacement?: any;
|
450 |
replacement?: any;
|
| - |
|
451 |
trigger?: BlockPatternTrigger;
|
| 439 |
}
|
452 |
}
|
| 440 |
interface InlineBasePattern {
|
453 |
interface InlineBasePattern {
|
| 441 |
readonly start: string;
|
454 |
readonly start: string;
|
| 442 |
readonly end: string;
|
455 |
readonly end: string;
|
| 443 |
}
|
456 |
}
|
| Línea 451... |
Línea 464... |
| 451 |
readonly value?: any;
|
464 |
readonly value?: any;
|
| 452 |
}
|
465 |
}
|
| 453 |
type InlinePattern = InlineFormatPattern | InlineCmdPattern;
|
466 |
type InlinePattern = InlineFormatPattern | InlineCmdPattern;
|
| 454 |
interface BlockBasePattern {
|
467 |
interface BlockBasePattern {
|
| 455 |
readonly start: string;
|
468 |
readonly start: string;
|
| - |
|
469 |
readonly trigger: BlockPatternTrigger;
|
| 456 |
}
|
470 |
}
|
| 457 |
interface BlockFormatPattern extends BlockBasePattern {
|
471 |
interface BlockFormatPattern extends BlockBasePattern {
|
| 458 |
readonly type: 'block-format';
|
472 |
readonly type: 'block-format';
|
| 459 |
readonly format: string;
|
473 |
readonly format: string;
|
| 460 |
}
|
474 |
}
|
| Línea 485... |
Línea 499... |
| 485 |
primary?: boolean;
|
499 |
primary?: boolean;
|
| 486 |
name?: string;
|
500 |
name?: string;
|
| 487 |
icon?: string;
|
501 |
icon?: string;
|
| 488 |
borderless?: boolean;
|
502 |
borderless?: boolean;
|
| 489 |
buttonType?: 'primary' | 'secondary' | 'toolbar';
|
503 |
buttonType?: 'primary' | 'secondary' | 'toolbar';
|
| - |
|
504 |
context?: string;
|
| 490 |
}
|
505 |
}
|
| 491 |
interface FormComponentSpec {
|
506 |
interface FormComponentSpec {
|
| 492 |
type: string;
|
507 |
type: string;
|
| 493 |
name: string;
|
508 |
name: string;
|
| 494 |
}
|
509 |
}
|
| Línea 497... |
Línea 512... |
| 497 |
}
|
512 |
}
|
| 498 |
interface CheckboxSpec extends FormComponentSpec {
|
513 |
interface CheckboxSpec extends FormComponentSpec {
|
| 499 |
type: 'checkbox';
|
514 |
type: 'checkbox';
|
| 500 |
label: string;
|
515 |
label: string;
|
| 501 |
enabled?: boolean;
|
516 |
enabled?: boolean;
|
| - |
|
517 |
context?: string;
|
| 502 |
}
|
518 |
}
|
| 503 |
interface CollectionSpec extends FormComponentWithLabelSpec {
|
519 |
interface CollectionSpec extends FormComponentWithLabelSpec {
|
| 504 |
type: 'collection';
|
520 |
type: 'collection';
|
| - |
|
521 |
context?: string;
|
| 505 |
}
|
522 |
}
|
| 506 |
interface CollectionItem {
|
523 |
interface CollectionItem {
|
| 507 |
value: string;
|
524 |
value: string;
|
| 508 |
text: string;
|
525 |
text: string;
|
| 509 |
icon: string;
|
526 |
icon: string;
|
| 510 |
}
|
527 |
}
|
| 511 |
interface ColorInputSpec extends FormComponentWithLabelSpec {
|
528 |
interface ColorInputSpec extends FormComponentWithLabelSpec {
|
| 512 |
type: 'colorinput';
|
529 |
type: 'colorinput';
|
| 513 |
storageKey?: string;
|
530 |
storageKey?: string;
|
| - |
|
531 |
context?: string;
|
| 514 |
}
|
532 |
}
|
| 515 |
interface ColorPickerSpec extends FormComponentWithLabelSpec {
|
533 |
interface ColorPickerSpec extends FormComponentWithLabelSpec {
|
| 516 |
type: 'colorpicker';
|
534 |
type: 'colorpicker';
|
| 517 |
}
|
535 |
}
|
| 518 |
interface CustomEditorInit {
|
536 |
interface CustomEditorInit {
|
| Línea 529... |
Línea 547... |
| 529 |
interface CustomEditorNewSpec extends FormComponentSpec {
|
547 |
interface CustomEditorNewSpec extends FormComponentSpec {
|
| 530 |
type: 'customeditor';
|
548 |
type: 'customeditor';
|
| 531 |
tag?: string;
|
549 |
tag?: string;
|
| 532 |
scriptId: string;
|
550 |
scriptId: string;
|
| 533 |
scriptUrl: string;
|
551 |
scriptUrl: string;
|
| - |
|
552 |
onFocus?: (e: HTMLElement) => void;
|
| 534 |
settings?: any;
|
553 |
settings?: any;
|
| 535 |
}
|
554 |
}
|
| 536 |
type CustomEditorSpec = CustomEditorOldSpec | CustomEditorNewSpec;
|
555 |
type CustomEditorSpec = CustomEditorOldSpec | CustomEditorNewSpec;
|
| 537 |
interface DropZoneSpec extends FormComponentWithLabelSpec {
|
556 |
interface DropZoneSpec extends FormComponentWithLabelSpec {
|
| 538 |
type: 'dropzone';
|
557 |
type: 'dropzone';
|
| - |
|
558 |
context?: string;
|
| 539 |
}
|
559 |
}
|
| 540 |
interface GridSpec {
|
560 |
interface GridSpec {
|
| 541 |
type: 'grid';
|
561 |
type: 'grid';
|
| 542 |
columns: number;
|
562 |
columns: number;
|
| 543 |
items: BodyComponentSpec[];
|
563 |
items: BodyComponentSpec[];
|
| 544 |
}
|
564 |
}
|
| 545 |
interface HtmlPanelSpec {
|
565 |
interface HtmlPanelSpec {
|
| 546 |
type: 'htmlpanel';
|
566 |
type: 'htmlpanel';
|
| 547 |
html: string;
|
567 |
html: string;
|
| - |
|
568 |
onInit?: (el: HTMLElement) => void;
|
| 548 |
presets?: 'presentation' | 'document';
|
569 |
presets?: 'presentation' | 'document';
|
| - |
|
570 |
stretched?: boolean;
|
| 549 |
}
|
571 |
}
|
| 550 |
interface IframeSpec extends FormComponentWithLabelSpec {
|
572 |
interface IframeSpec extends FormComponentWithLabelSpec {
|
| 551 |
type: 'iframe';
|
573 |
type: 'iframe';
|
| 552 |
border?: boolean;
|
574 |
border?: boolean;
|
| 553 |
sandboxed?: boolean;
|
575 |
sandboxed?: boolean;
|
| Línea 562... |
Línea 584... |
| 562 |
type: 'input';
|
584 |
type: 'input';
|
| 563 |
inputMode?: string;
|
585 |
inputMode?: string;
|
| 564 |
placeholder?: string;
|
586 |
placeholder?: string;
|
| 565 |
maximized?: boolean;
|
587 |
maximized?: boolean;
|
| 566 |
enabled?: boolean;
|
588 |
enabled?: boolean;
|
| - |
|
589 |
context?: string;
|
| 567 |
}
|
590 |
}
|
| 568 |
type Alignment = 'start' | 'center' | 'end';
|
591 |
type Alignment = 'start' | 'center' | 'end';
|
| 569 |
interface LabelSpec {
|
592 |
interface LabelSpec {
|
| 570 |
type: 'label';
|
593 |
type: 'label';
|
| 571 |
label: string;
|
594 |
label: string;
|
| 572 |
items: BodyComponentSpec[];
|
595 |
items: BodyComponentSpec[];
|
| 573 |
align?: Alignment;
|
596 |
align?: Alignment;
|
| - |
|
597 |
for?: string;
|
| 574 |
}
|
598 |
}
|
| 575 |
interface ListBoxSingleItemSpec {
|
599 |
interface ListBoxSingleItemSpec {
|
| 576 |
text: string;
|
600 |
text: string;
|
| 577 |
value: string;
|
601 |
value: string;
|
| 578 |
}
|
602 |
}
|
| Línea 583... |
Línea 607... |
| 583 |
type ListBoxItemSpec = ListBoxNestedItemSpec | ListBoxSingleItemSpec;
|
607 |
type ListBoxItemSpec = ListBoxNestedItemSpec | ListBoxSingleItemSpec;
|
| 584 |
interface ListBoxSpec extends FormComponentWithLabelSpec {
|
608 |
interface ListBoxSpec extends FormComponentWithLabelSpec {
|
| 585 |
type: 'listbox';
|
609 |
type: 'listbox';
|
| 586 |
items: ListBoxItemSpec[];
|
610 |
items: ListBoxItemSpec[];
|
| 587 |
disabled?: boolean;
|
611 |
disabled?: boolean;
|
| - |
|
612 |
context?: string;
|
| 588 |
}
|
613 |
}
|
| 589 |
interface PanelSpec {
|
614 |
interface PanelSpec {
|
| 590 |
type: 'panel';
|
615 |
type: 'panel';
|
| 591 |
classes?: string[];
|
616 |
classes?: string[];
|
| 592 |
items: BodyComponentSpec[];
|
617 |
items: BodyComponentSpec[];
|
| Línea 598... |
Línea 623... |
| 598 |
interface SelectBoxSpec extends FormComponentWithLabelSpec {
|
623 |
interface SelectBoxSpec extends FormComponentWithLabelSpec {
|
| 599 |
type: 'selectbox';
|
624 |
type: 'selectbox';
|
| 600 |
items: SelectBoxItemSpec[];
|
625 |
items: SelectBoxItemSpec[];
|
| 601 |
size?: number;
|
626 |
size?: number;
|
| 602 |
enabled?: boolean;
|
627 |
enabled?: boolean;
|
| - |
|
628 |
context?: string;
|
| 603 |
}
|
629 |
}
|
| 604 |
interface SizeInputSpec extends FormComponentWithLabelSpec {
|
630 |
interface SizeInputSpec extends FormComponentWithLabelSpec {
|
| 605 |
type: 'sizeinput';
|
631 |
type: 'sizeinput';
|
| 606 |
constrain?: boolean;
|
632 |
constrain?: boolean;
|
| 607 |
enabled?: boolean;
|
633 |
enabled?: boolean;
|
| - |
|
634 |
context?: string;
|
| 608 |
}
|
635 |
}
|
| 609 |
interface SliderSpec extends FormComponentSpec {
|
636 |
interface SliderSpec extends FormComponentSpec {
|
| 610 |
type: 'slider';
|
637 |
type: 'slider';
|
| 611 |
label: string;
|
638 |
label: string;
|
| 612 |
min?: number;
|
639 |
min?: number;
|
| Línea 620... |
Línea 647... |
| 620 |
interface TextAreaSpec extends FormComponentWithLabelSpec {
|
647 |
interface TextAreaSpec extends FormComponentWithLabelSpec {
|
| 621 |
type: 'textarea';
|
648 |
type: 'textarea';
|
| 622 |
placeholder?: string;
|
649 |
placeholder?: string;
|
| 623 |
maximized?: boolean;
|
650 |
maximized?: boolean;
|
| 624 |
enabled?: boolean;
|
651 |
enabled?: boolean;
|
| - |
|
652 |
context?: string;
|
| 625 |
}
|
653 |
}
|
| 626 |
interface BaseToolbarButtonSpec<I extends BaseToolbarButtonInstanceApi> {
|
654 |
interface BaseToolbarButtonSpec<I extends BaseToolbarButtonInstanceApi> {
|
| 627 |
enabled?: boolean;
|
655 |
enabled?: boolean;
|
| 628 |
tooltip?: string;
|
656 |
tooltip?: string;
|
| 629 |
icon?: string;
|
657 |
icon?: string;
|
| 630 |
text?: string;
|
658 |
text?: string;
|
| 631 |
onSetup?: (api: I) => (api: I) => void;
|
659 |
onSetup?: (api: I) => (api: I) => void;
|
| - |
|
660 |
context?: string;
|
| 632 |
}
|
661 |
}
|
| 633 |
interface BaseToolbarButtonInstanceApi {
|
662 |
interface BaseToolbarButtonInstanceApi {
|
| 634 |
isEnabled: () => boolean;
|
663 |
isEnabled: () => boolean;
|
| 635 |
setEnabled: (state: boolean) => void;
|
664 |
setEnabled: (state: boolean) => void;
|
| 636 |
setText: (text: string) => void;
|
665 |
setText: (text: string) => void;
|
| 637 |
setIcon: (icon: string) => void;
|
666 |
setIcon: (icon: string) => void;
|
| 638 |
}
|
667 |
}
|
| 639 |
interface ToolbarButtonSpec extends BaseToolbarButtonSpec<ToolbarButtonInstanceApi> {
|
668 |
interface ToolbarButtonSpec extends BaseToolbarButtonSpec<ToolbarButtonInstanceApi> {
|
| 640 |
type?: 'button';
|
669 |
type?: 'button';
|
| 641 |
onAction: (api: ToolbarButtonInstanceApi) => void;
|
670 |
onAction: (api: ToolbarButtonInstanceApi) => void;
|
| - |
|
671 |
shortcut?: string;
|
| 642 |
}
|
672 |
}
|
| 643 |
interface ToolbarButtonInstanceApi extends BaseToolbarButtonInstanceApi {
|
673 |
interface ToolbarButtonInstanceApi extends BaseToolbarButtonInstanceApi {
|
| 644 |
}
|
674 |
}
|
| 645 |
interface ToolbarGroupSetting {
|
675 |
interface ToolbarGroupSetting {
|
| 646 |
name: string;
|
676 |
name: string;
|
| Línea 680... |
Línea 710... |
| 680 |
enabled?: boolean;
|
710 |
enabled?: boolean;
|
| 681 |
text?: string;
|
711 |
text?: string;
|
| 682 |
value?: string;
|
712 |
value?: string;
|
| 683 |
meta?: Record<string, any>;
|
713 |
meta?: Record<string, any>;
|
| 684 |
shortcut?: string;
|
714 |
shortcut?: string;
|
| - |
|
715 |
context?: string;
|
| 685 |
}
|
716 |
}
|
| 686 |
interface CommonMenuItemInstanceApi {
|
717 |
interface CommonMenuItemInstanceApi {
|
| 687 |
isEnabled: () => boolean;
|
718 |
isEnabled: () => boolean;
|
| 688 |
setEnabled: (state: boolean) => void;
|
719 |
setEnabled: (state: boolean) => void;
|
| 689 |
}
|
720 |
}
|
| Línea 719... |
Línea 750... |
| 719 |
type ContextMenuContents = string | ContextMenuItem | SeparatorMenuItemSpec | ContextSubMenu;
|
750 |
type ContextMenuContents = string | ContextMenuItem | SeparatorMenuItemSpec | ContextSubMenu;
|
| 720 |
interface ContextMenuApi {
|
751 |
interface ContextMenuApi {
|
| 721 |
update: (element: Element) => string | Array<ContextMenuContents>;
|
752 |
update: (element: Element) => string | Array<ContextMenuContents>;
|
| 722 |
}
|
753 |
}
|
| 723 |
interface FancyActionArgsMap {
|
754 |
interface FancyActionArgsMap {
|
| 724 |
'inserttable': {
|
755 |
inserttable: {
|
| 725 |
numRows: number;
|
756 |
numRows: number;
|
| 726 |
numColumns: number;
|
757 |
numColumns: number;
|
| 727 |
};
|
758 |
};
|
| 728 |
'colorswatch': {
|
759 |
colorswatch: {
|
| 729 |
value: string;
|
760 |
value: string;
|
| 730 |
};
|
761 |
};
|
| 731 |
}
|
762 |
}
|
| 732 |
interface BaseFancyMenuItemSpec<T extends keyof FancyActionArgsMap> {
|
763 |
interface BaseFancyMenuItemSpec<T extends keyof FancyActionArgsMap> {
|
| 733 |
type: 'fancymenuitem';
|
764 |
type: 'fancymenuitem';
|
| Línea 795... |
Línea 826... |
| 795 |
search?: boolean | {
|
826 |
search?: boolean | {
|
| 796 |
placeholder?: string;
|
827 |
placeholder?: string;
|
| 797 |
};
|
828 |
};
|
| 798 |
fetch: (success: SuccessCallback$1, fetchContext: MenuButtonFetchContext, api: BaseMenuButtonInstanceApi) => void;
|
829 |
fetch: (success: SuccessCallback$1, fetchContext: MenuButtonFetchContext, api: BaseMenuButtonInstanceApi) => void;
|
| 799 |
onSetup?: (api: BaseMenuButtonInstanceApi) => (api: BaseMenuButtonInstanceApi) => void;
|
830 |
onSetup?: (api: BaseMenuButtonInstanceApi) => (api: BaseMenuButtonInstanceApi) => void;
|
| - |
|
831 |
context?: string;
|
| 800 |
}
|
832 |
}
|
| 801 |
interface BaseMenuButtonInstanceApi {
|
833 |
interface BaseMenuButtonInstanceApi {
|
| 802 |
isEnabled: () => boolean;
|
834 |
isEnabled: () => boolean;
|
| 803 |
setEnabled: (state: boolean) => void;
|
835 |
setEnabled: (state: boolean) => void;
|
| 804 |
isActive: () => boolean;
|
836 |
isActive: () => boolean;
|
| Línea 827... |
Línea 859... |
| 827 |
columns?: ColumnTypes$1;
|
859 |
columns?: ColumnTypes$1;
|
| 828 |
fetch: (success: SuccessCallback) => void;
|
860 |
fetch: (success: SuccessCallback) => void;
|
| 829 |
onSetup?: (api: ToolbarSplitButtonInstanceApi) => (api: ToolbarSplitButtonInstanceApi) => void;
|
861 |
onSetup?: (api: ToolbarSplitButtonInstanceApi) => (api: ToolbarSplitButtonInstanceApi) => void;
|
| 830 |
onAction: (api: ToolbarSplitButtonInstanceApi) => void;
|
862 |
onAction: (api: ToolbarSplitButtonInstanceApi) => void;
|
| 831 |
onItemAction: (api: ToolbarSplitButtonInstanceApi, value: string) => void;
|
863 |
onItemAction: (api: ToolbarSplitButtonInstanceApi, value: string) => void;
|
| - |
|
864 |
context?: string;
|
| 832 |
}
|
865 |
}
|
| 833 |
interface ToolbarSplitButtonInstanceApi {
|
866 |
interface ToolbarSplitButtonInstanceApi {
|
| 834 |
isEnabled: () => boolean;
|
867 |
isEnabled: () => boolean;
|
| 835 |
setEnabled: (state: boolean) => void;
|
868 |
setEnabled: (state: boolean) => void;
|
| 836 |
setIconFill: (id: string, value: string) => void;
|
869 |
setIconFill: (id: string, value: string) => void;
|
| Línea 848... |
Línea 881... |
| 848 |
setActive: (state: boolean) => void;
|
881 |
setActive: (state: boolean) => void;
|
| 849 |
}
|
882 |
}
|
| 850 |
interface ToolbarToggleButtonSpec extends BaseToolbarToggleButtonSpec<ToolbarToggleButtonInstanceApi> {
|
883 |
interface ToolbarToggleButtonSpec extends BaseToolbarToggleButtonSpec<ToolbarToggleButtonInstanceApi> {
|
| 851 |
type?: 'togglebutton';
|
884 |
type?: 'togglebutton';
|
| 852 |
onAction: (api: ToolbarToggleButtonInstanceApi) => void;
|
885 |
onAction: (api: ToolbarToggleButtonInstanceApi) => void;
|
| - |
|
886 |
shortcut?: string;
|
| 853 |
}
|
887 |
}
|
| 854 |
interface ToolbarToggleButtonInstanceApi extends BaseToolbarToggleButtonInstanceApi {
|
888 |
interface ToolbarToggleButtonInstanceApi extends BaseToolbarToggleButtonInstanceApi {
|
| 855 |
}
|
889 |
}
|
| 856 |
type Id = string;
|
890 |
type Id = string;
|
| 857 |
interface TreeSpec {
|
891 |
interface TreeSpec {
|
| Línea 867... |
Línea 901... |
| 867 |
}
|
901 |
}
|
| 868 |
interface BaseTreeItemSpec {
|
902 |
interface BaseTreeItemSpec {
|
| 869 |
title: string;
|
903 |
title: string;
|
| 870 |
id: Id;
|
904 |
id: Id;
|
| 871 |
menu?: ToolbarMenuButtonSpec;
|
905 |
menu?: ToolbarMenuButtonSpec;
|
| - |
|
906 |
customStateIcon?: string;
|
| - |
|
907 |
customStateIconTooltip?: string;
|
| 872 |
}
|
908 |
}
|
| 873 |
interface DirectorySpec extends BaseTreeItemSpec {
|
909 |
interface DirectorySpec extends BaseTreeItemSpec {
|
| 874 |
type: 'directory';
|
910 |
type: 'directory';
|
| 875 |
children: TreeItemSpec[];
|
911 |
children: TreeItemSpec[];
|
| 876 |
}
|
912 |
}
|
| Línea 881... |
Línea 917... |
| 881 |
interface UrlInputSpec extends FormComponentWithLabelSpec {
|
917 |
interface UrlInputSpec extends FormComponentWithLabelSpec {
|
| 882 |
type: 'urlinput';
|
918 |
type: 'urlinput';
|
| 883 |
filetype?: 'image' | 'media' | 'file';
|
919 |
filetype?: 'image' | 'media' | 'file';
|
| 884 |
enabled?: boolean;
|
920 |
enabled?: boolean;
|
| 885 |
picker_text?: string;
|
921 |
picker_text?: string;
|
| - |
|
922 |
context?: string;
|
| 886 |
}
|
923 |
}
|
| 887 |
interface UrlInputData {
|
924 |
interface UrlInputData {
|
| 888 |
value: string;
|
925 |
value: string;
|
| 889 |
meta: {
|
926 |
meta: {
|
| 890 |
text?: string;
|
927 |
text?: string;
|
| Línea 905... |
Línea 942... |
| 905 |
align?: 'start' | 'end';
|
942 |
align?: 'start' | 'end';
|
| 906 |
primary?: boolean;
|
943 |
primary?: boolean;
|
| 907 |
enabled?: boolean;
|
944 |
enabled?: boolean;
|
| 908 |
icon?: string;
|
945 |
icon?: string;
|
| 909 |
buttonType?: 'primary' | 'secondary';
|
946 |
buttonType?: 'primary' | 'secondary';
|
| - |
|
947 |
context?: string;
|
| 910 |
}
|
948 |
}
|
| 911 |
interface DialogFooterNormalButtonSpec extends BaseDialogFooterButtonSpec {
|
949 |
interface DialogFooterNormalButtonSpec extends BaseDialogFooterButtonSpec {
|
| 912 |
type: 'submit' | 'cancel' | 'custom';
|
950 |
type: 'submit' | 'cancel' | 'custom';
|
| 913 |
text: string;
|
951 |
text: string;
|
| 914 |
}
|
952 |
}
|
| Línea 1023... |
Línea 1061... |
| 1023 |
meta?: Record<string, any>;
|
1061 |
meta?: Record<string, any>;
|
| 1024 |
}
|
1062 |
}
|
| 1025 |
type AutocompleterContents = SeparatorItemSpec | AutocompleterItemSpec | CardMenuItemSpec;
|
1063 |
type AutocompleterContents = SeparatorItemSpec | AutocompleterItemSpec | CardMenuItemSpec;
|
| 1026 |
interface AutocompleterSpec {
|
1064 |
interface AutocompleterSpec {
|
| 1027 |
type?: 'autocompleter';
|
1065 |
type?: 'autocompleter';
|
| 1028 |
ch?: string;
|
- |
|
| 1029 |
trigger?: string;
|
1066 |
trigger: string;
|
| 1030 |
minChars?: number;
|
1067 |
minChars?: number;
|
| 1031 |
columns?: ColumnTypes;
|
1068 |
columns?: ColumnTypes;
|
| 1032 |
matches?: (rng: Range, text: string, pattern: string) => boolean;
|
1069 |
matches?: (rng: Range, text: string, pattern: string) => boolean;
|
| 1033 |
fetch: (pattern: string, maxResults: number, fetchOptions: Record<string, any>) => Promise<AutocompleterContents[]>;
|
1070 |
fetch: (pattern: string, maxResults: number, fetchOptions: Record<string, any>) => Promise<AutocompleterContents[]>;
|
| 1034 |
onAction: (autocompleterApi: AutocompleterInstanceApi, rng: Range, value: string, meta: Record<string, any>) => void;
|
1071 |
onAction: (autocompleterApi: AutocompleterInstanceApi, rng: Range, value: string, meta: Record<string, any>) => void;
|
| Línea 1054... |
Línea 1091... |
| 1054 |
}
|
1091 |
}
|
| 1055 |
interface ContextFormButtonInstanceApi extends BaseToolbarButtonInstanceApi {
|
1092 |
interface ContextFormButtonInstanceApi extends BaseToolbarButtonInstanceApi {
|
| 1056 |
}
|
1093 |
}
|
| 1057 |
interface ContextFormToggleButtonInstanceApi extends BaseToolbarToggleButtonInstanceApi {
|
1094 |
interface ContextFormToggleButtonInstanceApi extends BaseToolbarToggleButtonInstanceApi {
|
| 1058 |
}
|
1095 |
}
|
| 1059 |
interface ContextFormButtonSpec extends BaseToolbarButtonSpec<ContextFormButtonInstanceApi> {
|
1096 |
interface ContextFormButtonSpec<T> extends BaseToolbarButtonSpec<ContextFormButtonInstanceApi> {
|
| 1060 |
type?: 'contextformbutton';
|
1097 |
type?: 'contextformbutton';
|
| 1061 |
primary?: boolean;
|
1098 |
primary?: boolean;
|
| - |
|
1099 |
align?: 'start' | 'end';
|
| 1062 |
onAction: (formApi: ContextFormInstanceApi, api: ContextFormButtonInstanceApi) => void;
|
1100 |
onAction: (formApi: ContextFormInstanceApi<T>, api: ContextFormButtonInstanceApi) => void;
|
| 1063 |
}
|
1101 |
}
|
| 1064 |
interface ContextFormToggleButtonSpec extends BaseToolbarToggleButtonSpec<ContextFormToggleButtonInstanceApi> {
|
1102 |
interface ContextFormToggleButtonSpec<T> extends BaseToolbarToggleButtonSpec<ContextFormToggleButtonInstanceApi> {
|
| 1065 |
type?: 'contextformtogglebutton';
|
1103 |
type?: 'contextformtogglebutton';
|
| 1066 |
onAction: (formApi: ContextFormInstanceApi, buttonApi: ContextFormToggleButtonInstanceApi) => void;
|
- |
|
| 1067 |
primary?: boolean;
|
1104 |
primary?: boolean;
|
| - |
|
1105 |
align?: 'start' | 'end';
|
| - |
|
1106 |
onAction: (formApi: ContextFormInstanceApi<T>, buttonApi: ContextFormToggleButtonInstanceApi) => void;
|
| 1068 |
}
|
1107 |
}
|
| 1069 |
interface ContextFormInstanceApi {
|
1108 |
interface ContextFormInstanceApi<T> {
|
| - |
|
1109 |
setInputEnabled: (state: boolean) => void;
|
| - |
|
1110 |
isInputEnabled: () => boolean;
|
| 1070 |
hide: () => void;
|
1111 |
hide: () => void;
|
| - |
|
1112 |
back: () => void;
|
| 1071 |
getValue: () => string;
|
1113 |
getValue: () => T;
|
| - |
|
1114 |
setValue: (value: T) => void;
|
| - |
|
1115 |
}
|
| - |
|
1116 |
interface SizeData {
|
| - |
|
1117 |
width: string;
|
| - |
|
1118 |
height: string;
|
| 1072 |
}
|
1119 |
}
|
| 1073 |
interface ContextFormSpec extends ContextBarSpec {
|
1120 |
interface BaseContextFormSpec<T> extends ContextBarSpec {
|
| 1074 |
type?: 'contextform';
|
- |
|
| 1075 |
initValue?: () => string;
|
1121 |
initValue?: () => T;
|
| 1076 |
label?: string;
|
1122 |
label?: string;
|
| 1077 |
launch?: ContextFormLaunchButtonApi | ContextFormLaunchToggleButtonSpec;
|
1123 |
launch?: ContextFormLaunchButtonApi | ContextFormLaunchToggleButtonSpec;
|
| 1078 |
commands: Array<ContextFormToggleButtonSpec | ContextFormButtonSpec>;
|
1124 |
commands: Array<ContextFormToggleButtonSpec<T> | ContextFormButtonSpec<T>>;
|
| - |
|
1125 |
onInput?: (api: ContextFormInstanceApi<T>) => void;
|
| - |
|
1126 |
onSetup?: (api: ContextFormInstanceApi<T>) => (api: ContextFormInstanceApi<T>) => void;
|
| - |
|
1127 |
}
|
| - |
|
1128 |
interface ContextInputFormSpec extends BaseContextFormSpec<string> {
|
| - |
|
1129 |
type?: 'contextform';
|
| - |
|
1130 |
placeholder?: string;
|
| - |
|
1131 |
}
|
| - |
|
1132 |
interface ContextSliderFormSpec extends BaseContextFormSpec<number> {
|
| - |
|
1133 |
type: 'contextsliderform';
|
| - |
|
1134 |
min?: () => number;
|
| - |
|
1135 |
max?: () => number;
|
| - |
|
1136 |
}
|
| - |
|
1137 |
interface ContextSizeInputFormSpec extends BaseContextFormSpec<SizeData> {
|
| - |
|
1138 |
type: 'contextsizeinputform';
|
| - |
|
1139 |
}
|
| - |
|
1140 |
type ContextFormSpec = ContextInputFormSpec | ContextSliderFormSpec | ContextSizeInputFormSpec;
|
| - |
|
1141 |
interface ToolbarGroupSpec {
|
| - |
|
1142 |
name?: string;
|
| - |
|
1143 |
label?: string;
|
| - |
|
1144 |
items: string[];
|
| 1079 |
}
|
1145 |
}
|
| 1080 |
interface ContextToolbarSpec extends ContextBarSpec {
|
1146 |
interface ContextToolbarSpec extends ContextBarSpec {
|
| 1081 |
type?: 'contexttoolbar';
|
1147 |
type?: 'contexttoolbar';
|
| 1082 |
items: string;
|
1148 |
items: string | ToolbarGroupSpec[];
|
| 1083 |
}
|
1149 |
}
|
| 1084 |
type PublicDialog_d_AlertBannerSpec = AlertBannerSpec;
|
1150 |
type PublicDialog_d_AlertBannerSpec = AlertBannerSpec;
|
| 1085 |
type PublicDialog_d_BarSpec = BarSpec;
|
1151 |
type PublicDialog_d_BarSpec = BarSpec;
|
| 1086 |
type PublicDialog_d_BodyComponentSpec = BodyComponentSpec;
|
1152 |
type PublicDialog_d_BodyComponentSpec = BodyComponentSpec;
|
| 1087 |
type PublicDialog_d_ButtonSpec = ButtonSpec;
|
1153 |
type PublicDialog_d_ButtonSpec = ButtonSpec;
|
| Línea 1138... |
Línea 1204... |
| 1138 |
type PublicInlineContent_d_AutocompleterContents = AutocompleterContents;
|
1204 |
type PublicInlineContent_d_AutocompleterContents = AutocompleterContents;
|
| 1139 |
type PublicInlineContent_d_AutocompleterInstanceApi = AutocompleterInstanceApi;
|
1205 |
type PublicInlineContent_d_AutocompleterInstanceApi = AutocompleterInstanceApi;
|
| 1140 |
type PublicInlineContent_d_ContextPosition = ContextPosition;
|
1206 |
type PublicInlineContent_d_ContextPosition = ContextPosition;
|
| 1141 |
type PublicInlineContent_d_ContextScope = ContextScope;
|
1207 |
type PublicInlineContent_d_ContextScope = ContextScope;
|
| 1142 |
type PublicInlineContent_d_ContextFormSpec = ContextFormSpec;
|
1208 |
type PublicInlineContent_d_ContextFormSpec = ContextFormSpec;
|
| 1143 |
type PublicInlineContent_d_ContextFormInstanceApi = ContextFormInstanceApi;
|
1209 |
type PublicInlineContent_d_ContextFormInstanceApi<T> = ContextFormInstanceApi<T>;
|
| 1144 |
type PublicInlineContent_d_ContextFormButtonSpec = ContextFormButtonSpec;
|
1210 |
type PublicInlineContent_d_ContextFormButtonSpec<T> = ContextFormButtonSpec<T>;
|
| 1145 |
type PublicInlineContent_d_ContextFormButtonInstanceApi = ContextFormButtonInstanceApi;
|
1211 |
type PublicInlineContent_d_ContextFormButtonInstanceApi = ContextFormButtonInstanceApi;
|
| 1146 |
type PublicInlineContent_d_ContextFormToggleButtonSpec = ContextFormToggleButtonSpec;
|
1212 |
type PublicInlineContent_d_ContextFormToggleButtonSpec<T> = ContextFormToggleButtonSpec<T>;
|
| 1147 |
type PublicInlineContent_d_ContextFormToggleButtonInstanceApi = ContextFormToggleButtonInstanceApi;
|
1213 |
type PublicInlineContent_d_ContextFormToggleButtonInstanceApi = ContextFormToggleButtonInstanceApi;
|
| 1148 |
type PublicInlineContent_d_ContextToolbarSpec = ContextToolbarSpec;
|
1214 |
type PublicInlineContent_d_ContextToolbarSpec = ContextToolbarSpec;
|
| 1149 |
type PublicInlineContent_d_SeparatorItemSpec = SeparatorItemSpec;
|
1215 |
type PublicInlineContent_d_SeparatorItemSpec = SeparatorItemSpec;
|
| 1150 |
declare namespace PublicInlineContent_d {
|
1216 |
declare namespace PublicInlineContent_d {
|
| 1151 |
export { PublicInlineContent_d_AutocompleterSpec as AutocompleterSpec, PublicInlineContent_d_AutocompleterItemSpec as AutocompleterItemSpec, PublicInlineContent_d_AutocompleterContents as AutocompleterContents, PublicInlineContent_d_AutocompleterInstanceApi as AutocompleterInstanceApi, PublicInlineContent_d_ContextPosition as ContextPosition, PublicInlineContent_d_ContextScope as ContextScope, PublicInlineContent_d_ContextFormSpec as ContextFormSpec, PublicInlineContent_d_ContextFormInstanceApi as ContextFormInstanceApi, PublicInlineContent_d_ContextFormButtonSpec as ContextFormButtonSpec, PublicInlineContent_d_ContextFormButtonInstanceApi as ContextFormButtonInstanceApi, PublicInlineContent_d_ContextFormToggleButtonSpec as ContextFormToggleButtonSpec, PublicInlineContent_d_ContextFormToggleButtonInstanceApi as ContextFormToggleButtonInstanceApi, PublicInlineContent_d_ContextToolbarSpec as ContextToolbarSpec, PublicInlineContent_d_SeparatorItemSpec as SeparatorItemSpec, };
|
1217 |
export { PublicInlineContent_d_AutocompleterSpec as AutocompleterSpec, PublicInlineContent_d_AutocompleterItemSpec as AutocompleterItemSpec, PublicInlineContent_d_AutocompleterContents as AutocompleterContents, PublicInlineContent_d_AutocompleterInstanceApi as AutocompleterInstanceApi, PublicInlineContent_d_ContextPosition as ContextPosition, PublicInlineContent_d_ContextScope as ContextScope, PublicInlineContent_d_ContextFormSpec as ContextFormSpec, PublicInlineContent_d_ContextFormInstanceApi as ContextFormInstanceApi, PublicInlineContent_d_ContextFormButtonSpec as ContextFormButtonSpec, PublicInlineContent_d_ContextFormButtonInstanceApi as ContextFormButtonInstanceApi, PublicInlineContent_d_ContextFormToggleButtonSpec as ContextFormToggleButtonSpec, PublicInlineContent_d_ContextFormToggleButtonInstanceApi as ContextFormToggleButtonInstanceApi, PublicInlineContent_d_ContextToolbarSpec as ContextToolbarSpec, PublicInlineContent_d_SeparatorItemSpec as SeparatorItemSpec, };
|
| Línea 1208... |
Línea 1274... |
| 1208 |
setIcon: (newIcon: string) => void;
|
1274 |
setIcon: (newIcon: string) => void;
|
| 1209 |
}
|
1275 |
}
|
| 1210 |
interface ViewToggleButtonApi extends ViewButtonApi {
|
1276 |
interface ViewToggleButtonApi extends ViewButtonApi {
|
| 1211 |
isActive: () => boolean;
|
1277 |
isActive: () => boolean;
|
| 1212 |
setActive: (state: boolean) => void;
|
1278 |
setActive: (state: boolean) => void;
|
| - |
|
1279 |
focus: () => void;
|
| 1213 |
}
|
1280 |
}
|
| 1214 |
interface BaseButtonSpec<Api extends ViewButtonApi> {
|
1281 |
interface BaseButtonSpec<Api extends ViewButtonApi> {
|
| 1215 |
text?: string;
|
1282 |
text?: string;
|
| 1216 |
icon?: string;
|
1283 |
icon?: string;
|
| 1217 |
tooltip?: string;
|
1284 |
tooltip?: string;
|
| 1218 |
buttonType?: 'primary' | 'secondary';
|
1285 |
buttonType?: 'primary' | 'secondary';
|
| 1219 |
borderless?: boolean;
|
1286 |
borderless?: boolean;
|
| 1220 |
onAction: (api: Api) => void;
|
1287 |
onAction: (api: Api) => void;
|
| - |
|
1288 |
context?: string;
|
| 1221 |
}
|
1289 |
}
|
| 1222 |
interface ViewNormalButtonSpec extends BaseButtonSpec<ViewButtonApi> {
|
1290 |
interface ViewNormalButtonSpec extends BaseButtonSpec<ViewButtonApi> {
|
| 1223 |
text: string;
|
1291 |
text: string;
|
| 1224 |
type: 'button';
|
1292 |
type: 'button';
|
| 1225 |
}
|
1293 |
}
|
| Línea 1260... |
Línea 1328... |
| 1260 |
addContextForm: (name: string, spec: ContextFormSpec) => void;
|
1328 |
addContextForm: (name: string, spec: ContextFormSpec) => void;
|
| 1261 |
addIcon: (name: string, svgData: string) => void;
|
1329 |
addIcon: (name: string, svgData: string) => void;
|
| 1262 |
addAutocompleter: (name: string, spec: AutocompleterSpec) => void;
|
1330 |
addAutocompleter: (name: string, spec: AutocompleterSpec) => void;
|
| 1263 |
addSidebar: (name: string, spec: SidebarSpec) => void;
|
1331 |
addSidebar: (name: string, spec: SidebarSpec) => void;
|
| 1264 |
addView: (name: string, spec: ViewSpec) => void;
|
1332 |
addView: (name: string, spec: ViewSpec) => void;
|
| - |
|
1333 |
addContext: (name: string, pred: (args: string) => boolean) => void;
|
| 1265 |
getAll: () => {
|
1334 |
getAll: () => {
|
| 1266 |
buttons: Record<string, ToolbarButtonSpec | GroupToolbarButtonSpec | ToolbarMenuButtonSpec | ToolbarSplitButtonSpec | ToolbarToggleButtonSpec>;
|
1335 |
buttons: Record<string, ToolbarButtonSpec | GroupToolbarButtonSpec | ToolbarMenuButtonSpec | ToolbarSplitButtonSpec | ToolbarToggleButtonSpec>;
|
| 1267 |
menuItems: Record<string, MenuItemSpec | NestedMenuItemSpec | ToggleMenuItemSpec>;
|
1336 |
menuItems: Record<string, MenuItemSpec | NestedMenuItemSpec | ToggleMenuItemSpec>;
|
| 1268 |
popups: Record<string, AutocompleterSpec>;
|
1337 |
popups: Record<string, AutocompleterSpec>;
|
| 1269 |
contextMenus: Record<string, ContextMenuApi>;
|
1338 |
contextMenus: Record<string, ContextMenuApi>;
|
| 1270 |
contextToolbars: Record<string, ContextToolbarSpec | ContextFormSpec>;
|
1339 |
contextToolbars: Record<string, ContextToolbarSpec | ContextFormSpec>;
|
| 1271 |
icons: Record<string, string>;
|
1340 |
icons: Record<string, string>;
|
| 1272 |
sidebars: Record<string, SidebarSpec>;
|
1341 |
sidebars: Record<string, SidebarSpec>;
|
| 1273 |
views: Record<string, ViewSpec>;
|
1342 |
views: Record<string, ViewSpec>;
|
| - |
|
1343 |
contexts: Record<string, (args: string) => boolean>;
|
| 1274 |
};
|
1344 |
};
|
| 1275 |
}
|
1345 |
}
|
| 1276 |
interface AutocompleteLookupData {
|
1346 |
interface AutocompleteLookupData {
|
| 1277 |
readonly matchText: string;
|
1347 |
readonly matchText: string;
|
| 1278 |
readonly items: AutocompleterContents[];
|
1348 |
readonly items: AutocompleterContents[];
|
| Línea 1371... |
Línea 1441... |
| 1371 |
allow_svg_data_urls?: boolean;
|
1441 |
allow_svg_data_urls?: boolean;
|
| 1372 |
allow_conditional_comments?: boolean;
|
1442 |
allow_conditional_comments?: boolean;
|
| 1373 |
allow_html_in_named_anchor?: boolean;
|
1443 |
allow_html_in_named_anchor?: boolean;
|
| 1374 |
allow_script_urls?: boolean;
|
1444 |
allow_script_urls?: boolean;
|
| 1375 |
allow_unsafe_link_target?: boolean;
|
1445 |
allow_unsafe_link_target?: boolean;
|
| - |
|
1446 |
allow_mathml_annotation_encodings?: string[];
|
| 1376 |
blob_cache?: BlobCache;
|
1447 |
blob_cache?: BlobCache;
|
| 1377 |
convert_fonts_to_spans?: boolean;
|
1448 |
convert_fonts_to_spans?: boolean;
|
| 1378 |
convert_unsafe_embeds?: boolean;
|
1449 |
convert_unsafe_embeds?: boolean;
|
| 1379 |
document?: Document;
|
1450 |
document?: Document;
|
| 1380 |
fix_list_elements?: boolean;
|
1451 |
fix_list_elements?: boolean;
|
| Línea 1382... |
Línea 1453... |
| 1382 |
forced_root_block?: boolean | string;
|
1453 |
forced_root_block?: boolean | string;
|
| 1383 |
forced_root_block_attrs?: Record<string, string>;
|
1454 |
forced_root_block_attrs?: Record<string, string>;
|
| 1384 |
inline_styles?: boolean;
|
1455 |
inline_styles?: boolean;
|
| 1385 |
pad_empty_with_br?: boolean;
|
1456 |
pad_empty_with_br?: boolean;
|
| 1386 |
preserve_cdata?: boolean;
|
1457 |
preserve_cdata?: boolean;
|
| 1387 |
remove_trailing_brs?: boolean;
|
- |
|
| 1388 |
root_name?: string;
|
1458 |
root_name?: string;
|
| 1389 |
sandbox_iframes?: boolean;
|
1459 |
sandbox_iframes?: boolean;
|
| - |
|
1460 |
sandbox_iframes_exclusions?: string[];
|
| 1390 |
sanitize?: boolean;
|
1461 |
sanitize?: boolean;
|
| 1391 |
validate?: boolean;
|
1462 |
validate?: boolean;
|
| 1392 |
}
|
1463 |
}
|
| 1393 |
interface DomParser {
|
1464 |
interface DomParser {
|
| 1394 |
schema: Schema;
|
1465 |
schema: Schema;
|
| Línea 1576... |
Línea 1647... |
| 1576 |
notification: NotificationSpec;
|
1647 |
notification: NotificationSpec;
|
| 1577 |
}
|
1648 |
}
|
| 1578 |
interface OpenNotificationEvent {
|
1649 |
interface OpenNotificationEvent {
|
| 1579 |
notification: NotificationApi;
|
1650 |
notification: NotificationApi;
|
| 1580 |
}
|
1651 |
}
|
| - |
|
1652 |
interface DisabledStateChangeEvent {
|
| - |
|
1653 |
readonly state: boolean;
|
| - |
|
1654 |
}
|
| 1581 |
interface EditorEventMap extends Omit<NativeEventMap, 'blur' | 'focus'> {
|
1655 |
interface EditorEventMap extends Omit<NativeEventMap, 'blur' | 'focus'> {
|
| 1582 |
'activate': {
|
1656 |
activate: {
|
| 1583 |
relatedTarget: Editor | null;
|
1657 |
relatedTarget: Editor | null;
|
| 1584 |
};
|
1658 |
};
|
| 1585 |
'deactivate': {
|
1659 |
deactivate: {
|
| 1586 |
relatedTarget: Editor;
|
1660 |
relatedTarget: Editor;
|
| 1587 |
};
|
1661 |
};
|
| 1588 |
'focus': {
|
1662 |
focus: {
|
| 1589 |
blurredEditor: Editor | null;
|
1663 |
blurredEditor: Editor | null;
|
| 1590 |
};
|
1664 |
};
|
| 1591 |
'blur': {
|
1665 |
blur: {
|
| 1592 |
focusedEditor: Editor | null;
|
1666 |
focusedEditor: Editor | null;
|
| 1593 |
};
|
1667 |
};
|
| 1594 |
'resize': UIEvent;
|
1668 |
resize: UIEvent;
|
| 1595 |
'scroll': UIEvent;
|
1669 |
scroll: UIEvent;
|
| 1596 |
'input': InputEvent;
|
1670 |
input: InputEvent;
|
| 1597 |
'beforeinput': InputEvent;
|
1671 |
beforeinput: InputEvent;
|
| 1598 |
'detach': {};
|
1672 |
detach: {};
|
| 1599 |
'remove': {};
|
1673 |
remove: {};
|
| 1600 |
'init': {};
|
1674 |
init: {};
|
| 1601 |
'ScrollIntoView': ScrollIntoViewEvent;
|
1675 |
ScrollIntoView: ScrollIntoViewEvent;
|
| 1602 |
'AfterScrollIntoView': ScrollIntoViewEvent;
|
1676 |
AfterScrollIntoView: ScrollIntoViewEvent;
|
| 1603 |
'ObjectResized': ObjectResizeEvent;
|
1677 |
ObjectResized: ObjectResizeEvent;
|
| 1604 |
'ObjectResizeStart': ObjectResizeEvent;
|
1678 |
ObjectResizeStart: ObjectResizeEvent;
|
| 1605 |
'SwitchMode': SwitchModeEvent;
|
1679 |
SwitchMode: SwitchModeEvent;
|
| 1606 |
'ScrollWindow': Event;
|
1680 |
ScrollWindow: Event;
|
| 1607 |
'ResizeWindow': UIEvent;
|
1681 |
ResizeWindow: UIEvent;
|
| 1608 |
'SkinLoaded': {};
|
1682 |
SkinLoaded: {};
|
| 1609 |
'SkinLoadError': LoadErrorEvent;
|
1683 |
SkinLoadError: LoadErrorEvent;
|
| 1610 |
'PluginLoadError': LoadErrorEvent;
|
1684 |
PluginLoadError: LoadErrorEvent;
|
| 1611 |
'ModelLoadError': LoadErrorEvent;
|
1685 |
ModelLoadError: LoadErrorEvent;
|
| 1612 |
'IconsLoadError': LoadErrorEvent;
|
1686 |
IconsLoadError: LoadErrorEvent;
|
| 1613 |
'ThemeLoadError': LoadErrorEvent;
|
1687 |
ThemeLoadError: LoadErrorEvent;
|
| 1614 |
'LanguageLoadError': LoadErrorEvent;
|
1688 |
LanguageLoadError: LoadErrorEvent;
|
| 1615 |
'BeforeExecCommand': ExecCommandEvent;
|
1689 |
BeforeExecCommand: ExecCommandEvent;
|
| 1616 |
'ExecCommand': ExecCommandEvent;
|
1690 |
ExecCommand: ExecCommandEvent;
|
| 1617 |
'NodeChange': NodeChangeEvent;
|
1691 |
NodeChange: NodeChangeEvent;
|
| 1618 |
'FormatApply': FormatEvent;
|
1692 |
FormatApply: FormatEvent;
|
| 1619 |
'FormatRemove': FormatEvent;
|
1693 |
FormatRemove: FormatEvent;
|
| 1620 |
'ShowCaret': ShowCaretEvent;
|
1694 |
ShowCaret: ShowCaretEvent;
|
| 1621 |
'SelectionChange': {};
|
1695 |
SelectionChange: {};
|
| 1622 |
'ObjectSelected': ObjectSelectedEvent;
|
1696 |
ObjectSelected: ObjectSelectedEvent;
|
| 1623 |
'BeforeObjectSelected': ObjectSelectedEvent;
|
1697 |
BeforeObjectSelected: ObjectSelectedEvent;
|
| 1624 |
'GetSelectionRange': {
|
1698 |
GetSelectionRange: {
|
| 1625 |
range: Range;
|
1699 |
range: Range;
|
| 1626 |
};
|
1700 |
};
|
| 1627 |
'SetSelectionRange': SetSelectionRangeEvent;
|
1701 |
SetSelectionRange: SetSelectionRangeEvent;
|
| 1628 |
'AfterSetSelectionRange': SetSelectionRangeEvent;
|
1702 |
AfterSetSelectionRange: SetSelectionRangeEvent;
|
| 1629 |
'BeforeGetContent': BeforeGetContentEvent;
|
1703 |
BeforeGetContent: BeforeGetContentEvent;
|
| 1630 |
'GetContent': GetContentEvent;
|
1704 |
GetContent: GetContentEvent;
|
| 1631 |
'BeforeSetContent': BeforeSetContentEvent;
|
1705 |
BeforeSetContent: BeforeSetContentEvent;
|
| 1632 |
'SetContent': SetContentEvent;
|
1706 |
SetContent: SetContentEvent;
|
| 1633 |
'SaveContent': SaveContentEvent;
|
1707 |
SaveContent: SaveContentEvent;
|
| 1634 |
'RawSaveContent': SaveContentEvent;
|
1708 |
RawSaveContent: SaveContentEvent;
|
| 1635 |
'LoadContent': {
|
1709 |
LoadContent: {
|
| 1636 |
load: boolean;
|
1710 |
load: boolean;
|
| 1637 |
element: HTMLElement;
|
1711 |
element: HTMLElement;
|
| 1638 |
};
|
1712 |
};
|
| 1639 |
'PreviewFormats': {};
|
1713 |
PreviewFormats: {};
|
| 1640 |
'AfterPreviewFormats': {};
|
1714 |
AfterPreviewFormats: {};
|
| 1641 |
'ScriptsLoaded': {};
|
1715 |
ScriptsLoaded: {};
|
| 1642 |
'PreInit': {};
|
1716 |
PreInit: {};
|
| 1643 |
'PostRender': {};
|
1717 |
PostRender: {};
|
| 1644 |
'NewBlock': NewBlockEvent;
|
1718 |
NewBlock: NewBlockEvent;
|
| 1645 |
'ClearUndos': {};
|
1719 |
ClearUndos: {};
|
| 1646 |
'TypingUndo': {};
|
1720 |
TypingUndo: {};
|
| 1647 |
'Redo': UndoRedoEvent;
|
1721 |
Redo: UndoRedoEvent;
|
| 1648 |
'Undo': UndoRedoEvent;
|
1722 |
Undo: UndoRedoEvent;
|
| 1649 |
'BeforeAddUndo': AddUndoEvent;
|
1723 |
BeforeAddUndo: AddUndoEvent;
|
| 1650 |
'AddUndo': AddUndoEvent;
|
1724 |
AddUndo: AddUndoEvent;
|
| 1651 |
'change': ChangeEvent;
|
1725 |
change: ChangeEvent;
|
| 1652 |
'CloseWindow': WindowEvent<any>;
|
1726 |
CloseWindow: WindowEvent<any>;
|
| 1653 |
'OpenWindow': WindowEvent<any>;
|
1727 |
OpenWindow: WindowEvent<any>;
|
| 1654 |
'ProgressState': ProgressStateEvent;
|
1728 |
ProgressState: ProgressStateEvent;
|
| 1655 |
'AfterProgressState': AfterProgressStateEvent;
|
1729 |
AfterProgressState: AfterProgressStateEvent;
|
| 1656 |
'PlaceholderToggle': PlaceholderToggleEvent;
|
1730 |
PlaceholderToggle: PlaceholderToggleEvent;
|
| 1657 |
'tap': TouchEvent;
|
1731 |
tap: TouchEvent;
|
| 1658 |
'longpress': TouchEvent;
|
1732 |
longpress: TouchEvent;
|
| 1659 |
'longpresscancel': {};
|
1733 |
longpresscancel: {};
|
| 1660 |
'PreProcess': PreProcessEvent;
|
1734 |
PreProcess: PreProcessEvent;
|
| 1661 |
'PostProcess': PostProcessEvent;
|
1735 |
PostProcess: PostProcessEvent;
|
| 1662 |
'AutocompleterStart': AutocompleterEventArgs;
|
1736 |
AutocompleterStart: AutocompleterEventArgs;
|
| 1663 |
'AutocompleterUpdate': AutocompleterEventArgs;
|
1737 |
AutocompleterUpdate: AutocompleterEventArgs;
|
| 1664 |
'AutocompleterEnd': {};
|
1738 |
AutocompleterEnd: {};
|
| 1665 |
'PastePlainTextToggle': PastePlainTextToggleEvent;
|
1739 |
PastePlainTextToggle: PastePlainTextToggleEvent;
|
| 1666 |
'PastePreProcess': PastePreProcessEvent;
|
1740 |
PastePreProcess: PastePreProcessEvent;
|
| 1667 |
'PastePostProcess': PastePostProcessEvent;
|
1741 |
PastePostProcess: PastePostProcessEvent;
|
| 1668 |
'TableModified': TableModifiedEvent;
|
1742 |
TableModified: TableModifiedEvent;
|
| 1669 |
'NewRow': NewTableRowEvent;
|
1743 |
NewRow: NewTableRowEvent;
|
| 1670 |
'NewCell': NewTableCellEvent;
|
1744 |
NewCell: NewTableCellEvent;
|
| 1671 |
'SetAttrib': SetAttribEvent;
|
1745 |
SetAttrib: SetAttribEvent;
|
| 1672 |
'hide': {};
|
1746 |
hide: {};
|
| 1673 |
'show': {};
|
1747 |
show: {};
|
| 1674 |
'dirty': {};
|
1748 |
dirty: {};
|
| 1675 |
'BeforeOpenNotification': BeforeOpenNotificationEvent;
|
1749 |
BeforeOpenNotification: BeforeOpenNotificationEvent;
|
| 1676 |
'OpenNotification': OpenNotificationEvent;
|
1750 |
OpenNotification: OpenNotificationEvent;
|
| 1677 |
}
|
1751 |
}
|
| 1678 |
interface EditorManagerEventMap {
|
1752 |
interface EditorManagerEventMap {
|
| 1679 |
'AddEditor': {
|
1753 |
AddEditor: {
|
| 1680 |
editor: Editor;
|
1754 |
editor: Editor;
|
| 1681 |
};
|
1755 |
};
|
| 1682 |
'RemoveEditor': {
|
1756 |
RemoveEditor: {
|
| 1683 |
editor: Editor;
|
1757 |
editor: Editor;
|
| 1684 |
};
|
1758 |
};
|
| 1685 |
'BeforeUnload': {
|
1759 |
BeforeUnload: {
|
| 1686 |
returnValue: any;
|
1760 |
returnValue: any;
|
| 1687 |
};
|
1761 |
};
|
| 1688 |
}
|
1762 |
}
|
| 1689 |
type EventTypes_d_ExecCommandEvent = ExecCommandEvent;
|
1763 |
type EventTypes_d_ExecCommandEvent = ExecCommandEvent;
|
| 1690 |
type EventTypes_d_BeforeGetContentEvent = BeforeGetContentEvent;
|
1764 |
type EventTypes_d_BeforeGetContentEvent = BeforeGetContentEvent;
|
| Línea 1719... |
Línea 1793... |
| 1719 |
type EventTypes_d_NewTableCellEvent = NewTableCellEvent;
|
1793 |
type EventTypes_d_NewTableCellEvent = NewTableCellEvent;
|
| 1720 |
type EventTypes_d_TableEventData = TableEventData;
|
1794 |
type EventTypes_d_TableEventData = TableEventData;
|
| 1721 |
type EventTypes_d_TableModifiedEvent = TableModifiedEvent;
|
1795 |
type EventTypes_d_TableModifiedEvent = TableModifiedEvent;
|
| 1722 |
type EventTypes_d_BeforeOpenNotificationEvent = BeforeOpenNotificationEvent;
|
1796 |
type EventTypes_d_BeforeOpenNotificationEvent = BeforeOpenNotificationEvent;
|
| 1723 |
type EventTypes_d_OpenNotificationEvent = OpenNotificationEvent;
|
1797 |
type EventTypes_d_OpenNotificationEvent = OpenNotificationEvent;
|
| - |
|
1798 |
type EventTypes_d_DisabledStateChangeEvent = DisabledStateChangeEvent;
|
| 1724 |
type EventTypes_d_EditorEventMap = EditorEventMap;
|
1799 |
type EventTypes_d_EditorEventMap = EditorEventMap;
|
| 1725 |
type EventTypes_d_EditorManagerEventMap = EditorManagerEventMap;
|
1800 |
type EventTypes_d_EditorManagerEventMap = EditorManagerEventMap;
|
| 1726 |
declare namespace EventTypes_d {
|
1801 |
declare namespace EventTypes_d {
|
| 1727 |
export { EventTypes_d_ExecCommandEvent as ExecCommandEvent, EventTypes_d_BeforeGetContentEvent as BeforeGetContentEvent, EventTypes_d_GetContentEvent as GetContentEvent, EventTypes_d_BeforeSetContentEvent as BeforeSetContentEvent, EventTypes_d_SetContentEvent as SetContentEvent, EventTypes_d_SaveContentEvent as SaveContentEvent, EventTypes_d_NewBlockEvent as NewBlockEvent, EventTypes_d_NodeChangeEvent as NodeChangeEvent, EventTypes_d_FormatEvent as FormatEvent, EventTypes_d_ObjectResizeEvent as ObjectResizeEvent, EventTypes_d_ObjectSelectedEvent as ObjectSelectedEvent, EventTypes_d_ScrollIntoViewEvent as ScrollIntoViewEvent, EventTypes_d_SetSelectionRangeEvent as SetSelectionRangeEvent, EventTypes_d_ShowCaretEvent as ShowCaretEvent, EventTypes_d_SwitchModeEvent as SwitchModeEvent, EventTypes_d_ChangeEvent as ChangeEvent, EventTypes_d_AddUndoEvent as AddUndoEvent, EventTypes_d_UndoRedoEvent as UndoRedoEvent, EventTypes_d_WindowEvent as WindowEvent, EventTypes_d_ProgressStateEvent as ProgressStateEvent, EventTypes_d_AfterProgressStateEvent as AfterProgressStateEvent, EventTypes_d_PlaceholderToggleEvent as PlaceholderToggleEvent, EventTypes_d_LoadErrorEvent as LoadErrorEvent, EventTypes_d_PreProcessEvent as PreProcessEvent, EventTypes_d_PostProcessEvent as PostProcessEvent, EventTypes_d_PastePlainTextToggleEvent as PastePlainTextToggleEvent, EventTypes_d_PastePreProcessEvent as PastePreProcessEvent, EventTypes_d_PastePostProcessEvent as PastePostProcessEvent, EventTypes_d_EditableRootStateChangeEvent as EditableRootStateChangeEvent, EventTypes_d_NewTableRowEvent as NewTableRowEvent, EventTypes_d_NewTableCellEvent as NewTableCellEvent, EventTypes_d_TableEventData as TableEventData, EventTypes_d_TableModifiedEvent as TableModifiedEvent, EventTypes_d_BeforeOpenNotificationEvent as BeforeOpenNotificationEvent, EventTypes_d_OpenNotificationEvent as OpenNotificationEvent, EventTypes_d_EditorEventMap as EditorEventMap, EventTypes_d_EditorManagerEventMap as EditorManagerEventMap, };
|
1802 |
export { EventTypes_d_ExecCommandEvent as ExecCommandEvent, EventTypes_d_BeforeGetContentEvent as BeforeGetContentEvent, EventTypes_d_GetContentEvent as GetContentEvent, EventTypes_d_BeforeSetContentEvent as BeforeSetContentEvent, EventTypes_d_SetContentEvent as SetContentEvent, EventTypes_d_SaveContentEvent as SaveContentEvent, EventTypes_d_NewBlockEvent as NewBlockEvent, EventTypes_d_NodeChangeEvent as NodeChangeEvent, EventTypes_d_FormatEvent as FormatEvent, EventTypes_d_ObjectResizeEvent as ObjectResizeEvent, EventTypes_d_ObjectSelectedEvent as ObjectSelectedEvent, EventTypes_d_ScrollIntoViewEvent as ScrollIntoViewEvent, EventTypes_d_SetSelectionRangeEvent as SetSelectionRangeEvent, EventTypes_d_ShowCaretEvent as ShowCaretEvent, EventTypes_d_SwitchModeEvent as SwitchModeEvent, EventTypes_d_ChangeEvent as ChangeEvent, EventTypes_d_AddUndoEvent as AddUndoEvent, EventTypes_d_UndoRedoEvent as UndoRedoEvent, EventTypes_d_WindowEvent as WindowEvent, EventTypes_d_ProgressStateEvent as ProgressStateEvent, EventTypes_d_AfterProgressStateEvent as AfterProgressStateEvent, EventTypes_d_PlaceholderToggleEvent as PlaceholderToggleEvent, EventTypes_d_LoadErrorEvent as LoadErrorEvent, EventTypes_d_PreProcessEvent as PreProcessEvent, EventTypes_d_PostProcessEvent as PostProcessEvent, EventTypes_d_PastePlainTextToggleEvent as PastePlainTextToggleEvent, EventTypes_d_PastePreProcessEvent as PastePreProcessEvent, EventTypes_d_PastePostProcessEvent as PastePostProcessEvent, EventTypes_d_EditableRootStateChangeEvent as EditableRootStateChangeEvent, EventTypes_d_NewTableRowEvent as NewTableRowEvent, EventTypes_d_NewTableCellEvent as NewTableCellEvent, EventTypes_d_TableEventData as TableEventData, EventTypes_d_TableModifiedEvent as TableModifiedEvent, EventTypes_d_BeforeOpenNotificationEvent as BeforeOpenNotificationEvent, EventTypes_d_OpenNotificationEvent as OpenNotificationEvent, EventTypes_d_DisabledStateChangeEvent as DisabledStateChangeEvent, EventTypes_d_EditorEventMap as EditorEventMap, EventTypes_d_EditorManagerEventMap as EditorManagerEventMap, };
|
| 1728 |
}
|
1803 |
}
|
| 1729 |
type Format_d_Formats = Formats;
|
1804 |
type Format_d_Formats = Formats;
|
| 1730 |
type Format_d_Format = Format;
|
1805 |
type Format_d_Format = Format;
|
| 1731 |
type Format_d_ApplyFormat = ApplyFormat;
|
1806 |
type Format_d_ApplyFormat = ApplyFormat;
|
| 1732 |
type Format_d_BlockFormat = BlockFormat;
|
1807 |
type Format_d_BlockFormat = BlockFormat;
|
| Línea 1791... |
Línea 1866... |
| 1791 |
type PastePostProcessFn = (editor: Editor, args: PastePostProcessEvent) => void;
|
1866 |
type PastePostProcessFn = (editor: Editor, args: PastePostProcessEvent) => void;
|
| 1792 |
type URLConverter = (url: string, name: string, elm?: string | Element) => string;
|
1867 |
type URLConverter = (url: string, name: string, elm?: string | Element) => string;
|
| 1793 |
type URLConverterCallback = (url: string, node: Node | string | undefined, on_save: boolean, name: string) => string;
|
1868 |
type URLConverterCallback = (url: string, node: Node | string | undefined, on_save: boolean, name: string) => string;
|
| 1794 |
interface ToolbarGroup {
|
1869 |
interface ToolbarGroup {
|
| 1795 |
name?: string;
|
1870 |
name?: string;
|
| - |
|
1871 |
label?: string;
|
| 1796 |
items: string[];
|
1872 |
items: string[];
|
| 1797 |
}
|
1873 |
}
|
| 1798 |
type ToolbarMode = 'floating' | 'sliding' | 'scrolling' | 'wrap';
|
1874 |
type ToolbarMode = 'floating' | 'sliding' | 'scrolling' | 'wrap';
|
| 1799 |
type ToolbarLocation = 'top' | 'bottom' | 'auto';
|
1875 |
type ToolbarLocation = 'top' | 'bottom' | 'auto';
|
| 1800 |
type ForceHexColor = 'always' | 'rgb_only' | 'off';
|
- |
|
| 1801 |
interface BaseEditorOptions {
|
1876 |
interface BaseEditorOptions {
|
| 1802 |
a11y_advanced_options?: boolean;
|
1877 |
a11y_advanced_options?: boolean;
|
| 1803 |
add_form_submit_trigger?: boolean;
|
1878 |
add_form_submit_trigger?: boolean;
|
| 1804 |
add_unload_trigger?: boolean;
|
1879 |
add_unload_trigger?: boolean;
|
| 1805 |
allow_conditional_comments?: boolean;
|
1880 |
allow_conditional_comments?: boolean;
|
| Línea 1839... |
Línea 1914... |
| 1839 |
contextmenu_never_use_native?: boolean;
|
1914 |
contextmenu_never_use_native?: boolean;
|
| 1840 |
convert_fonts_to_spans?: boolean;
|
1915 |
convert_fonts_to_spans?: boolean;
|
| 1841 |
convert_unsafe_embeds?: boolean;
|
1916 |
convert_unsafe_embeds?: boolean;
|
| 1842 |
convert_urls?: boolean;
|
1917 |
convert_urls?: boolean;
|
| 1843 |
custom_colors?: boolean;
|
1918 |
custom_colors?: boolean;
|
| 1844 |
custom_elements?: string;
|
1919 |
custom_elements?: string | Record<string, CustomElementSpec>;
|
| 1845 |
custom_ui_selector?: string;
|
1920 |
custom_ui_selector?: string;
|
| 1846 |
custom_undo_redo_levels?: number;
|
1921 |
custom_undo_redo_levels?: number;
|
| 1847 |
default_font_stack?: string[];
|
1922 |
default_font_stack?: string[];
|
| 1848 |
deprecation_warnings?: boolean;
|
1923 |
deprecation_warnings?: boolean;
|
| 1849 |
directionality?: 'ltr' | 'rtl';
|
1924 |
directionality?: 'ltr' | 'rtl';
|
| Línea 1871... |
Línea 1946... |
| 1871 |
font_size_classes?: string;
|
1946 |
font_size_classes?: string;
|
| 1872 |
font_size_legacy_values?: string;
|
1947 |
font_size_legacy_values?: string;
|
| 1873 |
font_size_style_values?: string;
|
1948 |
font_size_style_values?: string;
|
| 1874 |
font_size_formats?: string;
|
1949 |
font_size_formats?: string;
|
| 1875 |
font_size_input_default_unit?: string;
|
1950 |
font_size_input_default_unit?: string;
|
| 1876 |
force_hex_color?: ForceHexColor;
|
- |
|
| 1877 |
forced_root_block?: string;
|
1951 |
forced_root_block?: string;
|
| 1878 |
forced_root_block_attrs?: Record<string, string>;
|
1952 |
forced_root_block_attrs?: Record<string, string>;
|
| 1879 |
formats?: Formats;
|
1953 |
formats?: Formats;
|
| 1880 |
format_noneditable_selector?: string;
|
1954 |
format_noneditable_selector?: string;
|
| 1881 |
height?: number | string;
|
1955 |
height?: number | string;
|
| Línea 1952... |
Línea 2026... |
| 1952 |
removed_menuitems?: string;
|
2026 |
removed_menuitems?: string;
|
| 1953 |
resize?: boolean | 'both';
|
2027 |
resize?: boolean | 'both';
|
| 1954 |
resize_img_proportional?: boolean;
|
2028 |
resize_img_proportional?: boolean;
|
| 1955 |
root_name?: string;
|
2029 |
root_name?: string;
|
| 1956 |
sandbox_iframes?: boolean;
|
2030 |
sandbox_iframes?: boolean;
|
| - |
|
2031 |
sandbox_iframes_exclusions?: string[];
|
| 1957 |
schema?: SchemaType;
|
2032 |
schema?: SchemaType;
|
| 1958 |
selector?: string;
|
2033 |
selector?: string;
|
| 1959 |
setup?: SetupCallback;
|
2034 |
setup?: SetupCallback;
|
| 1960 |
sidebar_show?: string;
|
2035 |
sidebar_show?: string;
|
| 1961 |
skin?: boolean | string;
|
2036 |
skin?: boolean | string;
|
| Línea 2001... |
Línea 2076... |
| 2001 |
visual?: boolean;
|
2076 |
visual?: boolean;
|
| 2002 |
visual_anchor_class?: string;
|
2077 |
visual_anchor_class?: string;
|
| 2003 |
visual_table_class?: string;
|
2078 |
visual_table_class?: string;
|
| 2004 |
width?: number | string;
|
2079 |
width?: number | string;
|
| 2005 |
xss_sanitization?: boolean;
|
2080 |
xss_sanitization?: boolean;
|
| - |
|
2081 |
license_key?: string;
|
| - |
|
2082 |
disabled?: boolean;
|
| 2006 |
disable_nodechange?: boolean;
|
2083 |
disable_nodechange?: boolean;
|
| 2007 |
forced_plugins?: string | string[];
|
2084 |
forced_plugins?: string | string[];
|
| 2008 |
plugin_base_urls?: Record<string, string>;
|
2085 |
plugin_base_urls?: Record<string, string>;
|
| 2009 |
service_message?: string;
|
2086 |
service_message?: string;
|
| 2010 |
[key: string]: any;
|
2087 |
[key: string]: any;
|
| Línea 2052... |
Línea 2129... |
| 2052 |
font_size_input_default_unit: string;
|
2129 |
font_size_input_default_unit: string;
|
| 2053 |
font_size_legacy_values: string;
|
2130 |
font_size_legacy_values: string;
|
| 2054 |
font_size_style_values: string;
|
2131 |
font_size_style_values: string;
|
| 2055 |
forced_root_block: string;
|
2132 |
forced_root_block: string;
|
| 2056 |
forced_root_block_attrs: Record<string, string>;
|
2133 |
forced_root_block_attrs: Record<string, string>;
|
| 2057 |
force_hex_color: ForceHexColor;
|
- |
|
| 2058 |
format_noneditable_selector: string;
|
2134 |
format_noneditable_selector: string;
|
| 2059 |
height: number | string;
|
2135 |
height: number | string;
|
| 2060 |
highlight_on_focus: boolean;
|
2136 |
highlight_on_focus: boolean;
|
| 2061 |
iframe_attrs: Record<string, string>;
|
2137 |
iframe_attrs: Record<string, string>;
|
| 2062 |
images_file_types: string;
|
2138 |
images_file_types: string;
|
| Línea 2087... |
Línea 2163... |
| 2087 |
preview_styles: string;
|
2163 |
preview_styles: string;
|
| 2088 |
promotion: boolean;
|
2164 |
promotion: boolean;
|
| 2089 |
readonly: boolean;
|
2165 |
readonly: boolean;
|
| 2090 |
removed_menuitems: string;
|
2166 |
removed_menuitems: string;
|
| 2091 |
sandbox_iframes: boolean;
|
2167 |
sandbox_iframes: boolean;
|
| - |
|
2168 |
sandbox_iframes_exclusions: string[];
|
| 2092 |
toolbar: boolean | string | string[] | Array<ToolbarGroup>;
|
2169 |
toolbar: boolean | string | string[] | Array<ToolbarGroup>;
|
| 2093 |
toolbar_groups: Record<string, GroupToolbarButtonSpec>;
|
2170 |
toolbar_groups: Record<string, GroupToolbarButtonSpec>;
|
| 2094 |
toolbar_location: ToolbarLocation;
|
2171 |
toolbar_location: ToolbarLocation;
|
| 2095 |
toolbar_mode: ToolbarMode;
|
2172 |
toolbar_mode: ToolbarMode;
|
| 2096 |
toolbar_persist: boolean;
|
2173 |
toolbar_persist: boolean;
|
| Línea 2101... |
Línea 2178... |
| 2101 |
visual: boolean;
|
2178 |
visual: boolean;
|
| 2102 |
visual_anchor_class: string;
|
2179 |
visual_anchor_class: string;
|
| 2103 |
visual_table_class: string;
|
2180 |
visual_table_class: string;
|
| 2104 |
width: number | string;
|
2181 |
width: number | string;
|
| 2105 |
xss_sanitization: boolean;
|
2182 |
xss_sanitization: boolean;
|
| - |
|
2183 |
disabled: boolean;
|
| 2106 |
}
|
2184 |
}
|
| 2107 |
type StyleMap = Record<string, string | number>;
|
2185 |
type StyleMap = Record<string, string | number>;
|
| 2108 |
interface StylesSettings {
|
2186 |
interface StylesSettings {
|
| 2109 |
allow_script_urls?: boolean;
|
2187 |
allow_script_urls?: boolean;
|
| 2110 |
allow_svg_data_urls?: boolean;
|
2188 |
allow_svg_data_urls?: boolean;
|
| 2111 |
url_converter?: URLConverter;
|
2189 |
url_converter?: URLConverter;
|
| 2112 |
url_converter_scope?: any;
|
2190 |
url_converter_scope?: any;
|
| 2113 |
force_hex_color?: ForceHexColor;
|
- |
|
| 2114 |
}
|
2191 |
}
|
| 2115 |
interface Styles {
|
2192 |
interface Styles {
|
| 2116 |
parse: (css: string | undefined) => Record<string, string>;
|
2193 |
parse: (css: string | undefined) => Record<string, string>;
|
| 2117 |
serialize: (styles: StyleMap, elementName?: string) => string;
|
2194 |
serialize: (styles: StyleMap, elementName?: string) => string;
|
| 2118 |
}
|
2195 |
}
|
| Línea 2169... |
Línea 2246... |
| 2169 |
root_element: HTMLElement | null;
|
2246 |
root_element: HTMLElement | null;
|
| 2170 |
collect: boolean;
|
2247 |
collect: boolean;
|
| 2171 |
onSetAttrib: (event: SetAttribEvent) => void;
|
2248 |
onSetAttrib: (event: SetAttribEvent) => void;
|
| 2172 |
contentCssCors: boolean;
|
2249 |
contentCssCors: boolean;
|
| 2173 |
referrerPolicy: ReferrerPolicy;
|
2250 |
referrerPolicy: ReferrerPolicy;
|
| 2174 |
force_hex_color: ForceHexColor;
|
- |
|
| 2175 |
}
|
2251 |
}
|
| 2176 |
type Target = Node | Window;
|
2252 |
type Target = Node | Window;
|
| 2177 |
type RunArguments<T extends Node = Node> = string | T | Array<string | T> | null;
|
2253 |
type RunArguments<T extends Node = Node> = string | T | Array<string | T> | null;
|
| 2178 |
type BoundEvent = [
|
2254 |
type BoundEvent = [
|
| 2179 |
Target,
|
2255 |
Target,
|
| Línea 2288... |
Línea 2364... |
| 2288 |
(elm: Element, name: string): Element;
|
2364 |
(elm: Element, name: string): Element;
|
| 2289 |
};
|
2365 |
};
|
| 2290 |
findCommonAncestor: (a: Node, b: Node) => Node | null;
|
2366 |
findCommonAncestor: (a: Node, b: Node) => Node | null;
|
| 2291 |
run<R, T extends Node>(this: DOMUtils, elm: T | T[], func: (node: T) => R, scope?: any): typeof elm extends Array<any> ? R[] : R;
|
2367 |
run<R, T extends Node>(this: DOMUtils, elm: T | T[], func: (node: T) => R, scope?: any): typeof elm extends Array<any> ? R[] : R;
|
| 2292 |
run<R, T extends Node>(this: DOMUtils, elm: RunArguments<T>, func: (node: T) => R, scope?: any): RunResult<typeof elm, R>;
|
2368 |
run<R, T extends Node>(this: DOMUtils, elm: RunArguments<T>, func: (node: T) => R, scope?: any): RunResult<typeof elm, R>;
|
| 2293 |
isEmpty: (node: Node, elements?: Record<string, any>, options?: ({
|
2369 |
isEmpty: (node: Node, elements?: Record<string, any>, options?: IsEmptyOptions) => boolean;
|
| 2294 |
includeZwsp?: boolean;
|
- |
|
| 2295 |
})) => boolean;
|
- |
|
| 2296 |
createRng: () => Range;
|
2370 |
createRng: () => Range;
|
| 2297 |
nodeIndex: (node: Node, normalized?: boolean) => number;
|
2371 |
nodeIndex: (node: Node, normalized?: boolean) => number;
|
| 2298 |
split: {
|
2372 |
split: {
|
| 2299 |
<T extends Node>(parentElm: Node, splitElm: Node, replacementElm: T): T | undefined;
|
2373 |
<T extends Node>(parentElm: Node, splitElm: Node, replacementElm: T): T | undefined;
|
| 2300 |
<T extends Node>(parentElm: Node, splitElm: T): T | undefined;
|
2374 |
<T extends Node>(parentElm: Node, splitElm: T): T | undefined;
|
| Línea 2648... |
Línea 2722... |
| 2648 |
<T>(name: string): T | undefined;
|
2722 |
<T>(name: string): T | undefined;
|
| 2649 |
};
|
2723 |
};
|
| 2650 |
set: <K extends string, T>(name: K, value: K extends keyof NormalizedEditorOptions ? NormalizedEditorOptions[K] : T) => boolean;
|
2724 |
set: <K extends string, T>(name: K, value: K extends keyof NormalizedEditorOptions ? NormalizedEditorOptions[K] : T) => boolean;
|
| 2651 |
unset: (name: string) => boolean;
|
2725 |
unset: (name: string) => boolean;
|
| 2652 |
isSet: (name: string) => boolean;
|
2726 |
isSet: (name: string) => boolean;
|
| - |
|
2727 |
debug: () => void;
|
| 2653 |
}
|
2728 |
}
|
| 2654 |
interface UploadResult$1 {
|
2729 |
interface UploadResult$1 {
|
| 2655 |
element: HTMLImageElement;
|
2730 |
element: HTMLImageElement;
|
| 2656 |
status: boolean;
|
2731 |
status: boolean;
|
| 2657 |
blobInfo: BlobInfo;
|
2732 |
blobInfo: BlobInfo;
|