UNPKG

@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) 547 B
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); 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); }; } exports.setupIndexedDB = setupIndexedDB; //# sourceMappingURL=y-indexeddb.cjs.js.map