-
Notifications
You must be signed in to change notification settings - Fork 371
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
Few Options and events #61
Conversation
👍 It would be nice if we could pass the buttons what need to be hided by a data- property and check this in the init function. That way you are able to hide buttons onload of the editor |
👍 Yeah I will add that option later. 😄 |
DONE! with few additional options and jquery hotkeys support too. New Options:
New Buttons
jquery hotkeys support |
Here is a plunk of my commits and also implemented jquery filedrop (my custom fork) |
Looks good! |
@lodev09 can you re-base your fork with latest code so i can review this? Thanks. |
I'm new at github and I'm not sure if I did that right thing. I just copied over your latest code and add my changes to it. The current commit now is from your current code, hope that helps. :) |
This is the way you can rebase against the current master:
And just for future needs, this is the way you can sync your fork with the upstream repository! https://help.github.com/articles/syncing-a-fork |
Added various options and event handlers
Rebase
I've done lots of commands and ended up resetting all my changes. Github is a bit confusing, I'm used with SVN. LOL Anyway, I think line changes are based from the current code now. |
@toopay Do you have an update when this will be pulled? Thanks |
@lodev09 Github still complaining "We can’t automatically merge this pull request." means this pull request require rebase... |
@lodev09 just go through the steps from my last comment once again and then the PR should be ok! :) |
Added various options and event handlers
Rebase
Conflicts: js/bootstrap-markdown.js
I deleted my fork and created a new one. Here is the new pull request |
I've added some options, methods and events that fixes some issues submitted by other users and also enhances the plugin.
Added events:
textarea
. The event is triggered bykeyup
,callbacks
from each menu buttons and nativetextarea.on('change', ... )
eventAdded methods:
buttons
by name. Usinghidden
class in boostrap.hideButtons()
textarea
content.Enhancement:
showButtons
,hideButtons
,disableButtons
andenableButtons
methods, thename
parameter can now be either anarray
orstring
Fixes:
keyup
is triggering _3x_ because ofkeypress
andkeydown
events. I've commented these lines to avoid redundancy ofkeyup
trigger.Sample Implementation:
This code will output the preview in a separate
div
instead of the nativepreview
button