From 9e589418635e28b9e80db0cc7af928c4b25fea9e Mon Sep 17 00:00:00 2001 From: da-ff Date: Sun, 14 Apr 2013 22:01:14 +0400 Subject: [PATCH] read data-* attributes read data-* attributes --- src/bootstrap-wysihtml5.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap-wysihtml5.js b/src/bootstrap-wysihtml5.js index 695d264..7afe8d3 100644 --- a/src/bootstrap-wysihtml5.js +++ b/src/bootstrap-wysihtml5.js @@ -350,7 +350,7 @@ }); }, shallowExtend: function (options) { - var settings = $.extend({}, $.fn.wysihtml5.defaultOptions, options || {}); + var settings = $.extend({}, $.fn.wysihtml5.defaultOptions, options || {}, $(this).data()); var that = this; return methods.bypassDefaults.apply(that, [settings]); },