David Sevilla Martin
8111b5a56c
Prevent browser/system shortcuts from triggering when applying editor style from shortcut ( #32 )
2021-09-20 18:06:47 -04:00
flarum-bot
153138c770
Bundled output for commit e376358e64
...
Includes transpiled JS/TS.
[skip ci]
2021-09-20 14:20:01 +00:00
Hasan Özbey
e376358e64
Add spoiler and strikethrough buttons ( #30 )
...
Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>
2021-09-20 10:18:48 -04:00
Daniel Klabbers
6c07082c83
changelog for v1.0.1
2021-06-02 09:13:30 +02:00
flarum-bot
4ad2bfc172
Bundled output for commit fd3300d7e5
...
Includes transpiled JS/TS.
[skip ci]
2021-05-31 13:28:37 +00:00
David Wheatley
fd3300d7e5
Add missing link button to Markdown toolbar ( #29 )
2021-05-31 14:26:44 +01:00
Daniel Klabbers
14e4a24514
fix branch alias
2021-05-25 22:50:52 +02:00
Daniel Klabbers
1c2e96f30b
changes for stable
2021-05-25 16:17:35 +02:00
flarum-bot
5ccac5d607
Bundled output for commit 7f37e36241
...
Includes transpiled JS/TS.
[skip ci]
2021-05-18 05:20:53 +00:00
Alexander Skvortsov
7f37e36241
Avoid submitting forms with MarkdownButton
...
Add type="button" to the component so that it won't submit if placed inside a form.
Fixes https://github.com/flarum/core/issues/2875
2021-05-18 01:19:52 -04:00
flarum-bot
f9d97b60d5
Bundled output for commit f076329636
...
Includes transpiled JS/TS.
[skip ci]
2021-05-17 13:44:50 +00:00
David Wheatley
f076329636
Fix tooltip deprecation warning
2021-05-17 14:43:35 +01:00
David Wheatley
c9af88e721
Use namespaced JS imports
2021-05-17 14:43:21 +01:00
David Wheatley
43b6e0818b
npm audit fix
2021-05-17 14:33:53 +01:00
Alexander Skvortsov
58b322fc54
Bump composer reqs for 1.0.0
2021-05-16 18:28:28 -04:00
David Wheatley
f5898b393e
Update copyright year
2021-05-15 00:56:00 +01:00
Alexander Skvortsov
0c0b3b2678
Fix display
2021-05-12 20:28:40 -04:00
flarum-bot
be62a33d23
Bundled output for commit 7ea9db7426
[skip ci]
2021-05-10 21:36:25 +00:00
Alexander Skvortsov
7ea9db7426
Editor Consolidation ( #28 )
...
- Move insertText to core
- Move styles and apply to core
- Simplify shortcut and button system
- Drop mdarea for now. In the future, we could implement the features we use (list continue, indent) in core.
- Remove admin dist (only admin setting was mdarea)
- Move inline style to css
2021-05-10 17:35:22 -04:00
Alexander Skvortsov
4ec8b87cdc
Update changelog for v0.1.0-beta.16.1
2021-03-25 13:54:43 -04:00
flarum-bot
2c8f88a72b
Bundled output for commit 61e61f5e8c
[skip ci]
2021-03-25 17:52:17 +00:00
Alexander Skvortsov
61e61f5e8c
Allow disabling mdarea via admin setting ( #27 )
2021-03-25 13:51:21 -04:00
Daniel Klabbers
2ea6204dff
Release v0.1.0-beta.16
2021-03-15 12:00:06 +01:00
flarum-bot
32bd64f427
Bundled output for commit ae6a652a72
[skip ci]
2021-03-11 18:12:58 +00:00
Alexander Skvortsov
ae6a652a72
Fix typo
2021-03-11 13:11:56 -05:00
flarum-bot
c1308f395f
Bundled output for commit 752c43376e
[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 50da5ffd45
[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 ( #25 )
2021-03-08 14:21:37 -05:00
flarum-bot
cacb6ffd0b
Bundled output for commit 09b14b980a
[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 690f4619f8
[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. ( #21 )
2021-02-17 16:25:57 -05:00
flarum-bot
7124f42805
Bundled output for commit 14adb2bed1
[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 ab63a55d60
[skip ci]
2020-09-24 02:52:46 +00:00
Alexander Skvortsov
ab63a55d60
Mithril 2 Update ( #19 )
...
Update for Mithril 2
2020-09-23 22:51:50 -04:00
flarum-bot
5081cd47c1
Bundled output for commit c0aa73f01a
[skip ci]
2020-08-17 00:44:32 +00:00
Alexander Skvortsov
c0aa73f01a
Update mdarea to v1.0.1 ( #20 )
...
* Update mdarea to v1.0.1
2020-08-16 20:43:45 -04:00
flarum-bot
6d06fcf731
Bundled output for commit a232d8bcfc
[skip ci]
2020-08-16 20:33:20 +00:00
Alexander Skvortsov
a232d8bcfc
Remove polyfills: we don't support IE anymore ( #18 )
...
* Remove polyfills: we don't support IE anymore
2020-08-16 16:32:19 -04:00