[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: selected text in KHTMLView
From:       Nikolas Zimmermann <wildfox () kde ! org>
Date:       2001-05-08 15:53:13
[Download RAW message or body]

On Tuesday 08 May 2001 17:51, Olaf Hartig wrote:
> Hello,
>
> I'm writing a Konqueror plugin and I need to get the text currently
> selected/marked at the website. I have a pointer to the KHTMLPart's
> KHTMLView but I don't know how to get the selected text (if there is some
> selected). May someone give me a hint?
>
Hi Ole,

use part->selection()
to find out the marked text, it gives you a DOM::Range

Bye
 Bye
  Niko

> Ole
>
> >> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to
> >> unsubscribe <<

-- 
Nikolas Zimmermann
wildfox@kde.org
 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic