Persistent storage module

The module is designed to save information to the user's local storage. At startup, it is checked whether the user has allowed saving to persistent storage.

If not allowed, the module will use the [[MemoryStorageProvider]] strategy.

const jodit = Jodit.make('#editor');
jodit.storage.set('someKey', 1);

// reload page

jodit.storage.get('someKey'); // 1

References

Re-exports LocalStorageProvider
Re-exports MemoryStorageProvider
Re-exports Storage
Re-exports StorageKey
Re-exports canUsePersistentStorage

Jodit PRO

If you like Jodit - try Jodit PRO