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

Add shortcut to the editor toolbar #2

Open
3 of 5 tasks
IceQ1337 opened this issue Aug 5, 2023 · 0 comments
Open
3 of 5 tasks

Add shortcut to the editor toolbar #2

IceQ1337 opened this issue Aug 5, 2023 · 0 comments

Comments

@IceQ1337
Copy link
Member

IceQ1337 commented Aug 5, 2023

The wysiwyg-editor shortcut should remove the hassle of figuring out the timestamp for a certain datetime. Instead, the user should be able to simply select a date and specify whether they want a fixed or relative time view.

Additionally, clicking on the toolbar with an active selection could simply enclose the text (ideally a valid timestamp) with the BBCode.

  • Add typescript module to change default behaviour of the bbcode button
  • Add current timestamp when clicking the toolbar button without active selection
  • Wrap tags around current selection
    • WoltLabs implementation is (seemingly) insufficient in providing necessary information, so this has to be done manually.
    • The editor holding all the information is not accessible at all and there is no information about the selection (range/offset)
  • Open popup to select a datetime and insert its timestamp into the editor (with tags)
  • Add formatting options to the popup

The popup might require a separate ckeditor-plugin implementation, which is out-of-scope for this plugin. I can think of an implementation via dialog instead. Not so intuitive, but implemented quite quickly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant