discourse/spec
Renato Atilio 052b07a7f0
FIX: avoid ProseMirror handling paste when unauthorized (#35640)
When `authorizesOneOrMoreExtensions` is `false`, we don't call
`ComposerUpload#setup` to add the paste event listener, which originally
handles the `preventDefault`:


d1e1c02fcb/frontend/discourse/app/components/composer-editor.gjs (L274-L276)


d1e1c02fcb/frontend/discourse/app/lib/uppy/composer-upload.js (L151-L153)


d1e1c02fcb/frontend/discourse/app/lib/uppy/composer-upload.js (L566-L569)

This makes it so ProseMirror handles paste events itself, which leads to
base64 data src images. This PR adds a custom paste handler for
`prosemirror-editor` that prevents default in this case.
2025-10-28 12:21:04 -03:00
..
db/migrate DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
fabricators FIX: Can't update close based on last post timer to close timer (#35541) 2025-10-28 09:07:43 +08:00
fixtures SECURITY: Use nonce-based restrictions during restore 2025-09-30 10:09:46 +08:00
generator DEV: Silence the output of migration specs (#26365) 2024-03-26 11:32:44 +01:00
helpers FEATURE: Allow editing theme-owned palettes (#34722) 2025-10-06 09:02:39 +03:00
import_export DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00
initializers DEV: Patch ActiveRecord's postgresql adapter .new_client (#33820) 2025-09-18 11:34:37 +08:00
integration DEV: Refactor test-specific setting overrides into rails_helper.rb (#35594) 2025-10-27 10:14:56 +00:00
integrity DEV: Prepare for rename of app/assets/javascripts/ -> frontend/ 2025-10-22 16:24:11 +01:00
jobs FEATURE: Add full-text search for chat messages (#34704) 2025-10-22 11:30:35 +02:00
lib FIX: filter out hidden/whisper/deleted posts from keyword filter. (#35648) 2025-10-28 15:17:23 +11:00
mailers DEV: Skip a flaky rspec test (#35655) 2025-10-28 15:17:04 +08:00
models FEATURE: Add plugin hook for extra username validations (#35522) 2025-10-27 11:03:42 -03:00
multisite FEATURE: Themeable site settings (#32233) 2025-07-16 11:00:21 +10:00
queries/reports UX: Add admin report for associated accounts by login provider (#34187) 2025-08-14 09:24:14 -04:00
requests SECURITY: Error responses missing Cache-Control header 2025-10-28 14:40:41 +08:00
script/import_scripts DEV: Catch missing translations during test runs (#26258) 2024-05-24 22:15:53 +08:00
serializers FIX: DeleteReplies should use the guardian instead of checking for staff (#35443) 2025-10-16 18:26:41 +02:00
services DEV: Refactor test-specific setting overrides into rails_helper.rb (#35594) 2025-10-27 10:14:56 +00:00
support DEV: Refactor test-specific setting overrides into rails_helper.rb (#35594) 2025-10-27 10:14:56 +00:00
system FIX: avoid ProseMirror handling paste when unauthorized (#35640) 2025-10-28 12:21:04 -03:00
tasks DEV: Rename theme-transpiler to asset-processor (#35498) 2025-10-20 14:16:46 +01:00
views FIX: Use correct subcategory subfolder path in crawler (#34250) 2025-08-12 16:14:50 +08:00
rails_helper.rb DEV: Refactor test-specific setting overrides into rails_helper.rb (#35594) 2025-10-27 10:14:56 +00:00
regenerate_swagger_docs
swagger_helper.rb DEV: add api docs for discourse-calendar events index endpoint (#35400) 2025-10-16 07:39:08 +08:00