Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
6 changes: 4 additions & 2 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export interface DEFAULT_PROPS {
toolbar: SummernoteLiteProps['toolbar'];
};

type FontName = 'Arial' | 'Brush Script MT' | 'Calibri' | 'Candara' | 'Century Gothic' | 'Consolas' | 'Dejavu Sans' | 'Franklin Gothic' | 'Gill Sans' | 'Geneva' | 'Georgia' | 'Garamond' | 'Helvetica' | 'Lucida Sans' | 'MS Sans Serif' | 'Neue Helvetica' | 'Optima' | 'Segoe UI' | 'Tahoma' | 'Trebuchet MS' | 'Verdana';
type FontName = 'Arial Black' | 'Arial' | 'Brush Script MT' | 'Calibri' | 'Candara' | 'Century Gothic' | 'Consolas' | 'Comic Sans MS' | 'Courier New' | 'Dejavu Sans' | 'Franklin Gothic' | 'Gill Sans' | 'Geneva' | 'Georgia' | 'Garamond' | 'Helvetica' | 'Helvetica Neue' | 'Impact' | 'Lucida Grande' | 'Lucida Sans' | 'MS Sans Serif' | 'Neue Helvetica' | 'Open Sans' | 'Optima' | 'Segoe UI' | 'Tahoma' | 'Times New Roman' | 'Trebuchet MS' | 'Verdana';

type Lang = 'ar-AR' | 'az-AZ' | 'bg-BG' | 'bn-BD' | 'ca-ES' | 'cs-CZ' | 'da-DK' | 'de-CH' | 'de-DE' | 'el-GR' | 'en-US' | 'es-ES' | 'es-EU' | 'fa-IR' | 'fi-FI' | 'fr-FR' | 'gl-ES' | 'he-IL' | 'hr-HR' | 'hu-HU' | 'id-ID' | 'it-IT' | 'ja-JP' | 'ko-KR' | 'lt-LT' | 'lv-LV' | 'mn-MN' | 'nb-NO' | 'nl-NL' | 'pl-PL' | 'pt-BR' | 'pt-PT' | 'ro-RO' | 'ru-RU' | 'sk-SK' | 'sl-SI' | 'sr-RS' | 'sv-SE' | 'ta-IN' | 'th-TH' | 'tr-TR' | 'uk-UA' | 'uz-UZ' | 'vi-VN' | 'zh-CN' | 'zh-TW';

Expand All @@ -20,6 +20,7 @@ type ToolbarItem =
['fontname', ('fontname')[]] |
['color', ('color')[]] |
['para', ('ul' | 'ol' | 'paragraph')[]] |
['height', ('height')[]] |
['table', ('table')[]] |
['insert', ('link' | 'picture' | 'video' | 'hr')[]] |
['view', ('fullscreen' | 'codeview' | 'help')[]];
Expand All @@ -30,13 +31,14 @@ interface SummernoteLiteProps {
defaultCodeValue: string;
useDiv: boolean;
height: string | number;
dialogsInBody: boolean;
blockquoteBreakingLevel: number;
fontNames: FontName[];
toolbar: ToolbarItem[];
lang: Lang;
callbacks: {
onChange: (contents: string, $editable: any) => void;
onImageUpload: (files: File[]) => void;
onImageUpload?: (files: File[]) => void;
};
}

Expand Down
Loading