diff --git a/modules/ve2/ce/nodes/ve.ce.TextNode.js b/modules/ve2/ce/nodes/ve.ce.TextNode.js index 3b389c2ee0..f8b38e76e3 100644 --- a/modules/ve2/ce/nodes/ve.ce.TextNode.js +++ b/modules/ve2/ce/nodes/ve.ce.TextNode.js @@ -103,6 +103,13 @@ ve.ce.TextNode.annotationRenderers = { return ''; }, 'close': '' + }, + 'link/unknown': { + 'open': function( data ) { + if ( !data) { debugger; } + return ''; + }, + 'close': '' } }; @@ -154,6 +161,9 @@ ve.ce.TextNode.prototype.getHtml = function() { for ( var hash in annotations ) { annotation = annotations[hash]; + if ( renderers[annotation.type] === undefined ) { + debugger; + } out += typeof renderers[annotation.type].open === 'function' ? renderers[annotation.type].open( annotation.data ) : renderers[annotation.type].open;