diff --git a/src/components/text-editor/examples/text-editor-with-tables.tsx b/src/components/text-editor/examples/text-editor-with-tables.tsx index 97f73db6d7..91b1e30721 100644 --- a/src/components/text-editor/examples/text-editor-with-tables.tsx +++ b/src/components/text-editor/examples/text-editor-with-tables.tsx @@ -2,10 +2,11 @@ import { Component, h, State } from '@stencil/core'; /** * Text editor with tables (HTML mode only). * - * When using the text editor in HTML mode, it is possible to paste and - * display tables in the text editor. - * Basic interaction with the table is supported, but you cannot do - * complex operations + * Basic table support is available when using the text editor in `HTML` mode. + * This allows you to paste and display tables in the text editor. + * Complex operations are not supported, adding and removing columns are not supported. + * + * Tables will only appear as expected in text-editor fields that are in `HTML` mode. */ @Component({ tag: 'limel-example-text-editor-with-tables', @@ -13,8 +14,20 @@ import { Component, h, State } from '@stencil/core'; }) export class TextEditorWithTablesExample { @State() - private value: string = - '
Column1 | Column2 |
Cell A1 | Cell B1 |
Cell A2 | Cell B2 |
Column1 |
+ Column2 |
+
Cell A1 |
+ Cell B1 |
+
Cell A2 |
+ Cell B2 |
+