mikuli.cz

:)
git clone https://git.sr.ht/~ashymad/mikuli.cz
Log | Files | Refs

commit 5d106b479b8861726800860bd7e53d8973abff23
parent bd2f316e2e75b288570fc40e9f3d3e8fbfaf3108
Author: markseu <mark2011@mayberg.se>
Date:   Wed, 16 Nov 2022 11:29:55 +0100

Updated edit extension for emoji/icon

Diffstat:
Msystem/extensions/edit.js | 4++--
Msystem/extensions/edit.php | 2+-
Msystem/extensions/update-current.ini | 4++--
3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/system/extensions/edit.js b/system/extensions/edit.js @@ -747,7 +747,7 @@ yellow.edit = { for (var i=0; i<tokens.length; i++) { var token = tokens[i].replace(/[\:]/g,""); var className = token.replace("+1", "plus1").replace("-1", "minus1").replace(/_/g, "-"); - rawDataEmojis += "<li><a href=\"#\" id=\"yellow-popup-list-"+yellow.toolbox.encodeHtml(token)+"\" data-action=\"toolbar\" data-status=\"text\" data-arguments=\":"+yellow.toolbox.encodeHtml(token)+":\"><i class=\"ea ea-"+yellow.toolbox.encodeHtml(className)+"\"></i></a></li>"; + rawDataEmojis += "<li><a href=\"#\" id=\"yellow-popup-list-"+yellow.toolbox.encodeHtml(token)+"\" data-action=\"toolbar\" data-status=\"text\" data-arguments=\":"+yellow.toolbox.encodeHtml(token)+":\"><i class=\"emoji emoji-"+yellow.toolbox.encodeHtml(className)+"\"></i></a></li>"; } } elementDiv.innerHTML = "<ul class=\"yellow-dropdown yellow-dropdown-menu\">"+rawDataEmojis+"</ul>"; @@ -758,7 +758,7 @@ yellow.edit = { var tokens = yellow.system.iconToolbarButtons.split(" "); for (var i=0; i<tokens.length; i++) { var token = tokens[i].replace(/[\:]/g,""); - rawDataIcons += "<li><a href=\"#\" id=\"yellow-popup-list-"+yellow.toolbox.encodeHtml(token)+"\" data-action=\"toolbar\" data-status=\"text\" data-arguments=\":"+yellow.toolbox.encodeHtml(token)+":\"><i class=\"fa "+yellow.toolbox.encodeHtml(token)+"\"></i></a></li>"; + rawDataIcons += "<li><a href=\"#\" id=\"yellow-popup-list-"+yellow.toolbox.encodeHtml(token)+"\" data-action=\"toolbar\" data-status=\"text\" data-arguments=\":"+yellow.toolbox.encodeHtml(token)+":\"><i class=\"icon "+yellow.toolbox.encodeHtml(token)+"\"></i></a></li>"; } } elementDiv.innerHTML = "<ul class=\"yellow-dropdown yellow-dropdown-menu\">"+rawDataIcons+"</ul>"; diff --git a/system/extensions/edit.php b/system/extensions/edit.php @@ -2,7 +2,7 @@ // Edit extension, https://github.com/annaesvensson/yellow-edit class YellowEdit { - const VERSION = "0.8.70"; + const VERSION = "0.8.71"; public $yellow; // access to API public $response; // web response public $merge; // text merge diff --git a/system/extensions/update-current.ini b/system/extensions/update-current.ini @@ -27,11 +27,11 @@ system/layouts/navigation.html: navigation.html, create, update, careful system/layouts/pagination.html: pagination.html, create, update, careful Extension: Edit -Version: 0.8.70 +Version: 0.8.71 Description: Edit your website in a web browser. DocumentationUrl: https://github.com/annaesvensson/yellow-edit DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/main/downloads/edit.zip -Published: 2022-11-15 22:04:16 +Published: 2022-11-16 11:12:49 Developer: Anna Svensson Tag: feature system/extensions/edit.php: edit.php, create, update