Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
check metadata for isEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiefu committed Apr 2, 2014
1 parent e129aa6 commit bfd0a0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-designable.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
// commands
deleteElement: function() {
var e = this.selected;
if (e) {
if (e && e !== this) {
//if (e === this.$.designElement) {
// this.clearElement();
//} else {
Expand Down Expand Up @@ -321,7 +321,7 @@
}
},
nodeIsEditor: function(node) {
return node.isEditor || this.editorElements[node.localName];
return (node.meta && node.meta.isEditor) || this.editorElements[node.localName];
},
editorElements: {input: 1, select: 1, textarea: 1},
loadHtml: function(html) {
Expand Down

0 comments on commit bfd0a0a

Please sign in to comment.