]> git.mxchange.org Git - friendica.git/commitdiff
The emoji selector is now available for comments
authorMichael <heluecht@pirati.ca>
Sat, 6 May 2023 09:41:07 +0000 (09:41 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 6 May 2023 09:41:07 +0000 (09:41 +0000)
view/templates/item/compose.tpl
view/theme/frio/templates/comment_item.tpl
view/theme/frio/templates/head.tpl
view/theme/frio/templates/jot.tpl

index 6845234d4150703652e65606a7ebaff3a23a0cb1..c491a0fcf0219059e28d55e9360b7de61ca8539b 100644 (file)
 </div>
 <script>
        dzFactory.setupDropzone('#dropzone-{{$id}}', 'comment-edit-text-{{$id}}'); 
-</script>
-<script>
-window.onload = function(){
-       new EmojiPicker({
-               trigger: [
-                       {
-                               selector: '.emojis',
-                               insertInto: '.comment-edit-text'
-                       }
-               ],
-               closeButton: true,
-       });
-};
-</script>
+</script>
\ No newline at end of file
index 45a6116aa34ff889a759c42961f5ac0a7e8154f7..b5fc13deb2f4d8bedb650cdc5881f3c641c50b25 100644 (file)
@@ -36,6 +36,9 @@
                                <button type="button" class="btn btn-sm template-icon quote" style="cursor: pointer;" aria-label="{{$edquote}}" title="{{$edquote}}" onclick="insertFormatting('quote',{{$id}});">
                                        <i class="fa fa-quote-left"></i>
                                </button>
+                               <button type="button" class="btn btn-sm template-icon emojis" style="cursor: pointer;" aria-label="{{$edemojis}}" title="{{$edemojis}}">
+                                       <i class="fa fa-smile-o"></i>
+                               </button>
                        </span>
                        </p>
                        <div id="dropzone-{{$id}}" class="dropzone">
index 300cb7d1d7b385bc8bcc5f15d9f0336ad236e1ea..9e960bdc98df6a9d684b5f2d37c89b11468a2bad 100644 (file)
        <script type="text/javascript" src="view/js/fancybox/jquery.fancybox.min.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
        <script type="text/javascript" src="view/js/fancybox/fancybox.config.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
        <script type="text/javascript" src="view/js/vanillaEmojiPicker/vanillaEmojiPicker.min.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
-
+       <script>
+       window.onload = function(){
+               new EmojiPicker({
+                       trigger: [
+                               {
+                                       selector: '.emojis',
+                                       insertInto: ['#comment-edit-text-0', '.profile-jot-text-full', '.comment-edit-text-full']
+                               }
+                       ],
+                       closeButton: true
+               });
+       };
+       </script>
+       
        {{* Include the strings which are needed for some js functions (e.g. translation)
 They are loaded into the html <head> so that js functions can use them *}}
        {{include file="js_strings.tpl"}}
index cf62a89f69f6e954a50fd44bcdf62a1b610f1bff..b38babebff3b0b9895df46dbca166e7378facd3a 100644 (file)
@@ -182,17 +182,4 @@ can load different content into the jot modal (e.g. the item edit jot)
 
 <script>
        dzFactory.setupDropzone('#jot-text-wrap', 'profile-jot-text'); 
-</script>
-<script>
-window.onload = function(){
-       new EmojiPicker({
-               trigger: [
-                       {
-                               selector: '.emojis',
-                               insertInto: '.profile-jot-text'
-                       }
-               ],
-               closeButton: true,
-       });
-};
-</script>
+</script>
\ No newline at end of file