[squeak-dev] The Trunk: Morphic-mt.1817.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Dec 8 10:18:36 UTC 2021


Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1817.mcz

==================== Summary ====================

Name: Morphic-mt.1817
Author: mt
Time: 8 December 2021, 11:18:30.982213 am
UUID: e67be6f6-8815-3145-8798-8cc3e8a8bdbb
Ancestors: Morphic-mt.1816

Let the text editor handle copy-html requests.

=============== Diff against Morphic-mt.1816 ===============

Item was changed:
+ ----- Method: PluggableTextMorph>>copyHtml (in category 'menu commands') -----
- ----- Method: PluggableTextMorph>>copyHtml (in category 'html') -----
  copyHtml
+ 
+ 	self handleEdit: [textMorph editor copyHtml].!
- 	"put the html representation of the receiver's text into the clipboard"
- 	Clipboard clipboardText: self text printHtmlString!

Item was added:
+ ----- Method: PluggableTextMorph>>copyHtmlSelection (in category 'menu commands') -----
+ copyHtmlSelection
+ 
+ 	self handleEdit: [textMorph editor copyHtmlSelection].!

Item was added:
+ ----- Method: TextEditor>>copyHtml (in category 'menu messages') -----
+ copyHtml
+ 	"Copy the paragraph as HTML representation and store it in the paste buffer."
+ 
+ 	self clipboardTextPut: self text printHtmlString.!

Item was added:
+ ----- Method: TextEditor>>copyHtmlSelection (in category 'menu messages') -----
+ copyHtmlSelection
+ 	"Copy the current selection as HTML representation and store it in the paste buffer, unless a caret."
+ 
+ 	self lineSelectAndEmptyCheck: [^ self].
+ 	self clipboardTextPut: self selection printHtmlString.!



More information about the Squeak-dev mailing list