Skip to content

AB#112755 - Overlap text fix while exporting dashboards #2786

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: next
Choose a base branch
from

Conversation

HasnatL-Adapptlimited
Copy link
Collaborator

Description

Applied fix for overlapping text and spaces between pasted html text.

Useful links

Link to ticket: https://dev.azure.com/WHOHQ/EMSSAFE/_workitems/edit/112755

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.

  • Tested with all special characters from international languages (latin based, other european, middle eastern, african, asian and native american languages.)
  • Tested with the original broken text and other examples

Screenshots

Before:
image

After:
image
image

Checklist:

( * == Mandatory )

  • * I have set myself as assignee of the pull request
  • * My code follows the style guidelines of this project
  • * Linting does not generate new warnings
  • * I have performed a self-review of my own code
  • * I have put the ticket for review, adding the oort-frontend team to the list of reviewers
  • * I have commented my code, particularly in hard-to-understand areas
  • * I have put JSDoc comment in all required places
  • * My changes generate no new warnings
  • * I have included screenshots describing my changes if relevant
  • * I have selected labels in the Pull Request, according to the changes with code brings

More explanation

https://www.loom.com/share/05a716d61b9744faaf51fb304c21d1e5?sid=f87cf896-582a-4f76-93ae-8ceed801b145

@HasnatL-Adapptlimited HasnatL-Adapptlimited added the enhancement New feature or request label Apr 17, 2025
@HasnatL-Adapptlimited HasnatL-Adapptlimited self-assigned this Apr 17, 2025
@@ -337,6 +337,8 @@ export const FIELD_EDITOR_CONFIG: RawEditorSettings = {
menubar: 'edit view insert format tools table help',
toolbar:
'undo redo | bold italic underline strikethrough | fontselect fontsizeselect formatselect | alignleft aligncenter alignright alignjustify | outdent indent | numlist bullist | forecolor backcolor removeformat | charmap emoticons | fullscreen preview save | insertfile image media link avatar recordeditor',
paste_retain_style_properties: 'color font-size',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HasnatL-Adapptlimited
does it do anything? the documentation indicates that this has been deprecated in version 5.10, which is the one we're using

@HasnatL-Adapptlimited
Copy link
Collaborator Author

HasnatL-Adapptlimited commented Apr 22, 2025 via email

*/
ngAfterViewInit(): void {
// Find the element with the class "text-overlapping-fix"
const overlappedElement: HTMLElement | null =
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HasnatL-Adapptlimited
I don't think that's a valid solution because it limits the fix to the specific use case you build the fix for
using a class like that that the end user has to put in the html seems quite weird to me

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very specific use case for EIS or any applications using the HTML-text-widget and importing data with MS-word styling.

Do you have any other suggestions for how this can be fixed without hindering other websites in the app builder? as its a very specific ( style paste/ import) issue

Also is there anyway to please set up a call and I can show you how it looks from my side (to try and replicate the overlapping issue) or maybe we can try and compare what is different from my screen and your screen? as I'm not sure why you can't replicate it from your side.

CC: @SafiMohammed

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @HasnatL-Adapptlimited

I can be available tomorrow morning, starting from 9.30am CEST, all the morning
If that works for you I'll let you send a meeting link

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @AntoineRelief scheduled a meeting for 11:00 CEST just seen you accepted, thanks!

@AntoineRelief
Copy link
Collaborator

@HasnatL-Adapptlimited

I'll create a new PR and merge the changes of the tinymce.const file, but I won't merge yet the changes that would fix the export

as mentioned in the ticket, I cannot replicate the issue. I tried with some of my colleagues and none of them could reproduce the issue
In addition, the fix is too specific, and only work for a class the user would add, so it's not generic

@AntoineRelief
Copy link
Collaborator

@HasnatL-Adapptlimited
removed the "retain" feature from the PR, as it's now merged on next branch

@AntoineRelief AntoineRelief changed the title Overlap text fix + Retain colour of text on paste AB#112755 - Overlap text fix while exporting dashboards Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants