Skip to content

Commit

Permalink
Merge pull request #808 from valadas/jodit-configy-type-only
Browse files Browse the repository at this point in the history
export only config type from jodit
  • Loading branch information
valadas authored Aug 21, 2023
2 parents f421159 + a8abc9c commit 4ad23df
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Component, Host, h, Prop, Event, EventEmitter, Watch } from '@stencil/core';
import { Jodit } from "jodit";
import type { Config } from "jodit/types/config";
import { decodeHtml } from '../../utilities/stringUtilities';

@Component({
Expand All @@ -9,10 +10,10 @@ import { decodeHtml } from '../../utilities/stringUtilities';
})
export class DnnRichtext {
/** Optional configuration for Jodit, see https://xdsoft.net/jodit/docs/classes/config.Config.html */
@Prop() options: typeof Jodit.defaultOptions;
@Prop() options: Config;
private textArea: HTMLTextAreaElement;
private editor: Jodit;
private dnnDefaultOptions: typeof Jodit.defaultOptions = {
private dnnDefaultOptions: Config = {
...Jodit.defaultOptions,
useSplitMode: true,
}
Expand Down

0 comments on commit 4ad23df

Please sign in to comment.