Skip to content

Attempt to fix formula issues

Jérémie Pardou requested to merge fix-tiptap-to-formula into develop

What is in this MR

See related issue. The problem is when you copy/paste multiple paragraph, they are added a separate wrappers in the tip tap editor. However we tried to not use multiple wrappers by using hardbreak instead which is consistent with the formula language but not really with how tiptap works. This MR removes all the work around hardbreaks and try to supports multiple wrappers instead. This should be more titTap friendly and more future proof.

The only trick here is that we don't have the notion of "paragraph" in the formula language. So for now when we detect a concat with new lines between each content, we consider it the main wrapper.

How to test this MR

  • Copy/paste a bunch of paragraph in a formula field and they should all appears in an element paragraph.
  • Previous formulas should still work

Merge Request Checklist

  • changelog.md has been updated if required.
  • New/updated Premium/Enterprise features are separated correctly in the premium or enterprise folder
  • The latest Chrome and Firefox have been used to test any new frontend features
  • Documentation has been updated
  • Quality Standards are met
  • Performance: tables are still fast with 100k+ rows, 100+ field tables
  • The redoc API pages have been updated for any REST API changes
  • Our custom API docs are updated for changes to endpoints accessed via api tokens
  • The UI/UX has been updated following UI Style Guide

Fix #2185 (closed)

Merge request reports