ckeditor / ckeditor4

The best enterprise-grade WYSIWYG editor. Fully customizable with countless features and plugins.
https://ckeditor.com/ckeditor-4
Other
5.8k stars 2.48k forks source link

Unable to quote 2 adjacent smileys #2414

Open xavier-dev opened 6 years ago

xavier-dev commented 6 years ago

Type of report

Bug

Provide detailed reproduction steps (if any)

  1. Go to https://sdk.ckeditor.com/samples/bbcode.html
  2. In the quote, add 2 smileys one next to the other
  3. Click on the button to see the "Source"
  4. Verify that you can see [quote]One small step for [a] man, one giant leap for mankind.:):)[/quote]
  5. Click again on the "Source" button to see the formatted text

Expected result

The editor should show the quote containing the 2 adjacent smileys, as visible after step 2.

expected

Actual result

The editor is empty and all buttons are disabled. The console of the browser shows "Uncaught TypeError: Cannot read property 'children' of null"

observed

Other details

The same issue occurs if the editor is originally prefilled with a quote containing 2 adjacent simleys.

This issue looks similar to https://dev.ckeditor.com/ticket/13162.

rich20 commented 4 years ago

I don't think it's a smiley problem only. It seems, the problem occur generally if a Code is considered wrong or incomplete. That happens with all BBCodes, which supported by the CKEditor if you made such as a typo in the first code tag. Example: Go to the test editor and enter one of this wrong code in the source code: https://ckeditor.com/docs/ckeditor4/latest/examples/bbcode.html

[b ]Apollo 11[/b]
[b Apollo 11[/b]

Now click on the source code button. You get the same result, the editor freezes.

My OS Ubuntu 20.04.1 LTS (gnome). Browser Chromium Version 85.0.4183.121 (Offizieller Build) snap (64-Bit). Opera Version:71.0.3770.171 Firefox 82.0 (64-Bit)