add svg icon to button settings - e.g.:
$button->icon = 'tip';
$button->iconSVG = '<svg ... </svg>'
editor toolbar should display button with icon
on joomla v3.10. icon ist missing
on Joomla4 with exacly same plugin-code display is OK:
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?
Labels |
Added:
No Code Attached Yet
|
Labels |
Added:
J3 Issue
|
@jschmi102 So the issue can be closed?
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-03-19 16:14:45 |
Closed_By | ⇒ | jschmi102 |
OK
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:
