Welcome Guest! To enable all features please
Login
Posted by: smn - Tuesday, 14 February 2023 23:20:11 |
---|
I'm using the "Smiley" plugin. Some standard smilies will display in the CKEditor, but won't display outside it, for example "blush" or "crying". What is the reason? I also want to use my custom smiles. What do I have to do besides copying the pictures to the images directory and editing the lines: CKEDITOR.config.smiley_images CKEDITOR.config.smiley_descriptions |
Posted by: tha_watcha - Wednesday, 15 February 2023 05:34:34 |
---|
I recommend of using emoji instead of smilies. Unicode Emoji are available on every device. Directly from the keyboard or via the editor emoji button. You can also access them via Auto complete if you start typing ":". If you want to use image based smilies you need to use the absolute image path to the image, and not the relative path. Edit: old bbcode emoticons like blush or crying work if you use brackets like [noparse][crying][/noparse] [crying] |
Posted by: smn - Wednesday, 15 February 2023 08:05:50 |
---|
Thanks for your reply. I and several users I know think that emojis are a bad idea & dull and never use them. When a user clicks on the "crying" icon of the Smiley plugin, in the end only the text ;( is displayed, which is caused by the bbcode plugin. This is clearly a bug. The barebones version of CKEditor already generates the necessary HTML code for inserting a img link to the location of the smiley, but YAF doesn't accept it when the post is saved. Can you please help me how to force YAF to use HTML with the Smiley plugin instead of generating smiley BBCodes, which don't work. |
Posted by: tha_watcha - Wednesday, 15 February 2023 08:26:03 |
---|
[quote]When a user clicks on the "crying" icon of the Smiley plugin, in the end only the text ;( is displayed, which is caused by the bbcode plugin. This is clearly a bug.[/quote] This is not a bug, the forum editor only accepts bbcode and not html. |
Posted by: tha_watcha - Wednesday, 15 February 2023 08:31:55 |
---|
[quote]Can you please help me how to force YAF to use HTML with the Smiley plugin instead of generating smiley BBCodes, which don't work.[/quote] Simply modify the smiley plugin to generate an img bbcode instead of an img html tag. |
Posted by: smn - Wednesday, 15 February 2023 09:19:05 |
---|
[quote=tha_watcha;73629][quote]When a user clicks on the "crying" icon of the Smiley plugin, in the end only the text ;( is displayed, which is caused by the bbcode plugin. This is clearly a bug.[/quote] This is not a bug, the forum editor only accepts bbcode and not html. [/quote] How is this not a bug? The user selects a smiley from the dialog, but the smiley isn't displayed. |
Posted by: tha_watcha - Wednesday, 15 February 2023 09:34:30 |
---|
[quote=smn;73631][quote=tha_watcha;73629][quote]When a user clicks on the "crying" icon of the Smiley plugin, in the end only the text ;( is displayed, which is caused by the bbcode plugin. This is clearly a bug.[/quote] This is not a bug, the forum editor only accepts bbcode and not html. [/quote] How is this not a bug? The user selects a smiley from the dialog, but the smiley isn't displayed.[/quote] If you manually add not compatible plugins to the editor then of course then its not a bug of the forum. That plugin is not part of the editor. as i wrote above you need to modify the plugin to change the output to img bbcode and not an html tag. |
Posted by: smn - Wednesday, 15 February 2023 09:37:42 |
---|
The smiley plugin is included in the YAF distribution. It was not added manually. ;( is not a HTML tag. |
Posted by: tha_watcha - Wednesday, 15 February 2023 10:11:00 |
---|
[quote=smn;73633]The smiley plugin is included in the YAF distribution. It was not added manually. ;( is not a HTML tag.[/quote] Okay youre right its included. It will be removed in the next release. But again it can not work. if you look at the source it creates an img html tag [url]https://github.com/ckeditor/ckeditor4/blob/3797ca6f6596b2f0748200c8fc8dd9d82f296839/plugins/smiley/dialogs/smiley.js#L28[/url] Modify it and it will work. |
Posted by: smn - Wednesday, 15 February 2023 15:49:03 |
---|
I have managed to get it working by changing these lines (starting at line 28) in ckeditor/plugins/smiley/smiley.js [code=javascript] var img = editor.document.createElement( 'img', { attributes: { type: 'image', 'src': src, alt: '' } } );[/code] |
Posted by: smn - Wednesday, 15 March 2023 15:24:36 |
---|
The smiley plugin was officially removed in YAF version 3.1.13, but we made our custom version work with bbcodes. [attach]2313[/attach] |