2025-09-16 08:29:07 +00:00
|
|
|
import React from "react";
|
|
|
|
|
import { CKEditor } from "@ckeditor/ckeditor5-react";
|
|
|
|
|
import Editor from "@/vendor/ckeditor5/build/ckeditor";
|
|
|
|
|
|
2026-02-05 11:02:24 +00:00
|
|
|
function ViewEditor(props) {
|
2025-09-16 08:29:07 +00:00
|
|
|
return (
|
2026-02-05 11:02:24 +00:00
|
|
|
<CKEditor
|
|
|
|
|
editor={Editor}
|
|
|
|
|
data={props.initialData}
|
|
|
|
|
disabled={true}
|
|
|
|
|
config={{
|
|
|
|
|
// toolbar: [],
|
|
|
|
|
isReadOnly: true,
|
|
|
|
|
}}
|
|
|
|
|
/>
|
2025-09-16 08:29:07 +00:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default ViewEditor;
|