No Code Attached Yet J3 Issue
avatar jschmi102
jschmi102
19 Mar 2022

Steps to reproduce the issue

add svg icon to button settings - e.g.:

$button->icon    = 'tip';
$button->iconSVG = '<svg ... </svg>' 

Expected result

editor toolbar should display button with icon

Actual result

on joomla v3.10. icon ist missing

buttons-v3

on Joomla4 with exacly same plugin-code display is OK:
buttons-v4

System information (as much as possible)

tinymce version on joomla 3 displayed is "4.5.12'
if I use svg e.g. from pagebeak editor-xtd plugin display of icon is also missing.
Can anybody explain what goes wrrong?

avatar jschmi102 jschmi102 - open - 19 Mar 2022
avatar joomla-cms-bot joomla-cms-bot - change - 19 Mar 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 19 Mar 2022
avatar jschmi102 jschmi102 - change - 19 Mar 2022
The description was changed
avatar jschmi102 jschmi102 - edited - 19 Mar 2022
avatar jschmi102 jschmi102 - change - 19 Mar 2022
The description was changed
avatar jschmi102 jschmi102 - edited - 19 Mar 2022
avatar jschmi102 jschmi102 - change - 19 Mar 2022
The description was changed
avatar jschmi102 jschmi102 - edited - 19 Mar 2022
avatar richard67 richard67 - change - 19 Mar 2022
Labels Added: J3 Issue
avatar richard67 richard67 - labeled - 19 Mar 2022
avatar jschmi102
jschmi102 - comment - 19 Mar 2022

hi,
now I found how this works with joomla V3.
you will have define a property: $button->name = 'icon-name';
eg. $button->name = 'lamp';
This setting will result in: <i class="mce-ico mce-i-none icon-lamp"></i>
class "icon-lamp' is defined in isis-template as:
.icon-lamp::before { content: "\74"; } and using font family "icoMoon" which contains all sorts of icon-like chars. (content "\74" displays a lamp).

You will see then a correct display:
buttons-v3

avatar richard67
richard67 - comment - 19 Mar 2022

@jschmi102 So the issue can be closed?

avatar jschmi102 jschmi102 - change - 19 Mar 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-03-19 16:14:45
Closed_By jschmi102
avatar jschmi102 jschmi102 - close - 19 Mar 2022
avatar jschmi102
jschmi102 - comment - 19 Mar 2022

OK

Add a Comment

Login with GitHub to post a comment