From b200a7a4a201d3a8c2f63660a009cdb52eac68d7 Mon Sep 17 00:00:00 2001
From: M1kola
Date: Mon, 26 Jun 2023 13:24:20 +0300
Subject: [PATCH] ckeditor
---
.../Modal/Tracker/ModalTicket/ModalTicket.jsx | 30 +++++++++++++------
src/pages/ProjectTracker/ProjectTracker.js | 7 ++++-
2 files changed, 27 insertions(+), 10 deletions(-)
diff --git a/src/components/Modal/Tracker/ModalTicket/ModalTicket.jsx b/src/components/Modal/Tracker/ModalTicket/ModalTicket.jsx
index 45b5e7c8..638cf351 100644
--- a/src/components/Modal/Tracker/ModalTicket/ModalTicket.jsx
+++ b/src/components/Modal/Tracker/ModalTicket/ModalTicket.jsx
@@ -1,3 +1,5 @@
+import ClassicEditor from "@ckeditor/ckeditor5-build-classic";
+import { CKEditor } from "@ckeditor/ckeditor5-react";
import React, { useEffect, useState } from "react";
import { useDispatch, useSelector } from "react-redux";
import { Link } from "react-router-dom";
@@ -12,9 +14,6 @@ import { apiRequest } from "@api/request";
import TrackerModal from "@components/Modal/Tracker/TrackerModal/TrackerModal";
import TrackerTaskComment from "@components/TrackerTaskComment/TrackerTaskComment";
-import { CKEditor } from '@ckeditor/ckeditor5-react';
-import ClassicEditor from '@ckeditor/ckeditor5-build-classic';
-
import archive from "assets/icons/archive.svg";
import arrow from "assets/icons/arrows/arrowStart.png";
import fullScreen from "assets/icons/arrows/inFullScreen.svg";
@@ -374,21 +373,34 @@ export const ModalTiŃket = ({
{editOpen ? (
{
+ onChange={(event, editor) => {
const data = editor.getData();
setInputsValue((prevValue) => ({
...prevValue,
description: data,
- }))
- } }
+ }));
+ }}
/>
) : (
-
+
)}
{/**/}
diff --git a/src/pages/ProjectTracker/ProjectTracker.js b/src/pages/ProjectTracker/ProjectTracker.js
index e1be201f..83659c0d 100644
--- a/src/pages/ProjectTracker/ProjectTracker.js
+++ b/src/pages/ProjectTracker/ProjectTracker.js
@@ -509,7 +509,12 @@ export const ProjectTracker = () => {
{task.title}
-
+