|
@@ -53,8 +53,8 @@ var BarftEditorPage = function BarftEditorPage(_ref) {
|
53
|
53
|
onDelete = _ref.onDelete,
|
54
|
54
|
onSave = _ref.onSave,
|
55
|
55
|
onTab = _ref.onTab,
|
56
|
|
- onFocus = _ref.onFocus,
|
57
|
|
- onBlur = _ref.onBlur,
|
|
56
|
+ _onFocus = _ref.onFocus,
|
|
57
|
+ _onBlur = _ref.onBlur,
|
58
|
58
|
converts = _ref.converts;
|
59
|
59
|
var optionsControls = controls ? controls : ["bold", "italic", "underline", "separator", "link", "emoji", "separator", "media"];
|
60
|
60
|
var options = {
|
|
@@ -80,10 +80,12 @@ var BarftEditorPage = function BarftEditorPage(_ref) {
|
80
|
80
|
contentClassName: index.classnames(styles.editorContent, defineProperty._defineProperty({}, styles.focus, focusState)),
|
81
|
81
|
contentStyle: contentStyle,
|
82
|
82
|
onFocus: function onFocus() {
|
83
|
|
- return setFocusState(true);
|
|
83
|
+ setFocusState(true);
|
|
84
|
+ _onFocus && _onFocus();
|
84
|
85
|
},
|
85
|
86
|
onBlur: function onBlur() {
|
86
|
|
- return setFocusState(false);
|
|
87
|
+ setFocusState(false);
|
|
88
|
+ _onBlur && _onBlur();
|
87
|
89
|
},
|
88
|
90
|
hooks: {
|
89
|
91
|
"toggle-link": function toggleLink(_ref2) {
|
|
@@ -106,8 +108,7 @@ var BarftEditorPage = function BarftEditorPage(_ref) {
|
106
|
108
|
onDelete: onDelete,
|
107
|
109
|
onSave: onSave,
|
108
|
110
|
onTab: onTab,
|
109
|
|
- onFocus: onFocus,
|
110
|
|
- onBlur: onBlur
|
|
111
|
+ onBlur: _onBlur
|
111
|
112
|
})));
|
112
|
113
|
};
|
113
|
114
|
|