• Resolved mat_

    (@mat_)


    Hi everyone !

    I’m actually writing a plugin that is using a custom db.
    I’m using tinymce with the_editor() function and it’s working great.

    Now the point is that the image uploader isn’t really working.

    the upload part is working, meaning that the image is sent to the server. Then i try to add the image to my content, with the button, and the image is showed.
    finally i save my content but the <a href=”” …<img src=”” seems corrupted when the data are saved to my db.

    Any idea on how to figure out why it isn”t working ?
    Or maybe a simple plugin that is doing the almost same thing ?

    Just need a plugin to study that save data using the_editor in a custom db…

    thanks a lot !

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mat_

    (@mat_)

    Problem of slash escaped data on $_POST[]

    And moreover, i really have to get rid of my custom tables and work with new post types.

    Hi, Mat_
    Sorry, I can’t help you with your problem. But may be, you can help me with TinyMCE. I also write a plugin that is using a custom db.
    You write, that

    I’m using tinymce with the_editor() function and it’s working great.

    I use this code in my admin panel:

    the_editor($content, $id = 'content', $prev_id = 'title', $media_buttons = true, $tab_index = 2)
    And I get these problems:

    the buttons of “Add an Image”, “Add video” and “Visual” doesn’t works, no error and nothing happens.

    The button “HTML” gives me the JavaScript error “switchEditors is not defined”.

    The other problem is that when I write, the text appears in white colour, I only can see what I type if I mark the text.

    Help me please.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘TinyMCE and Image uploader for plugin with custom db’ is closed to new replies.