DeleteHyperlink

  • How can I delete the hyperlink at the cursorposition?
    In Version 4 there was a procedure DeleteHyperlink.

    • Offizieller Beitrag

    Hi,

    a hyperlink consist of the start <a> and end </a> tag. The engine will delete the other automatically if one is deleted. So if the cursor is before the hyperlink simply press DELETE.

    To do it in program code use:

    WPRichText1.TextObjects.AtCP := WPRichText1.HyperlinkAtCP;
    WPRichText1.InputString(#127);

    Julian Ziersch