Remove inline styles in WordPress
- Started
- Last post
- 3 Responses
- iamjustoneman
Hi all,
Does anyone know if there is a plugin or code hack for removing inline styling that the editor can leave in when pasting code.
I know there is a remove formating button but it doesn't seem to remove this.
A passed a website over and the client is kind of messing it up with pasted text
- hilchev0
happens I think only or mostly from Word.
Some editors have this button - Paste From Word where a second text area appears and you can safely paste text.
Or you can try, but this is almost impossible, telling the client to paste his text first in Notepad.
Anyway both options are crap...
- acescence0
strange, i've never had an issue with the paste as plain text or paste from word buttons. your other option is to create a filter in your theme's functions.php file and use a bit of php to filter it when it posts.
- acescence0
here's an example of a filter that might work for you. this is off the top of my head, not tested..