2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-06-28 21:51:01 -06:00

132 Commits

Author SHA1 Message Date
adamb70
c83c593d58 Use .call() on the sanitize function 2020-02-04 18:21:54 +00:00
adamb70
9d2665b895 Allow custom sanitize function
Update README.md
2020-02-04 13:46:56 +00:00
firm1
b11cd8edb0 don't use down icon 2020-01-28 21:35:28 +01:00
firm1
26d2da9e29 @Ionaru 's review : disable actions on top of dropdown, add dropdown icon and open on clic 2020-01-28 18:55:25 +01:00
firm1
eea2917be1 @situphen 's review 2020-01-28 18:54:35 +01:00
firm1
98fbe56248 allow dropdown menu on toolbar to group secondary buttons 2020-01-28 18:54:35 +01:00
firm1
9ab45526a1 Merge remote-tracking branch 'origin/allow-options' into allow-options
# Conflicts:
#	CHANGELOG.md
2020-01-26 20:28:08 +01:00
firm1
b6301f3976 update Changelog and @situphen 's review ! 2020-01-26 20:26:32 +01:00
Jeroen Akkerman
f319bc3096 Merge branch 'master' into allow-options 2020-01-26 00:05:09 +01:00
Jeroen Akkerman
b4eca2a3d6 Add name to changelog and add non-breaking option 2020-01-25 23:36:13 +01:00
firm1
4245da6eae add two options inputStyle and nativeSpellcheck 2020-01-25 03:43:44 +01:00
Situphen
0dc4c2697e Differentiate between regular autosave delay and submit autosave delay 2020-01-20 21:44:16 +01:00
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