-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make undo and redo buttons work #109
Conversation
Now, the undo and redo buttons should work with the ace editor
}; | ||
|
||
vm.hasRedo = function() { | ||
if (vm.settings.currentUndoManager && vm.settings.currentUndoManager.hasRedo) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line must be at most 80 characters
+ make cut and copy work, even though we might remove those buttons later completely, since `paste` can't work on web (Solution?)
vm.cutSelection = function(e) { | ||
vm.settings.currentEditor.session.replace(vm.settings.currentEditor.selection.getRange(), ''); | ||
vm.settings.currentEditor.focus(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing semicolon after statement
good boy, hound!
} | ||
}; | ||
|
||
vm.cutSelection = function(e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expected indentation of 2 characters
"velocity": "~1.2.3" | ||
"velocity": "~1.2.3", | ||
"ngclipboard": "~1.1.1", | ||
"ng-device-detector": "~3.0.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left this here even though I didn't use it, since we'll need this for MixPanel
what about the [still need to open a bug for this!] comments? ;-) |
@ortichon , that's because it was added later since you took your time with the code-review... 😝 This CL originally didn't include those two changes but I finished them before you started the code review |
make undo and redo buttons work
Change Summary
Connect editor's
undo
andredo
with the menu-bar buttons [ resolves Connect editor's undo and redo with the menu-bar buttons #108 ]Connect editor's
cut
andcopy
to the menu bar buttons [ resolves Make the copy cut paste buttons functional #111 ]Implemented a loading splash screen with
kibibit
's logo :-) [ resolves Add splash logo on load #110 ]More info
Later, this will be inside the
stateService
object, which will save the current state (and won't be saved to the server like thesettingsService
should)BASE DEMO: https://kibibit-demo.herokuapp.com/
MODIFIED DEMO: https://kibibit-demo-pr-109.herokuapp.com/
This change is