Skip to content
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

TypeError: Cannot read properties of undefined (reading 'row') #379

Open
shahnewaz-gain opened this issue Sep 10, 2023 · 0 comments
Open

Comments

@shahnewaz-gain
Copy link

shahnewaz-gain commented Sep 10, 2023

Expected behavior.

This issue shouldn't to show.

Actual behavior.

Getting this error on some block codes of our templates. [Note: Default froala-editor is okay and found this error in react-froala-wysiwyg editor]

Steps to reproduce the problem.
  1. You can get this error by using these codes in editor (react-froala-wysiwyg).
    <table data-role="block-item-content" class="block-content" cellpadding="0" cellspacing="0" role="presentation" style="margin: 0px auto; width: 100%; background-color: rgb(255, 255, 255);font-family: Roboto,RobotoDraft,Helvetica,Arial,sans-serif;">\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td valign="top" align="left" style="padding: 5px 20px;">\n\t\t\t\t\t\t\t\t\t<table style="width: 25%;" cellpadding="0" cellspacing="0" align="left">\n\t\t\t\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t<td valign="top" align="left" class="fr-selected-cell">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="js-template-editor"><p>Leverandør</p></div>\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t<table style="width: 75%;" cellpadding="0" cellspacing="0" align="right">\n\t\t\t\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t<td valign="top" align="left" class="fr-selected-cell">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="js-template-editor"><p>Navn: Høyen Drift AS</p><p>Org.nummer: 920052479</p><p>Adresse {{partner_address}}</p><p>Telefon &nbsp;{{agent_phonenumber}} &nbsp; E-post {{agent_email}}</p></div>\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>

  2. Also, I have attached a video link and images for that error.
    Codesandbox example: https://codesandbox.io/s/cannot-read-properties-of-undefined-reading-row-jmwq9k?file=/src/App.js

Images-1:
Screenshot 2023-09-10 at 12 44 38 PM

Image-2:
Screenshot 2023-09-10 at 3 00 12 PM

Editor version.

"froala-editor": "4.1.1"
"react-froala-wysiwyg": "4.1.1" and earlier

OS.

MacOS 12.6.4 (21G526)

Browser.

Chrome 116.0.5845.140

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant