When you copy text from your favorite text editor or your browser in your portal, directly to the DNN rich text editor in design mode, a lot of wasteful code will be added behind your text.
This is what I am doing to keep it clean:
Before I paste the text in my portal I open a notepad and I paste it there. This way I get my text clean without any formatting. Then I copy the unformatted text from notepad and I paste it to the basic text box in text mode. After that I use the rich text editor in design mode to format my text.
Of course with the rich text editor there is the clean MS Word HTML button and you can use that if you need to make it faster, but with my way I am sure I get a better result.
And all of these, if you don't know HTML... because if you do, you can write the html code on your own, with your favorite HTML editor and paste it in the basic text box or the rich text editor in html mode.
I hope you find that useful. |