WordPress.org

Ready to get started?Download WordPress

Forums

Simple Responsive Images
Visual Editor (TinyMCE) breaks (19 posts)

  1. JochenT
    Member
    Posted 2 years ago #

    This plugin is a cool idea!
    But it still has a heavy bug. When calling the edit-page for posts, pages or custom content types in the admin no text is displayed in the visual editor (default TinyMCE). Switching from the visual view to the HTML view the text is still there but it is not possible to switch back to the visual view.
    This error still appears after disabling all other plugins as long as this plugin is active.

    http://wordpress.org/extend/plugins/simple-responsive-images/

  2. Rahe
    Member
    Plugin Author

    Posted 2 years ago #

    hi !

    Ow... bad bug, do you have the error message ? I cannot reproduce this bug :/
    Thank you !

  3. JochenT
    Member
    Posted 2 years ago #

    There are no error messages or any notices in the log file. The problem seems to be a Javascript problem.
    After switching the visual editor into HTML mode it is not possible any more to switch back to visual mode when editing any other posts or pages.

  4. Rahe
    Member
    Plugin Author

    Posted 2 years ago #

    I have reproduced the issue, i'm on it ! :)

  5. David Radovanovic
    Member
    Posted 2 years ago #

    Rahe, any news on the Visual Editor issue? It's happened on a client's site after installing Simple Responsive Images. Also, isn't it necessary to remove the height an width attributes of images already on the site? Via a filter? Thanks.

  6. Rahe
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    I do not understand why there is an error on the editor :/, i use normal filters...
    It is not necessary to remove the heigh/width attributes, the javascript will do it :).

    Rahe

  7. JochenT
    Member
    Posted 2 years ago #

    Hi,

    I've still the problems with the visual editor, too. The last update did not change anything.

  8. David Radovanovic
    Member
    Posted 2 years ago #

    Thanks Rahe

  9. David Radovanovic
    Member
    Posted 2 years ago #

    BTW - how does your script know which size image to load, via queries?

    also, I'm still getting img sizes:

    <img class="attachment-thumbnail wp-post-image" width="100" height="100" src-full="http://www.chefsconsortium.com/wp-content/uploads/2012/03/Lentils1-e1331257854478.jpg" src-large="http://www.chefsconsortium.com/wp-content/uploads/2012/03/Lentils1-e1331257854478-768x768.jpg" src-medium="http://www.chefsconsortium.com/wp-content/uploads/2012/03/Lentils1-e1331257854478-550x195.jpg" src-thumbnail="http://www.chefsconsortium.com/wp-content/uploads/2012/03/Lentils1-e1331257854478-100x100.jpg" title="Lentils" alt="Lentils" src="http://www.chefsconsortium.com/wp-content/uploads/2012/03/Lentils1-e1331257854478-100x100.jpg">

    above [strange] syntax is produced using:

    <?php
      $thumbnails = get_posts('numberposts=5&category=613&orderby=date&order=DESC');
      foreach ($thumbnails as $thumbnail) {
        if ( has_post_thumbnail($thumbnail->ID)) {
          echo '<a href="' . get_permalink( $thumbnail->ID ) . '" title="' . esc_attr( $thumbnail->post_title ) . '">';
          echo get_the_post_thumbnail($thumbnail->ID, 'thumbnail');
          echo '</a>';
        }
      }
    ?>
  10. Rahe
    Member
    Plugin Author

    Posted 2 years ago #

    The javascript will load the smallest image first, then increase if needed to the right image size.
    The images will be loaded depending on the plugin configuration.
    I have a filter who generate the image sizes directly on the img generated by the post_thumbnail function.

  11. David Radovanovic
    Member
    Posted 2 years ago #

    Rahe, Everything is as it should be ABOVE? So, I should not worry about image scr size attributes being printed since your script chooses the appropriately sized image needed based on screen size? The "Breakpoints" images chosen (in drop-down) should be slightly larger than the breakpoints indicated to the left? Thanks for your help!

  12. Rahe
    Member
    Plugin Author

    Posted 2 years ago #

    Yes you do not have to worry, this is absolutely normal.
    The images associated to the breakpoints can be at an size, just specifiy the image size you want to display form the previous breakpoint to this breakpoint.
    Ex :
    0px -> 320px => thumbnail, then 320 -> 640 => medium, 640 -> 960 => large etc...

  13. David Radovanovic
    Member
    Posted 2 years ago #

    thanks!

  14. bobdye
    Member
    Posted 1 year ago #

    Just downloaded the latest version and this is still a problem.

    Is there any attempt to fix it?

  15. Rahe
    Member
    Plugin Author

    Posted 1 year ago #

    i, I do not have te time for updating the plugin in the repository but i have updated it in the github :
    https://github.com/Rahe/Simple-responsive-images
    Some people have contributed to it so you can use this one

  16. bobdye
    Member
    Posted 1 year ago #

    That worked. Thank you.

  17. Jackmanheimer
    Member
    Posted 1 year ago #

    responsive theme visual is not active when i try to edit a post. this happened after i uploaded wordpress 3.5. is it possible to un-upload or is there another fix?

  18. Rahe
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    You can get the olders versions here :
    http://wordpress.org/extend/plugins/simple-responsive-images/developers/

    I will make a patch for the 3.5 :).

    Rahe

  19. Damon Cook
    Member
    Posted 1 year ago #

    Quick tip for those looking to fix since Rahe is too busy to patch. Open up /simple-responsive-images/inc/class.admin.php and around line 35 replace $sizes = sri_get_the_image_sizes(); with $sizes = array_keys(sri_get_the_image_sizes());

    This is just based on the patch from oldlastman on Github.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic