@@ -100,7 +100,7 @@ const Notes = props => {
100100 }
101101
102102 setNote ( note => {
103- const newNote = { ...note , description : content } ;
103+ const newNote = { ...note , description : content } ;
104104 updateNote ( newNote , csrf ) ;
105105 return newNote ;
106106 } ) ;
@@ -125,32 +125,39 @@ const Notes = props => {
125125 </ div >
126126 ) : (
127127 < >
128- < div style = { { display :"none" } } data-testid = "tiny-mce-checkin-notes" />
129- < Editor
130- apiKey = "246ojmsp6c7qtnr9aoivktvi3mi5t7ywuf0vevn6wllfcn9e"
131- id = "tiny-mce-checkin-notes"
132- value = { note && note . description ? note . description : '' }
133- onEditorChange = { handleNoteChange }
134- readOnly = {
135- currentCheckin ?. completed ||
136- note === undefined ||
137- Object . keys ( note ) === 0
138- }
139- init = { {
140- promotion : false ,
141- plugins : 'lists' ,
142- toolbar :
143- 'undo redo | blocks | ' +
144- 'bold italic underline strikethrough forecolor | alignleft aligncenter ' +
145- 'alignright alignjustify | bullist numlist outdent indent | ' +
146- 'removeformat | help' ,
147- skin : document . querySelector ( '[data-dark]' ) ? 'oxide-dark' : 'oxide' ,
148- content_css : document . querySelector ( '[data-dark]' ) ? 'dark' : 'default'
149- } }
150- tinymceScriptSrc = {
151- import . meta. env . VITE_APP_API_URL + '/js/tinymce/tinymce.min.js'
152- }
153- />
128+ < div
129+ style = { { display : 'none' } }
130+ data-testid = "tiny-mce-checkin-notes"
131+ />
132+ < Editor
133+ apiKey = "246ojmsp6c7qtnr9aoivktvi3mi5t7ywuf0vevn6wllfcn9e"
134+ id = "tiny-mce-checkin-notes"
135+ value = { note && note . description ? note . description : '' }
136+ onEditorChange = { handleNoteChange }
137+ readOnly = {
138+ currentCheckin ?. completed ||
139+ note === undefined ||
140+ Object . keys ( note ) === 0
141+ }
142+ init = { {
143+ promotion : false ,
144+ plugins : 'lists' ,
145+ toolbar :
146+ 'undo redo | blocks | ' +
147+ 'bold italic underline strikethrough forecolor | alignleft aligncenter ' +
148+ 'alignright alignjustify | bullist numlist outdent indent | ' +
149+ 'removeformat | help' ,
150+ skin : document . querySelector ( '[data-dark]' )
151+ ? 'oxide-dark'
152+ : 'oxide' ,
153+ content_css : document . querySelector ( '[data-dark]' )
154+ ? 'dark'
155+ : 'default'
156+ } }
157+ tinymceScriptSrc = {
158+ import . meta. env . VITE_APP_API_URL + '/js/tinymce/tinymce.min.js'
159+ }
160+ />
154161 </ >
155162 ) }
156163 </ CardContent >
0 commit comments