allow formatSelection to return a jQuery object
This commit is contained in:
parent
c5c42eaf72
commit
d385dc512e
@ -3052,7 +3052,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
||||
|
||||
formatted=this.opts.formatSelection(data, choice.find("div"), this.opts.escapeMarkup);
|
||||
if (formatted != undefined) {
|
||||
choice.find("div").replaceWith("<div>"+formatted+"</div>");
|
||||
choice.find("div").replaceWith($("<div></div>").html(formatted));
|
||||
}
|
||||
cssClass=this.opts.formatSelectionCssClass(data, choice.find("div"));
|
||||
if (cssClass != undefined) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user