1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-29 09:59:48 +02:00

rename data-slate-content to data-slate-editor

This commit is contained in:
Ian Storm Taylor
2016-12-07 15:20:57 -08:00
parent 48411c769f
commit d0ccfac77f
18 changed files with 19 additions and 19 deletions

View File

@@ -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}

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -1,5 +1,5 @@
<div data-slate-content="true" contenteditable="true">
<div data-slate-editor="true" contenteditable="true">
<div style="position:relative;">
<span>
<span>

View File

@@ -1,5 +1,5 @@
<div data-slate-content="true" contenteditable="true">
<div data-slate-editor="true" contenteditable="true">
<div style="position:relative;">
<span>
<span>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -1,5 +1,5 @@
<div data-slate-content="true" contenteditable="true">
<div data-slate-editor="true" contenteditable="true">
<div style="position:relative;">
<span>
<span>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -1,5 +1,5 @@
<div data-slate-content="true" contenteditable="true">
<div data-slate-editor="true" contenteditable="true">
<div style="position:relative;">
<span>
<span>

View File

@@ -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>

View File

@@ -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>