1
0
mirror of synced 2024-11-22 13:06:08 +03:00

Merge pull request #2702 from dgroux/master

allow formatSelection to return a jQuery object
This commit is contained in:
Kevin Brown 2014-10-08 21:12:01 -04:00
commit c1df0aa942

View File

@ -3058,7 +3058,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) {