Offray Vladimir Luna Cárdenas 2017-08-27 14:00:45 +00:00
parent bab4ab7fb9
commit ff5c021cd3

View File

@ -113,6 +113,19 @@ GrafoscopioNotebook >> copyNodeToClipboard [
self notebookContent: notebook. self notebookContent: notebook.
] ]
{ #category : #operation }
GrafoscopioNotebook >> currentNode [
| currentNode |
currentNode := tree highlightedItem.
currentNode ifNil: [ ^ self ].
^ currentNode
]
{ #category : #operation }
GrafoscopioNotebook >> currentNodeContent [
^ self currentNode content
]
{ #category : #'editing nodes' } { #category : #'editing nodes' }
GrafoscopioNotebook >> cutNodeToClipboard [ GrafoscopioNotebook >> cutNodeToClipboard [
self copyNodeToClipboard; removeNode. self copyNodeToClipboard; removeNode.
@ -263,22 +276,14 @@ GrafoscopioNotebook >> header: anObject [
{ #category : #operation } { #category : #operation }
GrafoscopioNotebook >> htmlToMarkdown [ GrafoscopioNotebook >> htmlToMarkdown [
| currentNode nodeContent | self currentNodeContent htmlToMarkdown.
currentNode := tree highlightedItem. self updateBodyFor: self currentNode
currentNode ifNil: [ ^ self ].
nodeContent := currentNode content.
nodeContent htmlToMarkdown.
self updateBodyFor: currentNode
] ]
{ #category : #operation } { #category : #operation }
GrafoscopioNotebook >> htmlToMarkdownSubtree [ GrafoscopioNotebook >> htmlToMarkdownSubtree [
| currentNode nodeContent | self currentNodeContent htmlToMarkdownSubtree.
currentNode := tree highlightedItem. self updateBodyFor: self currentNode
currentNode ifNil: [ ^ self ].
nodeContent := currentNode content.
nodeContent htmlToMarkdownSubtree.
self updateBodyFor: currentNode
] ]
{ #category : #operation } { #category : #operation }