sccoreui
Version:
ui-sccore
15 lines (14 loc) • 785 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = require("react");
const FroalaEditorTextBox_1 = tslib_1.__importDefault(require("../../components/froala-editor/FroalaEditorTextBox"));
const FroalaTextEditorPage = () => {
const ref = (0, react_1.useRef)(null);
const onchange = (content) => {
console.log(content);
};
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(FroalaEditorTextBox_1.default, { froalaRef: ref, id: "Froala_text_editor", placeholderText: "Type here", value: "Test Froala text editor", onChange: onchange }) }));
};
exports.default = FroalaTextEditorPage;