tinymce-rails 6.7.2 → 6.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/source/tinymce/tinymce.js +1099 -826
  3. data/lib/tinymce/rails/version.rb +2 -2
  4. data/vendor/assets/javascripts/tinymce/models/dom/model.js +1 -1
  5. data/vendor/assets/javascripts/tinymce/plugins/accordion/plugin.js +2 -2
  6. data/vendor/assets/javascripts/tinymce/plugins/advlist/plugin.js +1 -1
  7. data/vendor/assets/javascripts/tinymce/plugins/anchor/plugin.js +1 -1
  8. data/vendor/assets/javascripts/tinymce/plugins/autolink/plugin.js +1 -1
  9. data/vendor/assets/javascripts/tinymce/plugins/autoresize/plugin.js +1 -1
  10. data/vendor/assets/javascripts/tinymce/plugins/autosave/plugin.js +1 -1
  11. data/vendor/assets/javascripts/tinymce/plugins/charmap/plugin.js +1 -1
  12. data/vendor/assets/javascripts/tinymce/plugins/code/plugin.js +1 -1
  13. data/vendor/assets/javascripts/tinymce/plugins/codesample/plugin.js +1 -1
  14. data/vendor/assets/javascripts/tinymce/plugins/directionality/plugin.js +1 -1
  15. data/vendor/assets/javascripts/tinymce/plugins/emoticons/plugin.js +1 -1
  16. data/vendor/assets/javascripts/tinymce/plugins/fullscreen/plugin.js +1 -1
  17. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/ar.js +5 -5
  18. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/bg_BG.js +5 -5
  19. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/ca.js +5 -5
  20. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/cs.js +5 -5
  21. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/da.js +5 -5
  22. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/de.js +5 -5
  23. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/el.js +5 -5
  24. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/en.js +5 -5
  25. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/es.js +5 -5
  26. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/eu.js +6 -6
  27. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/fa.js +5 -5
  28. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/fi.js +5 -5
  29. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/fr_FR.js +5 -5
  30. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/he_IL.js +5 -5
  31. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/hi.js +5 -5
  32. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/hr.js +5 -5
  33. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/hu_HU.js +5 -5
  34. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/id.js +5 -5
  35. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/it.js +5 -5
  36. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/ja.js +5 -5
  37. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/kk.js +5 -5
  38. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/ko_KR.js +5 -5
  39. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/ms.js +5 -5
  40. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/nb_NO.js +5 -5
  41. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/nl.js +5 -5
  42. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/pl.js +5 -5
  43. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/pt_BR.js +5 -5
  44. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/pt_PT.js +5 -5
  45. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/ro.js +5 -5
  46. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/ru.js +5 -5
  47. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/sk.js +5 -5
  48. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/sl_SI.js +5 -5
  49. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/sv_SE.js +5 -5
  50. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/th_TH.js +5 -5
  51. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/tr.js +5 -5
  52. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/uk.js +5 -5
  53. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/vi.js +5 -5
  54. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/zh_CN.js +5 -5
  55. data/vendor/assets/javascripts/tinymce/plugins/help/js/i18n/keynav/zh_TW.js +5 -5
  56. data/vendor/assets/javascripts/tinymce/plugins/help/plugin.js +1 -1
  57. data/vendor/assets/javascripts/tinymce/plugins/image/plugin.js +2 -2
  58. data/vendor/assets/javascripts/tinymce/plugins/importcss/plugin.js +2 -2
  59. data/vendor/assets/javascripts/tinymce/plugins/insertdatetime/plugin.js +1 -1
  60. data/vendor/assets/javascripts/tinymce/plugins/link/plugin.js +2 -2
  61. data/vendor/assets/javascripts/tinymce/plugins/lists/plugin.js +2 -2
  62. data/vendor/assets/javascripts/tinymce/plugins/media/plugin.js +2 -2
  63. data/vendor/assets/javascripts/tinymce/plugins/nonbreaking/plugin.js +1 -1
  64. data/vendor/assets/javascripts/tinymce/plugins/pagebreak/plugin.js +1 -1
  65. data/vendor/assets/javascripts/tinymce/plugins/preview/plugin.js +1 -1
  66. data/vendor/assets/javascripts/tinymce/plugins/quickbars/plugin.js +1 -1
  67. data/vendor/assets/javascripts/tinymce/plugins/save/plugin.js +1 -1
  68. data/vendor/assets/javascripts/tinymce/plugins/searchreplace/plugin.js +2 -2
  69. data/vendor/assets/javascripts/tinymce/plugins/table/plugin.js +1 -1
  70. data/vendor/assets/javascripts/tinymce/plugins/template/plugin.js +1 -1
  71. data/vendor/assets/javascripts/tinymce/plugins/visualblocks/plugin.js +1 -1
  72. data/vendor/assets/javascripts/tinymce/plugins/visualchars/plugin.js +1 -1
  73. data/vendor/assets/javascripts/tinymce/plugins/wordcount/plugin.js +1 -1
  74. data/vendor/assets/javascripts/tinymce/skins/content/dark/content.js +2 -0
  75. data/vendor/assets/javascripts/tinymce/skins/content/default/content.js +2 -0
  76. data/vendor/assets/javascripts/tinymce/skins/content/document/content.js +2 -0
  77. data/vendor/assets/javascripts/tinymce/skins/content/tinymce-5/content.js +2 -0
  78. data/vendor/assets/javascripts/tinymce/skins/content/tinymce-5-dark/content.js +2 -0
  79. data/vendor/assets/javascripts/tinymce/skins/content/writer/content.js +2 -0
  80. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/content.inline.js +2 -0
  81. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/content.js +2 -0
  82. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/skin.js +2 -0
  83. data/vendor/assets/javascripts/tinymce/skins/ui/oxide/skin.shadowdom.js +2 -0
  84. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/content.inline.js +2 -0
  85. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/content.js +2 -0
  86. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/skin.js +2 -0
  87. data/vendor/assets/javascripts/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +2 -0
  88. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/content.inline.js +2 -0
  89. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/content.js +2 -0
  90. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/skin.js +2 -0
  91. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5/skin.shadowdom.js +2 -0
  92. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/content.inline.js +2 -0
  93. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/content.js +2 -0
  94. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/skin.js +2 -0
  95. data/vendor/assets/javascripts/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.js +2 -0
  96. data/vendor/assets/javascripts/tinymce/themes/silver/theme.js +2 -2
  97. data/vendor/assets/javascripts/tinymce/tinymce.d.ts +26 -0
  98. data/vendor/assets/javascripts/tinymce/tinymce.js +2 -2
  99. metadata +24 -2
@@ -149,6 +149,7 @@ interface ElementSettings {
149
149
  void_elements?: string;
150
150
  whitespace_elements?: string;
151
151
  transparent_elements?: string;
152
+ wrap_block_elements?: string;
152
153
  }
153
154
  interface SchemaSettings extends ElementSettings {
154
155
  custom_elements?: string;
@@ -220,6 +221,9 @@ interface Schema {
220
221
  getSpecialElements: () => SchemaRegExpMap;
221
222
  isValidChild: (name: string, child: string) => boolean;
222
223
  isValid: (name: string, attr?: string) => boolean;
224
+ isBlock: (name: string) => boolean;
225
+ isInline: (name: string) => boolean;
226
+ isWrapper: (name: string) => boolean;
223
227
  getCustomElements: () => SchemaMap;
224
228
  addValidElements: (validElements: string) => void;
225
229
  setValidElements: (validElements: string) => void;
@@ -776,6 +780,7 @@ interface NestedMenuItemSpec extends CommonMenuItemSpec {
776
780
  onSetup?: (api: NestedMenuItemInstanceApi) => (api: NestedMenuItemInstanceApi) => void;
777
781
  }
778
782
  interface NestedMenuItemInstanceApi extends CommonMenuItemInstanceApi {
783
+ setTooltip: (tooltip: string) => void;
779
784
  setIconFill: (id: string, value: string) => void;
780
785
  }
781
786
  type MenuButtonItemTypes = NestedMenuItemContents;
@@ -831,6 +836,7 @@ interface ToolbarSplitButtonInstanceApi {
831
836
  setIconFill: (id: string, value: string) => void;
832
837
  isActive: () => boolean;
833
838
  setActive: (state: boolean) => void;
839
+ setTooltip: (tooltip: string) => void;
834
840
  setText: (text: string) => void;
835
841
  setIcon: (icon: string) => void;
836
842
  }
@@ -876,6 +882,7 @@ interface UrlInputSpec extends FormComponentWithLabelSpec {
876
882
  type: 'urlinput';
877
883
  filetype?: 'image' | 'media' | 'file';
878
884
  enabled?: boolean;
885
+ picker_text?: string;
879
886
  }
880
887
  interface UrlInputData {
881
888
  value: string;
@@ -1368,6 +1375,7 @@ interface DomParserSettings {
1368
1375
  allow_unsafe_link_target?: boolean;
1369
1376
  blob_cache?: BlobCache;
1370
1377
  convert_fonts_to_spans?: boolean;
1378
+ convert_unsafe_embeds?: boolean;
1371
1379
  document?: Document;
1372
1380
  fix_list_elements?: boolean;
1373
1381
  font_size_legacy_values?: string;
@@ -1378,6 +1386,7 @@ interface DomParserSettings {
1378
1386
  preserve_cdata?: boolean;
1379
1387
  remove_trailing_brs?: boolean;
1380
1388
  root_name?: string;
1389
+ sandbox_iframes?: boolean;
1381
1390
  sanitize?: boolean;
1382
1391
  validate?: boolean;
1383
1392
  }
@@ -1398,8 +1407,10 @@ interface StyleSheetLoaderSettings {
1398
1407
  }
1399
1408
  interface StyleSheetLoader {
1400
1409
  load: (url: string) => Promise<void>;
1410
+ loadRawCss: (key: string, css: string) => void;
1401
1411
  loadAll: (urls: string[]) => Promise<string[]>;
1402
1412
  unload: (url: string) => void;
1413
+ unloadRawCss: (key: string) => void;
1403
1414
  unloadAll: (urls: string[]) => void;
1404
1415
  _setReferrerPolicy: (referrerPolicy: ReferrerPolicy) => void;
1405
1416
  _setContentCssCors: (contentCssCors: boolean) => void;
@@ -1582,6 +1593,8 @@ interface EditorEventMap extends Omit<NativeEventMap, 'blur' | 'focus'> {
1582
1593
  };
1583
1594
  'resize': UIEvent;
1584
1595
  'scroll': UIEvent;
1596
+ 'input': InputEvent;
1597
+ 'beforeinput': InputEvent;
1585
1598
  'detach': {};
1586
1599
  'remove': {};
1587
1600
  'init': {};
@@ -1784,6 +1797,7 @@ interface ToolbarGroup {
1784
1797
  }
1785
1798
  type ToolbarMode = 'floating' | 'sliding' | 'scrolling' | 'wrap';
1786
1799
  type ToolbarLocation = 'top' | 'bottom' | 'auto';
1800
+ type ForceHexColor = 'always' | 'rgb_only' | 'off';
1787
1801
  interface BaseEditorOptions {
1788
1802
  a11y_advanced_options?: boolean;
1789
1803
  add_form_submit_trigger?: boolean;
@@ -1824,11 +1838,13 @@ interface BaseEditorOptions {
1824
1838
  contextmenu?: string | string[] | false;
1825
1839
  contextmenu_never_use_native?: boolean;
1826
1840
  convert_fonts_to_spans?: boolean;
1841
+ convert_unsafe_embeds?: boolean;
1827
1842
  convert_urls?: boolean;
1828
1843
  custom_colors?: boolean;
1829
1844
  custom_elements?: string;
1830
1845
  custom_ui_selector?: string;
1831
1846
  custom_undo_redo_levels?: number;
1847
+ default_font_stack?: string[];
1832
1848
  deprecation_warnings?: boolean;
1833
1849
  directionality?: 'ltr' | 'rtl';
1834
1850
  doctype?: string;
@@ -1857,6 +1873,7 @@ interface BaseEditorOptions {
1857
1873
  font_size_style_values?: string;
1858
1874
  font_size_formats?: string;
1859
1875
  font_size_input_default_unit?: string;
1876
+ force_hex_color?: ForceHexColor;
1860
1877
  forced_root_block?: string;
1861
1878
  forced_root_block_attrs?: Record<string, string>;
1862
1879
  formats?: Formats;
@@ -1936,6 +1953,7 @@ interface BaseEditorOptions {
1936
1953
  resize?: boolean | 'both';
1937
1954
  resize_img_proportional?: boolean;
1938
1955
  root_name?: string;
1956
+ sandbox_iframes?: boolean;
1939
1957
  schema?: SchemaType;
1940
1958
  selector?: string;
1941
1959
  setup?: SetupCallback;
@@ -2019,7 +2037,9 @@ interface EditorOptions extends NormalizedEditorOptions {
2019
2037
  color_default_foreground: string;
2020
2038
  content_css: string[];
2021
2039
  contextmenu: string[];
2040
+ convert_unsafe_embeds: boolean;
2022
2041
  custom_colors: boolean;
2042
+ default_font_stack: string[];
2023
2043
  document_base_url: string;
2024
2044
  init_content_sync: boolean;
2025
2045
  draggable_modal: boolean;
@@ -2034,6 +2054,7 @@ interface EditorOptions extends NormalizedEditorOptions {
2034
2054
  font_size_style_values: string;
2035
2055
  forced_root_block: string;
2036
2056
  forced_root_block_attrs: Record<string, string>;
2057
+ force_hex_color: ForceHexColor;
2037
2058
  format_noneditable_selector: string;
2038
2059
  height: number | string;
2039
2060
  highlight_on_focus: boolean;
@@ -2067,6 +2088,7 @@ interface EditorOptions extends NormalizedEditorOptions {
2067
2088
  promotion: boolean;
2068
2089
  readonly: boolean;
2069
2090
  removed_menuitems: string;
2091
+ sandbox_iframes: boolean;
2070
2092
  toolbar: boolean | string | string[] | Array<ToolbarGroup>;
2071
2093
  toolbar_groups: Record<string, GroupToolbarButtonSpec>;
2072
2094
  toolbar_location: ToolbarLocation;
@@ -2088,6 +2110,7 @@ interface StylesSettings {
2088
2110
  allow_svg_data_urls?: boolean;
2089
2111
  url_converter?: URLConverter;
2090
2112
  url_converter_scope?: any;
2113
+ force_hex_color?: ForceHexColor;
2091
2114
  }
2092
2115
  interface Styles {
2093
2116
  parse: (css: string | undefined) => Record<string, string>;
@@ -2148,6 +2171,7 @@ interface DOMUtilsSettings {
2148
2171
  onSetAttrib: (event: SetAttribEvent) => void;
2149
2172
  contentCssCors: boolean;
2150
2173
  referrerPolicy: ReferrerPolicy;
2174
+ force_hex_color: ForceHexColor;
2151
2175
  }
2152
2176
  type Target = Node | Window;
2153
2177
  type RunArguments<T extends Node = Node> = string | T | Array<string | T> | null;
@@ -3030,6 +3054,8 @@ interface IconManager {
3030
3054
  interface Resource {
3031
3055
  load: <T = any>(id: string, url: string) => Promise<T>;
3032
3056
  add: (id: string, data: any) => void;
3057
+ has: (id: string) => boolean;
3058
+ get: (id: string) => any;
3033
3059
  unload: (id: string) => void;
3034
3060
  }
3035
3061
  type TextPatterns_d_Pattern = Pattern;