-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
lon
committed
Jan 8, 2019
1 parent
3893fe5
commit 6d46e17
Showing
8 changed files
with
1,240 additions
and
947 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,31 @@ | ||
export interface MdEditorOption { | ||
showBorder: boolean // Show editor component's border | ||
hideIcons: Array<string> // ['Bold', 'Italic', 'Heading', 'Refrence', 'Link', 'Image', 'Ul', 'Ol', 'Code', 'TogglePreview', 'FullScreen'], Default is empty | ||
scrollPastEnd: number // The option for ace editor | ||
enablePreviewContentClick: boolean // Allow user fire the click event on the preview panel, like href etc. | ||
showBorder?: boolean // Show editor component's border | ||
hideIcons?: Array<string> // ['Bold', 'Italic', 'Heading', 'Refrence', 'Link', 'Image', 'Ul', 'Ol', 'Code', 'TogglePreview', 'FullScreen'], Default is empty | ||
scrollPastEnd?: number // The option for ace editor | ||
enablePreviewContentClick?: boolean // Allow user fire the click event on the preview panel, like href etc. | ||
markedjsOpt?: MarkedjsOption // The markedjs option, see https://marked.js.org/#/USING_ADVANCED.md#options | ||
} | ||
|
||
export interface UploadResult { | ||
isImg: boolean | ||
name: string | ||
url: string | ||
} | ||
|
||
export interface MarkedjsOption { | ||
baseUrl?: string // Default null | ||
breaks?: boolean // Default false | ||
gfm?: boolean // Default true | ||
headerIds?: boolean // Default true | ||
headerPrefix?: string // Default '' | ||
langPrefix?: string // Default 'language-' | ||
mangle?: boolean // Default true | ||
pedantic?: boolean // Default false | ||
sanitize?: boolean // Default false | ||
sanitizer?: Function // Default null | ||
silent?: boolean // Default false | ||
smartLists?: boolean // Default false | ||
smartypants?: boolean // Default false | ||
tables?: boolean // Default true | ||
xhtml?: boolean // Default false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters