@paroicms/quill-editor-plugin
Advanced tools
Comparing version 1.18.1 to 1.19.0
@@ -13,2 +13,14 @@ "use strict"; | ||
multiLineParagraph: false, | ||
customTagAttributes(op) { | ||
if (op.isLink()) { | ||
const href = (0, data_formatters_lib_1.strValOrUndef)(op.attributes?.link); | ||
if (href) { | ||
const url = new URL(href); | ||
const target = url.hostname === service.fqdn ? "" : "_blank"; | ||
return { | ||
target, | ||
}; | ||
} | ||
} | ||
}, | ||
}); | ||
@@ -15,0 +27,0 @@ converter.renderCustomWith(async (customOp) => { |
{ | ||
"name": "@paroicms/quill-editor-plugin", | ||
"version": "1.18.1", | ||
"version": "1.19.0", | ||
"description": "Quill Editor plugin for ParoiCMS", | ||
@@ -42,3 +42,3 @@ "keywords": [ | ||
"@paroicms/public-bo-lib": "0.16.0", | ||
"@paroicms/public-server-lib": "0.17.0", | ||
"@paroicms/public-server-lib": "0.18.0", | ||
"@solid-primitives/i18n": "~2.1.1", | ||
@@ -45,0 +45,0 @@ "@types/node": "~20.14.8", |
378142
439