mirror of
https://kevinblog.sytes.net/Code/Jibo-Revival-Group/JiboViteDocs.git
synced 2026-06-15 22:56:25 +00:00
21 lines
462 B
JavaScript
21 lines
462 B
JavaScript
import Mark from './lib/mark';
|
|
import $ from 'jquery';
|
|
|
|
$.fn.mark = function(sv, opt) {
|
|
new Mark(this.get()).mark(sv, opt);
|
|
return this;
|
|
};
|
|
$.fn.markRegExp = function(regexp, opt) {
|
|
new Mark(this.get()).markRegExp(regexp, opt);
|
|
return this;
|
|
};
|
|
$.fn.markRanges = function(ranges, opt) {
|
|
new Mark(this.get()).markRanges(ranges, opt);
|
|
return this;
|
|
};
|
|
$.fn.unmark = function(opt) {
|
|
new Mark(this.get()).unmark(opt);
|
|
return this;
|
|
};
|
|
|
|
export default $; |