property textSelection

(r/o) string textSelection;

Typ

Zugriff

This property returns the selection currently in the DHTML control. The selection returned is the actual the text with no HTML formatting. 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;
        }
    }
}