X-Git-Url: https://jasonwoof.com/gitweb/?p=peach-html5-editor.git;a=blobdiff_plain;f=editor.coffee;h=2bb3d99a56bad35003d1f3f912485d277b877b00;hp=47adbd8371972272208d61e7d214ee48511d9e7e;hb=a8c1cd27ec47a79a0c566f9437abaff6bf248884;hpb=998c004f81244203fade51a4b014ed794f7746cc diff --git a/editor.coffee b/editor.coffee index 47adbd8..2bb3d99 100644 --- a/editor.coffee +++ b/editor.coffee @@ -76,13 +76,6 @@ multi_sp_regex = new RegExp '[\u0020\u0009\u000a\u000c\u000d][\u0020\u0009\u000a str_has_ws_run = (str) -> return multi_sp_regex.test str -debug_dot_at = (doc, x, y) -> - return # disabled - el = doc.createElement 'div' - el.setAttribute 'style', "position: absolute; left: #{x}px; top: #{y}px; width: 1px; height: 3px; background-color: red" - doc.body.appendChild el - #console.log(new Error().stack) - # text nodes don't have getBoundingClientRect(), so use selection api to find # it. get_el_bounds = window.bounds = (el) ->