Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

GoJS editor is get refreshed

$
0
0

@daison wrote:

I have an GoJS(1.7.1) memo editor.Using this editor I can create memo which contains text, image and freehand drawing.
When clicked save button, I want to save memo and clear editor.

I am using following code to clear diagram.model

	$scope.model.startTransaction("clearMemo");
	$scope.model.nodeDataArray = [];
	$scope.model.commitTransaction("clearMemo");

But the content of the editor is not cleared.It will clear only when I click on the editor.

I am also tried
diagram.requestUpdate();

Still it is not cleared on save button click.

Could you please suggest any idea/trick to clear my editor?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles