Issue #2526πŸ’¬ AnsweredOpened Jan 24, 2020by treztreiz0 reactions

Custom storage : autoload not triggered

Quick answerby treztreiz

The autoload option actually works while adding the custom storage as a plugin.custom storage plugin : Editor :

Read full answer below ↓

Question

version : grapes.min.js 0.15.10 Hi, I'm using a custom storage to load & store json data from/to a textarea. Using a custom storage seems to not support the autoload option. Instead, I have to manually trigger editor.load(), but it seems to update the editor so it messes with the noticeOnUnload option (which get triggered before any changes made by the user). Here is the storageManager configuration : storageManager Here is the the custom storage :custom storage Is there any way to autoload a custom storage ? Thank you !

Answers (3)

treztreizβ€’ Jan 24, 2020

The autoload option actually works while adding the custom storage as a plugin.custom storage plugin : Editor :

collindutterβ€’ Jan 30, 2020

@treztreiz did you ever figure out how to do it without registering it as a plugin? I'm also running into this issue.

treztreizβ€’ Feb 2, 2020

@collindutter It seems that you must make a plugin. I suppose that the autoload option is used while grapes is instantiated, and unfortunately the function editor.StorageManager.add actually needs that instance... This does not happen with plugins as they are injected in the configuration during th...

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins β†’
Premium option

Premium plugins ship with support, regular updates, and production-ready features β€” save days of integration work.

Browse premium plugins β†’

Related tutorials

In-depth guides on the same topic.

All tutorials β†’

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.