discourse/plugins/discourse-local-dates/test/javascripts
Renato Atilio 85691a7f31
DEV: refactor composer-editor/d-editor, a little more ()
Adds setupEditor to ComposerEditor so it can setup/destroy events when the underlying editorComponent is switched.

Moves putCursorAtEnd uses (which implementation is textarea-specific) to TextareaTextManipulation.

Moves insertCurrentTime and a corresponding test, which is discourse-local-dates specific, to the plugin.

Moves applyList and formatCode from DEditor to the TextareaTextManipulation.

Moves DEditor._applySurround to TextareaTextManipulation.applySurroundSelection

Avoids resetting the textarea value on applyList and formatCode, keeping the undo history.
2024-12-02 18:24:14 -03:00
..
acceptance DEV: refactor composer-editor/d-editor, a little more () 2024-12-02 18:24:14 -03:00
helpers DEV: Extract a test helper in local-dates () 2024-10-15 10:27:42 +02:00
lib DEV: Fix no-loose-assertions lint () 2024-11-28 11:22:27 +01:00
unit DEV: Consolidate i18n import paths () 2024-11-19 20:45:18 +00:00