1
0
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:
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 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}

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

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 style="position:relative;">
<span> <span>
<span>word</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;"> <div style="position:relative;">
<span> <span>
<span>o</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;"> <div style="position:relative;">
<span> <span>
<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 style="position:relative;">
<span> <span>
<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 style="position:relative;">
<span> <span>
<span>one</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;"> <div style="position:relative;">
<span> <span>
<span>one</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;"> <div style="position:relative;">
<span> <span>
<span><span style="font-weight:bold;">one</span></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;"> <div style="position:relative;">
<span> <span>
<span>one</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;"> <div style="position:relative;">
<span> <span>
<span>one</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;"> <div style="position:relative;">
<span> <span>
<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 style="position:relative;">
<span> <span>
<span>word</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;"> <div style="position:relative;">
<span> <span>
<span><br></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;"> <div style="position:relative;">
<span> <span>
<span>word</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;"> <div style="position:relative;">
<span> <span>
<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 style="position:relative;">
<div dir="rtl" style="position:relative;"> <div dir="rtl" 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 style="position:relative;">
<span> <span>
<span>Hello World</span> <span>Hello World</span>