Get support for jcubic/filter-paste-js

If you're new to LTH, please see our FAQ for more information on what it is we do.

Support Options

Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:

View Open Issues

Take a look to see if anyone else has experienced the same issue as you and if they managed to solve it.

Open an Issue

Make sure to read any relevant guidelines for opening issues on this repo before posting a new issue.

Sponsor directly

Check out the page and see if there are any options to sponsor this project or it's developers directly.

jcubic/filter-paste-js

jQuery plugin for intercepting paste text into iframe with design mode

this plugin allow you to filter text pasted into iframe (tested on latest Firefox and Chrome and Internet 8) it will not work in Opera

usage:


$(function() {
	$('iframe').designMode(true).filterPaste(function(text) {
		return text.replace(/<\/?\w+[^>]*>/gi, "");
	});
});

this will strip all tags from pasting text (like when you copy from a web page)

Aditional plugins

  1. document
  2. body
  3. designMode
  4. selection
  5. range

License

This is free software. You may distribute it under the terms of the

Poetic License. http://genaud.net/2005/10/poetic-license/

Copyright (c) 2012 Jakub Jankiewicz

Our Mission

We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.

Interesting Articles

Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated

ud-bd4760f4