_binary From 712fa5374fb1ade74a19d40f8c2fa1611aba0236 Mon Sep 17 00:00:00 2001
From: Gargi Sheguri <gargiegs@gmail.com>
Date: Wed, 5 Apr 2023 17:24:30 -0700
Subject: [PATCH 1/1] Fixing issue 256: wiki editor fixes

---
 src/controllers/components/Component.php | 2 ++
 src/locale/en_US/configure.ini           | 1 +
 src/scripts/wiki.js                      | 2 +-
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/controllers/components/Component.php b/src/controllers/components/Component.php
index 5aeb3d78a..03e3ff7a7 100644
--- a/src/controllers/components/Component.php
+++ b/src/controllers/components/Component.php
@@ -148,6 +148,8 @@ class Component
                 tl('wiki_js_definitionlist_item').'",'.
                 'wiki_js_definitionlist_definition :"'.
                 tl('wiki_js_definitionlist_definition').'",'.
+                'wiki_js_slide :"'.
+                tl('wiki_js_slide').'",'.
                 'wiki_js_slide_sample_title :"'.
                     tl('wiki_js_slide_sample_title').'",'.
                 'wiki_js_slide_sample_bullet :"'.
diff --git a/src/locale/en_US/configure.ini b/src/locale/en_US/configure.ini
index 7ddf95321..61b04fc1c 100644
--- a/src/locale/en_US/configure.ini
+++ b/src/locale/en_US/configure.ini
@@ -681,6 +681,7 @@ wiki_js_leftaligned = "Left-aligned Text"
 wiki_js_definitionlist = "Definition List"
 wiki_js_definitionlist_item = "Item"
 wiki_js_definitionlist_definition = "Definition"
+wiki_js_slide = "Add Slide"
 wiki_js_slide_sample_title = "Title"
 wiki_js_slide_sample_bullet = "Slide Item"
 wiki_js_slide_resource_description = "Resource Description for "
diff --git a/src/scripts/wiki.js b/src/scripts/wiki.js
index 8111c07fd..78ed6ca29 100755
--- a/src/scripts/wiki.js
+++ b/src/scripts/wiki.js
@@ -75,7 +75,7 @@ var editor_toolbar_icons = {
     "wikibtn-italic": "<i>I</i>",
     "wikibtn-underline": "<u>U</u>",
     "wikibtn-strike": "<s>S</s>",
-    "wikibtn-nowiki": `<span class='wiki-icon-nowiki'>W</span>`,
+    "wikibtn-nowiki": `<div class='wiki-icon-nowiki'>W</div>`,
     "wikibtn-hyperlink": "🔗",
     "wikibtn-bullets": `<div class="wikibtn-icon-bullets"
         ><div>&vellip;</div></div>&equiv;`,
-- 
2.39.1

