"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isContentEditable = exports.isTextLike = void 0;
function isTextLike(leaf_comp) {
    const is_text = leaf_comp.$element instanceof Text || isContentEditable(leaf_comp.$element);
    return is_text;
}
exports.isTextLike = isTextLike;
function isContentEditable(element) {
    return (element instanceof HTMLDivElement &&
        element.getAttribute('contenteditable') === 'true');
}
exports.isContentEditable = isContentEditable;
//# sourceMappingURL=isTextLike.js.map