Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor crashes after styling the cell with native selection #941

Closed
Mgsy opened this issue Sep 20, 2017 · 3 comments · Fixed by #3038
Closed

Editor crashes after styling the cell with native selection #941

Mgsy opened this issue Sep 20, 2017 · 3 comments · Fixed by #3038
Assignees
Labels
plugin:table The plugin which probably causes the issue. plugin:tableselection The plugin which probably causes the issue. status:confirmed An issue confirmed by the development team. support:3 An issue reported by a commercially licensed client. type:bug A bug.
Milestone

Comments

@Mgsy
Copy link
Member

Mgsy commented Sep 20, 2017

Are you reporting a feature request or a bug?

Bug

Provide detailed reproduction steps (if any)

  1. Create new table.
  2. Type something at some cell.
  3. Select the word from step 2 (selection should be native).
  4. Bold.
  5. Unbold.

Expected result

The word has been unbolded.

Actual result

Editor crashes.

Error

ckeditor.js:443 Uncaught DOMException: Failed to execute 'setEnd' on 'Range': There is no child at offset 1.
    at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.dom.selection.selectRanges (http://nightly.ckeditor.com/17-09-20-06-04/full/ckeditor.js:443:179)
    at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.style.x (http://nightly.ckeditor.com/17-09-20-06-04/full/ckeditor.js:467:196)
    at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.style.remove (http://nightly.ckeditor.com/17-09-20-06-04/full/ckeditor.js:470:261)
    at a.removeStyle (http://nightly.ckeditor.com/17-09-20-06-04/full/ckeditor.js:478:355)
    at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.command.window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.styleCommand.exec (http://nightly.ckeditor.com/17-09-20-06-04/full/ckeditor.js:477:155)
    at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.command.exec (http://nightly.ckeditor.com/17-09-20-06-04/full/ckeditor.js:192:379)
    at a.execCommand (http://nightly.ckeditor.com/17-09-20-06-04/full/ckeditor.js:260:171)
    at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.ui.button.CKEDITOR.tools.extend.click (http://nightly.ckeditor.com/17-09-20-06-04/full/ckeditor.js:640:419)
    at Object.execute (http://nightly.ckeditor.com/17-09-20-06-04/full/ckeditor.js:641:490)
    at http://nightly.ckeditor.com/17-09-20-06-04/full/ckeditor.js:642:326

GIF

bug_cke4

Other details

  • Browser: All browsers
  • OS: Windows 10, MacOS X
  • CKEditor version: 4.7.3
@Mgsy Mgsy added plugin:table The plugin which probably causes the issue. plugin:tableselection The plugin which probably causes the issue. type:bug A bug. labels Sep 20, 2017
@msamsel msamsel added the status:confirmed An issue confirmed by the development team. label Sep 22, 2017
@msamsel
Copy link
Contributor

msamsel commented Sep 22, 2017

I just add status:confirmed to the issue, to be filtered out properly.

@HGSFB
Copy link

HGSFB commented Feb 21, 2019

any updates on this?? i am facing the same issue

@jswiderski jswiderski added the support:1 An issue reported by a commercially licensed client. label Feb 21, 2019
@mlewand
Copy link
Contributor

mlewand commented Feb 21, 2019

Not yet, adding to the backlog.

@mlewand mlewand added this to the Backlog milestone Feb 21, 2019
@jacekbogdanski jacekbogdanski self-assigned this Apr 8, 2019
@f1ames f1ames modified the milestones: Backlog, 4.12.1 Jun 18, 2019
@f1ames f1ames modified the milestones: 4.12.1, 4.13.0 Jun 26, 2019
@lslowikowska lslowikowska added support:3 An issue reported by a commercially licensed client. and removed support:1 An issue reported by a commercially licensed client. labels Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin:table The plugin which probably causes the issue. plugin:tableselection The plugin which probably causes the issue. status:confirmed An issue confirmed by the development team. support:3 An issue reported by a commercially licensed client. type:bug A bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants