From 78777127a02b4d00d0bdd0d1aa9da3ba2fbb7687 Mon Sep 17 00:00:00 2001 From: Pawel Szymczykowski Date: Mon, 6 Apr 2015 11:39:40 -0700 Subject: [PATCH] WIP of contenteditable support --- css/jquery.emojipicker.css | 8 +++ demo.html | 8 +-- js/jquery.emojipicker.js | 140 +++++++++++++++++++++++++++++++++---- 3 files changed, 137 insertions(+), 19 deletions(-) diff --git a/css/jquery.emojipicker.css b/css/jquery.emojipicker.css index 0eb74f7..771e1c8 100644 --- a/css/jquery.emojipicker.css +++ b/css/jquery.emojipicker.css @@ -18,3 +18,11 @@ .emojiPicker section {overflow:scroll; position:relative; z-index:10; background:#fff;} .emojiPicker section div {width:40px; float:left; margin:3%;} .emojiPicker section div:hover {cursor:pointer;} + +.emojiArea { + display: inline-block; + background-color: white; + -moz-appearance: textfield-multiline; + -webkit-appearance: textarea; + text-align: left; +} diff --git a/demo.html b/demo.html index 64ed16c..7d00ad5 100644 --- a/demo.html +++ b/demo.html @@ -14,14 +14,14 @@ $(document).ready(function(e) { $('.emojiable-question').emojiPicker({ - width: '300px', - height: '200px', + width: '260px', + height: '170px', button: false }); $('.emojiable-option').emojiPicker({ width: '200px', - height: '100px' + height: '140px' }); $('#trigger').click(function(e) { @@ -34,7 +34,7 @@