mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-26 11:54:51 +00:00
Adding optional tabindex attr to simple, framed and cm engines (#3756)
* add optional tabindex attribute to factory.js * add changedAttributes.tabindex to refresh mechanic * add optional tabindex attribute to edit widget * remove some extra whitespace * remove some trailing whitespace * add optional tabindex attribute to simple engine * add optional tabindex attribute to framed engine * add optional tabindex attribute to cm engine
This commit is contained in:
committed by
Jeremy Ruston
parent
9d7d3fefa0
commit
f97d18bb6e
@@ -106,6 +106,9 @@ function CodeMirrorEngine(options) {
|
||||
|
||||
config.mode = options.type;
|
||||
config.value = options.value;
|
||||
if(this.widget.editTabIndex) {
|
||||
config["tabindex"] = this.widget.editTabIndex;
|
||||
}
|
||||
// Create the CodeMirror instance
|
||||
this.cm = window.CodeMirror(function(cmDomNode) {
|
||||
// Note that this is a synchronous callback that is called before the constructor returns
|
||||
|
||||
Reference in New Issue
Block a user