Skip to content

Commit 483ab96

Browse files
Added a check from config (#4753) Fixes #4743
1 parent fbdb0d5 commit 483ab96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/editor/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export default class EditorModule implements IBaseModule<EditorConfig> {
106106
this.config = {
107107
...defaults,
108108
...config,
109-
pStylePrefix: defaults.stylePrefix,
109+
pStylePrefix: config.stylePrefix ?? defaults.stylePrefix,
110110
};
111111
this.em = new EditorModel(this.config);
112112
this.$ = opts.$;

0 commit comments

Comments
 (0)