mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-30 10:29:48 +02:00
rename data-slate-content to data-slate-editor
This commit is contained in:
@@ -166,7 +166,7 @@ class Content extends React.Component {
|
|||||||
const { target } = event
|
const { target } = event
|
||||||
return (
|
return (
|
||||||
(target.isContentEditable) &&
|
(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 (
|
return (
|
||||||
<div
|
<div
|
||||||
data-slate-content
|
data-slate-editor
|
||||||
key={this.forces}
|
key={this.forces}
|
||||||
ref={this.ref}
|
ref={this.ref}
|
||||||
contentEditable={!readOnly}
|
contentEditable={!readOnly}
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
<div data-slate-content="true" contenteditable="true">
|
<div data-slate-editor="true" contenteditable="true">
|
||||||
<div style="position:relative;">
|
<div style="position:relative;">
|
||||||
<span style="position:absolute;top:0px;left:-9999px;text-indent:-9999px;">
|
<span style="position:absolute;top:0px;left:-9999px;text-indent:-9999px;">
|
||||||
<span>
|
<span>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
<div data-slate-content="true" contenteditable="true">
|
<div data-slate-editor="true" contenteditable="true">
|
||||||
<div style="position:relative;">
|
<div style="position:relative;">
|
||||||
<span>
|
<span>
|
||||||
<span>word</span>
|
<span>word</span>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
<div data-slate-content="true" contenteditable="true">
|
<div data-slate-editor="true" contenteditable="true">
|
||||||
<div style="position:relative;">
|
<div style="position:relative;">
|
||||||
<span>
|
<span>
|
||||||
<span>o</span>
|
<span>o</span>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
<div data-slate-content="true" contenteditable="true">
|
<div data-slate-editor="true" contenteditable="true">
|
||||||
<div style="position:relative;">
|
<div style="position:relative;">
|
||||||
<span>
|
<span>
|
||||||
<span>
|
<span>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
<div data-slate-content="true" contenteditable="true">
|
<div data-slate-editor="true" contenteditable="true">
|
||||||
<div style="position:relative;">
|
<div style="position:relative;">
|
||||||
<span>
|
<span>
|
||||||
<span>
|
<span>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
<div data-slate-content="true" contenteditable="true">
|
<div data-slate-editor="true" contenteditable="true">
|
||||||
<div style="position:relative;">
|
<div style="position:relative;">
|
||||||
<span>
|
<span>
|
||||||
<span>one</span>
|
<span>one</span>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
<div data-slate-content="true" contenteditable="true">
|
<div data-slate-editor="true" contenteditable="true">
|
||||||
<div style="position:relative;">
|
<div style="position:relative;">
|
||||||
<span>
|
<span>
|
||||||
<span>one</span>
|
<span>one</span>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
<div data-slate-content="true" contenteditable="true">
|
<div data-slate-editor="true" contenteditable="true">
|
||||||
<div style="position:relative;">
|
<div style="position:relative;">
|
||||||
<span>
|
<span>
|
||||||
<span><span style="font-weight:bold;">one</span></span>
|
<span><span style="font-weight:bold;">one</span></span>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
<div data-slate-content="true" contenteditable="true">
|
<div data-slate-editor="true" contenteditable="true">
|
||||||
<div style="position:relative;">
|
<div style="position:relative;">
|
||||||
<span>
|
<span>
|
||||||
<span>one</span>
|
<span>one</span>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
<div data-slate-content="true" contenteditable="true">
|
<div data-slate-editor="true" contenteditable="true">
|
||||||
<div style="position:relative;">
|
<div style="position:relative;">
|
||||||
<span>
|
<span>
|
||||||
<span>one</span>
|
<span>one</span>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
<div data-slate-content="true" contenteditable="true">
|
<div data-slate-editor="true" contenteditable="true">
|
||||||
<div style="position:relative;">
|
<div style="position:relative;">
|
||||||
<span>
|
<span>
|
||||||
<span>
|
<span>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
<div data-slate-content="true" contenteditable="true">
|
<div data-slate-editor="true" contenteditable="true">
|
||||||
<div style="position:relative;">
|
<div style="position:relative;">
|
||||||
<span>
|
<span>
|
||||||
<span>word</span>
|
<span>word</span>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
<div data-slate-content="true" contenteditable="true">
|
<div data-slate-editor="true" contenteditable="true">
|
||||||
<div style="position:relative;">
|
<div style="position:relative;">
|
||||||
<span>
|
<span>
|
||||||
<span><br></span>
|
<span><br></span>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
<div data-slate-content="true" contenteditable="true">
|
<div data-slate-editor="true" contenteditable="true">
|
||||||
<div style="position:relative;">
|
<div style="position:relative;">
|
||||||
<span>
|
<span>
|
||||||
<span>word</span>
|
<span>word</span>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
<div data-slate-content="true" contenteditable="true">
|
<div data-slate-editor="true" contenteditable="true">
|
||||||
<div style="position:relative;">
|
<div style="position:relative;">
|
||||||
<span>
|
<span>
|
||||||
<span>
|
<span>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
<div data-slate-content="true" contenteditable="true">
|
<div data-slate-editor="true" contenteditable="true">
|
||||||
<div style="position:relative;">
|
<div style="position:relative;">
|
||||||
<div dir="rtl" style="position:relative;">
|
<div dir="rtl" style="position:relative;">
|
||||||
<span>
|
<span>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
<div data-slate-content="true" contenteditable="true">
|
<div data-slate-editor="true" contenteditable="true">
|
||||||
<div style="position:relative;">
|
<div style="position:relative;">
|
||||||
<span>
|
<span>
|
||||||
<span>Hello World</span>
|
<span>Hello World</span>
|
||||||
|
Reference in New Issue
Block a user