Situphen
ef213175ce
Remove empty localStorage entries
2020-01-12 13:25:23 +01:00
Jeroen Akkerman
d5d99e166e
Merge branch 'master' into html_stay
2019-08-20 00:38:20 +02:00
Jeremy Fleischman
8a2283cf27
Bail out if there are no files to upload.
...
Without this change, if you either:
- Click and drag some text into the markdown editor, or
- Copy paste some text into the markdown editor
The status bar will get updated to say "Uploading image ...", and will
never stop.
2019-07-29 02:54:20 -07:00
Jeremy Fleischman
efb840c633
Fix openBrowseFileWindow
to also obey self.options.imageUploadFunction
if specified.
...
I think this part just got missed in
https://github.com/Ionaru/easy-markdown-editor/pull/106 .
I'm not sure if I should be doing anything with the `onSuccess` and
`onError` callbacks here.
2019-07-29 02:49:36 -07:00
Sebastián Pérez Pérez
0a5b0d3ac4
Allow custom upload function
2019-07-23 13:35:49 +01:00
Jeroen Akkerman
63a1825b6e
Log errors to console.error
2019-07-18 14:46:08 +02:00
Jeroen Akkerman
0558fb0d68
Increase timeout of error message to 10s
2019-07-18 14:29:54 +02:00
Jeroen Akkerman
65af615c9b
This PR will close #46 (super small edit to make that comment)
2019-07-18 12:43:10 +02:00
Jeroen Akkerman
917ea336c4
Pre-calculate max file size
2019-07-18 12:01:50 +02:00
Jeroen Akkerman
f1b6a42561
Auto-format of the code
2019-07-18 12:00:32 +02:00
Jeroen Akkerman
6c66b54e2a
Improve status bar logic
2019-07-18 11:45:39 +02:00
Jeroen van Oorschot
5f56c27ba7
update changelog
2019-07-16 11:01:05 +02:00
Jeroen van Oorschot
4f581b0c31
Show error message in status bar and reset status bar afterwards.
2019-07-15 22:29:11 +02:00
Jeroen van Oorschot
d9ee9c43d3
Allow server side error messages.
2019-07-15 22:04:02 +02:00
Jeroen van Oorschot
29d145a9b1
Add option for CSRF token on AJAX image upload
2019-07-15 21:39:49 +02:00
Jeroen van Oorschot
c54168a656
Fix status bar.
2019-07-15 15:52:43 +02:00
Jeroen van Oorschot
bbf3340581
IE11 compat. Fix status bar.
2019-07-15 15:11:07 +02:00
Jeroen van Oorschot
d317873fb0
update auxilary files and readme with 2.7.0
2019-07-15 13:24:58 +02:00
Jeroen van Oorschot
ff0db2000a
Merge with 2.7.0.
2019-07-15 11:37:22 +02:00
Andreas Richter
f831662fdd
Allow html to stay on preview page.
2019-06-26 11:06:00 -04:00
roryok
c75a5edc1e
remove console logging
2019-06-17 13:26:18 +01:00
roryok
8c443bf401
fix: untoggle ordered-list items first when toggling unordered-list items
2019-06-17 13:23:57 +01:00
Jeroen Akkerman
cc0c211759
Fixed shortcut code so links are opened as well.
2019-04-15 15:20:48 +02:00
ysykzheng
9e94709192
fix custom action shortcut not working
2019-03-26 23:36:17 +08:00
Nathanaël Jourdane
4ae7fc8bc9
Allow openBrowseFileWindow() external call with custom callback
2019-03-13 18:48:36 +01:00
Nathanaël Jourdane
6e35026a75
[wip upload-image] bugfix error message displayed twice
2019-03-12 16:07:55 +01:00
Nathanaël Jourdane
4ac86cc49d
[wip upload-image] use more generic error codes, so the server could be used to upload other files than images
2019-03-12 16:07:55 +01:00
Nathanaël Jourdane
5fa549d3b3
[wip upload-image] make onError optionnal
2019-03-11 18:17:29 +01:00
Nathanaël Jourdane
8eff45f7a0
[wip upload-image] image server is now supposed to return a json object
2019-03-11 17:19:27 +01:00
roipoussiere
6c8ce85ea9
Add errorCallback option
2019-03-07 20:41:45 +01:00
Nathanaël Jourdane
d374c5faec
[wip upload-image] Better errors support and small code improvements
2019-03-07 18:15:59 +01:00
Nathanaël Jourdane
9f33099b1c
Use textContent instead innerHTML when appropriate to avoid XSS
2019-03-07 11:31:48 +01:00
Nathanaël Jourdane
effc080bae
[wip upload-image] Allow image upload with copy-paste
2019-03-06 15:36:58 +01:00
Nathanaël Jourdane
fa2c299455
[wip upload-image] Refactoring: remove createImageInput(), set uploadImage() as a prototype, create uploadImages()
2019-03-06 15:35:52 +01:00
Nathanaël Jourdane
ad31ea565c
[wip upload-image] Display status messages about image upload in status bar.
2019-03-05 18:08:33 +01:00
Nathanaël Jourdane
3cb4a817f2
[wip upload-image] Allow image upload with drag&drop
2019-03-05 11:44:31 +01:00
Nathanaël Jourdane
e1536da530
[wip upload-image] bugfix error popup
2019-03-05 10:08:01 +01:00
Nathanaël
c7275aa72b
Merge branch 'master' into upload_images
2019-03-05 07:51:29 +01:00
Nathanaël Jourdane
aa39672e4e
[wip upload-image] After image upload, insert image markdown template with uploaded image url
2019-03-04 18:10:46 +01:00
Nathanaël Jourdane
3d1e33396f
[wip upload-image] Upload image when selecting it on browse-file window
2019-03-04 18:07:59 +01:00
Jeroen Akkerman
dd0e96b204
Improve icon class regex
2019-03-04 17:46:15 +01:00
Nathanaël Jourdane
11e613b3d5
[wip upload-image] Add image icon to open the browse-file window
2019-03-04 17:05:22 +01:00
Jeroen Akkerman
b14d7dda1c
Merge branch 'master' into bugfix/simplemde-compatibility
2019-03-04 15:43:47 +01:00
Nathanaël Jourdane
dec5ca1148
Set eslint rule comma-dangle to always-multiline and apply it
2019-02-28 17:29:06 +01:00
Nathanaël Jourdane
96c8c228b5
merge master
2019-02-28 16:01:58 +01:00
Nathanaël Jourdane
1c7ce2a0d4
Fill image and link prompts to 'https://' by default
2019-02-27 17:10:07 +01:00
Jeroen Akkerman
df530cf465
Change markdown guide link to open-source Markdown guide website.
2019-02-27 13:54:27 +01:00
Jeroen Akkerman
4556f4f1d3
Added latin extensions to wordCount pattern, fixes #61 .
2019-02-27 11:06:59 +01:00
Jeroen Akkerman
f50c96bc01
Small fixes for this change
...
* Removed redundant code.
* Renamed function to better reflect its behaviour.
* Marked `noDisable` and `noMobile` as optional.
2019-02-20 01:59:54 +01:00
Jeroen Akkerman
fa9ff580c4
Restore backwards compatibility with SimpleMDE, fixes #41
2019-02-20 01:41:53 +01:00