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

Commit 3a298ef

Browse files
committed
bad ink color in customize Editor example MSIS-3169
1 parent 5ff72e2 commit 3a298ef

File tree

2 files changed

+22
-14
lines changed

2 files changed

+22
-14
lines changed

examples/v4/websocket_text_customize_editor_css.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,16 @@
7272
}
7373
}
7474
};
75-
const globalClassCSS = 'my-custom-class'
76-
iink.register(editorElement, configuration, null, null, null, globalClassCSS);
75+
const penStyle = {
76+
color: '#ffffff'
77+
};
78+
const theme = {
79+
ink: {
80+
color: '#ffffff',
81+
}
82+
};
83+
const globalClassCSS = 'my-custom-class';
84+
iink.register(editorElement, configuration, penStyle, theme, null, globalClassCSS);
7785

7886
window.addEventListener('resize', () => {
7987
editorElement.editor.resize();

examples/v4/websocket_text_customize_stroke_style.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -280,19 +280,19 @@
280280
* @param {Element} The DOM element to attach the ink paper
281281
* @param {Object} The recognition parameters
282282
*/
283-
const editor = iink.register(editorElement, {
284-
recognitionParams: {
285-
type: 'TEXT',
286-
protocol: 'WEBSOCKET',
287-
server: {
288-
scheme: 'https',
289-
host: 'webdemoapi.myscript.com',
290-
applicationKey: '515131ab-35fa-411c-bb4d-3917e00faf60',
291-
hmacKey: '54b2ca8a-6752-469d-87dd-553bb450e9ad'
292-
}
283+
const configuration = {
284+
recognitionParams: {
285+
type: 'TEXT',
286+
protocol: 'WEBSOCKET',
287+
server: {
288+
scheme: 'https',
289+
host: 'webdemoapi.myscript.com',
290+
applicationKey: '515131ab-35fa-411c-bb4d-3917e00faf60',
291+
hmacKey: '54b2ca8a-6752-469d-87dd-553bb450e9ad'
293292
}
294-
},
295-
undefined, getTheme(themes, defaultTheme));
293+
}
294+
}
295+
const editor = iink.register(editorElement, configuration, null, getTheme(themes, defaultTheme));
296296

297297
window.addEventListener('resize', () => {
298298
editorElement.editor.resize();

0 commit comments

Comments
 (0)