@@ -403,8 +403,12 @@ export default class RichTextEditor extends Component {
403
403
} ;
404
404
405
405
_sendAction ( action , data ) {
406
- const escapedData = typeof data === 'string' ? this . escapeJSONString ( data ) : data ;
407
- const jsToBeExecutedOnPage = MessageConverter ( { type : action , data : escapedData } ) ;
406
+ const escapedData =
407
+ typeof data === 'string' ? this . escapeJSONString ( data ) : data ;
408
+ const jsToBeExecutedOnPage = MessageConverter ( {
409
+ type : action ,
410
+ data : escapedData ,
411
+ } ) ;
408
412
this . webview . injectJavaScript ( `${ jsToBeExecutedOnPage } ;true;` ) ;
409
413
}
410
414
@@ -703,35 +707,47 @@ export default class RichTextEditor extends Component {
703
707
}
704
708
705
709
_titleFocusHandler ( ) {
706
- this . setState ( {
707
- isTitleFocused : true ,
708
- } , ( ) => {
709
- this . titleFocusHandler && this . titleFocusHandler ( ) ;
710
- } ) ;
711
- } ;
710
+ this . setState (
711
+ {
712
+ isTitleFocused : true ,
713
+ } ,
714
+ ( ) => {
715
+ this . titleFocusHandler && this . titleFocusHandler ( ) ;
716
+ } ,
717
+ ) ;
718
+ }
712
719
713
720
_titleBlurHandler ( ) {
714
- this . setState ( {
715
- isTitleFocused : false ,
716
- } , ( ) => {
717
- this . titleBlurHandler && this . titleBlurHandler ( ) ;
718
- } ) ;
721
+ this . setState (
722
+ {
723
+ isTitleFocused : false ,
724
+ } ,
725
+ ( ) => {
726
+ this . titleBlurHandler && this . titleBlurHandler ( ) ;
727
+ } ,
728
+ ) ;
719
729
}
720
730
721
731
_contentFocusHandler ( ) {
722
- this . setState ( {
723
- isContentFocused : true ,
724
- } , ( ) => {
725
- this . contentFocusHandler && this . contentFocusHandler ( ) ;
726
- } ) ;
732
+ this . setState (
733
+ {
734
+ isContentFocused : true ,
735
+ } ,
736
+ ( ) => {
737
+ this . contentFocusHandler && this . contentFocusHandler ( ) ;
738
+ } ,
739
+ ) ;
727
740
}
728
741
729
742
_contentBlurHandler ( ) {
730
- this . setState ( {
731
- isContentFocused : false ,
732
- } , ( ) => {
733
- this . contentBlurHandler && this . contentBlurHandler ( ) ;
734
- } ) ;
743
+ this . setState (
744
+ {
745
+ isContentFocused : false ,
746
+ } ,
747
+ ( ) => {
748
+ this . contentBlurHandler && this . contentBlurHandler ( ) ;
749
+ } ,
750
+ ) ;
735
751
}
736
752
737
753
setTitleFocusHandler ( callbackHandler ) {
0 commit comments