Changeset: copyHtml.1.cs

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Changeset: copyHtml.1.cs

Christoph Thiede

This one is very small - the proposal is to delegate the #copyHtml responsibility to TextEditor, and to copy the selection only but not the whole text.

Quite useful for quickly sharing some formatted text from the image:

copyHtml
    self handleEdit: [textMorph editor copyHtml]
    "put the html representation of the receiver's text into the clipboard"
    Clipboard clipboardText: self text printHtmlString

Best,
Christoph



Sent from the Squeak - Dev mailing list archive at Nabble.com.


Carpe Squeak!