Opened 8 years ago

Closed 8 years ago

#4001 closed Bug (fixed)

Using the link button on an image produces incorrect HTML code, and it doesn't work

Reported by: Andy Owned by: Garry Yao
Priority: Normal Milestone: CKEditor 3.0
Component: Core : Styles Version:
Keywords: Confirmed Review+ Cc:

Description (last modified by Frederico Caldeira Knabben)

Bug in CKEditor (Nightly Build Revision 3936) OS: Windows XP Browser: Mozilla Firefox 3.5.1 (also tested in Google Chrome - same problem)

Here's what I did:

  1. I put a photo in the editor.
  2. I clicked on the photo.
  3. I clicked on the link button.
  4. I entered the target URL and clicked OK.
  5. I hit the SOURCE button to check the code.

Instead of generating <a href="http://targeturl"> code, it generates something like this: <img href="http://targeturl" ... >

This happened in both the downloaded version on our test server, as well as your online demo.

Attachments (1)

4001.patch (1.9 KB) - added by Garry Yao 8 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 8 years ago by Garry Yao

Component: GeneralCore : Styles
Keywords: Confirmed added
Milestone: CKEditor 3.0

comment:2 Changed 8 years ago by Garry Yao

Owner: set to Garry Yao
Status: newassigned

We should have it behavioring the same with v2.

Changed 8 years ago by Garry Yao

Attachment: 4001.patch added

comment:3 Changed 8 years ago by Garry Yao

Keywords: Review? added

comment:4 Changed 8 years ago by Frederico Caldeira Knabben

Description: modified (diff)

comment:5 Changed 8 years ago by Frederico Caldeira Knabben

Keywords: Review+ added; Review? removed

comment:6 Changed 8 years ago by Garry Yao

Resolution: fixed
Status: assignedclosed

Fixed with [3943].

Note: See TracTickets for help on using tickets.
© 2003 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy