From 4dd721cad60bcce100f43c3474e82e73b1447048 Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 19 Sep 2017 21:49:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=8C=E6=96=87=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bi/base.js | 340 ++++++++++++++---- dist/base.js | 340 ++++++++++++++---- dist/bundle.js | 340 ++++++++++++++---- dist/bundle.min.js | 76 ++-- ...ton.richeditor.js => action.richeditor.js} | 11 +- .../richeditor/bar/action.richeditor.param.js | 111 ++++++ src/base/richeditor/niceditor/niceditor.js | 22 +- src/base/richeditor/plugins/button.param.js | 53 +-- src/third/jquery.splendid.textchange.js | 145 ++++++++ 9 files changed, 1136 insertions(+), 302 deletions(-) rename src/base/richeditor/bar/{button.richeditor.js => action.richeditor.js} (87%) create mode 100644 src/base/richeditor/bar/action.richeditor.param.js create mode 100644 src/third/jquery.splendid.textchange.js diff --git a/bi/base.js b/bi/base.js index 8b721b6e7..864689b66 100644 --- a/bi/base.js +++ b/bi/base.js @@ -200,6 +200,150 @@ } }));/** + * jQuery "splendid textchange" plugin + * http://benalpert.com/2013/06/18/a-near-perfect-oninput-shim-for-ie-8-and-9.html + * + * (c) 2013 Ben Alpert, released under the MIT license + */ + +(function($) { + + var testNode = document.createElement("input"); + var isInputSupported = "oninput" in testNode && + (!("documentMode" in document) || document.documentMode > 9); + + var hasInputCapabilities = function(elem) { + // The HTML5 spec lists many more types than `text` and `password` on + // which the input event is triggered but none of them exist in IE 8 or + // 9, so we don't check them here. + // TODO: