mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-29 18:09:49 +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
|
||||
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 (
|
||||
<div
|
||||
data-slate-content
|
||||
data-slate-editor
|
||||
key={this.forces}
|
||||
ref={this.ref}
|
||||
contentEditable={!readOnly}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
|
||||
<div data-slate-content="true" contenteditable="true">
|
||||
<div data-slate-editor="true" contenteditable="true">
|
||||
<div style="position:relative;">
|
||||
<span style="position:absolute;top:0px;left:-9999px;text-indent:-9999px;">
|
||||
<span>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
|
||||
<div data-slate-content="true" contenteditable="true">
|
||||
<div data-slate-editor="true" contenteditable="true">
|
||||
<div style="position:relative;">
|
||||
<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;">
|
||||
<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;">
|
||||
<span>
|
||||
<span>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
|
||||
<div data-slate-content="true" contenteditable="true">
|
||||
<div data-slate-editor="true" contenteditable="true">
|
||||
<div 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;">
|
||||
<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;">
|
||||
<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;">
|
||||
<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;">
|
||||
<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;">
|
||||
<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;">
|
||||
<span>
|
||||
<span>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
|
||||
<div data-slate-content="true" contenteditable="true">
|
||||
<div data-slate-editor="true" contenteditable="true">
|
||||
<div style="position:relative;">
|
||||
<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;">
|
||||
<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;">
|
||||
<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;">
|
||||
<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 dir="rtl" style="position:relative;">
|
||||
<span>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
|
||||
<div data-slate-content="true" contenteditable="true">
|
||||
<div data-slate-editor="true" contenteditable="true">
|
||||
<div style="position:relative;">
|
||||
<span>
|
||||
<span>Hello World</span>
|
||||
|
Reference in New Issue
Block a user