WordPress.org

Support

Support » Plugins and Hacks » [Resolved] ckeditor cannot upload image using add media button

[Resolved] ckeditor cannot upload image using add media button

Viewing 3 replies - 1 through 3 (of 3 total)
  • For me it works when you disable the link on the image in the media manager (Add Media -> Select Image -> Attachment Display Settings “Link To” “None” -> Insert Into Page).

    You’ll get an image with “<<caption>>” as caption, which you can remove by double-clicking the image and erasing the caption text (you can’t set any other caption though, it’ll always appear as “<<caption>>”).

    Edit: Seems to be that the “<<caption>>” is intentional, once you preview the page the caption shows up

    A quick hack that fixes the problem for me and allows me to insert images with a link, in the file wp-content/plugins/ckeditor-for-wordpress/plugins/wpgallery/plugin.js, replace line 251

    data = data.replace( /\[caption(.*?)\]([^>]+?>)(.*?)\[\/caption\]/mig, function(match, captionAttr, imgTag, captionText)

    with

    data = data.replace( /\[caption(.*?)\](.*>)([^<]*?)\[\/caption\]/mig, function(match, captionAttr, imgTag, captionText)

    reedone816
    Member

    @reedone816

    thanks guys its work

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] ckeditor cannot upload image using add media button’ is closed to new replies.