Bug with specific text and bbcode plugin
Type of report
Bug
Provide detailed reproduction steps (if any)
- Open https://ckeditor.com/docs/ckeditor4/latest/examples/bbcode.html
- Remove all text
- Enter [[][/url]
- Switch to Source View
- 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)
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
I came here hoping this was fixed or there was a suggestion on how to fix. Anything?