usfm-editor
Version:
A WYSIWYG editor component for USFM
41 lines (31 loc) • 1.45 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.NoopUsfmEditor = void 0;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
class NoopUsfmEditor {
constructor() {
_defineProperty(this, "getMarksAtSelection", () => {
console.debug("Editor not initialized before getMarksAtSelection called. " + "This does not necessarily indicate an error.");
return [];
});
_defineProperty(this, "addMarkAtSelection", () => {
console.error("Editor not initialized before addMarkAtSelection called");
});
_defineProperty(this, "removeMarkAtSelection", () => {
console.error("Editor not initialized before removeMarkAtSelection called");
});
_defineProperty(this, "getParagraphTypesAtSelection", () => {
console.debug("Editor not initialized before getParagraphTypesAtSelection called. " + "This does not necessarily indicate an error.");
return [];
});
_defineProperty(this, "setParagraphTypeAtSelection", () => {
console.error("Editor not initialized before setParagraphTypeAtSelection called");
});
_defineProperty(this, "goToVerse", () => {
console.error("Editor not initialized before goToVerse called");
});
}
}
exports.NoopUsfmEditor = NoopUsfmEditor;