jefs42 / ckeditor-fa42

Font Awesome (v4,v5,v6) plugin for CKEditor 4
GNU General Public License v3.0
1 stars 2 forks source link

Icon disappears when text is deleted #2

Open STYNET opened 4 weeks ago

STYNET commented 4 weeks ago

Hello, When you try to delete a character in a paragraph that contains an icon, it also deletes the icon. This only happens in Firefox (not Chrome). Here's a short video to explain. Thanks for your help and hard work.

https://github.com/jefs42/ckeditor-fa42/assets/59918158/4068952d-d4f6-4e2c-a8b9-ef630450b367

STYNET commented 3 weeks ago

It's a bug will always persist, because ckeditor 4.22.1, is the last version (Ckeditor 4 is now not support). My solution is use span tag instead i tag by default :

CKEDITOR.config.fa42 = {
    fa42Tag: 'span'
}