bililiteRange

bililiteRange is a javascript library that abstracts text selection and replacement.

当前为 2020-08-31 提交的版本,查看 最新版本

此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.gf.qytechs.cn/scripts/24818/843106/bililiteRange.js

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
darkred
版本
0.0.1.20200831212503
创建于
2016-11-13
更新于
2020-08-31
大小
22.2 KB
许可证
暂无

bililiteRange

Github repo: https://github.com/dwachss/bililiteRange

bililiteRange is a javascript library that abstracts text selection and replacement.

The basic function is in bililiteRange.js, with the documentation at http://bililite.com/blog/2011/01/17/cross-browser-text-ranges-and-selections/

The other files are assorted javascript libraries that use bililiteRange:

bililiteRange.ex.js: Implements the ex line-editor ( http://ex-vi.sourceforge.net/ex.html ). Depends on the util and undo libraries below. Documentation at http://bililite.com/blog/2014/04/03/new-bililiterange-plugin-ex/

bililiteRange.fancytext.js: Uses bililiteRange to allow using the Prism syntax highlighter (prismjs.com) to create a simple syntax-highlighting text editor. Documentation at http://bililite.com/blog/2013/12/16/simple-syntax-highlighting-editor-with-prism/ bililiteRange.fancytextasync.js: Like fancytext but allows stacking multiple highlighters asynchronolously.

bililiteRange.util.js: Adds useful functions for searching and keeping the ranges up-to-date with changes in the underlying text. Documentation at http://bililite.com/blog/2013/02/08/bililiterange-plugins/

bililiteRange.undo.js: Adds an undo/redo stack to editable elements. Documentation at http://bililite.com/blog/2013/12/25/bililiterange-undo/

jquery.jsvk.js: A jQuery plugin to use Ilya Lebedev's JavaScript VirtualKeyboard (http://www.allanguages.info/). Depends on bililiteRange for character insertion. Documentation at http://bililite.com/blog/2013/01/30/jsvk-a-jquery-plugin-for-virtualkeyboard/

jquery.keymap.js: Not really part of the bililiteRange family, but I use them together. A jQuery plugin to turn keydown codes into understandable characters. Also includes a "hotkeys" plugin that allows keystroke handlers for specific keys, like $(el).on('keydown', {keys: '^A'}, function(){}) . Documentation at http://bililite.com/blog/2015/01/12/rethinking-keymap/

jquery.livesearch.js: jQuery plugin to do "live" searching for a regular expression; highlights the text found and scrolls to it as you type. Documentation at http://bililite.com/blog/2013/03/07/new-jquery-plugin-livesearch/

jquery.savemonitor.js: jQuery plugin to track when an element changes and when it is saved. Documentation at http://bililite.com/blog/2014/01/16/new-jquery-plugin-savemonitor/

jquery.sendkeys.js: jQuery plugin to simulate keypresses. Documentation at http://bililite.com/blog/2015/01/14/rethinking-fn-sendkeys/

jquery.status.js: jQuery plugin to display messages and get user input. Documentation at http://bililite.com/blog/2013/12/12/new-jquery-plugin-status/

The other files are not mature and are not documented at all.