2

I've got an instance of jWysiwyg running on a site I'm building for a local sports club. The issue I've got is that whenever you copy and paste something into the editor, it copies over the formatting from wherever you've copied it.

This means that sometimes it'll surround the copy with <p> or sometimes <div class="JUSTIFY">. The issue is that it messes with the formatting when it's viewed. Basically I just want to let the users put things in bold or italics.

Is there a way to remove the formatting of pasted text?

Dormouse
  • 5,130
  • 1
  • 26
  • 42
  • not sure about when you use jwysiwyg, however if you really need to do this and you can't figure it out you should take a look at ckeditor, it has a configuration option to turn off copy paste formatting. – jeffreydev Sep 22 '11 at 14:14
  • You can also handle your text in the server side. –  Sep 27 '11 at 02:37

1 Answers1

3

Did you try out the rmFormat plugin? There's a live demo (src), too.

Maximilian Hils
  • 6,309
  • 3
  • 27
  • 46