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
Great work with this Property Editor! Very handy :-)
From using this on a few projects, I've been thinking it would be really handy if it was possible to store the source URL that was used to request the Embed.
This could mean that the URL could be displayed on the webpage which would be useful for SEO, or also if a fallback for mobile devices, etc.
Thx for the suggestion. Will have to look in to that if it's possible.
It uses the same functionality as the embed option in the RTE. I think the only way would be override the dialog and create my own embed dialog.
As the data format that is being saved will change this would be a breaking change. So don't know if you can upgrade it.
Here's some code to parse the HTML for attributes:
public static IDictionary<string, string> GetAttributes(this IHtmlString htmlString, string tag)
if (htmlString == null) return new Dictionary<string, string>();
var doc = new HtmlDocument();
return doc.DocumentNode.SelectSingleNode(tag).Attributes.ToDictionary(a => a.Name, a => a.Value);
return new Dictionary<string, string>();
public static string GetAttributeValue(this IHtmlString htmlString, string tag, string attribute)
if (htmlString == null) return string.Empty;
var attributes = htmlString.GetAttributes(tag);
? attributes.First(a => a.Key == attribute).Value
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted