Merge pull request #1237 from danyaPostfactum/miscfixes
classList usage in dom.{add|remove|toggle}CssClass + minor changes
This commit is contained in:
commit
f2d6d7d6c9
10 changed files with 54 additions and 75 deletions
|
|
@ -406,7 +406,9 @@ bindCheckbox("highlight_token", function(checked) {
|
|||
|
||||
/************** dragover ***************************/
|
||||
event.addListener(container, "dragover", function(e) {
|
||||
return event.preventDefault(e);
|
||||
var types = e.dataTransfer.types;
|
||||
if (types && Array.prototype.indexOf.call(types, 'Files') !== -1)
|
||||
return event.preventDefault(e);
|
||||
});
|
||||
|
||||
event.addListener(container, "drop", function(e) {
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ body {
|
|||
#logo {
|
||||
padding: 15px;
|
||||
margin-left: 70px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#editor-container {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue