Is it possible to enforce Alternative Text for an image?

Last post 07-29-2010, 4:29 PM by mediaworks. 2 replies.
Sort Posts: Previous Next
  •  07-25-2010, 6:05 PM 62702

    Is it possible to enforce Alternative Text for an image?

    Hi,
     
    We are finding many cases where our web editors do not supply Alternative Text when inserting images into CuteEditor.
    The result is an <img /> that lacks an 'alt' attribute which has adverse effects for both SEO and W3C validation.
    We are wondering if there is any way to make typing some Alt Text compulsory when uploading images using the Insert Image form.
     
    Thanks for your help
     
    Kind Regards
    Tom
    Filed under: ,
  •  07-26-2010, 10:32 PM 62722 in reply to 62702

    Re: Is it possible to enforce Alternative Text for an image?

    Please open "\CuteSoft_Client\CuteEditor\Scripts\Dialog\Dialog_InsertImage.js", locate "function do_insert()", add the following code at the beginning of this function:

      if (AlternateText.value == "")
      {
       alert("Please set alternative text!");
       return false;
      }
     
    Regards,
    Eric
  •  07-29-2010, 4:29 PM 62806 in reply to 62722

    Re: Is it possible to enforce Alternative Text for an image?

    Awesome, Thank you Eric. I will give that  a try.
     
    Much appreciated
     
    Tom
View as RSS news feed in XML