}
});
return toret;
+ },
+ insertNewNode: function () {
+ var node = this;
+ var newElement = this.document.createDocumentNode({tagName: 'div', attrs: {class: 'p'}});
+ node.after(newElement);
+ newElement.append({text: ''});
+ return newElement;
}
};
prePasteHandler: function(text) {
return params.fragment.document.getLinkForUrl(text);
}.bind(this),
- description: '<a href="#-" class="attachment-library">attachment library</a>'
+ description: '<a href="#-" class="attachment-library">' + gettext('attachment library') + '</a>'
}
]
}),