Github user garrensmith commented on a diff in the pull request:
https://github.com/apache/couchdb/pull/251#discussion_r14065431
--- Diff: src/fauxton/app/addons/documents/views.js ---
@@ -247,6 +247,45 @@ function(app, FauxtonAPI, Components, Documents,
Databases, pouchdb,
}
});
+ Views.StringEditModal = Components.ModalView.extend({
+ template: "addons/documents/templates/string_edit_modal",
+
+ initialize: function () {
+ _.bindAll(this);
+ },
+
+ events: {
+ "click #string-edit-save-btn":"saveString",
+ },
+
+ saveString: function (event) {
+ event.preventDefault();
+ this.editor.editor.getSelection().selectLine();
--- End diff --
Could you add functions for the `editor` so that you don't have to always
do `editor.editor`.
So for example could you make this line:
`this.editor.getSelectedLine` instead of
`this.editor.editor.getSelection().selectLine`
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---