Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.7.0, 5.0, 5.1, 5.2
Description
With CHROME BROWSER, try to paste some HTML text inside a literal tag. The text will be pasted outside the literal tag.
STEPS TO REPRODUCE
- Edit content.ini.append.php and add the following code.
[literal] AvailableClasses[] AvailableClasses[]=html CustomAttributes[]
- Create a new article and click the button to add a new literal tag.
- Yet in the literal tag window, select HTML class and click OK button.
- You will see a purple line in the body of the article. Click it to make sure it has the focus.
- Copy the code below from a plain text source and paste it inside the literal tag
<div> <table> <tr> <td><b>Head #001</b></td> <td><b>Head #002</b></td> </tr> <tr> <td><b>Test #001</b></td> <td><b>Test #002</b></td> </tr> </table> </div>
- The code was paste outside the literal tag, as you can confirm disabling the online editor.
<literal class="html"> </literal> <div> <table> <tr> <td><b>Head #001</b></td> <td><b>Head #002</b></td> </tr> <tr> <td><b>Test #001</b></td> <td><b>Test #002</b></td> </tr> </table> </div>
Please notice that, if the html code was copied from a browser instead plain text, the results will be slightly different: the literal tag will be duplicated, without the HTML class, and the code will be pasted inside this second literal tag