Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

summernote issues dropdown

$("#content").summernote()

$('.dropdown-toggle').dropdown() //put this line to make the dropdown work
Comment

summernote dropdown plugin

var emojiBtn = function (context) {

    var ui = $.summernote.ui;
    var list = $('#elements-list').val();

    var button = ui.buttonGroup([
              ui.button({
                className: 'dropdown-toggle',
                contents: '<span class="fa fa-smile-o"></span> <span class="caret"></span>',
                tooltip: "Insert Greetings",
                data: {
                  toggle: 'dropdown'
                }
              }),
              ui.dropdown({
                className: 'drop-default summernote-list',
                contents: "<ul>"+list+"</ul>",
                callback: function ($dropdown) {
                    $dropdown.find('li').each(function () {
                      $(this).click(function() {
                        context.invoke("editor.insertText", $(this).html());
                      });
                    });
                }
              })
    ]);

    return button.render();
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: dotnet core encryption and decryption 
Csharp :: dotnet add package 
Csharp :: c# string length 
Csharp :: how to jump in unity using physics 
Csharp :: how to convert int to string c# 
Csharp :: c# check if character is lowercase 
Csharp :: c# split string 
Csharp :: is narcissistic number 
Csharp :: change object position 
Csharp :: c# define array 
Csharp :: How can I use Hex color Unity? , give hex color in unity 
Csharp :: convert xml to json 
Csharp :: matrix transpose 
Csharp :: triangle 
Csharp :: static property in c# 
Csharp :: action c# 
Csharp :: addssdawsdawdsdawasdawasdawdswsddsdawssd 
Csharp :: c# generate insert statement from object 
Csharp :: unity get quaternion z 
Csharp :: c# predicate 
Csharp :: How to cache database tables to prevent many database queries in Asp.net C# mvc 
Csharp :: setxkbmap 
Csharp :: How to return a list to view after foreach in c# 
Csharp :: c# how to disable a event 
Csharp :: C# program to find sum of array elements 
Csharp :: array of objects c# 
Csharp :: c# skip debug attribute 
Csharp :: how to show enum name list from input in swagger c# 
Csharp :: IEqualityComparer gethashcode strings c# 
Csharp :: SendFileAsync discord 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =