Port TextEditorView and DnDUploader to spina.

Review Request #13115 — Created June 19, 2023 and submitted — Latest diff uploaded

Information

Review Board
release-6.x

Reviewers

In preparation for integrating the rich text toolbar, this change ports
our TextEditorView and DnDUploader to TypeScript via spina.

This also fixes one issue I discovered where if the only thing you've
done with a text editor is upload an image, it won't think the editor is
dirty and so saving discards the contents.

  • Ran js-tests.
  • Used drag and drop to upload files into a text editor.

Diff Revision 3 (Latest)

orig
1
2
3

Commits

First Last Summary ID Author
Port TextEditorView and DnDUploader to spina.
In preparation for integrating the rich text toolbar, this change ports our `TextEditorView` and `DnDUploader` to TypeScript via spina. This also fixes one issue I discovered where if the only thing you've done with a text editor is upload an image, it won't think the editor is dirty and so saving discards the contents. Testing Done: - Ran js-tests. - Used drag and drop to upload files into a text editor.
55b6738044bc3e3e68c8495d802d2c6f4c3906c0 David Trowbridge
rollup.config.js
reviewboard/staticbundles.py
reviewboard/static/rb/js/reviews/views/commentDialogView.ts
reviewboard/static/rb/js/reviews/views/reviewRequestEditorView.ts
reviewboard/static/rb/js/reviews/views/reviewablePageView.ts
reviewboard/static/rb/js/reviews/views/tests/commentDialogViewTests.ts
reviewboard/static/rb/js/reviews/views/tests/diffViewerPageViewTests.ts
reviewboard/static/rb/js/reviews/views/tests/reviewRequestEditorViewTests.ts
reviewboard/static/rb/js/reviews/views/tests/reviewablePageViewTests.ts
reviewboard/static/rb/js/ui/index.ts
reviewboard/static/rb/js/views/dndUploaderView.es6.js
reviewboard/static/rb/js/ui/views/inlineEditorView.ts
reviewboard/static/rb/js/ui/views/textEditorView.es6.js
reviewboard/static/rb/js/ui/views/tests/index.ts
reviewboard/static/rb/js/ui/views/tests/textEditorViewTests.es6.js
Loading...