|
@@ -130,7 +130,9 @@ var SimpleEditor = function SimpleEditor(props) {
|
130
|
130
|
_props$injectBraftEdi = props.injectBraftEditorProps,
|
131
|
131
|
injectBraftEditorProps = _props$injectBraftEdi === void 0 ? {} : _props$injectBraftEdi,
|
132
|
132
|
_props$appendToolBtn = props.appendToolBtn,
|
133
|
|
- appendToolBtn = _props$appendToolBtn === void 0 ? null : _props$appendToolBtn;
|
|
133
|
+ appendToolBtn = _props$appendToolBtn === void 0 ? null : _props$appendToolBtn,
|
|
134
|
+ _props$appendInnderBa = props.appendInnderBar,
|
|
135
|
+ appendInnderBar = _props$appendInnderBa === void 0 ? null : _props$appendInnderBa;
|
134
|
136
|
|
135
|
137
|
if (toolAlign === 'inner') {
|
136
|
138
|
return React__default.createElement(BraftEditor$1.BarftEditorPage, Object.assign({
|
|
@@ -149,6 +151,25 @@ var SimpleEditor = function SimpleEditor(props) {
|
149
|
151
|
}, injectBraftEditorProps));
|
150
|
152
|
}
|
151
|
153
|
|
|
154
|
+ if (toolAlign === 'both') {
|
|
155
|
+ return React__default.createElement("div", null, React__default.createElement(BraftEditor$1.BarftEditorPage, Object.assign({
|
|
156
|
+ value: value,
|
|
157
|
+ onChange: onChange,
|
|
158
|
+ controls: [],
|
|
159
|
+ FloatControls: {
|
|
160
|
+ appendInnderBar: appendInnderBar
|
|
161
|
+ }
|
|
162
|
+ }, injectBraftEditorProps)), React__default.createElement("div", {
|
|
163
|
+ style: toolBarContainerStyle
|
|
164
|
+ }, React__default.createElement("div", {
|
|
165
|
+ className: styles.bottomToolBarWrapper
|
|
166
|
+ }, React__default.createElement(ControlsToolBar, Object.assign({
|
|
167
|
+ editorState: value,
|
|
168
|
+ setEditorState: onChange,
|
|
169
|
+ toolList: toolList
|
|
170
|
+ }, injectControlsToolBar))), appendToolBtn));
|
|
171
|
+ }
|
|
172
|
+
|
152
|
173
|
return React__default.createElement("div", null, React__default.createElement(BraftEditor$1.BarftEditorPage, Object.assign({
|
153
|
174
|
value: value,
|
154
|
175
|
onChange: onChange,
|