diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-02-07 11:20:00 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-02-07 11:20:00 -0500 |
| commit | ebe49c97523205a7764182c45fa213aae79e844e (patch) | |
| tree | a5c0629c38f4e7513d3842f2535fb1cec30c1beb | |
| parent | 7c1e99bb1bc6c2a89bc42fb9c295933f38ac9e0c (diff) | |
switchin to other com
| -rw-r--r-- | js/app.js | 2 | ||||
| -rw-r--r-- | js/clipboard.js | 7 |
2 files changed, 8 insertions, 1 deletions
@@ -46,7 +46,7 @@ function bind () { if (selecting) { selection.up(e) } - }); + }) window.addEventListener('mousedown', function(e){ if (current_tool.name == "shader") { return } diff --git a/js/clipboard.js b/js/clipboard.js index 66c0c67..6169b56 100644 --- a/js/clipboard.js +++ b/js/clipboard.js @@ -87,6 +87,13 @@ var clipboard = (function () { }, import_html: function () { + var rapper = document.createElement("div") + rapper.innerHTML = import_textarea.value + var lines = rapper.innerText.split("\n") + var width = lines.reduce(function(a,b){ return Math.max(a, b.length) }) + var height = lines.length + zz = rapper.children + rapper }, import_text: function () { |
