You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,9 +16,15 @@ Setup
16
16
2. include CodeEditorModule into your module.
17
17
3. Inside your template include a tag <codemirror [(ngModel)] = 'Code' id='code' name='code'></codemirror>
18
18
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
19
22
20
23
Addition Options
21
24
----------------
22
25
1. mimes- Its value must be array of string(s). Each string denotes the mime supported for particular language.
23
26
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