Explain commands' readOnly option
This commit is contained in:
parent
34127fab8c
commit
b5e586796d
1 changed files with 2 additions and 1 deletions
|
|
@ -343,7 +343,8 @@ editor.replace('bar');</code></pre>
|
|||
bindKey: {win: 'Ctrl-M', mac: 'Command-M'},
|
||||
exec: function(editor) {
|
||||
//...
|
||||
}
|
||||
},
|
||||
readOnly: true // false if this command should not apply in readOnly mode
|
||||
});</code></pre>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue