tinymce-rails 6.0.3 → 6.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/source/tinymce/tinymce.js +1594 -1249
- data/lib/tinymce/rails/asset_installer/compile.rb +2 -2
- data/lib/tinymce/rails/asset_installer.rb +1 -1
- data/lib/tinymce/rails/asset_manifest.rb +1 -1
- data/lib/tinymce/rails/configuration.rb +5 -0
- data/lib/tinymce/rails/configuration_file.rb +4 -3
- data/lib/tinymce/rails/version.rb +2 -2
- data/vendor/assets/config/tinymce-rails.manifest.js +3 -0
- data/vendor/assets/javascripts/tinymce/icons/default/icons.js +1 -1
- data/vendor/assets/javascripts/tinymce/models/dom/model.js +2 -2
- data/vendor/assets/javascripts/tinymce/plugins/advlist/plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/anchor/plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/autolink/plugin.js +2 -2
- data/vendor/assets/javascripts/tinymce/plugins/autoresize/plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/autosave/plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/charmap/plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/code/plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/codesample/plugin.js +2 -2
- data/vendor/assets/javascripts/tinymce/plugins/directionality/plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/emoticons/plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.js +2 -2
- data/vendor/assets/javascripts/tinymce/plugins/help/plugin.js +2 -2
- data/vendor/assets/javascripts/tinymce/plugins/image/plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/importcss/plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/insertdatetime/plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/link/plugin.js +2 -2
- data/vendor/assets/javascripts/tinymce/plugins/lists/plugin.js +2 -2
- data/vendor/assets/javascripts/tinymce/plugins/media/plugin.js +2 -2
- data/vendor/assets/javascripts/tinymce/plugins/nonbreaking/plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/pagebreak/plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/preview/plugin.js +2 -2
- data/vendor/assets/javascripts/tinymce/plugins/quickbars/plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/save/plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/searchreplace/plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/table/plugin.js +2 -2
- data/vendor/assets/javascripts/tinymce/plugins/template/plugin.js +2 -2
- data/vendor/assets/javascripts/tinymce/plugins/visualblocks/plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/visualchars/plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/wordcount/plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide/content.css +1 -1
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide/content.inline.css +1 -1
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide/content.inline.min.css +1 -1
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide/content.min.css +1 -1
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide/skin.css +1 -1
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide/skin.min.css +1 -1
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/content.css +1 -1
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/content.inline.css +1 -1
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/content.inline.min.css +1 -1
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/content.min.css +1 -1
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/skin.css +1 -1
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/skin.min.css +1 -1
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/content.css +1 -1
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/content.inline.css +1 -1
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/content.inline.min.css +1 -1
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/content.min.css +1 -1
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/skin.css +1 -1
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/skin.min.css +1 -1
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/content.css +1 -1
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/content.inline.css +1 -1
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +1 -1
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/content.min.css +1 -1
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/skin.css +1 -1
- data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/skin.min.css +1 -1
- data/vendor/assets/javascripts/tinymce/themes/silver/theme.js +2 -2
- data/vendor/assets/javascripts/tinymce/tinymce.d.ts +30 -13
- data/vendor/assets/javascripts/tinymce/tinymce.js +2 -2
- metadata +3 -2
@@ -1,13 +1,16 @@
|
|
1
1
|
interface StringPathBookmark {
|
2
2
|
start: string;
|
3
3
|
end?: string;
|
4
|
+
forward?: boolean;
|
4
5
|
}
|
5
6
|
interface RangeBookmark {
|
6
7
|
rng: Range;
|
8
|
+
forward?: boolean;
|
7
9
|
}
|
8
10
|
interface IdBookmark {
|
9
11
|
id: string;
|
10
12
|
keep?: boolean;
|
13
|
+
forward?: boolean;
|
11
14
|
}
|
12
15
|
interface IndexBookmark {
|
13
16
|
name: string;
|
@@ -17,6 +20,7 @@ interface PathBookmark {
|
|
17
20
|
start: number[];
|
18
21
|
end?: number[];
|
19
22
|
isFakeCaret?: boolean;
|
23
|
+
forward?: boolean;
|
20
24
|
}
|
21
25
|
declare type Bookmark = StringPathBookmark | RangeBookmark | IdBookmark | IndexBookmark | PathBookmark;
|
22
26
|
declare type NormalizedEvent<E, T = any> = E & {
|
@@ -112,6 +116,7 @@ interface UndoManager {
|
|
112
116
|
data: UndoLevel[];
|
113
117
|
typing: boolean;
|
114
118
|
add: (level?: UndoLevel, event?: EditorEvent<any>) => UndoLevel;
|
119
|
+
dispatchChange: () => void;
|
115
120
|
beforeChange: () => void;
|
116
121
|
undo: () => UndoLevel;
|
117
122
|
redo: () => UndoLevel;
|
@@ -289,7 +294,10 @@ interface BlobInfo {
|
|
289
294
|
uri: () => string | undefined;
|
290
295
|
}
|
291
296
|
interface BlobCache {
|
292
|
-
create:
|
297
|
+
create: {
|
298
|
+
(o: BlobInfoData): BlobInfo;
|
299
|
+
(id: string, blob: Blob, base64: string, name?: string, filename?: string): BlobInfo;
|
300
|
+
};
|
293
301
|
add: (blobInfo: BlobInfo) => void;
|
294
302
|
get: (id: string) => BlobInfo | undefined;
|
295
303
|
getByUri: (blobUri: string) => BlobInfo | undefined;
|
@@ -510,6 +518,7 @@ interface HtmlPanelSpec {
|
|
510
518
|
interface IframeSpec extends FormComponentWithLabelSpec {
|
511
519
|
type: 'iframe';
|
512
520
|
sandboxed?: boolean;
|
521
|
+
transparent?: boolean;
|
513
522
|
}
|
514
523
|
interface ImagePreviewSpec extends FormComponentSpec {
|
515
524
|
type: 'imagepreview';
|
@@ -1206,6 +1215,10 @@ interface RemoveInlineFormat extends Inline, CommonRemoveFormat<RemoveInlineForm
|
|
1206
1215
|
}
|
1207
1216
|
interface RemoveSelectorFormat extends Selector, CommonRemoveFormat<RemoveSelectorFormat> {
|
1208
1217
|
}
|
1218
|
+
interface Filter<C extends Function> {
|
1219
|
+
name: string;
|
1220
|
+
callbacks: C[];
|
1221
|
+
}
|
1209
1222
|
interface ParserArgs {
|
1210
1223
|
getInner?: boolean | number;
|
1211
1224
|
forced_root_block?: boolean | string;
|
@@ -1217,9 +1230,7 @@ interface ParserArgs {
|
|
1217
1230
|
[key: string]: any;
|
1218
1231
|
}
|
1219
1232
|
declare type ParserFilterCallback = (nodes: AstNode[], name: string, args: ParserArgs) => void;
|
1220
|
-
interface ParserFilter {
|
1221
|
-
name: string;
|
1222
|
-
callbacks: ParserFilterCallback[];
|
1233
|
+
interface ParserFilter extends Filter<ParserFilterCallback> {
|
1223
1234
|
}
|
1224
1235
|
interface DomParserSettings {
|
1225
1236
|
allow_html_data_urls?: boolean;
|
@@ -1243,10 +1254,12 @@ interface DomParserSettings {
|
|
1243
1254
|
}
|
1244
1255
|
interface DomParser {
|
1245
1256
|
schema: Schema;
|
1246
|
-
addAttributeFilter: (name: string, callback:
|
1257
|
+
addAttributeFilter: (name: string, callback: ParserFilterCallback) => void;
|
1247
1258
|
getAttributeFilters: () => ParserFilter[];
|
1248
|
-
|
1259
|
+
removeAttributeFilter: (name: string, callback?: ParserFilterCallback) => void;
|
1260
|
+
addNodeFilter: (name: string, callback: ParserFilterCallback) => void;
|
1249
1261
|
getNodeFilters: () => ParserFilter[];
|
1262
|
+
removeNodeFilter: (name: string, callback?: ParserFilterCallback) => void;
|
1250
1263
|
parse: (html: string, args?: ParserArgs) => AstNode;
|
1251
1264
|
}
|
1252
1265
|
interface StyleSheetLoaderSettings {
|
@@ -1655,7 +1668,7 @@ interface BaseEditorOptions {
|
|
1655
1668
|
element_format?: 'xhtml' | 'html';
|
1656
1669
|
elementpath?: boolean;
|
1657
1670
|
encoding?: string;
|
1658
|
-
end_container_on_empty_block?: boolean;
|
1671
|
+
end_container_on_empty_block?: boolean | string;
|
1659
1672
|
entities?: string;
|
1660
1673
|
entity_encoding?: EntityEncoding;
|
1661
1674
|
extended_valid_elements?: string;
|
@@ -1717,6 +1730,7 @@ interface BaseEditorOptions {
|
|
1717
1730
|
min_width?: number;
|
1718
1731
|
model?: string;
|
1719
1732
|
model_url?: string;
|
1733
|
+
newline_behavior?: 'block' | 'linebreak' | 'invert' | 'default';
|
1720
1734
|
no_newline_selector?: string;
|
1721
1735
|
noneditable_class?: string;
|
1722
1736
|
noneditable_regexp?: RegExp | RegExp[];
|
@@ -1747,6 +1761,7 @@ interface BaseEditorOptions {
|
|
1747
1761
|
schema?: SchemaType;
|
1748
1762
|
selector?: string;
|
1749
1763
|
setup?: SetupCallback;
|
1764
|
+
sidebar_show?: string;
|
1750
1765
|
skin?: boolean | string;
|
1751
1766
|
skin_url?: string;
|
1752
1767
|
smart_paste?: boolean;
|
@@ -2049,10 +2064,12 @@ interface DomSerializerSettings extends DomParserSettings, WriterSettings, Schem
|
|
2049
2064
|
}
|
2050
2065
|
interface DomSerializerImpl {
|
2051
2066
|
schema: Schema;
|
2052
|
-
addNodeFilter: (name: string, callback:
|
2053
|
-
addAttributeFilter: (name: string, callback:
|
2067
|
+
addNodeFilter: (name: string, callback: ParserFilterCallback) => void;
|
2068
|
+
addAttributeFilter: (name: string, callback: ParserFilterCallback) => void;
|
2054
2069
|
getNodeFilters: () => ParserFilter[];
|
2055
2070
|
getAttributeFilters: () => ParserFilter[];
|
2071
|
+
removeNodeFilter: (name: string, callback?: ParserFilterCallback) => void;
|
2072
|
+
removeAttributeFilter: (name: string, callback?: ParserFilterCallback) => void;
|
2056
2073
|
serialize: {
|
2057
2074
|
(node: Element, parserArgs: {
|
2058
2075
|
format: 'tree';
|
@@ -2625,10 +2642,10 @@ declare class DomTreeWalker {
|
|
2625
2642
|
private readonly rootNode;
|
2626
2643
|
private node;
|
2627
2644
|
constructor(startNode: Node, rootNode: Node);
|
2628
|
-
current(): Node;
|
2629
|
-
next(shallow?: boolean): Node;
|
2630
|
-
prev(shallow?: boolean): Node;
|
2631
|
-
prev2(shallow?: boolean): Node;
|
2645
|
+
current(): Node | undefined;
|
2646
|
+
next(shallow?: boolean): Node | undefined;
|
2647
|
+
prev(shallow?: boolean): Node | undefined;
|
2648
|
+
prev2(shallow?: boolean): Node | undefined;
|
2632
2649
|
private findSibling;
|
2633
2650
|
private findPreviousNode;
|
2634
2651
|
}
|