tinymce-rails 5.9.0 → 5.10.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 +752 -1078
- data/lib/tinymce/rails/version.rb +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 +2 -2
- data/vendor/assets/javascripts/tinymce/plugins/autosave/plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/bbcode/plugin.js +2 -2
- 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/colorpicker/plugin.js +2 -2
- data/vendor/assets/javascripts/tinymce/plugins/contextmenu/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/fullpage/plugin.js +2 -2
- 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/hr/plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/image/plugin.js +2 -2
- data/vendor/assets/javascripts/tinymce/plugins/imagetools/plugin.js +2 -2
- data/vendor/assets/javascripts/tinymce/plugins/importcss/plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/insertdatetime/plugin.js +2 -2
- data/vendor/assets/javascripts/tinymce/plugins/legacyoutput/plugin.js +2 -2
- 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/noneditable/plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/pagebreak/plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/paste/plugin.js +2 -2
- data/vendor/assets/javascripts/tinymce/plugins/preview/plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/print/plugin.js +1 -1
- 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 +2 -2
- data/vendor/assets/javascripts/tinymce/plugins/spellchecker/plugin.js +2 -2
- data/vendor/assets/javascripts/tinymce/plugins/tabfocus/plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/table/plugin.js +2 -2
- data/vendor/assets/javascripts/tinymce/plugins/template/plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/textcolor/plugin.js +2 -2
- data/vendor/assets/javascripts/tinymce/plugins/textpattern/plugin.js +2 -2
- data/vendor/assets/javascripts/tinymce/plugins/toc/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 +2 -2
- 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/skin.shadowdom.css +1 -1
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide/skin.shadowdom.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/oxide-dark/skin.shadowdom.css +1 -1
- data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -1
- data/vendor/assets/javascripts/tinymce/themes/mobile/theme.js +2 -2
- data/vendor/assets/javascripts/tinymce/themes/silver/theme.js +2 -2
- data/vendor/assets/javascripts/tinymce/tinymce.d.ts +16 -9
- data/vendor/assets/javascripts/tinymce/tinymce.js +2 -2
- metadata +2 -2
@@ -946,7 +946,7 @@ interface AutocompleterSpec {
|
|
946
946
|
columns?: ColumnTypes$1;
|
947
947
|
matches?: (rng: Range, text: string, pattern: string) => boolean;
|
948
948
|
fetch: (pattern: string, maxResults: number, fetchOptions: Record<string, any>) => Promise<AutocompleterContents[]>;
|
949
|
-
onAction: (autocompleterApi: AutocompleterInstanceApi, rng:
|
949
|
+
onAction: (autocompleterApi: AutocompleterInstanceApi, rng: Range, value: string, meta: Record<string, any>) => void;
|
950
950
|
maxResults?: number;
|
951
951
|
highlightOn?: string[];
|
952
952
|
}
|
@@ -1059,23 +1059,22 @@ interface FancyActionArgsMap {
|
|
1059
1059
|
value: string;
|
1060
1060
|
};
|
1061
1061
|
}
|
1062
|
-
interface BaseFancyMenuItemSpec {
|
1062
|
+
interface BaseFancyMenuItemSpec<T extends keyof FancyActionArgsMap> {
|
1063
1063
|
type: 'fancymenuitem';
|
1064
|
-
fancytype:
|
1064
|
+
fancytype: T;
|
1065
1065
|
initData?: Record<string, unknown>;
|
1066
|
-
onAction?: (data:
|
1066
|
+
onAction?: (data: FancyActionArgsMap[T]) => void;
|
1067
1067
|
}
|
1068
|
-
interface InsertTableMenuItemSpec extends BaseFancyMenuItemSpec {
|
1068
|
+
interface InsertTableMenuItemSpec extends BaseFancyMenuItemSpec<'inserttable'> {
|
1069
1069
|
fancytype: 'inserttable';
|
1070
|
-
|
1070
|
+
initData?: {};
|
1071
1071
|
}
|
1072
|
-
interface ColorSwatchMenuItemSpec extends BaseFancyMenuItemSpec {
|
1072
|
+
interface ColorSwatchMenuItemSpec extends BaseFancyMenuItemSpec<'colorswatch'> {
|
1073
1073
|
fancytype: 'colorswatch';
|
1074
1074
|
initData?: {
|
1075
1075
|
allowCustomColors?: boolean;
|
1076
1076
|
colors: ChoiceMenuItemSpec[];
|
1077
1077
|
};
|
1078
|
-
onAction?: (data: FancyActionArgsMap['colorswatch']) => void;
|
1079
1078
|
}
|
1080
1079
|
declare type FancyMenuItemSpec = InsertTableMenuItemSpec | ColorSwatchMenuItemSpec;
|
1081
1080
|
interface MenuItemSpec extends CommonMenuItemSpec {
|
@@ -1396,6 +1395,7 @@ interface BaseEditorSettings {
|
|
1396
1395
|
content_css_cors?: boolean;
|
1397
1396
|
content_security_policy?: string;
|
1398
1397
|
content_style?: string;
|
1398
|
+
deprecation_warnings?: boolean;
|
1399
1399
|
font_css?: string | string[];
|
1400
1400
|
content_langs?: ContentLanguage[];
|
1401
1401
|
contextmenu?: string | false;
|
@@ -1957,7 +1957,7 @@ interface EditorSelection {
|
|
1957
1957
|
unbind: () => void;
|
1958
1958
|
};
|
1959
1959
|
getScrollContainer: () => HTMLElement;
|
1960
|
-
scrollIntoView: (elm
|
1960
|
+
scrollIntoView: (elm?: HTMLElement, alignToTop?: boolean) => void;
|
1961
1961
|
placeCaretAt: (clientX: number, clientY: number) => void;
|
1962
1962
|
getBoundingClientRect: () => ClientRect | DOMRect;
|
1963
1963
|
destroy: () => void;
|
@@ -2251,11 +2251,17 @@ interface URIConstructor {
|
|
2251
2251
|
data: string;
|
2252
2252
|
};
|
2253
2253
|
}
|
2254
|
+
interface SafeUriOptions {
|
2255
|
+
readonly allow_html_data_urls?: boolean;
|
2256
|
+
readonly allow_script_urls?: boolean;
|
2257
|
+
readonly allow_svg_data_urls?: boolean;
|
2258
|
+
}
|
2254
2259
|
declare class URI {
|
2255
2260
|
static parseDataUri(uri: string): {
|
2256
2261
|
type: string;
|
2257
2262
|
data: string;
|
2258
2263
|
};
|
2264
|
+
static isDomSafe(uri: string, context?: string, options?: SafeUriOptions): boolean;
|
2259
2265
|
static getDocumentBaseUrl(loc: {
|
2260
2266
|
protocol: string;
|
2261
2267
|
host?: string;
|
@@ -2866,6 +2872,7 @@ interface VK {
|
|
2866
2872
|
DELETE: number;
|
2867
2873
|
DOWN: number;
|
2868
2874
|
ENTER: number;
|
2875
|
+
ESC: number;
|
2869
2876
|
LEFT: number;
|
2870
2877
|
RIGHT: number;
|
2871
2878
|
SPACEBAR: number;
|