Persistent storage
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
Classes
StorageKey
Const
StorageKey: string
= 'Jodit_'
Defined in
jodit/src/core/storage/storage.ts:22
canUsePersistentStorage
canUsePersistentStorage(this
, ...args
): boolean
Check if user disable local storages/cookie etc.
Parameters
Name | Type |
---|---|
this |
any |
...args |
any [] |
Returns
boolean
Defined in
jodit/src/core/storage/engines/local-storage-provider.ts:16