1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-16 04:04:06 +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}
*/
static create(attrs = {}) {
static create(attrs = '') {
if (Text.isText(attrs)) {
return attrs
}