Focus the editable content when opening a codemirror pad

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

No files matched your search

-11
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);
}