discourse/plugins/discourse-local-dates
Renato Atilio 85691a7f31
DEV: refactor composer-editor/d-editor, a little more (#29973)
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
..
assets DEV: refactor composer-editor/d-editor, a little more (#29973) 2024-12-02 18:24:14 -03:00
config Update translations (#29934) 2024-11-26 23:14:56 +01:00
lib/discourse_local_dates DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
spec FIX: BBCode tag parser 2024-06-18 10:47:18 +02:00
test/javascripts DEV: refactor composer-editor/d-editor, a little more (#29973) 2024-12-02 18:24:14 -03:00
plugin.rb DEV: Bump rubocop_discourse (#29608) 2024-11-06 06:27:49 +08:00