How to release codemirror focus?
up vote
0
down vote
favorite
I am using CodeMirror
in my website and I wonder how I can release the focus on CodeMirror
? Below is the code.
const codeEditor = CodeMirror($('#code')[0], {
tabMode: 'indent',
mode: 'text/javascript',
autofocus: true,
autoRefresh: true,
});
I checked the document but I couldn't find any method to release the focus.
codemirror
add a comment |
up vote
0
down vote
favorite
I am using CodeMirror
in my website and I wonder how I can release the focus on CodeMirror
? Below is the code.
const codeEditor = CodeMirror($('#code')[0], {
tabMode: 'indent',
mode: 'text/javascript',
autofocus: true,
autoRefresh: true,
});
I checked the document but I couldn't find any method to release the focus.
codemirror
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am using CodeMirror
in my website and I wonder how I can release the focus on CodeMirror
? Below is the code.
const codeEditor = CodeMirror($('#code')[0], {
tabMode: 'indent',
mode: 'text/javascript',
autofocus: true,
autoRefresh: true,
});
I checked the document but I couldn't find any method to release the focus.
codemirror
I am using CodeMirror
in my website and I wonder how I can release the focus on CodeMirror
? Below is the code.
const codeEditor = CodeMirror($('#code')[0], {
tabMode: 'indent',
mode: 'text/javascript',
autofocus: true,
autoRefresh: true,
});
I checked the document but I couldn't find any method to release the focus.
codemirror
codemirror
asked Nov 16 at 23:41
Zhao Yi
5,0951348114
5,0951348114
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53346778%2fhow-to-release-codemirror-focus%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown