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

Toggling styles with text selection inside table cell doesn't work correctly #2419

Closed
jacekbogdanski opened this issue Sep 14, 2018 · 1 comment
Labels
plugin:tableselection The plugin which probably causes the issue. resolution:duplicate A duplicate of an already reported issue. type:bug A bug.

Comments

@jacekbogdanski
Copy link
Member

Type of report

Bug

Provide detailed reproduction steps (if any)

  1. Open console.
  2. Open https://ckeditor.com/latest/samples/
  3. Add table.
  4. Type foo inside a table cell.
  5. Select typed text (text selection, not table selection).
  6. Press Bold button multiple times.

Expected result

  • No errors inside console.
  • Bold toggles correctly.

Actual result

  • Bold doesn't remove style.
  • Error inside console:
ckeditor.js:452 Uncaught DOMException: Failed to execute 'setEnd' on 'Range': There is no child at offset 1.
    at CKEDITOR.dom.selection.selectRanges (https://ckeditor.com/latest/ckeditor.js:452:179)
    at CKEDITOR.style.y (https://ckeditor.com/latest/ckeditor.js:476:243)
    at CKEDITOR.style.remove (https://ckeditor.com/latest/ckeditor.js:479:261)
    at a.removeStyle (https://ckeditor.com/latest/ckeditor.js:487:355)
    at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.command.window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.styleCommand.exec (https://ckeditor.com/latest/ckeditor.js:486:155)
    at window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.command.exec (https://ckeditor.com/latest/ckeditor.js:200:395)
    at a.execCommand (https://ckeditor.com/latest/ckeditor.js:268:448)
    at CKEDITOR.ui.button.CKEDITOR.tools.extend.click (https://ckeditor.com/latest/ckeditor.js:650:419)
    at Object.execute (https://ckeditor.com/latest/ckeditor.js:651:497)
    at https://ckeditor.com/latest/ckeditor.js:652:369

Other details

  • CKEditor version: 4.10.1
  • Installed CKEditor plugins: table, tableselection, basicstyles
@jacekbogdanski jacekbogdanski added type:bug A bug. status:confirmed An issue confirmed by the development team. plugin:tableselection The plugin which probably causes the issue. labels Sep 14, 2018
@jacekbogdanski
Copy link
Member Author

Duplicate of #941

@jacekbogdanski jacekbogdanski marked this as a duplicate of #941 Apr 8, 2019
@jacekbogdanski jacekbogdanski added resolution:duplicate A duplicate of an already reported issue. and removed status:confirmed An issue confirmed by the development team. labels Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin:tableselection The plugin which probably causes the issue. resolution:duplicate A duplicate of an already reported issue. type:bug A bug.
Projects
None yet
Development

No branches or pull requests

1 participant