ckeditor4 icon indicating copy to clipboard operation
ckeditor4 copied to clipboard

Bug with specific text and bbcode plugin

Open blackcoder87 opened this issue 7 years ago • 5 comments

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)

blackcoder87 avatar Jan 26 '19 19:01 blackcoder87

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

blackcoder87 avatar Aug 07 '19 05:08 blackcoder87

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.

toshniba avatar Aug 29 '19 09:08 toshniba

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

EMiT57 avatar Apr 20 '21 08:04 EMiT57

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

xillibit avatar May 25 '21 09:05 xillibit

I came here hoping this was fixed or there was a suggestion on how to fix. Anything?

tig avatar Jan 11 '25 18:01 tig