Skip to content
This repository was archived by the owner on Oct 2, 2018. It is now read-only.

Commit 89b5bb0

Browse files
author
Joshua Smith
committed
Word wrap.
1 parent c925360 commit 89b5bb0

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

js/firetext.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function initSharing() {
118118
if (getSettings('dropbox.enabled') == 'true') {
119119
// Auth
120120
dropAPI.client.authenticate(function(error, client) {
121-
if (!error) {
121+
if (!error && client) {
122122
// Set client
123123
dropboxClient = client;
124124
window.dispatchEvent(dropboxAuthed);
@@ -779,7 +779,7 @@ function initEditor() {
779779
doc = document.createElement('DIV');
780780
doc.setAttribute('contentEditable', 'true');
781781
doc.id = 'tempEditDiv';
782-
doc.setAttribute('style','border: none; padding: 10px; font-size: 20px; outline: none; min-height: calc(100% - 20px);');
782+
doc.setAttribute('style','border: none; padding: 10px; font-size: 20px; outline: none; min-height: calc(100% - 20px); word-wrap: break-word;');
783783
editor.contentWindow.document.body.appendChild(doc);
784784
doc = editor.contentWindow.document.getElementById('tempEditDiv');
785785
editor.contentWindow.document.execCommand('styleWithCSS', false, 'true');

style/editor.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
outline: none;
2323
width: 100%;
2424
height: calc(100% - 5rem - 40px);
25+
word-wrap: break-word;
2526
}
2627

2728
.editor.no-toolbar {

0 commit comments

Comments
 (0)