adding multiple line support editor and in nodes

This commit is contained in:
Pablo Luna
2011-04-19 17:01:12 +01:00
parent c804b3715e
commit 5aa6775a85
19 changed files with 398 additions and 32 deletions

View File

@@ -89,7 +89,7 @@ mindplot.XMLMindmapSerializer_Pela.prototype._topicToXML = function(document, to
var text = topic.getText();
if (core.Utils.isDefined(text)) {
parentTopic.setAttribute('text', text);
parentTopic.setAttribute('text', "<![CDATA["+text+"]]");
}
var shape = topic.getShapeType();
@@ -276,6 +276,9 @@ mindplot.XMLMindmapSerializer_Pela.prototype._deserializeNode = function(domElem
var text = domElem.getAttribute('text');
if (core.Utils.isDefined(text)) {
if(text.indexOf("<![CDATA[")!=-1){
text = text.substr(9,text.length-9-2);
}
topic.setText(text);
}