CKEditor translate feature does not respect the original source HTML format

Created on 27 August 2024, 8 months ago
Updated 16 September 2024, 7 months ago

In translatecommands.js, the following code is use to ask the IA to translate :

const prompt = 'Translate the selected text into ' + formView.languageInputView.fieldView.element.value + ': ' + selectedText;

I have added a console.log(selectedText) and the variable does not have any html tags.

Would it be possible to get the source code with the original formatting ? if it would be possible, we could ask something like this : "Translate the selected text into english, respecting the html format of the source". This would allow to translate respecting the formatting...

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡«πŸ‡·France yonailo Paris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024