diff --git a/src/components/content.js b/src/components/content.js
index 3558020ca..eab80879c 100644
--- a/src/components/content.js
+++ b/src/components/content.js
@@ -166,7 +166,7 @@ class Content extends React.Component {
const { target } = event
return (
(target.isContentEditable) &&
- (target === element || target.closest('[data-slate-content]') === element)
+ (target === element || target.closest('[data-slate-editor]') === element)
)
}
@@ -720,7 +720,7 @@ class Content extends React.Component {
return (
+
diff --git a/test/rendering/fixtures/custom-block/output.html b/test/rendering/fixtures/custom-block/output.html
index 5d10e0b42..9aa0addbc 100644
--- a/test/rendering/fixtures/custom-block/output.html
+++ b/test/rendering/fixtures/custom-block/output.html
@@ -1,5 +1,5 @@
-
+
word
diff --git a/test/rendering/fixtures/custom-decorator/output.html b/test/rendering/fixtures/custom-decorator/output.html
index 64f805971..f11af486b 100644
--- a/test/rendering/fixtures/custom-decorator/output.html
+++ b/test/rendering/fixtures/custom-decorator/output.html
@@ -1,5 +1,5 @@
-
+
o
diff --git a/test/rendering/fixtures/custom-inline-void/output.html b/test/rendering/fixtures/custom-inline-void/output.html
index 660759090..00d928a69 100644
--- a/test/rendering/fixtures/custom-inline-void/output.html
+++ b/test/rendering/fixtures/custom-inline-void/output.html
@@ -1,5 +1,5 @@
-
+
diff --git a/test/rendering/fixtures/custom-inline/output.html b/test/rendering/fixtures/custom-inline/output.html
index 54283ef34..805a9996a 100644
--- a/test/rendering/fixtures/custom-inline/output.html
+++ b/test/rendering/fixtures/custom-inline/output.html
@@ -1,5 +1,5 @@
-
+
diff --git a/test/rendering/fixtures/custom-mark-with-component/output.html b/test/rendering/fixtures/custom-mark-with-component/output.html
index e35a9a2b9..8826d79e9 100644
--- a/test/rendering/fixtures/custom-mark-with-component/output.html
+++ b/test/rendering/fixtures/custom-mark-with-component/output.html
@@ -1,5 +1,5 @@
-
+
one
diff --git a/test/rendering/fixtures/custom-mark-with-function/output.html b/test/rendering/fixtures/custom-mark-with-function/output.html
index e35a9a2b9..8826d79e9 100644
--- a/test/rendering/fixtures/custom-mark-with-function/output.html
+++ b/test/rendering/fixtures/custom-mark-with-function/output.html
@@ -1,5 +1,5 @@
-
+
one
diff --git a/test/rendering/fixtures/custom-mark-with-mixed/output.html b/test/rendering/fixtures/custom-mark-with-mixed/output.html
index 675567bb9..b64bbc6ba 100644
--- a/test/rendering/fixtures/custom-mark-with-mixed/output.html
+++ b/test/rendering/fixtures/custom-mark-with-mixed/output.html
@@ -1,5 +1,5 @@
-
+
one
diff --git a/test/rendering/fixtures/custom-mark-with-object/output.html b/test/rendering/fixtures/custom-mark-with-object/output.html
index 332dadd70..f29aaab4d 100644
--- a/test/rendering/fixtures/custom-mark-with-object/output.html
+++ b/test/rendering/fixtures/custom-mark-with-object/output.html
@@ -1,5 +1,5 @@
-
+
one
diff --git a/test/rendering/fixtures/custom-mark-with-string/output.html b/test/rendering/fixtures/custom-mark-with-string/output.html
index f6090c858..9c9d6d0b3 100644
--- a/test/rendering/fixtures/custom-mark-with-string/output.html
+++ b/test/rendering/fixtures/custom-mark-with-string/output.html
@@ -1,5 +1,5 @@
-
+
one
diff --git a/test/rendering/fixtures/default-block-and-inline/output.html b/test/rendering/fixtures/default-block-and-inline/output.html
index 012b257b3..eac9d7b42 100644
--- a/test/rendering/fixtures/default-block-and-inline/output.html
+++ b/test/rendering/fixtures/default-block-and-inline/output.html
@@ -1,5 +1,5 @@
-
+
diff --git a/test/rendering/fixtures/default-block/output.html b/test/rendering/fixtures/default-block/output.html
index 433add87c..b1c0dc062 100644
--- a/test/rendering/fixtures/default-block/output.html
+++ b/test/rendering/fixtures/default-block/output.html
@@ -1,5 +1,5 @@
-
+
word
diff --git a/test/rendering/fixtures/empty-text/output.html b/test/rendering/fixtures/empty-text/output.html
index 3833e323b..be2829e76 100644
--- a/test/rendering/fixtures/empty-text/output.html
+++ b/test/rendering/fixtures/empty-text/output.html
@@ -1,5 +1,5 @@
-
+
diff --git a/test/rendering/fixtures/multiple-custom-block/output.html b/test/rendering/fixtures/multiple-custom-block/output.html
index 5f77624a9..485062eb0 100644
--- a/test/rendering/fixtures/multiple-custom-block/output.html
+++ b/test/rendering/fixtures/multiple-custom-block/output.html
@@ -1,5 +1,5 @@
-
+
word
diff --git a/test/rendering/fixtures/multiple-custom-inline/output.html b/test/rendering/fixtures/multiple-custom-inline/output.html
index 3ad4aa6c6..2af61446b 100644
--- a/test/rendering/fixtures/multiple-custom-inline/output.html
+++ b/test/rendering/fixtures/multiple-custom-inline/output.html
@@ -1,5 +1,5 @@
-
+
diff --git a/test/rendering/fixtures/nested-text-direction/output.html b/test/rendering/fixtures/nested-text-direction/output.html
index 0a06da98b..be6827b26 100644
--- a/test/rendering/fixtures/nested-text-direction/output.html
+++ b/test/rendering/fixtures/nested-text-direction/output.html
@@ -1,5 +1,5 @@
-
+
diff --git a/test/rendering/fixtures/text-direction/output.html b/test/rendering/fixtures/text-direction/output.html
index 6d9b387d3..ab2eed8d3 100644
--- a/test/rendering/fixtures/text-direction/output.html
+++ b/test/rendering/fixtures/text-direction/output.html
@@ -1,5 +1,5 @@
-