Commit graph

85 commits

Author SHA1 Message Date
Alf Eaton
1335baa7cd Upgrade Cypress to 13.3.0 (#15162)
GitOrigin-RevId: 94cfe15bf79b45abbe9ec94cfc873c9734da434b
2023-10-10 07:57:39 +00:00
Alf Eaton
31033224d5 Improve handling of whitespace in pasted HTML (#15074)
GitOrigin-RevId: 48876707e15e1ccd1bb71ce01121033d0b0dbeaf
2023-10-10 07:57:28 +00:00
Alf Eaton
04a4450341 Avoid auto-closing $ directly before a TeX command (#15039)
GitOrigin-RevId: e620d6b5c82e179c294930801a95fc4c2c77db57
2023-10-05 08:04:46 +00:00
Alf Eaton
6dbb2df5b8 Remove editor split tests (#14985)
* Remove source-editor-toolbar split test
* Remove editor-left-menu split test
* Remove paste-html split test
* Remove figure-modal split test
* Remove rich-text split test
* Remove table-generator split test

GitOrigin-RevId: e3fe415b81ff0135d8764cd3f3c91b1dd4a77cf0
2023-10-04 08:04:34 +00:00
Alf Eaton
b3b31fb052 [cm6] Match uppercase file extensions in the include autocomplete (#14956)
GitOrigin-RevId: eb6898ef031dcc05f9fcb530fd4578ffda234a14
2023-10-03 08:04:09 +00:00
Jakob Ackermann
9daa8f5d98 Merge pull request #15040 from overleaf/jpa-js-to-jsx
[web] rename all the JSX files to .jsx/.tsx

GitOrigin-RevId: 82056ae47e017523722cf258dcc83c8a925a28f7
2023-09-29 08:04:29 +00:00
Mathias Jakobsen
dc86b0285a Merge pull request #14663 from overleaf/mj-table-generator-promo
[cm6] Add promotion popover for table generator and pasting formatted text

GitOrigin-RevId: 9096b36ac4f07d1fc862ecc3bd5df033348950ab
2023-09-28 08:04:21 +00:00
Alf Eaton
a2bb8a3ecd Handle pasted HTML from Office even if there's an image file on the clipboard (#14852)
GitOrigin-RevId: f0413391ec421c845b435e1392140d265a528ee7
2023-09-25 08:04:59 +00:00
Mathias Jakobsen
61e49d3644 Merge pull request #14860 from overleaf/mj-figure-modal-paste-image-test
[cypress] Add test for pasting a file to open figure modal

GitOrigin-RevId: c9339bbf8d71d7765fe8db98d7edbe5bed047dbc
2023-09-25 08:04:54 +00:00
Alf Eaton
9313a1fbd1 [visual] Configure italic markup to be placed inside the pasted styled element (#14918)
GitOrigin-RevId: b7038381583a6828a9ab24f6d9608c10cf3e370a
2023-09-25 08:04:45 +00:00
Alf Eaton
f6e8f3a2a3 Merge pull request #14830 from overleaf/ae-office-paste
[visual] Improve handling of content pasted from desktop Office applications

GitOrigin-RevId: 10ce77bae008ad078afa22c8fac2cb48af3d9cb4
2023-09-15 08:05:10 +00:00
Alf Eaton
f7e4946056 Handle content wrapped in a monospace pre (#14801)
GitOrigin-RevId: 7198e56ea496b8e7496bd637419586019ce56270
2023-09-15 08:04:54 +00:00
Alf Eaton
875ea723ca [visual] Escape special characters in pasted URLs (#14789)
GitOrigin-RevId: 58e0b4b9b902301dbcb34f918ebbfdad0c8a763f
2023-09-15 08:04:50 +00:00
Alf Eaton
496b30e18e Avoid adding semantic style from an element which has explicit style (#14781)
GitOrigin-RevId: ae36022a9da36be0703c7e8e04e133975fadb893
2023-09-15 08:04:45 +00:00
Mathias Jakobsen
e7519be904 Merge pull request #14804 from overleaf/mj-remove-last-row-table
[visual] Keep bottom border when removing entire last row

GitOrigin-RevId: 27711ffa1f8dffc1af50078b95b3b24e7f00f5fe
2023-09-14 08:03:47 +00:00
Thomas
b967b8175e Merge pull request #14764 from overleaf/mj-compile-shortcuts
[visual] Pass compilation shortcuts through from table generator

GitOrigin-RevId: b4d222d9898b3e11d786fc9d9b61b7c9b0e92f9b
2023-09-12 08:05:13 +00:00
Mathias Jakobsen
004bdd593e Merge pull request #14761 from overleaf/mj-table-tab-navigation
[visual] Allow tab to escape editing cell

GitOrigin-RevId: 10762c5909f5c1a13a98ed1709b6609cf9ab79b8
2023-09-12 08:04:53 +00:00
Alf Eaton
2961a93bb5 Handle more cases where CSS styles override semantics of pasted elements (#14755)
GitOrigin-RevId: f125d201fe18120c80fe1b681775ca2545da128c
2023-09-12 08:04:48 +00:00
Alf Eaton
13bbea4ced [visual] Handle content in pasted lists with only one item (#14752)
GitOrigin-RevId: 4f0a2d260b04b8f08f2dad7e200309b2611952e6
2023-09-12 08:04:39 +00:00
Mathias Jakobsen
1e3f305ba3 Merge pull request #14763 from overleaf/mj-extend-col-row-selectors
[visual] Allow shift clicking column and row selectors

GitOrigin-RevId: 2e6191741681196e4af462f92dc60268f22d137e
2023-09-12 08:04:35 +00:00
Mathias Jakobsen
4b699f1ad4 Merge pull request #14760 from overleaf/mj-table-gen-toolbar-alignment
[visual] Update alignment icon based on selection

GitOrigin-RevId: 37019ba2fdf9f587da56a1d030cd89e6e740173c
2023-09-12 08:04:30 +00:00
Mathias Jakobsen
fb379bc0b8 Merge pull request #14726 from overleaf/mj-table-generator-more-cypress
[visual] Add cypress tests for table interactions

GitOrigin-RevId: 82d7db1d1f77e0dacc882fe3f37478d24a212d44
2023-09-11 08:05:00 +00:00
Mathias Jakobsen
0d7730f37a Merge pull request #14712 from overleaf/mj-table-adjustbox
[visual] Disable caption dropdown when tabular is wrapped in command

GitOrigin-RevId: 08131d27e8bb4cb99eee3060435084f671bc3dd6
2023-09-08 08:04:23 +00:00
Mathias Jakobsen
4a157e7086 Merge pull request #14664 from overleaf/ae-paste-rowspan
[visual] Handle rowspan on pasted table cells

GitOrigin-RevId: 53dda99ae1c300b9c4ec8f711b70b16ef66392c8
2023-09-07 08:04:42 +00:00
Mathias Jakobsen
4f977a0ca7 Merge pull request #14618 from overleaf/ae-paragraph-newline
[visual] Add newlines after all paragraphs that aren't inside lists or tables

GitOrigin-RevId: 4e8b5b6ce07845fdf7614f7129aac2a88b3bb723
2023-09-06 08:05:25 +00:00
Mathias Jakobsen
ad38ac233b Merge pull request #14653 from overleaf/mj-column-spacing-parsing
[visual] Support cell spacing declarations

GitOrigin-RevId: 16b4ddc196558679301010378912b14f6295e05f
2023-09-06 08:05:20 +00:00
Mathias Jakobsen
d98288605a Merge pull request #14649 from overleaf/mj-table-gen-remove-columns-left
[visual] Fix removing multiple columns starting from the left in table generator

GitOrigin-RevId: d52adc3cb06e897f82c8ec1157e48e165683a14e
2023-09-06 08:05:15 +00:00
Mathias Jakobsen
2516f271b1 Merge pull request #14559 from overleaf/mj-table-add-row-borders
[visual] Table generator improvements

GitOrigin-RevId: 8d3d1b382c68c13480b3aa50b6764903ff59ae81
2023-09-05 08:04:43 +00:00
Alf Eaton
d92dc66e30 Protect special characters in pasted HTML (#14476)
GitOrigin-RevId: 7288f6696ed9af78c1ea4cc94d0e8022da90aacf
2023-09-04 08:04:54 +00:00
Alf Eaton
a0347c53f0 [visual] Decorate backslash-prefixed dollar sign (#14552)
GitOrigin-RevId: 3d846eeb1a25051b794a3673e9f48ac7fe4b2cbf
2023-09-04 08:04:50 +00:00
Alf Eaton
2b7119502c Merge pull request #14588 from overleaf/ae-paste-blockquote
[visual] Handle pasted blockquote

GitOrigin-RevId: 5acc257a464886c1f90daf9192c87cccf158927e
2023-09-04 08:04:40 +00:00
Alf Eaton
aef9821e00 Only end the preamble at MakeTitle if directly inside DocumentEnvironment (#14593)
GitOrigin-RevId: 3252a8260e02728c05b753433e3488b799b18de0
2023-09-04 08:04:36 +00:00
Alf Eaton
625714a924 [visual] Fix section heading test (#14549)
GitOrigin-RevId: 8cf54515d62e538a8cd2b7711435c0d6bed4f016
2023-08-30 08:04:44 +00:00
Mathias Jakobsen
28d8c2b135 Merge pull request #14499 from overleaf/mj-table-gen-tests
[visual] Add cypress tests for table generator

GitOrigin-RevId: 03bdd315221f8a5998fd37de4c955635dcc86148
2023-08-30 08:04:40 +00:00
Alf Eaton
03fbc5e0a8 [visual] Place cursor in editable content when closing the preamble (#14162)
GitOrigin-RevId: 35f146caa4469c7f31fb00dc6047a421b1daadb0
2023-08-30 08:04:27 +00:00
Alf Eaton
1e286c263c [visual] Avoid pasting formatted content into a math container (#14475)
GitOrigin-RevId: e563e27bf80092df7b296878536ca2d4549c4d2a
2023-08-30 08:04:23 +00:00
Alf Eaton
cf319b61b4 [visual] Improved pasted HTML handling (#14384)
* Replace non-breaking spaces added by Chrome on copy
* Ignore text/html from VS Code
* Improve table border handling
* Remove unused cy.spy
* Map em to textit and strong to textbf
* Left-align table cells by default
* Remove "justify" mapping
* Detect border on table row
* Remove protection for special characters in pasted HTML
* If the only pasted HTML content is in a code block, use the plain text version
* Enable paste-html feature in Storybook
* Improve table handling

GitOrigin-RevId: a912aa1fc659089451103e63c5d0fd3ae2a30627
2023-08-30 08:04:19 +00:00
Alf Eaton
96195177a3 Remove Grammarly warning (#14423)
GitOrigin-RevId: 623ecffabdce9fc15dfb62361822afb75bd1cfa8
2023-08-24 08:04:02 +00:00
Alf Eaton
06aa92d0fd Only exclude the current command from autocompletion (#14367)
GitOrigin-RevId: 1f1dc0f2c3bcd19b12e06ec56d2d82181b0b5c6d
2023-08-18 08:05:09 +00:00
Alf Eaton
a55bb9c4b2 [visual] Improve pasting of a table containing a caption (#14322)
GitOrigin-RevId: 6d7676a9412c5614f85c17e16509c80ad937cc40
2023-08-16 08:04:01 +00:00
Alf Eaton
c8f0885316 Remove CM5 Rich Text module (#11776)
GitOrigin-RevId: 812d3b5f1df7e769c8be732ccb31653e8e9a8aa3
2023-08-16 08:03:35 +00:00
Alf Eaton
9d390f1ab3 Updated pasted HTML tests (#14277)
GitOrigin-RevId: 2a3001a23c2cf3cd82d3d2b464b5feb858cd5885
2023-08-14 08:05:14 +00:00
Alf Eaton
253f2c53d5 [visual] Show tooltip with target for linkable nodes (#13636)
GitOrigin-RevId: c236caff7560d8d3e4f53667c7abe27b57f7711d
2023-08-14 08:05:09 +00:00
Alf Eaton
8f1de5fa09 [visual] Convert pasted HTML to LaTeX (#12094)
GitOrigin-RevId: a2fd4411ab8655eea834d321025efb9644081252
2023-08-14 08:05:05 +00:00
Alf Eaton
971e0f0e84 [visual] Add decorations for \textsuperscript and \textsubscript (#14153)
GitOrigin-RevId: 7a5bfc7077131dab7ba9569b7edc0d5daad65347
2023-08-14 08:04:50 +00:00
Alf Eaton
f8f56cea89 [cm6] Add LineBreak to LaTeX grammar, highlight and decorate (#13742)
GitOrigin-RevId: 64c54676e0284b7187678eedcc5096b1aa284cc0
2023-08-04 08:05:26 +00:00
Alf Eaton
08c82a24a9 [visual] Apply style to the content of color commands (#13726)
GitOrigin-RevId: 4ae8b745618e91b487d17c357cdb0e697038b3a3
2023-07-19 08:04:56 +00:00
Alf Eaton
ca9593e74c [visual] Decorate quotation environments (#13728)
GitOrigin-RevId: 65c4bb8b4695d0698120936d3b2fb8ec6fa402dc
2023-07-19 08:04:52 +00:00
Domagoj Kriskovic
c21b8e31fd [visual] suport for \texttt command in maketitle (#13824)
GitOrigin-RevId: 712eb8fb4fc0f2cbc5cd3c2e39ff6b8af39c0a49
2023-07-19 08:04:28 +00:00
Alf Eaton
b284434ad2 [visual] Move the cursor after leading whitespace when creating a new list item on Enter (#13828)
GitOrigin-RevId: 2f5941627b64fb53efce0bdd6f2d888986f45a9d
2023-07-19 08:04:16 +00:00