This repository was archived by the owner on Oct 2, 2018. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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' ) ;
Original file line number Diff line number Diff line change 2222 outline : none;
2323 width : 100% ;
2424 height : calc (100% - 5rem - 40px );
25+ word-wrap : break-word;
2526}
2627
2728.editor .no-toolbar {
You can’t perform that action at this time.
0 commit comments