Skip to content

Instantly share code, notes, and snippets.

@Hajto
Last active June 10, 2016 09:21
Show Gist options
  • Save Hajto/9a89373720ac0b3c84650ff4ef2f7d39 to your computer and use it in GitHub Desktop.
Save Hajto/9a89373720ac0b3c84650ff4ef2f7d39 to your computer and use it in GitHub Desktop.
var Editor = function(el){
this.element = el;
this.cursors = [];
this.lines = [];
this.creatLine = function (linenum){
var that = this;
var el = document.creatElement("p")
el.adEvenListener("click",function(){
//that to ten obiekt
},true);
}
}
var edit = new Editr(document.geElemntByClassName("editor")[0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment