Posts: 116
Threads: 12
Joined: Nov 2014
2023-01-22, 21:01:27
(This post was last modified: 2023-01-22, 21:01:56 by tuxy.)
Hello,
When adding Emoji's in the CKEditor it disappears after saving the page.
Someone knows how solve this?
Copy/Paste the Emoji's from this website
Posts: 515
Threads: 21
Joined: Feb 2019
Are you sure the url is not broken after saving page in CKEditor ?
Download the Emoji you want first local to your harddisk and then store it
in a folder that is part of your GS website (assets or media etc.)
From there import in CKEditor. That must work.
Posts: 116
Threads: 12
Joined: Nov 2014
(2023-01-22, 23:56:52)Felix Wrote: Are you sure the url is not broken after saving page in CKEditor ?
Download the Emoji you want first local to your harddisk and then store it
in a folder that is part of your GS website (assets or media etc.)
From there import in CKEditor. That must work.
Hi Felix,
Nope, not broken after saving. This is weird, i do it also the same in other cms editors without any problem, no download/upload to the website, just copy/paste.
Found another solution:
- Toggle the GS-editor to source-mode, adding the emoji from here.
- Adding the Emoji in HTML-format, example: 🦁
- Save the GS-editor
- Toggle from source-mode to normal mode.
- The Emoji shows up in the editor
Posts: 515
Threads: 21
Joined: Feb 2019
Good you have it working.
Usually these issues with ckeditor (or similar editor) are related to:
1) copying and pasting an emoji or picture directly from the internet will not save it locally and the url will break
2) ckeditor server settings how to handle absolute and relative paths
3) ckeditor security settings stripping out characters it does not like
But the above relates to pictures and graphics.
Must say that I never used emoji's in a website. Seems that an emoji is not a picture or a graphic
but a glyph similar to a font. I believe windows 10 stores them in Windows\Fonts\seguiemj.ttf.
Posts: 116
Threads: 12
Joined: Nov 2014
(2023-01-22, 23:56:52)Felix Wrote: Are you sure the url is not broken after saving page in CKEditor ?
Download the Emoji you want first local to your harddisk and then store it
in a folder that is part of your GS website (assets or media etc.)
From there import in CKEditor. That must work.
(2023-01-24, 00:04:38)Felix Wrote: Good you have it working.
Usually these issues with ckeditor (or similar editor) are related to:
1) copying and pasting an emoji or picture directly from the internet will not save it locally and the url will break
2) ckeditor server settings how to handle absolute and relative paths
3) ckeditor security settings stripping out characters it does not like
But the above relates to pictures and graphics.
Must say that I never used emoji's in a website. Seems that an emoji is not a picture or a graphic
but a glyph similar to a font. I believe windows 10 stores them in Windows\Fonts\seguiemj.ttf.
Hi Felix,
Indeed, first i was thinking also for security reasons.
I use emoji's sometimes in my blogposts, see screenshot...
The blogpost
Regards,
Christophe
Posts: 515
Threads: 21
Joined: Feb 2019
Posts: 1,928
Threads: 88
Joined: Apr 2010
http://newsmanager.getsimplecms.ru/novos...g-youtube/
Just added 'Smiley' to the gsconfig.php file
Code: define('GSEDITORTOOL', "['Bold','Italic','Underline','Strike','Subscript','Superscript','NumberedList','BulletedList','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','HorizontalRule','Table','Link','Unlink','Anchor','Image','Blockquote','CreateDiv','Undo','Redo'],'/',['Styles','Format','FontSize','TextColor','BGColor','Youtube','Video','pbckcode','Iframe','SpecialChar','wenzgmap','Smiley','RemoveFormat','Source']");
Posts: 116
Threads: 12
Joined: Nov 2014
2023-01-31, 11:10:59
(This post was last modified: 2023-01-31, 11:11:45 by tuxy.)
@Felix,
Emoji's gives some 'color' and 'emotion' to the text :-)
Thanks a lot for all the links. i love it ;-)
@Oleg06,
This is really awesome. I used this code until now:
Code: define('GSEDITORTOOL', 'advanced');
But changed with your code snippet, it has a lot more options, AND the smileys works perfect ;-)
Thanks a lot guys :-)
|