From f53b9df7452ef886cf85db5bb72a48f32dce3dbb Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 1 Jan 2024 13:47:10 -0400 Subject: content: specify mutable across html & attributes slots --- src/content/dependencies/linkThing.js | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'src/content/dependencies/linkThing.js') diff --git a/src/content/dependencies/linkThing.js b/src/content/dependencies/linkThing.js index 60fcc3ef..c5998c7e 100644 --- a/src/content/dependencies/linkThing.js +++ b/src/content/dependencies/linkThing.js @@ -20,9 +20,20 @@ export default { }), slots: { - content: {type: 'html'}, + content: { + type: 'html', + mutable: false, + }, + + attributes: { + type: 'attributes', + mutable: true, + }, - preferShortName: {type: 'boolean', default: false}, + preferShortName: { + type: 'boolean', + default: false, + }, tooltip: { validate: v => v.oneOf(v.isBoolean, v.isHTML), @@ -48,8 +59,6 @@ export default { anchor: {type: 'boolean', default: false}, linkless: {type: 'boolean', default: false}, - - attributes: {type: 'attributes'}, hash: {type: 'string'}, }, -- cgit 1.3.0-6-gf8a5