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:
committed by
Ian Storm Taylor
parent
6f676d6771
commit
fe157efdf2
@@ -36,7 +36,7 @@ class Text extends Record(DEFAULTS) {
|
||||
* @return {Text}
|
||||
*/
|
||||
|
||||
static create(attrs = {}) {
|
||||
static create(attrs = '') {
|
||||
if (Text.isText(attrs)) {
|
||||
return attrs
|
||||
}
|
||||
|
Reference in New Issue
Block a user