Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor Consolidation #28

Merged
merged 8 commits into from
May 10, 2021
Merged

Editor Consolidation #28

merged 8 commits into from
May 10, 2021

Conversation

askvortsov1
Copy link
Sponsor Member

Companion to flarum/framework#2826

  • Drop mdarea for now. The newest version has a lot of bugs that make it unusable, and it doesn't combine well with our editor system. In future releases, I'd like to include it in core (or at least support list continues and indent/outdent)
  • Move github markdown toolbar stuff to core so it can be used by other extensions
  • Massively simplify toolbar and button system.

Copy link
Member

@davwheat davwheat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just that one idea. Can we wait for review comments on flarum/framework#2826 before merging though, as a fix for Win + Enter submitting could be used here to reduce complexity.

@askvortsov1 askvortsov1 requested a review from davwheat May 8, 2021 01:56
view(vnode) {
return <div id="MarkdownToolbar" data-for={this.attrs.for} style={{ display: 'inline-block' }}>
return <div class="MarkdownToolbar">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change from id to class necessary? Are we intentionally breaking styles that use the ID here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do agree with this change, just in case theres two of these toolbars on screen at the same time, despite how ridiculously unlikely that would be

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also agree with this change, while in theory it shouldn't be needed it also makes a lot of sense.

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Iirc, there isn't ID based stuff anywhere else in the composer hierarchy. I don't think it should be here either.

Copy link
Member

@davwheat davwheat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reconfirming the approve because GitHub is GitHub

@askvortsov1 askvortsov1 merged commit 79437f4 into master May 10, 2021
askvortsov1 added a commit that referenced this pull request Mar 11, 2022
- 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
askvortsov1 added a commit that referenced this pull request May 10, 2022
- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants