ngx-markdown-editor
Angular markdown editor based on ace editor
Usage
- Add
Ace
、marked
、highlight
andfont-awesome
lib
- Install
ngx-markdown-editor
npm i ngx-markdown-editor
- Use markdown-editor component
;
Options
-
ngModel: markdown original content
-
height: editor height
-
hideToolbar: hide toolbar, default is false
-
mode:
editor
|preview
, default iseditor
-
options: other settings for editor
-
preRender(
Function
): For #13, this will not effectngModel
's value, just rendered valuepreRenderFunccontent: string -
upload(
Function
): For #24, upload file by yourselfdoUploadfiles: Array<File>: Promise<Array<UploadResult>> -
required: for form validate
-
maxlength: for form validate