Skip to content

Commit a197ccd

Browse files
committed
Bug fix
1 parent 56603a7 commit a197ccd

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/main/resources/META-INF/frontend/vaadin-ckeditor.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -278,18 +278,19 @@ class VaadinCKEditor extends LitElement {
278278
return errorStyle;
279279
}
280280

281+
// ${this.editorWidth !== 'auto'? html`
282+
// <style>
283+
// .ck.ck-editor {
284+
// width: ${this.editorWidth};
285+
// }
286+
// </style>`: html``}
281287
render() {
282288
return html`
283289
<label part="label" id="label_${this.editorId}">${this.label} </label>
284290
<ul part="label-ul"><li part="label-li">
285291
<div part="error-message" id="error_${this.editorId}">${this.errorMessage}</div>
286292
</li></ul>
287-
${this.editorWidth !== 'auto'? html`
288-
<style>
289-
.ck.ck-editor {
290-
width: ${this.editorWidth};
291-
}
292-
</style>`: html``}
293+
293294
${this.editorType==='decoupled' ? html`
294295
<div id="document-container">
295296
<div id="toolbar-container">

0 commit comments

Comments
 (0)