108 Commits

Author SHA1 Message Date
flarum-bot
c1308f395f Bundled output for commit 752c43376e8fccffea7dbf3fdbbcc4c964c49798 [skip ci] 2021-03-11 00:24:16 +00:00
Alexander Skvortsov
752c43376e Run oninput and input listeners on timeout
This is necessary for the setTimeout callback to be run after the new value has been applied; otherwise, mobile iOS doesn't respect the timeout.

Fixes https://github.com/flarum/core/issues/2681
2021-03-10 19:23:27 -05:00
flarum-bot
3f7fb66502 Bundled output for commit 50da5ffd455def46cde9d00cffb60d8fb8ab47ef [skip ci] 2021-03-08 21:10:12 +00:00
Alexander Skvortsov
50da5ffd45 Handle editor-driven input events.
The mdarea extension's handleKey method only applies when input is accompanied by an actual key press, and won't register programmatic inputs via `app.composer.editor` methods. We add an additional listener for custom events, which are dispatched in `setValue`.
2021-03-08 16:09:18 -05:00
Charlie
6cbd641ad5 Change category () 2021-03-08 14:21:37 -05:00
flarum-bot
cacb6ffd0b Bundled output for commit 09b14b980a2cfa1c61352e6e1bc67c7b46c30d1b [skip ci] 2021-02-27 21:06:27 +00:00
Alexander Skvortsov
09b14b980a Attach oninput, inputListeners, onsubmit via mdarea extension
Recent versions of mdarea are quite powerful, and have internal state data structures. As a result, updating current editor value via `oninput` event listeners isn't reliable. Instead, we can use the mdarea extension API to handle keypresses exactly when markdownarea wants us to.

This also removes the `super` call from `build`, and directly creates/configures the applicable DOM elements. Since the mdarea editor driver's initialization is already quite different from BasicEditorDriver, it should fully own this step.
2021-02-27 16:05:25 -05:00
Alexander Skvortsov
aa62e69dab MarkdownEditorDriver should be its own driver.
Splitting it out instead of hacking it onto BasicEditorDriver gives us more flexibility in customizing it for markdown area.
2021-02-27 15:37:19 -05:00
flarum-bot
9579871378 Bundled output for commit 690f4619f83739f22d72ec5387ac4f6b7b616d42 [skip ci] 2021-02-27 03:19:41 +00:00
Alexander Skvortsov
690f4619f8 Update mdarea
This is included because it fixes a bug where the last character isn't included, introduced by the shift in core's editor implementation + the way mdarea used to handle state
2021-02-26 22:18:54 -05:00
Alexander Skvortsov
3bdfbf9349 Editor driver support 2021-02-26 22:18:54 -05:00
Robert Korulczyk
0ea9ef1c48 Move locale files from language pack to extension. () 2021-02-17 16:25:57 -05:00
flarum-bot
7124f42805 Bundled output for commit 14adb2bed1038c203ff080cd3c8a89a96f8357d8 [skip ci] 2021-01-26 01:00:41 +00:00
Alexander Skvortsov
14adb2bed1 mdarea: disable inlines
This was accidentially introduced when updating for v1.0.0 of the mdarea library, and causes user inconvenience.

Fixes https://github.com/flarum/core/issues/2569
2021-01-25 19:57:43 -05:00
Daniël Klabbers
1df1b136aa changelog and constraint for beta 15 2020-12-15 09:04:29 +01:00
Daniël Klabbers
d6c7f5b921 npm audit fix 2020-12-15 09:03:27 +01:00
Alexander Skvortsov
a35f8967b2 Update composer metadata for admin dashboard 2020-12-08 19:56:58 -05:00
Alexander Skvortsov
79f7102eda Add composer metadata for admin ux redesign 2020-11-25 01:21:48 -05:00
Daniël Klabbers
b0e466a43d changelog and dep for v0.1.0-beta.14 2020-10-15 14:31:50 +02:00
flarum-bot
6ff20798c3 Bundled output for commit ab63a55d6064f5b9ca8f51f9301c1f6fa06f00d9 [skip ci] 2020-09-24 02:52:46 +00:00
Alexander Skvortsov
ab63a55d60 Mithril 2 Update ()
Update for Mithril 2
2020-09-23 22:51:50 -04:00
flarum-bot
5081cd47c1 Bundled output for commit c0aa73f01a1a86fea9231fc96f64ebb43dc42264 [skip ci] 2020-08-17 00:44:32 +00:00
Alexander Skvortsov
c0aa73f01a Update mdarea to v1.0.1 ()
* Update mdarea to v1.0.1
2020-08-16 20:43:45 -04:00
flarum-bot
6d06fcf731 Bundled output for commit a232d8bcfc4a7c3e85916462b2be7749a8892b28 [skip ci] 2020-08-16 20:33:20 +00:00
Alexander Skvortsov
a232d8bcfc Remove polyfills: we don't support IE anymore ()
* Remove polyfills: we don't support IE anymore
2020-08-16 16:32:19 -04:00
dependabot[bot]
f390676f2f Bump elliptic from 6.5.2 to 6.5.3 in /js ()
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-31 01:07:59 +02:00
dependabot[bot]
84d3bf79c4 Bump lodash from 4.17.15 to 4.17.19 in /js ()
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-17 10:47:16 +02:00
Alexander Skvortsov
6defee4fc4 Add empty locale extender to clear cache properly on enable/disable.
See https://github.com/flarum/core/pull/2020#issuecomment-616149583
2020-06-19 22:18:56 -04:00
flarum-bot
8a029e666b Bundled output for commit 8d84d1dea6f0603b33779ab5b541a9382a86a5ab [skip ci] 2020-05-20 21:08:46 +00:00
Matteo Contrini
8d84d1dea6 Change default URL value in link/image markdown button ()
* Change default URL value in link/image markdown button
2020-05-20 17:07:10 -04:00
Daniël Klabbers
903d81e04c incorrect compared versions in changelog 2020-05-04 10:42:11 +02:00
Daniël Klabbers
fa5f01eb10 Release v0.1.0-beta.13 2020-05-04 10:14:22 +02:00
Franz Liedke
e454704153 Update Webpack 2020-05-01 11:56:01 +02:00
Franz Liedke
be67f73760 Tweak spoiler code
Refs , , .
2020-04-24 22:10:36 +02:00
Matt Kilgore
ebd30401a8 fix: Removed mentions specific spoiler code ()
Also fixed links, code and images in spoiler, and hopefully all other children.

The block spoiler works fine without fixes, global spoiler class causes issues.
2020-04-24 17:58:38 +02:00
flarum-bot
86577e26d2 Bundled output for commit cb3f14b1865a80f75b96bbcb5ff172d7e01b0cfd [skip ci] 2020-04-24 12:32:32 +00:00
Franz Liedke
cb3f14b186 npm audit fix 2020-04-24 14:30:29 +02:00
dependabot[bot]
82bd8aecd1 Bump acorn from 6.4.0 to 6.4.1 in /js ()
Bumps [acorn](https://github.com/acornjs/acorn) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-03-17 20:22:55 +01:00
Daniël Klabbers
a2c02a5a2e remove author, updated deps 2020-03-03 14:21:27 +01:00
Matthew Kilgore
8a71c6f17d Hide mentions in inline spoilers
Fixes 
2020-03-01 09:52:30 -05:00
flarum-bot
990201cb95 Bundled output for commit 93122c9b8e021815f8a528ccf0b802b86a8d8cef [skip ci] 2020-02-11 20:45:19 +00:00
Franz Liedke
93122c9b8e Update Webpack 2020-02-11 21:44:25 +01:00
Franz Liedke
04ba8e95eb Update LICENSE to allow auto-detection 2019-12-04 21:17:33 +01:00
Franz Liedke
99a003100e Apply fixes from StyleCI 2019-11-29 23:02:13 +00:00
Franz Liedke
e29085421f Update copyright claims in LICENSE 2019-11-30 00:01:01 +01:00
Daniël Klabbers
07b116433f updated requirement with flarum/core v0.1.0-beta.10 2019-09-16 09:50:11 +02:00
Franz Liedke
c4211ee015 Update changelog for beta.10 2019-09-15 22:43:46 +02:00
Franz Liedke
cca8ca9ad7 Update vulnerable JS dependencies 2019-09-13 15:38:59 +02:00
flarum-bot
811116638a Bundled output for commit db3a037c97ac27fe5cc113fd1435d647cee4e413 [skip ci] 2019-09-10 00:23:18 +00:00
David Sevilla Martin
db3a037c97 Add license code to index.js, and line to LICENSE 2019-09-09 20:21:58 -04:00