client/src/components/SlateEditor.js
changeset 103 dc906a578616
parent 102 b0e36664f1f2
child 138 a1fb2ced3049
equal deleted inserted replaced
102:b0e36664f1f2 103:dc906a578616
   374         key: category.key
   374         key: category.key
   375       }
   375       }
   376     })
   376     })
   377 
   377 
   378     Object.assign(category, {
   378     Object.assign(category, {
   379       text: currentSelectionText
   379       text: currentSelectionText,
       
   380       selection: {
       
   381         start: currentSelectionStart,
       
   382         end: currentSelectionEnd,
       
   383       },
   380     });
   384     });
   381     categories = categories.push(category);
   385     categories = categories.push(category);
   382 
   386 
   383     this.setState({
   387     this.setState({
   384       state: transform.apply(),
   388       state: transform.apply(),