@opentiny/fluent-editor
Version:
A rich text editor based on Quill 2.0, which extends rich modules and formats on the basis of Quill. It's powerful and out-of-the-box.
17 lines (16 loc) • 447 B
JavaScript
function setupIndexedDB(doc, IndexeddbPersistenceClass) {
if (!IndexeddbPersistenceClass) {
console.warn("[yjs] IndexeddbPersistence not provided, offline support disabled");
return () => {
};
}
const fullDbName = `tiny-editor-${doc.guid}`;
new IndexeddbPersistenceClass(fullDbName, doc);
return () => {
indexedDB.deleteDatabase(fullDbName);
};
}
export {
setupIndexedDB
};
//# sourceMappingURL=y-indexeddb.es.js.map