Overriding pasting text into WordPress
I’m currently scripting a custom theme and want to have control over pasting text into the wordpress post editor.
The issue is concerning pasting in code and using the pre element. If I switch to the “Text” tab when editing a post, paste in code (i.e. an entire html page) and wrap pre tags around it, everything works fine. But when I switch back to the Visual tab and save, WordPress edits the text and the output becomes unusable.
Is that possible?
- The topic ‘Overriding pasting text into WordPress’ is closed to new replies.