Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Taylor 1 post 22 karma points
    May 20, 2010 @ 20:55
    Taylor
    1

    Alt Text in RichText Editor

    Hi all,

    I'm trying to figure out how to work with alt text for images inserted into the RichText editor. Right now when I add an image I select it from the media library and everything for the most part works great, however the alt text and title text are set to the name of the image. For certain images the alt text needs to be quite detailed, far longer than you want in a name. An even bigger issue are images that shouldn't have alt text (decorative ones) as having a blank name in the media library is obviously not an option.

    Is there something I'm missing here? Some way to make this work? I'm happy to have users either enter the alt text in the media library, or make them enter it every time an image is inserted.

     

    My current plan, if there's no way to do this, is to disable the image tool and use a macro where I can either pull it from a custom property in the media library or require it as a parameter. I'd really prefer to not have to do this as I lose out on all the image functionality in the image tool.

    I'm running Umbraco 4.0.3.

    Thanks in advance

  • Jason Prothero 422 posts 1243 karma points MVP 2x c-trib
    May 20, 2010 @ 22:26
    Jason Prothero
    0

    You could certainly insert a macro to pick an item from the media library that renders the image in a special way.  We have done that to help add classes and extra markup to a standard image.

    In addition, you could add an ALT property to the image media type in the Settings section and use that value in the markup of your new macro.

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies