selo
v1.1.0
Published
This repository contains of text selection custom event.
Downloads
52
Maintainers
Readme
##Selo
Selo is a trigger end of the custom selection text and fires event. see
####İnstall
npm i selo -S
##Set properties & Use
<script src="selopath/selo.min.js"></script>
//or
var Selo = require('selo');
//or
import Selo from 'require'
var Selo = new Selo({
log:false,
els : '.arena'
});
document.addEventListener('selectionEnd',function () {
console.log("End",Selo.getPositionRange())
document.querySelector('span').innerText = "End"
})
document.addEventListener('selectionStart',function () {
console.log("Start")
document.querySelector('span').innerText = "Start"
})
document.addEventListener('selectionBeforeStart',function () {
console.log("Before Start")
document.querySelector('span').innerText = "Before Start"
})