genericElement = require('modules/documentCanvas/canvas/genericElement'),
Dialog = require('views/dialog/dialog'),
boxTemplate = require('libs/text!./box.html'),
+ attachments = require('views/attachments/attachments'),
linkElement = Object.create(genericElement);
{label: gettext('Link'), name: 'href', type: 'input', initialValue: el.wlxmlNode.getAttr('href'),
prePasteHandler: function(text) {
return this.wlxmlNode.document.getLinkForUrl(text);
- }.bind(this)
+ }.bind(this),
+ description: '<a href="#-" class="attachment-library">attachment library</a>'
}
]
});
});
});
dialog.show();
+ $(".attachment-library", dialog.$el).on('click', function() {
+ attachments.select(function(v) {$("input", dialog.$el).val(v);});
+ });
+
},
deleteLink: function() {