mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-17 20:51:20 +02:00
Making the default for Text.create to have leaves (#1268)
This commit is contained in:
committed by
Ian Storm Taylor
parent
6f676d6771
commit
fe157efdf2
@@ -36,7 +36,7 @@ class Text extends Record(DEFAULTS) {
|
|||||||
* @return {Text}
|
* @return {Text}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static create(attrs = {}) {
|
static create(attrs = '') {
|
||||||
if (Text.isText(attrs)) {
|
if (Text.isText(attrs)) {
|
||||||
return attrs
|
return attrs
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user