Replace mediatag markdown syntax by html. Enable file upload in /code.

This commit is contained in:
yflory committed 2017-07-11 11:56:06 +02:00
1 parent 59213a9c4e
commit 8f5a244999
4 files changed
+24 -6

No files matched your search

+2
View File
@@ -154,9 +154,11 @@ define([
var $mts = $content.find('media-tag:not(:has(*))');
$mts.each(function (i, el) {
MediaTag(el);
console.log(el.outerHTML);
var observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
if (mutation.type === 'childList') {
console.log(el.outerHTML);
var list_values = [].slice.call(el.children);
mediaMap[el.getAttribute('src')] = list_values;
}