summaryrefslogtreecommitdiff
path: root/js/clipboard.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/clipboard.js')
-rw-r--r--js/clipboard.js7
1 files changed, 7 insertions, 0 deletions
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 () {