addComponents - storage behaviour #4300
Unanswered
TarikNasraoui
asked this question in
Q&A
Replies: 1 comment
-
Well yeah, if you keep adding content on each reload, the storage will keep saving it... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
When I add a Components with editor.addComponents() and storage is enabled then the component is added at each reload
here is an example:
editor.addComponents(
<div> <span
title="foo">Helloworld!!!</span></div>
);storageManager: {

id: "gjs-",
type: "local",
autosave: true,
storeComponents: true,
storeStyles: true,
storeHtml: true,
storeCss: true,
},
Beta Was this translation helpful? Give feedback.
All reactions