Opened 11 years ago
Closed 11 years ago
#11727 closed Bug (fixed)
Editor tries to select non-editable image which was clicked
Reported by: | Piotrek Koszuliński | Owned by: | Piotrek Koszuliński |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.4.0 |
Component: | General | Version: | |
Keywords: | Cc: |
Description
This causes an issue in #11480 on Firefox because editor tries to create selection on widget's mask which is placed inside widget wrapper. This somehow does not cause any visible problems on in other cases, but in this one fixDom steps into the process and adds bogus BR inside the wrapper.
I set milestone to 4.4, because this ticket may have unexpected influence on MathJax and Image2 plugins.
Change History (4)
comment:1 Changed 11 years ago by
Status: | new → confirmed |
---|
comment:2 Changed 11 years ago by
Owner: | set to Piotrek Koszuliński |
---|---|
Status: | confirmed → review |
comment:3 Changed 11 years ago by
Status: | review → review_passed |
---|
The following code
'async:init': function() { var that = this; CKTESTER.tools.setUpEditors( { editor: { name: 'editor1', creator: 'inline', config: { allowedContent: true } }, }, function( editors, bots ) { that.editorBots = bots; that.editors = editors; that.callback(); } ); },
is not necessary since there's just single editor instance used in tests.
Other than that, this fix feels good to me.
comment:4 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | review_passed → closed |
Fixed on major with git:894f26f on dev and c068298 on tests.
I used 'async:init' because there may be more editors in the future. I was recently forced to refactor few test files because they were using CKTESTER.editor
instead of this method, so I think that it's reasonable to use now this method only. It's just a lot more flexible.
Pushed branch:t/11727 on dev and tests.