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: |
Description
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:
- Make a relative link (Link protocol: <other>, URL: 'test.html'
- Copy and Paste that link inside the editor
- 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
Status: | new → pending |
---|---|
Version: | 4.4.5 |
comment:2 Changed 10 years ago by
ckeditor_4.4.5_full.zip + bbcode_4.4.5.zip. 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
Status: | pending → confirmed |
---|---|
Version: | → 3.6 |
I have rechecked this problem and I'm not sure why I wasn't able to reproduce it the first time.
- Just clear editor contents and create a link in BBcode sample.
- Select link if needed
- 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.
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.