Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
allow to display HTML for fancy proposals
  • Loading branch information
tomsontom committed Oct 15, 2012
1 parent 1681f07 commit 35ad2c8
Showing 1 changed file with 10 additions and 1 deletion.
Expand Up @@ -408,14 +408,23 @@ define("orion/editor/contentAssist", ['i18n!orion/editor/nls/messages', 'orion/t
var node;
if (proposal.style === "hr") {
node = document.createElement("hr");
div.appendChild(node, div);
} else if( proposal.style === "html" ) {
div.className = this.calculateClasses(proposal.style, isSelected);
if (isSelected) {
this.parentNode.setAttribute("aria-activedescendant", div.id);
}

div.innerHTML = this.getDisplayString(proposal);
} else {
div.className = this.calculateClasses(proposal.style, isSelected);
node = document.createTextNode(this.getDisplayString(proposal));
if (isSelected) {
this.parentNode.setAttribute("aria-activedescendant", div.id);
}
div.appendChild(node, div);
}
div.appendChild(node, div);

parent.appendChild(div);
},
/** @private */
Expand Down

0 comments on commit 35ad2c8

Please sign in to comment.