-
Notifications
You must be signed in to change notification settings - Fork 4
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
Ckedito5 patch for table cell resize #533
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey @sharmasahil
do you need an update hook to apply the changes across all sites?
Also, could you clarify the need for a local patch?
Thanks for the review @vincent-gao, I have updated the PR with comments and also removed local patch, put install hook too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey @sharmasahil
Just a few minor things, and it's perfectly fine if you don't want to make any changes.
please make sure build and tests pass.
|
||
// Extract only the inner HTML of the <body> tag, avoiding extra tags. | ||
$processedBodyContent = ''; | ||
foreach ($processedDom->getElementsByTagName('body')->item(0)->childNodes as $node) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this be simplified by using DOMDocument::saveHTML
directly on the element.
e.g.
$processedBodyContent = $processedDom->saveHTML($processedDom->getElementsByTagName('body')->item(0));
libxml_use_internal_errors(true); | ||
$valueDom->loadHTML($data['value']); | ||
$processedDom->loadHTML($data['processed']); | ||
libxml_clear_errors(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Jira
SD-358 - Control WYSIWYG and data table column widths in ckeditor
Fix