CKeditor 4 – Paste from Word adding "
تبليغيرجى شرح بإيجاز لمإذا تشعر أنك ينبغي الإبلاغ عن هذا السؤال.
I am using CKeditor 4, using the Paste from Word functionality.
When the original text has different fonts, and is copied using the PfW function, some of the conversion adds quotes (as ") before and after the font in the HTML subsequently which creates an issue with the display and my subsequent processing.
For example, lines 1,2 and 4 (Arial, Georgia & Tahoma) add the code however Line 3 (Luna) does not (and the originating code in Word is identical).
<span style=”font-family:"Arial",sans-serif”>Test using Arial</span><br />
<span style=”font-family:"Georgia",serif”>Test using Georgia</span><br />
<span style=”font-family:Luna”>Test using Luna</span><br />
<span style=”font-family:"Tahoma",sans-serif”>Test using Tahoma</span><br />
I have tried to filter the code using ACF and config.disallowedContent to no avail.
Appreciate any ideas please
أضف إجابة