Finish embedded view implementation.

This commit is contained in:
Paulo Veiga
2012-02-01 20:31:40 -03:00
parent 4391afdf7b
commit b37ecd8c2c
15 changed files with 488 additions and 186 deletions

View File

@@ -19,8 +19,8 @@
mindplot.Topic = new Class({
Extends:mindplot.NodeGraph,
initialize : function(model) {
this.parent(model);
initialize : function(model, options) {
this.parent(model, options);
this._textEditor = new mindplot.MultilineTextEditor(this);
this._children = [];
@@ -35,15 +35,12 @@ mindplot.Topic = new Class({
this.setPosition(pos);
}
// @Todo: Hack to remove ...
// Register events for the topic ...
if (!designer._readOnly) {
if (!options.readOnly) {
this._registerEvents();
}
},
_registerEvents : function() {
this.setMouseEventsEnabled(true);