I’m trying to use the remember-plugin, but I would like to use it like this generator did as a scratchpad: https://perchance.org/ai-character-generator I want to add it to the Story Outline Generator and Story Writing Helper to keep prompts or story snippets.
scratchpad // Note: the 'remember' option storage is 'based on' this 'scratchpad' name, so if you change that name to something else like 'notepad', people will lose all their saved scratchpad text. But it's safe to change the 'label', below.
label = 🗒️ Scratchpad
tip = [t2i.defaultText.scratchpadTip] // this loads the default text, but you can delete it and add your own tip. Just change this line to "tip = You own cool tips."
type = paragraph
remember = true // <-- the text that the user inputs will be remembered so it's still there even if they close/refresh the page
width = min(750px, 100%)
height = 30vh
takesUpFullRow = true
foldToggleState = hidden // or 'shown' if you want it to start shown, or delete this line if you don't want it to be show-able/hide-able
visible() =>
return Number(localStorage.generateClickCount) > 1; // so the scratchpad only shows up after they've clicked generate a couple of times (to reduce confusion/clutter for newbies)
examples
[t2i.defaultText.scratchpadPlaceholder]
You can import the plugin as usual, add a
<textarea>
in the HTML panel (bottom right), then add[remember(root, "@inputs")]
on the top of the HTML. Be careful though since this will also remember other inputs such as text inputs, checkboxes, dropdowns, etc.