froala custom drop down to insert html snippet

I'm trying to make a custom dropdown in froala wysiwyg html editor and it works nicely.

Is it possible to insert a snippet of HTML when I click the item inside the dropdown? How is it done?

Answers


Yes. You have to call the insertHTML method. See http://jsbin.com/leheruku/4/.

customDropdowns: {
  my_dropdown: {
    title: 'Dropdown',
    icon: {
      type: 'font',
      value: 'fa fa-star'
    },
    options: {
      'Insert HTML': function(){
        $('#edit').editable('insertHTML', 'your custom HTML');
      }
    }
  }
}

Need Your Help

using c# to select a worksheet in excel

c# .net excel excel-2007 office-interop

Using C# in .NET 3.5 with Visual Studio 2008, I am trying to set focus (or activate) a specific worksheet in an open workbook:

Parse HTML list using JSoup to create Tree structure

java html jsoup

I have HTML lists with the exact same structure that I need to parse using JSoup (my language is Java). Here's an example:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.