Opened 10 years ago

Last modified 10 years ago

#12638 confirmed Bug

BBCode plugin does not process URL's

Reported by: Jasper Owned by:
Priority: Normal Milestone:
Component: General Version: 3.6
Keywords: Cc:


When you copy and paste a relative url in a contentEditable field, it becomes an absolute path (in some browsers?). CKEditor does some processing to fix this. When you enable the BBCode plugin, nothing changes and the url stays absolute.

Steps to reproduce:

  1. Make a relative link (Link protocol: <other>, URL: 'test.html'
  2. Copy and Paste that link inside the editor
  3. Check the source

The same works perfect without BBCode enabled.

Tried in Chrome 38 and FF 33.

Change History (3)

comment:1 Changed 10 years ago by Jakub Ś

Status: newpending
Version: 4.4.5

I have tried default CKEditor but nothing like that have happened. Are you by any chance using base tag on your HTML page?

Please provide more detailed explanation here as it doesn't happen by default.

comment:2 Changed 10 years ago by Jasper + ckeditor\plugins\bbcode\samples\bbcode.html as example. If you run it locally (file://<whatever path) it seems to work correctly, but running it from a server (tested it with Xampp, a windows and linux based apache server) it gives the absolute URL's.

comment:3 Changed 10 years ago by Jakub Ś

Status: pendingconfirmed
Version: 3.6

I have rechecked this problem and I'm not sure why I wasn't able to reproduce it the first time.

  1. Just clear editor contents and create a link in BBcode sample.
  2. Select link if needed
  3. Copy and paste it

The result in HTML is:

<a data-cke-saved-href="test.html" href="http://path_to_file/test.html">test.html</a>

This result is in fact the same for every editor mode but the problem I can see is that "data-cke-saved-href" attribute is not taken into account when BBcode is used.

Problem can be reproduced in every browser from CKEditor 3.6.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy