WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Advanced Image Settings Php Location (8 posts)

  1. cow_griller
    Member
    Posted 1 year ago #

    Hi,

    Does anyone know where the php file which contains "Advanced Image Settings" is located?

    - (i.e. when you click on an img in the editor and go to "Advanced Settings")

    We have a site with pre-written CSS and WordPress/ TinyMCE Image editors keeps on over-riding our settings with hardcoded img "width" and "height" attributes! It's driving me nuts!

    Windows 7 Search sucks so I haven't been able to find the "exact match string" for it in the WP core folders.

    Can anyone tell me where this file is located so I can hack away???

  2. We have a site with pre-written CSS and WordPress/ TinyMCE Image editors keeps on over-riding our settings with hardcoded img "width" and "height" attributes! It's driving me nuts!

    Uh, editing the files that ships with WordPress will lead you to many Bad Things™ and much grief. It's really discouraged as it makes your installation unsupportable and possibly less secure. Also you'll lose your changes at the next update.

    Hard coding HTML like that always gets messed up if you use the Visual Editor. Have you considered visiting your WordPress user profile and disable the visual editor for your account?

    http://your-wordpress-URL-here/wp-admin/profile.php

    It's the Disable the visual editor when writing check box.

    Or try one of the many TinyMCE plugins instead.

    http://wordpress.org/extend/plugins/search.php?q=TinyMCE

  3. cow_griller
    Member
    Posted 1 year ago #

    We're currently using the "Ultimate TinyMCE" plugin which has the right image editing settings that we need.

    Disabling the "Visual Editor" only does it for my account - not to mention it also disables the "Ultimate TinyMCE" plugin as far as I can see.

    I'm aware that I'd loose the changes at the next update. True not ideal but at least I'd know a bit more of how the system works.

    If I can find the file - maybe there are some hooks I can use to over-ride the current "Advanced Image Settings" output function?

    Know of any/ where the php file is located?

  4. bcworkz
    Member
    Posted 1 year ago #

    According to my packet logger, the following files are accessed:
    wp-includes/js/tinymce/plugins/wpeditimage/editimage.html
    wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.min.js
    wp-includes/js/tinymce/utils/form_utils.js

    and several css files

  5. cow_griller
    Member
    Posted 1 year ago #

    thanks bcworkz, those are exactly the files I was looking for.

    btw how exactly did you log those packets?
    - did you use wireshark/ or config something in apache?

    thanks again!

  6. bcworkz
    Member
    Posted 1 year ago #

    No from the other end, just httpfox plugin for firefox. And I misspoke, it doesn't log individual packets, only requests and responses, along with accompanying data.

  7. cow_griller
    Member
    Posted 1 year ago #

    cheers bcworkz, that's brilliant stuff.

    actually thought that all requests went through index.php as a query string which then accessed php files hidden server-side

    anyway it's good to know!

  8. bcworkz
    Member
    Posted 1 year ago #

    FWIW, most initial front end requests do go through index.php, so it would be a decent place to insert a snooper. (But would not have caught the listed files) But httpfox works for all http traffic, not just WP front end :)

Topic Closed

This topic has been closed to new replies.

About this Topic