Changes between Version 1 and Version 2 of Ticket #12842, comment 1
- Timestamp:
- Jan 22, 2015, 2:22:56 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12842, comment 1
v1 v2 1 I tried fix [ this condition](https://github.com/cksource/ckeditor-dev/blob/322bc70f9784f4e70c967aca3d1f92bb200aa007/plugins/pastefromword/filter/default.js#L775-L776)what fix missing `<s>` and `<u>` over multiple spaces and do not break exiting tests (the problem is that empty block also contains only which should not be underlined/struck in this case). Also I have added support to the `<strike>` element, because in same cases pasted content contains `<strike>` instead of `<s>`. But these is still some problems (see [[Image(ticket:12842:Screenshot%20from%202015-01-22%2014%3A50%3A19.png)]]). This is not because of mentioned condition nor because of `isContainingOnlySpaces` method, but was fine before #12750. Also I am not able to easily merge contiguous text nodes now, because the can be wrapped in various tags.1 I tried fix [https://github.com/cksource/ckeditor-dev/blob/322bc70f9784f4e70c967aca3d1f92bb200aa007/plugins/pastefromword/filter/default.js#L775-L776 this condition] what fix missing `<s>` and `<u>` over multiple spaces and do not break exiting tests (the problem is that empty block also contains only which should not be underlined/struck in this case). Also I have added support to the `<strike>` element, because in same cases pasted content contains `<strike>` instead of `<s>`. But these is still some problems (see [[Image(ticket:12842:Screenshot%20from%202015-01-22%2014%3A50%3A19.png)]]). This is not because of mentioned condition nor because of `isContainingOnlySpaces` method, but was fine before #12750. Also I am not able to easily merge contiguous text nodes now, because the can be wrapped in various tags. 2 2 3 3 Now my idea is to use `moveToText` on the second run of filter when the whole clean up is already done. It may fix both problems.