2026-02-04 08:43:19 +00:00
|
|
|
// import React from "react";
|
|
|
|
|
// import { CKEditor } from "@ckeditor/ckeditor5-react";
|
|
|
|
|
// import Editor from "@/vendor/ckeditor5/build/ckeditor";
|
|
|
|
|
|
|
|
|
|
// function ViewEditor(props) {
|
|
|
|
|
// return (
|
|
|
|
|
// <CKEditor
|
|
|
|
|
// editor={Editor}
|
|
|
|
|
// data={props.initialData}
|
|
|
|
|
// disabled={true}
|
|
|
|
|
// config={{
|
|
|
|
|
// // toolbar: [],
|
|
|
|
|
// isReadOnly: true,
|
|
|
|
|
// }}
|
|
|
|
|
// />
|
|
|
|
|
// );
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// export default ViewEditor;
|
|
|
|
|
|
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-04 08:43:19 +00:00
|
|
|
function ViewEditor({ initialData }) {
|
2025-09-16 08:29:07 +00:00
|
|
|
return (
|
2026-02-04 08:43:19 +00:00
|
|
|
<div className="ck-viewer">
|
|
|
|
|
<CKEditor
|
|
|
|
|
editor={Editor}
|
|
|
|
|
data={initialData}
|
|
|
|
|
disabled
|
|
|
|
|
config={{
|
|
|
|
|
isReadOnly: true,
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2025-09-16 08:29:07 +00:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default ViewEditor;
|