Commit 7f45a6b7 authored by mrowe@apple.com's avatar mrowe@apple.com

2008-06-22 Aaron Digulla <digulla@hepe.com>

        Reviewed by Darin Adler.

        Fix https://bugs.webkit.org/show_bug.cgi?id=18993
        Bug 18993: Update of buttons in editing toolbar demo lags behind

        * demos/editingToolbar/FancyToolbar.js:
        * demos/editingToolbar/index.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34736 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 4c6e10d7
2008-06-22 Aaron Digulla <digulla@hepe.com>
Reviewed by Darin Adler.
Fix https://bugs.webkit.org/show_bug.cgi?id=18993
Bug 18993: Update of buttons in editing toolbar demo lags behind
* demos/editingToolbar/FancyToolbar.js:
* demos/editingToolbar/index.html:
2008-06-16 Maciej Stachowiak <mjs@apple.com>
A handy reference image.
......
......@@ -289,6 +289,7 @@ FancyToolbar.prototype.show = function()
this.editArea.contentDocument.addEventListener("mouseup", this.updateToolbarListener, false);
this.editArea.contentDocument.addEventListener("mousemove", this.updateToolbarListener, false);
this.editArea.contentDocument.addEventListener("keypress", this.updateToolbarListener, false);
this.editArea.contentDocument.addEventListener("keyup", this.updateToolbarListener, false);
window.addEventListener("resize", this.windowResizeListener, false);
......@@ -317,6 +318,7 @@ FancyToolbar.prototype.hidden = function()
this.editArea.contentDocument.removeEventListener("mouseup", this.updateToolbarListener, false);
this.editArea.contentDocument.removeEventListener("mousemove", this.updateToolbarListener, false);
this.editArea.contentDocument.removeEventListener("keypress", this.updateToolbarListener, false);
this.editArea.contentDocument.removeEventListener("keyup", this.updateToolbarListener, false);
window.removeEventListener("resize", this.windowResizeListener, false);
// remove the toolbar element
......
......@@ -65,7 +65,7 @@ iframe.editable {
<link rel="stylesheet" type="text/css" href="FancyToolbar.css">
<script src="FancyToolbar.js"></script>
</head>
<body onload="loadFancyToolbars()">
<body>
<iframe class="editable" src="content.html"></iframe>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment