Support auto focus on ACE editor and use it for RTE code view

This commit is contained in:
Kenn Jacobsen
2019-05-03 11:17:15 +02:00
parent f34b2edb08
commit a056c273de
2 changed files with 5 additions and 0 deletions

View File

@@ -281,6 +281,10 @@
opts.callbacks.unshift(options.onLoad);
}
if (opts.autoFocus === true) {
acee.focus();
}
// EVENTS
// unbind old change listener

View File

@@ -12,6 +12,7 @@
mode: "razor",
theme: "chrome",
showPrintMargin: false,
autoFocus: true,
advanced: {
fontSize: "14px",
enableSnippets: false, //The Razor mode snippets are awful (Need a way to override these)