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