Skip to content

Commit

Permalink
Merge pull request #49 from tinymce/hotfix/INT-3242
Browse files Browse the repository at this point in the history
INT-3242: fix type
  • Loading branch information
lorenzo-pomili authored Dec 13, 2023
2 parents 6842bd7 + 5486c69 commit bfba17d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/component/Editor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,17 @@

<script lang="ts">
import { createEventDispatcher, onDestroy, onMount } from 'svelte';
import type { RawEditorOptions, TinyMCE, Editor as TinyMCEEditor } from 'tinymce';
import type { TinyMCE, Editor as TinyMCEEditor } from 'tinymce';
type EditorOptions = Parameters<TinyMCE['init']>[0];
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 channel: string = '6';
export let scriptSrc: string = undefined;
export let conf: RawEditorOptions = {};
export let conf: EditorOptions = {};
export let modelEvents: string = 'change input undo redo';
export let value: string = '';
export let text: string = '';
Expand Down Expand Up @@ -103,7 +105,7 @@
const init = () => {
//
const finalInit: RawEditorOptions = {
const finalInit: EditorOptions = {
...conf,
target: element,
inline: inline !== undefined ? inline : conf.inline !== undefined ? conf.inline : false,
Expand Down

0 comments on commit bfba17d

Please sign in to comment.