1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Mobile: Resolves #12843: Rich Text Editor: Improve support for HTML notes (#12912)

This commit is contained in:
Henry Heino
2025-08-10 01:32:42 -07:00
committed by GitHub
parent 9ea1808766
commit 6bd702ae24
4 changed files with 26 additions and 5 deletions

View File

@@ -173,6 +173,21 @@ describe('RichTextEditor', () => {
});
});
it('should save repeated spaces using nonbreaking spaces', async () => {
let body = 'Test';
render(<WrappedEditor
noteBody={body}
onBodyChange={newBody => { body = newBody; }}
/>);
const window = await getEditorWindow();
mockTyping(window, ' test');
await waitFor(async () => {
expect(body.trim()).toBe('Test \u00A0test');
});
});
it('should render clickable checkboxes', async () => {
let body = '- [ ] Test\n- [x] Another test';
render(<WrappedEditor