We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54c1860 commit 2349702Copy full SHA for 2349702
1 file changed
src/livecodes/core.ts
@@ -4042,7 +4042,8 @@ const handleEmbed = () => {
4042
4043
const changeEditorSettings = (newConfig: Partial<UserConfig> | null) => {
4044
if (!newConfig) return;
4045
- const shouldReload = newConfig.editor != null && newConfig.editor !== getConfig().editor;
+ const shouldReload =
4046
+ newConfig.editor !== getConfig().editor && !((newConfig.editor || '') in getActiveEditor());
4047
4048
setUserConfig(newConfig);
4049
const updatedConfig = getConfig();
0 commit comments