mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-08-13 12:12:44 -06:00
parent
3e8830de82
commit
6e48fc293c
@ -4,7 +4,10 @@ All notable changes to easymde will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
<!--## [Unreleased]-->
|
## [Unreleased]
|
||||||
|
### Changed
|
||||||
|
- Set `previewImagesInEditor` option to `false` by default ([#251]).
|
||||||
|
|
||||||
## [2.12.0] - 2020-09-29
|
## [2.12.0] - 2020-09-29
|
||||||
### Added
|
### Added
|
||||||
- `this` context in imageUploadFunction (Thanks to [@JoshuaLicense], [#225]).
|
- `this` context in imageUploadFunction (Thanks to [@JoshuaLicense], [#225]).
|
||||||
@ -167,6 +170,7 @@ Project forked from [SimpleMDE](https://github.com/sparksuite/simplemde-markdown
|
|||||||
- Cursor not always showing in "text" mode over the edit field
|
- Cursor not always showing in "text" mode over the edit field
|
||||||
|
|
||||||
<!-- Linked issues -->
|
<!-- Linked issues -->
|
||||||
|
[#251]: https://github.com/Ionaru/easy-markdown-editor/issues/251
|
||||||
[#239]: https://github.com/Ionaru/easy-markdown-editor/issues/239
|
[#239]: https://github.com/Ionaru/easy-markdown-editor/issues/239
|
||||||
[#178]: https://github.com/Ionaru/easy-markdown-editor/issues/178
|
[#178]: https://github.com/Ionaru/easy-markdown-editor/issues/178
|
||||||
[#136]: https://github.com/Ionaru/easy-markdown-editor/issues/136
|
[#136]: https://github.com/Ionaru/easy-markdown-editor/issues/136
|
||||||
|
@ -2084,11 +2084,11 @@ EasyMDE.prototype.render = function (el) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function handleImages() {
|
function handleImages() {
|
||||||
if (options.previewImagesInEditor === false) {
|
if (!options.previewImagesInEditor) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
function calcHeight(naturalWidth, naturalHeight) {
|
function calcHeight(naturalWidth, naturalHeight) {
|
||||||
var height;
|
var height;
|
||||||
var viewportWidth = window.getComputedStyle(document.querySelector('.CodeMirror-sizer')).width.replace('px', '');
|
var viewportWidth = window.getComputedStyle(document.querySelector('.CodeMirror-sizer')).width.replace('px', '');
|
||||||
@ -2126,8 +2126,6 @@ EasyMDE.prototype.render = function (el) {
|
|||||||
handleImages();
|
handleImages();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.onWindowResize = function() {
|
this.onWindowResize = function() {
|
||||||
handleImages();
|
handleImages();
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user