Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I created a property for the images (in Media Types section) called "AltText".
Then I added the extension method GetAltText:
public static string GetAltText(this IMedia media)
object altText = media.GetValue("altText");
if (altText != null)
I want my property used when user insert a picture with the richtexteditor.
So what the problem ?
Do you want to past alt text in the richTexct editor ?
Now I can add alternitivny text in the image properties (AltText). In templates I just use my function GetAltText. But if the user is working with richtexteditor and adds image through media picker there is a default property "Alternative text (optional)". I need to add at the pictures in richtexteditor when unfilled property "Alternative text (optional)" use my property AltText
Shada, yes it's only way.
I have a feeling you can manipulate the core js files (so no need to delve into aspnet and building the source) to some extent to get what you are after..
(just be careful of cacheing... changing the clientdependancy version no in \Config\ClientDependency.config should sort that)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted