Focus the editable content when opening a codemirror pad

This commit is contained in:
yflory
2017-09-13 18:09:55 +02:00
parent bafa401473
commit 47cfa0cf45
3 changed files with 8 additions and 12 deletions

View File

@@ -163,14 +163,6 @@ define([
content: textValue,
metadata: metadataMgr.getMetadataLazy()
};
/* metadata: {
users: UserList.userData,
defaultTitle: Title.defaultTitle
}
};
if (!initializing) {
obj.metadata.title = Title.title;
}*/
// set mode too...
obj.highlightMode = CodeMirror.highlightMode;
@@ -428,9 +420,6 @@ define([
//console.log("%s => %s", CodeMirror.highlightMode, CodeMirror.$language.val());
}
// Update the user list (metadata) from the hyperjson
//Metadata.update(userDoc);
if (newDoc) {
editor.setValue(newDoc);
}