-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(react-rich-text-lexical-renderer): remove role attribute
- Loading branch information
1 parent
e47356e
commit abe709d
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
packages/react-rich-text-lexical-renderer/__tests__/lexical-render.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export const emptyEditorContent = | ||
'<div class="editor"><div aria-autocomplete="none" aria-readonly="true" contenteditable="false" role="textbox" spellcheck="true" style="user-select: text; white-space: pre-wrap; word-break: break-word;" data-lexical-editor="true"><p class="WebinyLexical__paragraph"><br></p></div></div>'; | ||
'<div class="editor"><div aria-autocomplete="none" aria-readonly="true" contenteditable="false" spellcheck="true" style="user-select: text; white-space: pre-wrap; word-break: break-word;" data-lexical-editor="true"><p class="WebinyLexical__paragraph"><br></p></div></div>'; | ||
|
||
export const LexicalCmsInputRender = | ||
'<div class="editor"><div aria-autocomplete="none" aria-readonly="true" contenteditable="false" role="textbox" spellcheck="true" style="user-select: text; white-space: pre-wrap; word-break: break-word;" data-lexical-editor="true"><h1 class="WebinyLexical__h1 WebinyLexical__ltr" dir="ltr"><span data-lexical-text="true">Test CMS Title</span></h1><p class="WebinyLexical__paragraph"><br></p><p class="WebinyLexical__paragraph WebinyLexical__ltr" dir="ltr"><span data-lexical-text="true">Test CMS Paragraph</span></p><p class="WebinyLexical__paragraph"><br></p><blockquote class="WebinyLexical__quote WebinyLexical__ltr" dir="ltr"><span data-lexical-text="true">Test quote from lexical </span><strong class="WebinyLexical__textBold" data-lexical-text="true">CMS</strong></blockquote><p class="WebinyLexical__paragraph"><br></p><ul class="WebinyLexical__ul" data-theme-list-style-id="list"><li value="1" class="WebinyLexical__listItem WebinyLexical__ltr" dir="ltr"><span data-lexical-text="true">List item 1</span></li><li value="2" class="WebinyLexical__listItem WebinyLexical__ltr" dir="ltr"><span data-lexical-text="true">List item 2</span></li><li value="3" class="WebinyLexical__listItem WebinyLexical__ltr" dir="ltr"><span data-lexical-text="true">List item 3</span></li></ul><p class="WebinyLexical__paragraph"><br></p><p class="WebinyLexical__paragraph"><br></p></div></div>'; | ||
'<div class="editor"><div aria-autocomplete="none" aria-readonly="true" contenteditable="false" spellcheck="true" style="user-select: text; white-space: pre-wrap; word-break: break-word;" data-lexical-editor="true"><h1 class="WebinyLexical__h1 WebinyLexical__ltr" dir="ltr"><span data-lexical-text="true">Test CMS Title</span></h1><p class="WebinyLexical__paragraph"><br></p><p class="WebinyLexical__paragraph WebinyLexical__ltr" dir="ltr"><span data-lexical-text="true">Test CMS Paragraph</span></p><p class="WebinyLexical__paragraph"><br></p><blockquote class="WebinyLexical__quote WebinyLexical__ltr" dir="ltr"><span data-lexical-text="true">Test quote from lexical </span><strong class="WebinyLexical__textBold" data-lexical-text="true">CMS</strong></blockquote><p class="WebinyLexical__paragraph"><br></p><ul class="WebinyLexical__ul" data-theme-list-style-id="list"><li value="1" class="WebinyLexical__listItem WebinyLexical__ltr" dir="ltr"><span data-lexical-text="true">List item 1</span></li><li value="2" class="WebinyLexical__listItem WebinyLexical__ltr" dir="ltr"><span data-lexical-text="true">List item 2</span></li><li value="3" class="WebinyLexical__listItem WebinyLexical__ltr" dir="ltr"><span data-lexical-text="true">List item 3</span></li></ul><p class="WebinyLexical__paragraph"><br></p><p class="WebinyLexical__paragraph"><br></p></div></div>'; |