Skip to content

Instantly share code, notes, and snippets.

View butsjoh's full-sized avatar

Buts Johan butsjoh

  • Younited
  • Belgium
View GitHub Profile
@butsjoh
butsjoh / gist:fbe4c824fef939f0911d
Last active March 26, 2022 12:21
Quill popover toolbar (when performing a selection it will show)
var QuillExtend = function(child, parent) { for (var key in parent) { if ({}.hasOwnProperty.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
PopoverToolbar = (function(superClass) {
QuillExtend(PopoverToolbar, superClass);
var _ = Quill.require('lodash');
var dom = Quill.require('dom');
// lodash has debounce but quill is not adding it in his dist
var debounce = function debounce(fn, quietMillis, ctx) {
@butsjoh
butsjoh / jquery.textchange.js
Created September 1, 2010 10:17 — forked from mkelly12/jquery.textchange.js
Added click event to support html5 input type="search"
/*!
* jQuery TextChange Plugin
* http://www.zurb.com/playground/jquery-text-change-custom-event
*
* Copyright 2010, ZURB
* Released under the MIT License
*/
(function ($) {
$.event.special.textchange = {