Skip to content

Commit 453b318

Browse files
update readme file
1 parent 456d4aa commit 453b318

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Readme.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,15 @@ Setup
1616
2. include CodeEditorModule into your module.
1717
3. Inside your template include a tag <codemirror [(ngModel)] = 'Code' id='code' name='code'></codemirror>
1818
4. In your controller set codemirror editor configuration options with addition options - mimes(Array of string), onDemandLoadJs(boolean), codemirrorAPIUrl(string).
19+
Codemirror configuration Options
20+
——————————————————
21+
For code mirror options visit to https://codemirror.net/doc/manual.html#config
1922

2023
Addition Options
2124
----------------
2225
1. mimes- Its value must be array of string(s). Each string denotes the mime supported for particular language.
2326
2. onDemandLoadJs- Its value must be boolean. If you want to load required js file except codemirror.js on demand then set this flag to true.
24-
3. codemirrorAPIUrl- Its value must be a string denoting the path of folder of codemirror like '/node_modules/codemirror'. It is used to load js file on demand.
27+
3. codemirrorAPIUrl- Its value must be a string denoting the path of folder of codemirror like '/node_modules/codemirror'. It is used to load js file on demand.
28+
4. disableCopy - Its value must be boolean. If you want to disable copy from editor then set this flag with true value.
29+
5. disableCut - Its value must be boolean. If you want to disable cut from editor then set this flag with true value.
30+
5. disablePaste - Its value must be boolean. If you want to disable paste into editor then set this flag with true value.

0 commit comments

Comments
 (0)