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

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

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;
}