@@ -9,7 +9,7 @@ import useNoteSearchBar from './utils/useNoteSearchBar';
99import useMessageHandler from './utils/useMessageHandler' ;
1010import useWindowCommandHandler from './utils/useWindowCommandHandler' ;
1111import useDropHandler from './utils/useDropHandler' ;
12- import useMarkupToHtml from './utils /useMarkupToHtml' ;
12+ import useMarkupToHtml from '../hooks /useMarkupToHtml' ;
1313import useFormNote , { OnLoadEvent , OnSetFormNote } from './utils/useFormNote' ;
1414import useEffectiveNoteId from './utils/useEffectiveNoteId' ;
1515import useFolder from './utils/useFolder' ;
@@ -45,7 +45,6 @@ import PlainEditor from './NoteBody/PlainEditor/PlainEditor';
4545import CodeMirror6 from './NoteBody/CodeMirror/v6/CodeMirror' ;
4646import CodeMirror5 from './NoteBody/CodeMirror/v5/CodeMirror' ;
4747import { openItemById } from './utils/contextMenu' ;
48- import getPluginSettingValue from '@joplin/lib/services/plugins/utils/getPluginSettingValue' ;
4948import { MarkupLanguage } from '@joplin/renderer' ;
5049import useScrollWhenReadyOptions from './utils/useScrollWhenReadyOptions' ;
5150import useScheduleSaveCallbacks from './utils/useScheduleSaveCallbacks' ;
@@ -180,7 +179,7 @@ function NoteEditorContent(props: NoteEditorProps) {
180179 whiteBackgroundNoteRendering,
181180 customCss : props . customCss ,
182181 plugins : props . plugins ,
183- settingValue : getPluginSettingValue ,
182+ scrollbarSize : props . scrollbarSize ,
184183 } ) ;
185184
186185 // eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
@@ -200,9 +199,10 @@ function NoteEditorContent(props: NoteEditorProps) {
200199 return markupToHtml . allAssets ( markupLanguage , theme , {
201200 contentMaxWidth : props . contentMaxWidth ,
202201 contentMaxWidthTarget : options . contentMaxWidthTarget ,
202+ scrollbarSize : props . scrollbarSize ,
203203 whiteBackgroundNoteRendering : options . whiteBackgroundNoteRendering ,
204204 } ) ;
205- } , [ props . themeId , props . customCss , props . contentMaxWidth ] ) ;
205+ } , [ props . themeId , props . scrollbarSize , props . customCss , props . contentMaxWidth ] ) ;
206206
207207 const handleProvisionalFlag = useCallback ( ( ) => {
208208 if ( props . isProvisional ) {
@@ -494,6 +494,7 @@ function NoteEditorContent(props: NoteEditorProps) {
494494 plugins : props . plugins ,
495495 fontSize : Setting . value ( 'style.editor.fontSize' ) ,
496496 contentMaxWidth : props . contentMaxWidth ,
497+ scrollbarSize : props . scrollbarSize ,
497498 isSafeMode : props . isSafeMode ,
498499 useCustomPdfViewer : props . useCustomPdfViewer ,
499500 // We need it to identify the context for which media is rendered.
@@ -747,6 +748,7 @@ const mapStateToProps = (state: AppState, ownProps: ConnectProps) => {
747748 'setTags' ,
748749 ] , whenClauseContext ) [ 0 ] as ToolbarButtonInfo ,
749750 contentMaxWidth : state . settings [ 'style.editor.contentMaxWidth' ] ,
751+ scrollbarSize : state . settings [ 'style.scrollbarSize' ] ,
750752 isSafeMode : state . settings . isSafeMode ,
751753 useCustomPdfViewer : false ,
752754 syncUserId : state . settings [ 'sync.userId' ] ,
0 commit comments