Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
peach-html5-editor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5a4c884
)
fix stopping of event propegation/default
author
Jason Woofenden
<jason@jasonwoof.com>
Wed, 9 Mar 2016 07:31:08 +0000
(
02:31
-0500)
committer
Jason Woofenden
<jason@jasonwoof.com>
Wed, 9 Mar 2016 07:31:08 +0000
(
02:31
-0500)
editor.coffee
patch
|
blob
|
history
diff --git
a/editor.coffee
b/editor.coffee
index
d885b7d
..
b7406dd
100644
(file)
--- a/
editor.coffee
+++ b/
editor.coffee
@@
-687,15
+687,15
@@
class PeachHTML5Editor
init: -> # called by @iframe's onload (or timeout on firefox)
@idoc = @iframe.contentDocument
@overlay.onclick = (e) =>
init: -> # called by @iframe's onload (or timeout on firefox)
@idoc = @iframe.contentDocument
@overlay.onclick = (e) =>
- return event_return @onclick e
+ return event_return e, @onclick e
@overlay.ondoubleclick = (e) =>
@overlay.ondoubleclick = (e) =>
- return event_return @ondoubleclick e
+ return event_return e, @ondoubleclick e
@outer_idoc.body.onkeyup = (e) =>
@outer_idoc.body.onkeyup = (e) =>
- return event_return @onkeyup e
+ return event_return e, @onkeyup e
@outer_idoc.body.onkeydown = (e) =>
@outer_idoc.body.onkeydown = (e) =>
- return event_return @onkeydown e
+ return event_return e, @onkeydown e
@outer_idoc.body.onkeypress = (e) =>
@outer_idoc.body.onkeypress = (e) =>
- return event_return @onkeypress e
+ return event_return e, @onkeypress e
if @options.stylesheet
# TODO test this
@idoc.head.appendChild domify @idoc, style: src: @options.stylesheet
if @options.stylesheet
# TODO test this
@idoc.head.appendChild domify @idoc, style: src: @options.stylesheet