property htmlSelection

(r/o) string htmlSelection;

Typ

Zugriff

This property returns the selection currently in the DHTML control. The selection returned is the actual HTML formatted text. If there is no selection within the control, then an empty string is returned.
function SyncSecondaryWindows()
{
    var bx = scene.getBoxById("htmlBox");
    if (bx)
    {
        var htmlSel = bx.htmlSelection();
        var stdText = bx.textSelection();
        var rawHTMLDisplay = scene.getBoxById("viewHtmlBox");
        var stdTextDisplay = scene.getBoxById("viewStdBox");
        if (rawHTMLDisplay && stdTextDisplay)
        {
            rawHTMLDisplay.value = htmlSel;
            stdTextDisplay.value = stdText;
        }
    }
}