@rg-dev/tinymce-helpers 1.0.10 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.mts CHANGED
@@ -13,13 +13,17 @@ declare const skinsTable: {
13
13
  type RemoveIndexSignature<T> = {
14
14
  [K in keyof T as string extends K ? never : number extends K ? never : symbol extends K ? never : K]: T[K];
15
15
  };
16
+ type RawEditorOptionsExtended = RawEditorOptions & {
17
+ quickbars_insert_toolbar?: string;
18
+ quickbars_selection_toolbar?: string;
19
+ };
16
20
  type MyTinymceOpts = {
17
21
  skin?: keyof typeof skinsTable;
18
22
  direction?: 'rtl' | 'ltr';
19
23
  customSetup?: (editor: Editor) => void;
20
24
  overrides?: (defaultOpts: EditorOpts) => EditorOpts;
21
25
  };
22
- type EditorOpts = Omit<RemoveIndexSignature<RawEditorOptions>, 'setup' | 'target' | 'selector'> & Record<string, unknown>;
26
+ type EditorOpts = Omit<RemoveIndexSignature<RawEditorOptionsExtended>, 'setup' | 'target' | 'selector'> & Record<string, unknown>;
23
27
  declare class tinymceHelpers {
24
28
  private _editor;
25
29
  private _lockButton?;
package/index.mjs CHANGED
@@ -338,6 +338,7 @@ var tinymceHelpers = class _tinymceHelpers {
338
338
  extended_valid_elements: "img[drawio-diagram|contenteditable|style|class|src]",
339
339
  font_family_formats: "Rubik=Rubik, Helvetica, Arial, sans-serif; Andale Mono=andale mono,times; Arial=arial,helvetica,sans-serif; Arial Black=arial black,avant garde; Book Antiqua=book antiqua,palatino; Comic Sans MS=comic sans ms,sans-serif; Courier New=courier new,courier; Georgia=georgia,palatino; Helvetica=helvetica; Impact=impact,chicago; Symbol=symbol; Tahoma=tahoma,arial,helvetica,sans-serif; Terminal=terminal,monaco; Times New Roman=times new roman,times; Trebuchet MS=trebuchet ms,geneva; Verdana=verdana,geneva; Webdings=webdings; Wingdings=wingdings,zapf dingbats; Afacad=afacad,sans-serif; Marcellus=marcellus,serif; Poppins=poppins,sans-serif; Raleway=raleway,sans-serif;",
340
340
  "statusbar": false,
341
+ quickbars_insert_toolbar: "",
341
342
  skin: theSkin.skin,
342
343
  highlight_on_focus: false,
343
344
  content_style: theSkin.css,
@@ -384,6 +385,7 @@ var tinymceHelpers = class _tinymceHelpers {
384
385
  const mce = this._editor = await tinymce.init(opts).then((x) => x[0]);
385
386
  this.originalContextMenu = mce.options.get("contextmenu");
386
387
  const all = mce.ui.registry.getAll();
388
+ console.log(all);
387
389
  const availableMenuItems = all.menuItems;
388
390
  const availableButtons = all.buttons;
389
391
  if (typeof opts.toolbar == "string") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rg-dev/tinymce-helpers",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {