This commit is contained in:
chi
2024-01-22 09:26:20 +09:00
parent ff50832bdd
commit 7278f66857
105 changed files with 13 additions and 1221 deletions

View File

@@ -0,0 +1,41 @@
using System.Drawing;
using Microsoft.VisualBasic;
using YARTE.Properties;
namespace YARTE.UI.Buttons
{
public class InsertLinkedImageButton : IHTMLEditorButton
{
public void IconClicked(ButtonArgs args)
{
var x = args.Editor.Location.X + 10;
var y = args.Editor.Location.Y + 10;
var url = Interaction.InputBox("Please enter an image url", "URL", null, x, y);
if (!string.IsNullOrEmpty(url))
{
args.Document.ExecCommand("InsertImage", false, url);
}
}
public Image IconImage
{
get { return Resources.insertimage; }
}
public string IconName
{
get { return "Linked image"; }
}
public string IconTooltip
{
get { return "Linked image"; }
}
public string CommandIdentifier
{
get { return "InsertImage"; }
}
}
}