From ebe49c97523205a7764182c45fa213aae79e844e Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 7 Feb 2015 11:20:00 -0500 Subject: switchin to other com --- js/app.js | 2 +- js/clipboard.js | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index e9ed28f..5a61bde 100644 --- a/js/app.js +++ b/js/app.js @@ -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 () { -- cgit v1.2.3-70-g09d2