Get Selected Text in MessageWebDocumentView

14 views
Skip to first unread message

Fabian Jäger

unread,
Dec 26, 2013, 3:38:14 AM12/26/13
to apple-m...@googlegroups.com
Dear Mail experts,
I would like to further process the currently selected text of a MessageWebDocumentView, but I cannot find the corresponding method. I guess some of you already know how to get the currently selected text of an email...

For me it would be interesting to have access to the formatted text.

Thanks in advance,
Fabian

Fabian Jäger

unread,
Jan 3, 2014, 4:20:01 AM1/3/14
to apple-m...@googlegroups.com
I solved this problem myself by the following approach in MessageViewController class:

id webDocumentView = [self valueForKey:@"webDocumentView"];

    

[webDocumentView generateSelectionWebDocument:^(id webDocument){

        

    ... do something with the new webDocument
}];

Best regards,
Fabian
Reply all
Reply to author
Forward
0 new messages