copying text from a text block into an HTML block generates code

ChancyRatChancyRat Registered Users Posts: 2,141 Major grins
edited April 4, 2014 in Bug Reporting
It occurs to me this might actually *not* be a problem but - really?
I was transferring text from a Text block into an HTML content block, and got a LOT of messy code as a result. I have tested this and reproduced the problem.

The condition for the error to occur is that the text content block should have a mix of plain code and some other formatting - italicized text, different font sizes. Not sure what else would cause this.

I highlighted all the text in the text block and then pasted it into an HTML block which did not have any other code in it. I was going to add that next. Instead of resulting in plain text paste only, I got this.

<h3 id="yui_3_8_0_1_1396656980245_8550"><span id="yui_3_8_0_1_1396656980245_8696">Should you let your pet rat play outside?</span></h3><p id="yui_3_8_0_1_1396656980245_8566"><span id="yui_3_8_0_1_1396656980245_8697" style="font-size: 20px;">I'm of a mind to say, probably not. I know I would not, and my decision comes from real life experience and the examples below. </span><br id="yui_3_8_0_1_1396656980245_8698" /><br id="yui_3_8_0_1_1396656980245_8699" /><span id="yui_3_8_0_1_1396656980245_8565" style="font-size: 20px;">First take a look at 3 photographs. Picnickers spotted a nearby hawk on a stump, and managed these shots: </span></p><p id="yui_3_8_0_1_1396656980245_8700"><span id="yui_3_8_0_1_1396656980245_8701" style="font-size: 20px; font-style: italic;">One of the hawk sitting on the stump, </span></p><p id="yui_3_8_0_1_1396656980245_8702"><span id="yui_3_8_0_1_1396656980245_8703" style="font-size: 20px; font-style: italic;">His claws as he swoops in on the food on their table,</span></p><p id="yui_3_8_0_1_1396656980245_8704"><span id="yui_3_8_0_1_1396656980245_8705" style="font-size: 20px; font-style: italic;">And his tail feathers as he makes his escape. </span></p><p id="yui_3_8_0_1_1396656980245_8706"><span id="yui_3_8_0_1_1396656980245_8707" style="font-size: 20px;">Think "rat" instead of picnic lunch, and that a hawk can spot a rat from miles away and circle to gain the advantage of surprise. These picnickers packed up their small dogs for safety's sake. </span></p>

Comments

  • AllenAllen Registered Users Posts: 10,013 Major grins
    edited April 4, 2014
    Try this. Paste into notepad then copy and paste in html block.
    Al - Just a volunteer here having fun
    My Website index | My Blog
  • ChancyRatChancyRat Registered Users Posts: 2,141 Major grins
    edited April 4, 2014
    Oh good grief. Moderators may feel free to delete this thread. :D
    Thank you Allen.
  • AllenAllen Registered Users Posts: 10,013 Major grins
    edited April 4, 2014
    Sounds like it worked to remove the extra code. Hate to remove, might give a hint to others if this comes up.
    Al - Just a volunteer here having fun
    My Website index | My Blog
Sign In or Register to comment.