diff --git a/README.md b/README.md index 000a326..1efcda7 100644 --- a/README.md +++ b/README.md @@ -131,6 +131,7 @@ easyMDE.value('New input for **EasyMDE**'); - **bold**: Can be set to `**` or `__`. Defaults to `**`. - **code**: Can be set to ```` ``` ```` or `~~~`. Defaults to ```` ``` ````. - **italic**: Can be set to `*` or `_`. Defaults to `*`. +- **scrollbarStyle**: Chooses a scrollbar implementation. The default is "native", showing native scrollbars. The core library also provides the "null" style, which completely hides the scrollbars. Addons can implement additional scrollbar models. - **element**: The DOM element for the TextArea to use. Defaults to the first TextArea on the page. - **forceSync**: If set to `true`, force text changes made in EasyMDE to be immediately stored in original text area. Defaults to `false`. - **hideIcons**: An array of icon names to hide. Can be used to hide specific icons shown by default without completely customizing the toolbar. diff --git a/src/js/easymde.js b/src/js/easymde.js index bddcc10..b9aa609 100644 --- a/src/js/easymde.js +++ b/src/js/easymde.js @@ -2041,6 +2041,7 @@ EasyMDE.prototype.render = function (el) { allowDropFileTypes: ['text/plain'], placeholder: options.placeholder || el.getAttribute('placeholder') || '', styleSelectedText: (options.styleSelectedText != undefined) ? options.styleSelectedText : !isMobile(), + scrollbarStyle: (options.scrollbarStyle != undefined) ? options.scrollbarStyle : 'native', configureMouse: configureMouse, inputStyle: (options.inputStyle != undefined) ? options.inputStyle : isMobile() ? 'contenteditable' : 'textarea', spellcheck: (options.nativeSpellcheck != undefined) ? options.nativeSpellcheck : true, diff --git a/types/easymde.d.ts b/types/easymde.d.ts index 8963537..98a6a95 100644 --- a/types/easymde.d.ts +++ b/types/easymde.d.ts @@ -200,6 +200,7 @@ declare namespace EasyMDE { toolbarTips?: boolean; onToggleFullScreen?: (goingIntoFullScreen: boolean) => void; theme?: string; + scrollbarStyle?: string; uploadImage?: boolean; imageMaxSize?: number;