1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-21 09:22:09 +03:00

Added support for iframe node blocks

This commit is contained in:
Dan Brown
2022-01-20 13:38:16 +00:00
parent b1f5495a7f
commit 20f37292a1
7 changed files with 149 additions and 1 deletions

View File

@ -13,6 +13,10 @@ nodes.table = function (state, node) {
writeNodeAsHtml(state, node);
};
nodes.iframe = function (state, node) {
writeNodeAsHtml(state, node);
};
function isPlainURL(link, parent, index, side) {
if (link.attrs.title || !/^\w+:/.test(link.attrs.href)) {
return false