Ckeditor4: Bug with specific text and bbcode plugin

Created on 26 Jan 2019  路  4Comments  路  Source: ckeditor/ckeditor4

Type of report

Bug

Provide detailed reproduction steps (if any)

  1. Open https://ckeditor.com/docs/ckeditor4/latest/examples/bbcode.html
  2. Remove all text
  3. Enter [[][/url]
  4. Switch to Source View
  5. Return to normal view

Expected result

It should show the previously entered text "[[][/url]".

Actual result

Empty text field and all controls are disabled. Editor "broken".

Other details

Uncaught TypeError: Cannot read property 'type' of null
    at CKEDITOR.BBCodeParser.e.onTagClose (plugin.js?t=J0EE:12)
    at CKEDITOR.BBCodeParser.parse (plugin.js?t=J0EE:9)
    at Function.CKEDITOR.htmlParser.fragment.fromBBCode (plugin.js?t=J0EE:13)
    at a.b (plugin.js?t=J0EE:17)
    at a.e (ckeditor.js:10)
    at a.<anonymous> (ckeditor.js:11)
    at a.window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.editor.CKEDITOR.editor.fire (ckeditor.js:13)
    at a.setData (ckeditor.js:271)
    at d (ckeditor.js:1215)
    at Object.wysiwyg (ckeditor.js:1217)
bbcode confirmed bug

All 4 comments

I noticed there is no progress any more since a few months. :(
I would still appreciate this being fixed.

I have the same, or at least a similar problem when using double-brackets (eg for use with placeholder plugin) inside bbcode (in my case url).
Eg [url]https://[[var1]]/fooboo[/url] is not valid to bbcode plugin and gets corrupted.

This text generate the same:
(b]*[/b]

This is a very annoying issue and make inusable ckeditor when there are incorrect bbcode in it

Was this page helpful?
0 / 5 - 0 ratings