From 59f0057ba980f1373d76a99ad0101f21b459950c Mon Sep 17 00:00:00 2001 From: Hendri Smit Date: Thu, 29 Nov 2018 16:07:26 +0100 Subject: [PATCH] void html audio element --- dist/summernote-bs4.js | 2 +- dist/summernote-bs4.min.js | 2 +- dist/summernote-lite.js | 2 +- dist/summernote.js | 2 +- dist/summernote.min.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/summernote-bs4.js b/dist/summernote-bs4.js index efe375795..026f8da33 100644 --- a/dist/summernote-bs4.js +++ b/dist/summernote-bs4.js @@ -786,7 +786,7 @@ * @see http://www.w3.org/html/wg/drafts/html/master/syntax.html#void-elements */ function isVoid(node) { - return node && /^BR|^IMG|^HR|^IFRAME|^BUTTON|^INPUT|^VIDEO|^EMBED/.test(node.nodeName.toUpperCase()); + return node && /^BR|^IMG|^HR|^IFRAME|^BUTTON|^INPUT|^AUDIO|^VIDEO|^EMBED/.test(node.nodeName.toUpperCase()); } function isPara(node) { if (isEditable(node)) { diff --git a/dist/summernote-bs4.min.js b/dist/summernote-bs4.min.js index 975b5ec9a..51e967fa4 100644 --- a/dist/summernote-bs4.min.js +++ b/dist/summernote-bs4.min.js @@ -1,3 +1,3 @@ /*! Summernote v0.8.11 | (c) 2013- Alan Hong and other contributors | MIT license */ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e(t.jQuery)}(this,function(k){"use strict";k=k&&k.hasOwnProperty("default")?k.default:k;var i=function(){function t(t,e,o,n){this.markup=t,this.children=e,this.options=o,this.callback=n}return t.prototype.render=function(t){var o=k(this.markup);if(this.options&&this.options.contents&&o.html(this.options.contents),this.options&&this.options.className&&o.addClass(this.options.className),this.options&&this.options.data&&k.each(this.options.data,function(t,e){o.attr("data-"+t,e)}),this.options&&this.options.click&&o.on("click",this.options.click),this.children){var e=o.find(".note-children-container");this.children.forEach(function(t){t.render(e.length?e:o)})}return this.callback&&this.callback(o,this.options),this.options&&this.options.callback&&this.options.callback(o),t&&t.append(o),o},t}(),o=function(o,n){return function(){var t="object"==typeof arguments[1]?arguments[1]:arguments[0],e=k.isArray(arguments[0])?arguments[0]:[];return t&&t.children&&(e=t.children),new i(o,e,t,n)}},t=o('
'),e=o(''),n=o('
'),r=o('