|
|
@@ -3,12 +3,23 @@
|
|
|
|
|
|
### Issue [#49](https://github.com/ckeditor/ckeditor5-typing/issues/49) manual test
|
|
|
|
|
|
-There should be no ` ` (`\u00A0`) characters in model and view, but they should be rendered in DOM. Multiple
|
|
|
-consecutive spaces should be allowed, as well as spaces at the beginning or end of element.
|
|
|
+Non-breakable spaces created by browser after using <kbd>space</kbd> should be changed to normal space characters when
|
|
|
+inserted to model and view. Still, ` ` have to be correctly rendered in DOM.
|
|
|
+
|
|
|
+Multiple consecutive spaces should be allowed, as well as spaces at the beginning or end of element.
|
|
|
|
|
|
Open console and start using <kbd>space</kbd>. After each change, console is refreshed with output:
|
|
|
-* All ` ` from model and view are being changed to `_`.
|
|
|
-* There should be no `_` in view and model output.
|
|
|
+* There should be no ` ` inserted in view and model after using <kbd>space</kbd>.
|
|
|
* There should be ` ` in DOM and `getData` output, where needed.
|
|
|
|
|
|
-Use `editor.setData()` to test whether whitespaces in input HTML are correctly removed.
|
|
|
+Use `editor.setData()` to test whether whitespaces in input HTML are correctly removed and ` ` are correctly
|
|
|
+saved in model and view. ` ` inserted through `editor.setData()` should be kept, not changed to normal spaces.
|
|
|
+
|
|
|
+Test at least this scenario:
|
|
|
+* fire `editor.setData( '<p> x</p>' )`,
|
|
|
+* place caret at the beginning, before space,
|
|
|
+* write `x` -> ` ` should be preserved in model, view and DOM,
|
|
|
+* place caret at the beginning,
|
|
|
+* press <kbd>space</kbd> -> ` ` should appear in DOM, but space in model and view,
|
|
|
+* place caret at the beginning,
|
|
|
+* write `x` -> ` ` should get converted to a space in DOM.
|