Commit Graph

41 Commits

Author SHA1 Message Date
Eragon 5283d45c36
Two editors on one page works, but hotkeys no longer work 2024-03-09 13:59:53 +01:00
Darks 4df78eb0c3
account: set markdown editor for signature and bio 2023-06-13 20:02:15 +02:00
Eragon 57644c4378
editor: fix modal not closing when openning an other one 2023-06-06 20:57:05 +02:00
Eragon 6cc066b4d6
editor: Self-host the emoji-picker custom element. 2023-05-17 09:56:22 +02:00
Eragon 8fbec9ed87
editor: Fix input being cleared on click in link modal 2023-05-16 22:23:08 +02:00
Eragon 44609f2f96
editor: Toggle automatic preview and add manual preview button 2023-05-16 13:50:47 +02:00
Eragon ed1a534aa6
editor: Add keybinds 2023-05-15 16:17:28 +02:00
Eragon 2b5485677e
editor: tests with emoji-picker-element for emoji picker
Note: we will need to self-host it if we keep it moving forward. This is
just a test, this commit should be reverted if not used in the end.
2023-05-15 16:17:28 +02:00
Darks 6fe04b0a6c
Improved the editor 2022-12-17 23:28:06 +01:00
Eragon 5e368ac08b
editor: Add support for type= custom extension on media 2022-12-15 14:07:18 +01:00
Eragon 546b32c22b
editor: Multiples bugfixes from Lephe's review
Refresh preview 3 sec after last keypress
Refresh preview on button usage
Move cursor after the --- line when using the button
Replace margin for padding in the preview css
Add a slight background shade on the preview
2022-12-15 12:05:58 +01:00
Eragon e2283b7675
editor: CSS and JS cleaning 2022-12-14 11:22:14 +01:00
Eragon 5eaf1cc207
editor: Link and Images buttons works, still need some CSS and cleaning 2022-12-14 11:22:14 +01:00
Eragon 95166b2da3
editor: WIP: Add modal to add links 2022-12-14 11:22:14 +01:00
Eragon b132eed1c7
editor: Insert table (Same as easy-mde) 2022-12-14 11:22:13 +01:00
Eragon cd84ccf4e6
editor: Insert separator on a new line 2022-12-14 11:22:13 +01:00
Eragon 28935b2ae8
editor: The numbered list button have the same usage as the old one 2022-12-14 11:22:13 +01:00
Eragon 6799f7477b
editor: I promise, this is progress 2022-12-14 11:22:13 +01:00
Eragon fcf42d4bb5
editor: Add title to all buttons 2022-12-14 11:22:13 +01:00
Eragon 1f1a06b02d
editor: Bullet list, using tabs (mixing tabs and space doesn't work) 2022-12-14 11:22:13 +01:00
Eragon 0d00b4dfb6
Editor: Add inline code and quotes 2022-12-14 11:22:12 +01:00
Eragon bcbab7033d
editor: Add preview 2022-12-14 11:22:12 +01:00
Lephe 07bd7075d6
editor: add placeholder help link 2022-12-14 11:22:12 +01:00
Lephe 4322790ca1
editor: implement heading insertion and level changes 2022-12-14 11:22:12 +01:00
Lephe e54b01efe0
editor: basic markup insertion around selection 2022-12-14 11:22:11 +01:00
Lephe 02520f6b2d
editor: improve layout and style of buttons 2022-12-14 11:22:11 +01:00
Eragon 0a0ad4d558
editor: Add input type button to fix HTML problems 2022-12-14 11:22:11 +01:00
Eragon 490ab2714c
Start to add editor script 2022-12-14 11:22:09 +01:00
Eragon 5fb06732ff
Remove old & add buttons for new editor 2022-12-14 11:21:14 +01:00
Lephe bb6450bda2
editor: don't autofocus by default
Autofocus prompts the browser to scroll to the editor when the page
loads, which makes little to no sense on topic pages where the important
information is at the top.
2020-10-31 22:15:03 +01:00
Darks ed231f6524
fix CSRF token for message preview (#77) 2020-10-07 21:47:21 +02:00
Darks 67c3ebba42
editor: fix #73 2020-09-24 22:43:39 +02:00
Darks ed5367d46d
editor: added previews 2020-09-23 23:58:25 +02:00
Eragon ed0f3b47f6
Meilleur gestion avec plusieurs forms dans une page
L'éditeur markdown est lié à l'id du textarea qui l'invoque (Acte Vaudou)
2020-09-18 14:59:38 +02:00
Eragon b5f1ea1d1d
Un seul chargement du script même avec plusieurs textarea
Le script est chargé de manière standard, comme les autres scripts.
L'init du script est lancé seulement après le chargement complet
de toute les dépendances de la page.
2020-09-18 11:53:50 +02:00
Eragon c419716806
Utilisation de https://github.com/sparksuite/simplemde-markdown-editor comme éditeur
Ajout des fichiers dans les fichiers statiques. (min.css & min.js).
Supression des scripts custom d'édition.
Remplacement par les bon appels de fonctions dans app/templates/widgets/editor.html
2020-09-17 22:41:32 +02:00
Darks da96de2f14
Ajout d'un premier jet d'éditeur Js de LightScript 2019-12-04 22:16:29 +01:00
Darks 0a85f1fbee
Ajout de l'éditeur :D 2019-12-04 16:25:05 +01:00
Eragon 134eaa4d58
Ajout du style et d'un peut d'affichage pour les topics
J'ai fait mon possible pour que ça rende bien et que le css ne soit pas
trop moche. Il faudra peut-être modifier légèrement l'afichage du
profil, ce dernier est pas assez bien en place à mon goût.
2019-12-03 23:13:22 +01:00
Darks 662882cc15
Ajout des commentaires de topics
On ne peut pas encore modifier le top comment ni commencer un topic à 
partir d'un thread externe, mais les bases sont là :)
2019-12-03 20:32:01 +01:00
Lephe 8a0ba309e0
forum: restructure models and add topic creation
This changes fixes #25 by restructuring the forum models in a way
compatible with the polymorphic behavior of SQLAlchemy. Incidentally,
the new form turns out to be more appropriate for our use than the
polymorphic one originally used.

The migration for this task is non-trivial because the Thread class was
created with a foreign-key id which thus had no auto-increment or
associated sequence. The most reliable way of getting it back was to
recreate the table because SQLAlchemy ony performs automated sequence
introduction at table creation time. Four separate migration files
perform the whole change.

This commit also adds views and forms to create topics, and the
boilerplate for an advanced markup editor that can be used as a widget.
2019-09-09 08:11:38 +02:00