• Where is the default code that is inserted by the image uploader/browser in the editor located? On each image, I’ve wrapped it with a div and a caption, the markup ending up as


    <div class="box caption left"><img />
    Caption</div>

    How do I modify the code that’s inserted by the editor to include my wrapped content?

    I thought I had located it by editing /wp-admin/js/upload.js but this didn’t affect the code.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You should look into using WordPress hooks via plugin development. That would help you. If you have to find the code, use grep or wingrep.

    fuddes

    (@fuddes)

    Bump.

    I’d also like to know where to find the default code inserted by the image uploader/browser in the editor.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Default image insertion code’ is closed to new replies.