GrapesJS / grapesjs

Free and Open source Web Builder Framework. Next generation tool for building templates without coding
https://grapesjs.com
BSD 3-Clause "New" or "Revised" License
22.37k stars 4.05k forks source link

"gjs-html' exceeded the quota #87

Closed narraressan closed 6 years ago

narraressan commented 7 years ago

Hi guys, so I am making forms using this api and eventually my forms became too big - now the problem is when I load it it into the editor using editor.setComponents(components) it prompts this error.

"Uncaught DOMException: Failed to execute 'setItem' on 'Storage': Setting the value of 'gjs-html' exceeded the quota."

Any ideas what I should do to load the forms? thanks ^_^

artf commented 7 years ago

Seems like you've reached the quota limit provided by the localStorage. There is no other way if not switch to another storage type. You can use the 'remote' one (already implemented wiki), otherwise, another solution is to integrate IndexedDB, which has no storage limits.

tribulant commented 7 years ago

Are you in Safari? I get this problem in Safari even if not in private browsing mode.

Best is to set the

storageManager: {
type: ''
}
artf commented 7 years ago

@tribulant it's just due to the localStorage limit

tommedema commented 6 years ago

FYI it still happens when you disable storageManager's autoload

storageManager: { autoload: 0 }

is not sufficient, but this does disable it completely:

storageManager: { type: '', autoload: 0 }
artf commented 6 years ago

IndexedDB plugin https://github.com/artf/grapesjs-indexeddb

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.