Conversation
f1ames
left a comment
There was a problem hiding this comment.
Looks good, some polishing in tests needed 👍
f1ames
left a comment
There was a problem hiding this comment.
Looks good, some polishing of unit tests needed 👍
There is also one issue we have stumbled upon earlier (see #4251 (review)):
Also for some reason for empty editor,
getData()returns one empty space (so length 1 instead of 0 which doesn't help here). And yes, it is an empty space, so there is now way to distinguish if editor is empty or someone just typed space becausecharCodeis the same.
So we can only fix error being thrown for bbcode + fullpage but editor placeholder will not be displayed anyway (that's how it works now, which is good) due to single space character always being returned. But as @sculpt0r mentioned:
It appears
bbcodeplugin filter-out all non-body content.
This is very rare edge case so we can accept that.
|
Rebased onto latest |
f1ames
left a comment
There was a problem hiding this comment.
One test fails in IE9 (probably IE10 too but haven't checked):
The issue here is that, without dev console open, older IEs don't have console object available... So probably stubbing console.log for older IEs should be skipped. I think it's not a problem here since the error the test is checking for is runtime error so it still will be caught.
There was a problem hiding this comment.
LGTM 👍 🎉
Agree that skipping runtime error checks for IE9 as mentioned in #4370 (comment) makes sense 👍
Unit tests
- Chrome:heavy_check_mark:
- Firefox:heavy_check_mark:
- Safari:heavy_check_mark:
- Safari@iOS:heavy_check_mark:
- Chrome@Android:heavy_check_mark:
- Edge:heavy_check_mark:
- IE11:heavy_check_mark:
- IE8:heavy_check_mark:
- IE9:heavy_check_mark:
- IE10:heavy_check_mark:
Co-authored-by: Krzysztof Krztoń <k.krzton@cksource.com>
Co-authored-by: Krzysztof Krztoń <k.krzton@cksource.com>
|
Rebased onto latest |



What is the purpose of this pull request?
Bug fix
Does your PR contain necessary tests?
All patches that change the editor code must include tests. You can always read more
on PR testing,
how to set the testing environment and
how to create tests
in the official CKEditor documentation.
This PR contains
Did you follow the CKEditor 4 code style guide?
Your code should follow the guidelines from the CKEditor 4 code style guide which helps keep the entire codebase consistent.
What is the proposed changelog entry for this pull request?
What changes did you make?
Check
RegExpmatch results before trying access via index.Which issues does your PR resolve?
Closes #4253