Support auto focus on ACE editor and use it for RTE code view
This commit is contained in:
@@ -281,6 +281,10 @@
|
||||
opts.callbacks.unshift(options.onLoad);
|
||||
}
|
||||
|
||||
if (opts.autoFocus === true) {
|
||||
acee.focus();
|
||||
}
|
||||
|
||||
// EVENTS
|
||||
|
||||
// unbind old change listener
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user