Greasy Fork is available in English.

bililiteRange

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

Script này sẽ không được không được cài đặt trực tiếp. Nó là một thư viện cho các script khác để bao gồm các chỉ thị meta // @require https://update.greasyfork.org/scripts/24818/1157718/bililiteRange.js

Tác giả
darkred
Phiên bản
0.0.1.20230306035217
Đã tạo
13-11-2016
Đã cập nhật
06-03-2023
Giấy phép
N/A

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.