telerik / kendo-react

Issue tracker - KendoReact http://www.telerik.com/kendo-react-ui/
https://kendo-react-teal.vercel.app
Other
212 stars 36 forks source link

KendoReact Editor is changing the dots to ''&" i.e ( ..................... ==> &&&&&&&&&) major issue #2454

Closed Genesis671230 closed 1 month ago

Genesis671230 commented 1 month ago

I'm submitting a...

Current behavior:

When exporting content from the KendoReact Editor as a PDF, all dot characters (.) in the text are replaced with ampersand characters (&). For example, a string of dots (.....................) is converted to a string of ampersands (&&&&&&&&&). This issue significantly alters the content in the exported PDF, making it unusable.

Expected behavior:

The dots (.) in the text should remain unchanged when exporting the content as a PDF. The PDF output should match the input text exactly, without replacing any characters.

Minimal reproduction of the problem with instructions:

          1. Create a KendoReact Editor instance.
          2. Enter a series of dots (.....................) in the editor.
          3. Export the content as a PDF using the available export functionality.
          4. Observe that the dots in the exported PDF are replaced with ampersands (&&&&&&&&&).
          5. What is the motivation or use case for changing the behavior?

This issue impacts the accuracy of documents generated from the KendoReact Editor. Users rely on the editor to produce precise PDF exports, and this bug disrupts that expectation, leading to potential miscommunications or errors in documents.

Environment:

Package versions:

@progress/kendo-react-editor: "^8.0.0"

Browser:

Chrome (web) Version 127.0.6533.90 (Official Build) (64-bit)

System:

Node version: 18 Platform: Windows

silviyaboteva commented 1 month ago

Hello @Genesis671230, I cannot reproduce the problem with v8.0.0 and latest v8.2.0. Here is the demo from our documentation along with the exported PDF file for reference:

Demo: https://stackblitz.com/edit/react-3y7cyu-1tfxff?file=app%2Fshared-ed-content.ts Exported PDF: editor.pdf

Please try to update to the latest version and test again. If you still reproduce the issue please don't hesitate to open a ticket in our support system. In the ticket, it will be in great help if you attach a reproducible demo so that we can investigate further.

Genesis671230 commented 1 month ago

Hello @Genesis671230, I cannot reproduce the problem with v8.0.0 and latest v8.2.0. Here is the demo from our documentation along with the exported PDF file for reference:

Demo: https://stackblitz.com/edit/react-3y7cyu-1tfxff?file=app%2Fshared-ed-content.ts Exported PDF: editor.pdf

Please try to update to the latest version and test again. If you still reproduce the issue please don't hesitate to open a ticket in our support system. In the ticket, it will be in great help if you attach a reproducible demo so that we can investigate further.

That yet persist.

Although i would reconsider the major issue when i try to export the pdf with arabic content. It result in below content

"E/’13 ’D%E’1’ ’DH7FJ) FEH0, 1BE (9) ’DE,E9: lblCampus ’DE/13): lblSchool F(JG .7J DD7’D( (9/ ’DF(JG ’D4AGJ ’DE34’1 ’D#C’/JEJ \ ’D#.5’&J ’D’,E#9G/ #F’ ’3E ’D7’D(: lblStudentName ’D5A: lblGrade &-G’. E/13) HDH’ (’D’D23) (EH,( HAJ -’D)F E1) 4AGJK’E -0J1J #C+1 E 3J’3) BHAJE’ J9DB (3DHCJ’J ’D3D(J) ’D’DJ):

  1. &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& &&&&.
  2. &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& &&&&.
  3. &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& &&&. H9DI 0DC #B1. : lblStudentName : &&&&&&&&&&&&&&& ’3E ’D7’D( ’DHBJ9 ’9E’/ E3’9/ 1&J3 ’DE/13) 5/1 (’1J. : / / . (J,( %.7’1 HDJ ’D#E1 (EH,( F3.) EF ’DF(JG ’DECH( HJ,( ’D’-A’8 (F3.) EFG AJ E’D7’D( HF3.) #.1I D/I ’DE34’1 ’D#C’/JEJ / ’D#.5’&J ’D’,E’9J). E %.7’1 HDJ ’D#E1 ’D’3E.... .......... ..................... .................................... ......... ............. ................’DHB: &&&&&&&&&&&&&&&&&&&&&&&...................... J-B DD7’D( HHDJ #E1G ’D’91’6 9DI G0’ ’D%,1’! AJ :6HF 7 #J’E EF ’1J. 5/H1 B1"

I dont understand why this behavior persisit and how to solve this. please share any insights how to export arabic content correctly

نموذج رقم (9)

المجمع: lblCampus المدرسة: lblSchool

تنبيه خطي للطالب بعد التنبيه الشفهي

المستشار الأكاديمي \ الأخصائي الاجتماعي \ لجنة إدارة السلوك

أتعهد أنا

اسم الطالب: lblStudentName الصف: lblGrade

بالالتزام بقواعد السلوك ولوائحها. وفي حالة ارتكاب مخالفة، سأكون مسؤبالنظر إلى ذلك، تم تحذيري أكثر من مرة شفهيًا فيما يتعلق بسلوكياتي السلبية التالية:

  1. …………………………………………………………………………………………….

  2. …………………………………………………………………………………………….

  3. ………………………………………………………………………………………….

وعلى ذلك أقر.

اسم الطالب: lblStudentName                              التوقيع: ………………………………………

اعتماد مساعد رئيس المدرسة

صدر بتاريخ : / / .

(يجب إخطار ولي الأمر بموجب نسخة من التنبيه المكتوب، ويجب الاحتفاظ بنسخة منه في ملف الطالب ونسخة أخرى لدى المستشار الأكاديمي / الأخصائي الاجتماعي).

تم إخطار ولي الأمر ، الاسم: ........................................... صلة القرابة: .............................................. .......... رقم الموبايل: ............................................... .............................. تاريخ المكالمة: .............................................. ............................. الوقت: ……………………………………………………………......................

يحق للطالب وولي أمره الاعتراض على هذا الإجراء في غضون 7 أيام من تاريخ صدور قرار اللجنة.

 

 

" This is my arabic content Thank you