Skip to content

Commit f2382b3

Browse files
committed
fix #1435
1 parent a7c904c commit f2382b3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/toolbar/InsertModalBody.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ class InsertModalBody extends Component {
5757
if (customInsertEditor) {
5858
const { getElement } = customInsertEditor;
5959
fieldElement = getElement(column, attr, 'form-control', ignoreEditable, defaultValue);
60-
} else {
60+
}
61+
62+
// fieldElement = false, means to use default editor when enable custom editor
63+
// Becasuse some users want to have default editor based on some condition.
64+
if (!customInsertEditor || fieldElement === false) {
6165
fieldElement = editor(editable, attr, format, '', defaultValue, ignoreEditable);
6266
}
6367

0 commit comments

Comments
 (0)