1
0
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:
Ryan Yurkanin
2017-10-25 01:38:38 -04:00
committed by Ian Storm Taylor
parent 6f676d6771
commit fe157efdf2

View File

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