renderer.js 272 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 9 10 module.exports = { async init($, config) { $(`pre.diagram`).each((idx, elm) => { $(elm).children('svg').each((sidx, svg) => { $(svg).removeAttr('content') }) $(elm).replaceWith($(`<div class="diagram">${$(elm).html()}</div>`)) }) } }