Fixed some snippet conf not set properly

This commit is contained in:
斟酌 鵬兄 2022-08-01 02:34:46 +09:00
parent c8210f2468
commit 15ed39bbee
3 changed files with 13 additions and 2 deletions

View File

@ -53,8 +53,8 @@
{ {
return [ return [
new DataKey("id", data.id) new DataKey("id", data.id)
, new DataKey("title", decodeURI(data.name)) , new IKey("data-title", data.name)
, new DataKey("author", decodeURI(data.author)) , new IKey("data-author", data.author)
, new DataKey("hash", data.hash) , new DataKey("hash", data.hash)
]; ];
} }

View File

@ -50,6 +50,7 @@
, "OK", "Cancel", visualizer.bind({title: input_title, content:v_snippetInput, expanded: input_expanded, stage: this._stage})).show(); , "OK", "Cancel", visualizer.bind({title: input_title, content:v_snippetInput, expanded: input_expanded, stage: this._stage})).show();
} }
/* @type override {_AstXObject_.AstroEdit.Visualizer.Snippet.Spoiler.Override} */
, visualizer = function( submitted, override ) , visualizer = function( submitted, override )
{ {
var content, title, expanded var content, title, expanded

View File

@ -0,0 +1,10 @@
/** @type {Object} */
_AstXObject_.AstroEdit.Visualizer.Snippet.Spoiler = {};
_AstXObject_.AstroEdit.Visualizer.Snippet.Spoiler.Override = {};
/** @type String */
_AstXObject_.AstroEdit.Visualizer.Snippet.Spoiler.Override.title;
/** @type String */
_AstXObject_.AstroEdit.Visualizer.Snippet.Spoiler.Override.expanded;
/** @type String */
_AstXObject_.AstroEdit.Visualizer.Snippet.Spoiler.Override.value;