mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-06-28 05:31:06 -06:00
Merge pull request #250 from danice/scrollbar-styles
Include Codemirror scrollbar style property
This commit is contained in:
commit
f286a6bae5
@ -131,6 +131,7 @@ easyMDE.value('New input for **EasyMDE**');
|
|||||||
- **bold**: Can be set to `**` or `__`. Defaults to `**`.
|
- **bold**: Can be set to `**` or `__`. Defaults to `**`.
|
||||||
- **code**: Can be set to ```` ``` ```` or `~~~`. Defaults to ```` ``` ````.
|
- **code**: Can be set to ```` ``` ```` or `~~~`. Defaults to ```` ``` ````.
|
||||||
- **italic**: 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.
|
- **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`.
|
- **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.
|
- **hideIcons**: An array of icon names to hide. Can be used to hide specific icons shown by default without completely customizing the toolbar.
|
||||||
|
@ -2041,6 +2041,7 @@ EasyMDE.prototype.render = function (el) {
|
|||||||
allowDropFileTypes: ['text/plain'],
|
allowDropFileTypes: ['text/plain'],
|
||||||
placeholder: options.placeholder || el.getAttribute('placeholder') || '',
|
placeholder: options.placeholder || el.getAttribute('placeholder') || '',
|
||||||
styleSelectedText: (options.styleSelectedText != undefined) ? options.styleSelectedText : !isMobile(),
|
styleSelectedText: (options.styleSelectedText != undefined) ? options.styleSelectedText : !isMobile(),
|
||||||
|
scrollbarStyle: (options.scrollbarStyle != undefined) ? options.scrollbarStyle : 'native',
|
||||||
configureMouse: configureMouse,
|
configureMouse: configureMouse,
|
||||||
inputStyle: (options.inputStyle != undefined) ? options.inputStyle : isMobile() ? 'contenteditable' : 'textarea',
|
inputStyle: (options.inputStyle != undefined) ? options.inputStyle : isMobile() ? 'contenteditable' : 'textarea',
|
||||||
spellcheck: (options.nativeSpellcheck != undefined) ? options.nativeSpellcheck : true,
|
spellcheck: (options.nativeSpellcheck != undefined) ? options.nativeSpellcheck : true,
|
||||||
|
1
types/easymde.d.ts
vendored
1
types/easymde.d.ts
vendored
@ -200,6 +200,7 @@ declare namespace EasyMDE {
|
|||||||
toolbarTips?: boolean;
|
toolbarTips?: boolean;
|
||||||
onToggleFullScreen?: (goingIntoFullScreen: boolean) => void;
|
onToggleFullScreen?: (goingIntoFullScreen: boolean) => void;
|
||||||
theme?: string;
|
theme?: string;
|
||||||
|
scrollbarStyle?: string;
|
||||||
|
|
||||||
uploadImage?: boolean;
|
uploadImage?: boolean;
|
||||||
imageMaxSize?: number;
|
imageMaxSize?: number;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user