Browse files

Bug fix (shift-tab wasn't working on write mode)

  • Loading branch information...
1 parent bed0ce9 commit a079bf68d4ad1f353b2bef174899578657fe85bd @dmfrancisco committed Jul 13, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 public/js/script.js
View
5 public/js/script.js
@@ -505,13 +505,14 @@ var escrito = function () {
// Handlers to show & hide toolbar
initToolbar();
+ /* Create the editor */
+ editor = ace.edit("editor");
+
// Iphone switch
$('#switch').iphoneSwitch("on", previewOn, writeOn,
$('textarea'), $('#import-button'), { switch_path: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAAYCAYAAAAxkDmIAAAACXBIWXMAAAsTAAALEwEAmpwYAAAEc0lEQVRoBdVaSy8sQRQ+M5rBio3YEBbikSB2FmJBIpF4/Aj+gF9w7/1JbGY2LFja4A4hglgi8Vh4jMfM7a/uPX2P1nqqqnsmNZV06vWdU+dRp7qqujOTk5M/BwYGcuRguru7K83Ozv7Y3d2l7u5uymQyTkhZqVTo9vaWxsfHaXNz81dnZ6eT9js9PS15HR0dNDU1RS8vL8p4ra2tn8poRF+4XeIZgxw4ruvQxGF2dnbo/v6eVldXaWRkhGBYJDiay37Nb/naLjGyHIWX/bIcheXxj46OKJ/Pk8v2u7m5Ia+vry9wKIRnx9mUbWjixoNsMODg4CBdXl6CvTPJX/Vof3+fcrlcIptJ/aGcrCctw35ZZywWI4hUNAZW167X19e6jmc7mFcul8VyZ8umNnQs2/Pzc20GSMC1VCopu7GMCVjVjBSyeTXjnhJjvGvf3t4Sc8O7ldP/9ze3mOfsYHPK+lKoCK7vkPqjcXQgt03ZbJY8z1MPyuD1/v6uniR805DNViddOsjYEA5GtDQ1NenqFeBA09bWRldXV7S1tUXHx8c0PDxMMzMz1NXVRVj6Pz4+ArxJgSM4ySQxGc8GqxxsQ1hPGiynENTUwYjW9vZ2Wl9fV85taWlRUVwsFung4ICmp6dpfn6eHh8fFX9TnSBTGku96bim+KzrM5AdbKpYc3OzitxCoaAmB5ZpOB3vYuTb29uEcyJwNokd7Lr9GuKYZHokgRNxPi3kCypq4cSMuhDxr0T+XZbAqXAycHIDputsU5l0+aaNa4hdtE2UwKm/i7+Dpb3i33ZVyn9vvNjJJycniSM4bYekza8hIpgdYqr86Oioer9iI8U7Z+SYMHiGhoZMWQZ4W5kCBnUqqHcwRwgrLseWfWiPwzCdCY3EclnyQZuNMXF2Xl5eJux2sZyijgcORh3P3Nyc9RkbMkE2fqrZhnWTeKknl5lPOGd6xnFd5lyWGLVEoyOqk4E8mA7GhiaOLwwJp5gk0MCx/f39tLCwoD4KYBcu37WLi4vU09OjNmI2E0jK5LL9Is/BcQZnQ1fDhPtBF24L18MY9EdhWIa4HNGKL1ErKyvkf3KkjY0NwhFpbGyMlpaWqLe3V+2igbNNWPqj5Au3hesYL9xWra5DE8aAZ0NssnCsMU1QDmdcRCe+Ja+trakNF5yC9uvra3p6evpiaN1xIJNN5OvyTwsXRHB4BmEANiz6UK6GsaGJ44vxeLm1UZidieXa/3kg0AHLK54ofXTHCd9kRfFywX7BOzhKMSm0LEtsuF3WZfk7Gh2MpDUtgz9vspg27cjT0UEHA/kkTpZZdlOM80s0FJKbI6moSTltp6Yhk4n8tli1RH83U2yZpkUHueAYV+Vj2VyVD3KZ717S8p4mHxjRxWhx1alhs6ol2sVfYlhQHGPOz8/VBokvKmBcOJ6dr2aqwU7bBM9YTDJsmvDRAtegFxcXwTWny/bz8Pvn2dkZ29OpHLvgiYkJ2tvbU2dWV4TDxILd/F+O6fDwkB4eHlwR7ZMckPEP561S77cf6FYAAAAASUVORK5CYII=' }); // switch_path: '/images/switch.png'
/* Configure and start the editor */
- editor = ace.edit("editor");
-
editor.setReadOnly(true);
editor.session.setUseWrapMode(true);
editor.setShowPrintMargin(false);

0 comments on commit a079bf6

Please sign in to comment.