UPDATE xf_user_option
SET enable_rte = 0;
Just download notepad++, paste what you copied in there....and then copy that and paste it in the post.Hi everyone, any solution for disabling formatting for copy-paste from m$ word and html?
Just download notepad++, paste what you copied in there....and then copy that and paste it in the post.
config.forcePasteAsPlainText = true;
Not joking at all....how am I supposed to know that is what you mean...You are joking me, right? I know how to get rid of formatting. But it's impossible to nail it itno the users' heads
in IPB I can put a line into the js of cke
Code:config.forcePasteAsPlainText = true;
And that will do the job.
Am I the only one with this kind of concern?
function cleanWordPaste( in_word_text ) {
var tmp = document.createElement("DIV");
tmp.innerHTML = in_word_text;
var newString = tmp.textContent||tmp.innerText;
// this next piece converts line breaks into break tags
// and removes the seemingly endless crap code
newString = newString.replace(/\n\n/g, "<br />").replace(/.*<!--.*-->/g,"");
// this next piece removes any break tags (up to 10) at beginning
for ( i=0; i<10; i++ ) {
if ( newString.substr(0,6)=="<br />" ) {
newString = newString.replace("<br />", "");
}
}
return newString;
}
I just find it unneeded in general and personally think this is not worth the time or bytes, just saying that I would be pissed off if I had to stop being able to utilize copy and paste in posts so that people who insist on using MSword can paste from documents formatted in hell.Now that I think about it, you can just create a bbcode for people to use who insist on pasting from MSword which would strip all of the formatting.I just don't see a need for it when anyone with a computer already has the tools on their local machine to make this not be an issue nor do I think that people who take the time to learn how things work should be punished (and have to spend more time when pasting text that is actually formatted in a way that makes sense) so that a smaller group of people can do what they do without learning anything.Best of luck to you and no I am not joking about that either.
Hi everyone, any solution for disabling formatting for copy-paste from m$ word and html?
We use essential cookies to make this site work, and optional cookies to enhance your experience.