Hi
[email protected],
Assume that the thumbnails and Original in the same directory.
you can use html filter to achieve that change file name/url.
In the example below, I have the original photo name "photo.jpg" and thumbnail name "photo.thumbnail.jpg" in the same folder "Uploads".
when you drag image <img src="Uploads/photo.thumbnail.jpg" /> into editor ,it will change to
<img alt="" src="http://localhost:60546/Editor/Uploads/photo.jpg" />(in my case)
-
<%@ Page Language="C#" Debug="true" %>
-
-
<%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
-
<html>
-
<head>
-
</head>
-
<body>
-
<form id="Form1" runat="server">
-
<CE:Editor ID="editor1" runat="server" />
-
<img src="Uploads/photo.thumbnail.jpg" />
-
</form>
-
</body>
-
</html>
-
-
<script>
-
function CuteEditor_FilterHTML(editor,code)
-
{
-
return code.replace(".thumbnail", "");
-
}
-
function CuteEditor_FilterCode(editor,code)
-
{
-
return code.replace(".thumbnail", "");
-
}
-
</script>
Regards,
Ken