1
0
mirror of synced 2025-02-03 21:59:24 +03:00

allow formatSelection to return a jQuery object

This commit is contained in:
Dylan Roux 2014-09-26 15:14:19 +02:00
parent c5c42eaf72
commit d385dc512e

View File

@ -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) {