WordPress.org

Ready to get started?Download WordPress

Forums

CKEditor For WordPress
[resolved] ckeditor cannot upload image using add media button (4 posts)

  1. reedone816
    Member
    Posted 1 year ago #

    hi I can't use the add image button, it result blank.
    when I use the debugger in firefox it shows this error:

    type error: match is null

    on the right side it said plugin.js:255

    I can use the button when I disable ckeditor and using default editor from worpress.

    http://wordpress.org/extend/plugins/ckeditor-for-wordpress/

  2. niko123
    Member
    Posted 1 year ago #

    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

  3. niko123
    Member
    Posted 1 year ago #

    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)

  4. reedone816
    Member
    Posted 1 year ago #

    thanks guys its work

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic