Disable or Filter table html code from TinyMCE and likes

Status
Not open for further replies.

HairyHun

Masturbating Bandit
Oct 11, 2007
576
2
0
Hello,

I have a site where I got templated layouts. The text is edited using TinyMCE.
The problem i have is that if someone pasts text with tables ( for example if you select a web and copy that ) then it destroys the layout.

Is there a way to force it to paste plain text only or filter it afterwards.
Either with TinyMCE or another similar product?

HH
 


After you receive the input you can string the table tags out using the strip_tags() function in PHP.

PHP: strip_tags - Manual


So you mean once he saves? That could work :) thanks

I was actually thinking about something that checks as he is editing. Either every few keystrokes or every few seconds. It felt like a not-so-elegant solution.


hh
 
Status
Not open for further replies.