Skip to content

Commit

Permalink
INT-3310: Add JsCode comment to link to Svelte Tech ref.
Browse files Browse the repository at this point in the history
INT-3310: Add ContextMenu to validEvents.
  • Loading branch information
kemister85 committed May 30, 2024
1 parent 7133f88 commit b99eb23
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/main/component/Editor.svelte
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
@component
@see {@link https://www.tiny.cloud/docs/tinymce/7/svelte-ref/} for the TinyMCE Svelte Technical Reference.
-->

<script lang="ts" context="module">
declare let global: { tinymce: TinyMCE }
declare let window: Window & { tinymce: TinyMCE }
Expand Down Expand Up @@ -55,14 +61,15 @@
import { createEventDispatcher, onDestroy, onMount } from 'svelte';
import type { TinyMCE, Editor as TinyMCEEditor } from 'tinymce';
type EditorOptions = Parameters<TinyMCE['init']>[0];
type Version = `${'4' | '5' | '6' | '7'}${'' | '-dev' | '-testing' | `.${number}` | `.${number}.${number}`}`;
import { bindHandlers } from './Utils';
export let id: string = uuid('tinymce-svelte'); // default values
export let inline: boolean | undefined = undefined;
export let disabled: boolean = false;
export let apiKey: string = 'no-api-key';
export let licenseKey: string = '';
export let channel: string = '6';
export let channel: Version = '7';
export let scriptSrc: string = undefined;
export let conf: EditorOptions = {};
export let modelEvents: string = 'change input undo redo';
Expand Down
2 changes: 1 addition & 1 deletion src/main/component/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ const validEvents = [
'Change',
'ClearUndos',
'Click',
'ContextMenu',
'CommentChange',
'CompositionEnd',
'CompositionStart',
'CompositionUpdate',
'ContextMenu',
'Copy',
'Cut',
'Dblclick',
Expand Down

0 comments on commit b99eb23

Please sign in to comment.