2025-07-21 08:12:11 +00:00
|
|
|
import React from "react";
|
|
|
|
|
import { CKEditor } from "@ckeditor/ckeditor5-react";
|
|
|
|
|
import Editor from "ckeditor5-custom-build";
|
2025-01-04 15:25:07 +00:00
|
|
|
|
|
|
|
|
function ViewEditor(props) {
|
|
|
|
|
return (
|
2025-07-21 08:12:11 +00:00
|
|
|
<CKEditor
|
|
|
|
|
editor={Editor}
|
|
|
|
|
data={props.initialData}
|
|
|
|
|
disabled={true}
|
|
|
|
|
config={{
|
|
|
|
|
// toolbar: [],
|
|
|
|
|
isReadOnly: true,
|
2025-01-04 15:25:07 +00:00
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default ViewEditor;
|