From 90cc76e6c7c098995b2cd07d9165215c6c78b9b6 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 17 Jun 2015 07:43:37 -0400 Subject: [PATCH] feature(edit) fontSize: style -> setOption --- lib/client/edit.js | 7 +++++-- package.json | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/client/edit.js b/lib/client/edit.js index 0af8b638..486b628d 100644 --- a/lib/client/edit.js +++ b/lib/client/edit.js @@ -58,7 +58,7 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO, Format, edward; style : 'width : 100%;' + 'height : 100%;' + - 'font : 16px "Droid Sans Mono";' + + 'font-family: "Droid Sans Mono";' + 'position : absolute;', notAppend : true }); @@ -87,7 +87,10 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO, Format, edward; edward.setValueFirst(path, data); setMsgChanged(name); - edward.setModeForPath(name); + + edward + .setModeForPath(name) + .setOption('fontSize', 16); CloudCmd.View.show(Element, ConfigView); } diff --git a/package.json b/package.json index 3f91f95d..334adf59 100644 --- a/package.json +++ b/package.json @@ -36,8 +36,8 @@ "checkup": "~1.3.0", "console-io": "~2.2.0", "copymitter": "~1.8.0", - "dword": "~1.6.0", - "edward": "~1.6.0", + "dword": "~1.7.0", + "edward": "~1.7.0", "execon": "~1.2.0", "express": "~4.12.0", "faust": "~1.0.0",