fix CKEditor links

This commit is contained in:
Никита Губарь 2024-07-23 13:34:05 +03:00
parent e27da9fca9
commit 104f538e3a
3 changed files with 14 additions and 3 deletions

View File

@ -684,6 +684,7 @@ export const ModalTiсket = ({
editor={ClassicEditor} editor={ClassicEditor}
data={inputsValue.description} data={inputsValue.description}
config={{ config={{
toolbar: ["link"],
removePlugins: [ removePlugins: [
"CKFinderUploadAdapter", "CKFinderUploadAdapter",
"CKFinder", "CKFinder",
@ -695,7 +696,10 @@ export const ModalTiсket = ({
"ImageUpload", "ImageUpload",
"MediaEmbed", "MediaEmbed",
"BlockQuote" "BlockQuote"
] ],
link: {
addTargetToExternalLinks: true
}
}} }}
onChange={(event, editor) => { onChange={(event, editor) => {
const data = editor.getData(); const data = editor.getData();

View File

@ -625,7 +625,10 @@ export const TrackerModal = ({
"numberedList" "numberedList"
], ],
removePlugins: ["BlockQuote"], removePlugins: ["BlockQuote"],
placeholder: "Описание задачи" placeholder: "Описание задачи",
link: {
addTargetToExternalLinks: true
}
}} }}
onChange={(event, editor) => { onChange={(event, editor) => {
const data = editor.getData(); const data = editor.getData();

View File

@ -121,6 +121,7 @@ export const TrackerTaskComment = ({
editor={ClassicEditor} editor={ClassicEditor}
data={commentsEditText} data={commentsEditText}
config={{ config={{
toolbar: ["link"],
removePlugins: [ removePlugins: [
"CKFinderUploadAdapter", "CKFinderUploadAdapter",
"CKFinder", "CKFinder",
@ -132,7 +133,10 @@ export const TrackerTaskComment = ({
"ImageUpload", "ImageUpload",
"MediaEmbed", "MediaEmbed",
"BlockQuote" "BlockQuote"
] ],
link: {
addTargetToExternalLinks: true
}
}} }}
onChange={(event, editor) => { onChange={(event, editor) => {
const data = editor.getData(); const data = editor.getData();