canvas.loadWlxmlDocument(wlxmlDocument);
canvasWrapper.find('#rng-module-documentCanvas-contentWrapper').empty().append(canvas.view());
},
- highlightElement: function(node) {
- canvas.toggleElementHighlight(node, true);
- },
- dimElement: function(node) {
- canvas.toggleElementHighlight(node, false);
- },
- jumpToElement: function(node) {
- canvas.setCurrentElement(node);
- },
onAfterActionExecuted: function(action, ret) {
if(ret && ret.isValid()) {
logger.debug('The action returned a valid fragment');
}
var commands = {
- jumpToDocumentElement: function(element) {
- sandbox.getModule('documentCanvas').jumpToElement(element);
- },
refreshCanvasSelection: function(selection) {
var fragment = selection.toDocumentFragment();
sandbox.getModule('documentToolbar').setDocumentFragment(fragment);