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

Editor moves tables pasted in source mode #1442

Open
cbclark64 opened this issue Aug 28, 2024 · 3 comments
Open

Editor moves tables pasted in source mode #1442

cbclark64 opened this issue Aug 28, 2024 · 3 comments
Labels

Comments

@cbclark64
Copy link

Describe the bug
We have a page that contains the sunEditor component. If we go into codeView mode and paste the contents the attached .txt (actually HTML) file, the tables are moved to the end of the HTML stream.

To Reproduce
Steps to reproduce the behavior:

  1. Go to any page that has the editor with the codeView button enabled
  2. Click on the source/codeView button
  3. Paste the contents of the attached .txt file
  4. Go back into normal edit mode.
  5. There are 3 tables in the HTML. Two are in the main body and one is at the end of the HTML. All 3 display at the bottom of the editor.

Expected behavior
The two misplaced tables should appear inline.

Screenshots
1 screenshot attached

Desktop (please complete the following information):

  • OS: Windows, MacOS
  • Browser Chrome, Safari
  • Version I'm testing on the latest version of MacOS with the latest Chrome and Safari. End users are on Windows with the latest Chrome.

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.
Holiday and Vacation Pay Sick Leave Jury Duty Bereavement Leave.txt
TableError

@melloware
Copy link
Contributor

Original issue: primefaces-extensions/primefaces-extensions#1664

@JiHong88
Copy link
Owner

JiHong88 commented Sep 2, 2024

Try this
<div style="margin-left:80px; margin-right:80px" class="__se__format__range__closure_xxx"> or
<div style="margin-left:80px; margin-right:80px" class="__se__format__range_xxx">

@melloware
Copy link
Contributor

@cbclark64 were you able to test the change from @JiHong88 ??

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

No branches or pull requests

3 participants