If code contains nested or unnecessary tags, is there a way to delete them from CKEditor GUI?
Sure, you can delete them from code view, but average user would need a way to do this from the user interface.
Example 1:
<div><p>...</p></div>
Example 2:
<td><p>...</p></td>,
In example 1, is it possible to remove just the <div> tags that are wrapping the <p> tags?
In example 2, is it possible to remove the <p> tags inside the <td> while keeping the text in <p> tag intact.
...removing just the unwanted tags without deleting the text-content or the tags inside the tags that are wanted to remain.
I assumed that ShowBlocks- toolbar button would offer a solution to this. It does show the outlines of the blocks, and you can select elements from element path in bottom bar of the editor. But it sometimes selects the inner element (or just the text inside it) instead of the outer (div example), and pressing delete or backspace will clear the text contents.
Old KTML editor has this kind of feature, it shows the element path, and next to it is 'remove element' button. You choose the nested element you want removed and click the button and it's gone from the code, without replacing any other content.
Thus, something like this would happen:
Element path: <table> <tr> <td> <div> <p>
select the div- tag in the list and press 'remove elements' and the result would be
Element path: <talbe <tr> <td> <p>
All nice and neat. Any way to do this in CKEditor? Users might copy paste all kinds of messy html and GUI way to clean it up might help keeping the content look like it's supposed to...
Sure, you can delete them from code view, but average user would need a way to do this from the user interface.
Example 1:
<div><p>...</p></div>
Example 2:
<td><p>...</p></td>,
In example 1, is it possible to remove just the <div> tags that are wrapping the <p> tags?
In example 2, is it possible to remove the <p> tags inside the <td> while keeping the text in <p> tag intact.
...removing just the unwanted tags without deleting the text-content or the tags inside the tags that are wanted to remain.
I assumed that ShowBlocks- toolbar button would offer a solution to this. It does show the outlines of the blocks, and you can select elements from element path in bottom bar of the editor. But it sometimes selects the inner element (or just the text inside it) instead of the outer (div example), and pressing delete or backspace will clear the text contents.
Old KTML editor has this kind of feature, it shows the element path, and next to it is 'remove element' button. You choose the nested element you want removed and click the button and it's gone from the code, without replacing any other content.
Thus, something like this would happen:
Element path: <table> <tr> <td> <div> <p>
select the div- tag in the list and press 'remove elements' and the result would be
Element path: <talbe <tr> <td> <p>
All nice and neat. Any way to do this in CKEditor? Users might copy paste all kinds of messy html and GUI way to clean it up might help keeping the content look like it's supposed to...