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

Preformatted Table Breaks on Removing Bold #278

Open
siddk10 opened this issue Oct 28, 2024 · 0 comments
Open

Preformatted Table Breaks on Removing Bold #278

siddk10 opened this issue Oct 28, 2024 · 0 comments

Comments

@siddk10
Copy link

siddk10 commented Oct 28, 2024

Jodit Version: 4.0.25

Browser: Chrome
OS: Window
Is React App: True

When I insert the following HTML syntax in Jodit Editor, the table gets highlighted as bold as expected.

Code

<p><strong>
            <p>[REPEAT TABLE SBT14_ActiveQC]</p>
              <table style="border-collapse: collapse; width: 100%">
                <tbody>
                  <tr>
                    <td>SBT14_QCDOB</td>
                  </tr>
                  <tr>
                    <td>[SBT14_QCDOB]</td>
                  </tr>
                </tbody>
              </table>
            <p>[END SBT14_ActiveQC]</p>
            </strong></p>

But, when I try to remove the bold style by using the button in Jodit, the table breaks. I get the code as below
Code

<p> [REPEAT TABLE SBT14_ActiveQC] </p>
<table style="border-collapse: collapse; width: 100%">
    <tbody>
        <tr>
            <td><br></td>
        </tr>
    </tbody>
</table>
<table style="border-collapse: collapse; width: 100%">
    <tbody>
        <tr>
            <td>SBT14_QCDOB</td>
        </tr>
    </tbody>
</table>
<table style="border-collapse: collapse; width: 100%">
    <tbody>
        <tr>
            <td><br></td>
        </tr>
        <tr>
            <td><br></td>
        </tr>
    </tbody>
</table>
<table style="border-collapse: collapse; width: 100%">
    <tbody>
        <tr>
            <td>[SBT14_QCDOB]</td>
        </tr>
    </tbody>
</table>
<table style="border-collapse: collapse; width: 100%">
    <tbody>
        <tr>
            <td><br></td>
        </tr>
    </tbody>
</table>
<p><br></p>
<p>[END SBT14_ActiveQC]</p>

Is there any way to resolve this issue? I just want to remove the strong element from the first code block.

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