Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Commit 46e9dd7

Browse files
author
steven.roulleau
committed
fix(Editor): avoid sending twice setTheme + keep theme on language change
1 parent f778fa5 commit 46e9dd7

File tree

14 files changed

+54
-39
lines changed

14 files changed

+54
-39
lines changed

examples/dev/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@
214214
const configuration = editorElement.editor.configuration;
215215
//The path to the language depend of the version of API you are using.
216216
configuration.recognitionParams.iink.lang = e.target.value;
217-
editorElement.editor.configuration = configuration;
218217
});
219218

220219
undoElement.addEventListener('click', () => {

examples/non-version-specific/change_language.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
const configuration = editorElement.editor.configuration;
3030
//The path to the language depend of the version of API you are using.
3131
configuration.recognitionParams.iink.lang = e.target.value;
32-
editorElement.editor.configuration = configuration;
3332
});
3433

3534
const configuration = {

examples/v4/customize_style.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@
267267
const configuration = editorElement.editor.configuration;
268268
//The path to the language depend of the version of API you are using.
269269
configuration.recognitionParams.iink.lang = e.target.value;
270-
editorElement.editor.configuration = configuration;
271270
});
272271

273272
fontsElement.addEventListener('change', (e) => {

examples/v4/local_storage_text.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@
8787
const configuration = editorElement.editor.configuration;
8888
//The path to the language depend of the version of API you are using.
8989
configuration.recognitionParams.iink.lang = e.target.value;
90-
editorElement.editor.configuration = configuration;
9190
});
9291

9392
undoElement.addEventListener('click', () => {

examples/v4/rest/rest_raw_content_iink.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@
8888
const configuration = editorElement.editor.configuration;
8989
//The path to the language depend of the version of API you are using.
9090
configuration.recognitionParams.iink.lang = e.target.value;
91-
editorElement.editor.configuration = configuration;
9291
});
9392

9493
undoElement.addEventListener('click', () => {

examples/v4/rest/rest_text_iink.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@
7979
const configuration = editorElement.editor.configuration;
8080
//The path to the language depend of the version of API you are using.
8181
configuration.recognitionParams.iink.lang = e.target.value;
82-
editorElement.editor.configuration = configuration;
8382
});
8483

8584
undoElement.addEventListener('click', () => {

examples/v4/websocket_text_iink.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
const configuration = editorElement.editor.configuration;
6464
//The path to the language depend of the version of API you are using.
6565
configuration.recognitionParams.iink.lang = e.target.value;
66-
editorElement.editor.configuration = configuration;
6766
});
6867

6968
undoElement.addEventListener('click', () => {

examples/v4/websocket_text_iink_decoration.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
const configuration = editorElement.editor.configuration;
6464
//The path to the language depend of the version of API you are using.
6565
configuration.recognitionParams.iink.lang = e.target.value;
66-
editorElement.editor.configuration = configuration;
6766
});
6867

6968
undoElement.addEventListener('click', () => {

examples/v4/websocket_text_iink_no_guides.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
const configuration = editorElement.editor.configuration;
6464
//The path to the language depend of the version of API you are using.
6565
configuration.recognitionParams.iink.lang = e.target.value;
66-
editorElement.editor.configuration = configuration;
6766
});
6867

6968
undoElement.addEventListener('click', () => {

examples/v4/websocket_text_iink_search.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@
133133
const configuration = editorElement.editor.configuration;
134134
//The path to the language depend of the version of API you are using.
135135
configuration.recognitionParams.iink.lang = e.target.value;
136-
editorElement.editor.configuration = configuration;
137136
});
138137

139138
convertElement.addEventListener('click', () => {

0 commit comments

Comments
 (0)