div class="whatever" dissapear when pasted
-
I was creating a new entry but when i copy and paste something like
<div class="whatever">
it changes to
<div> -
-
-
It won’t.
Code gets stripped out if it’s incorrect or if it’s forbidden. What you pasted above is neither. Maybe you made a typo. -
That is a bug. I am quite sure there is a JavaScript function in TinyMCE that is replacing
<div class="whatever">
To
<div>As i said before, try it: http://wordpress.com/#!/post/
-
And as I said before, it won’t. In this demo post, for instance, I’ve got divs with three different custom classes:
http://panosdemos.wordpress.com/2013/05/25/rollover-images/What browser and version are you using?
-
This happens when you show HTML code for visitors, not applying it.
I was writing this article: http://protocololvidado.wordpress.com/2013/07/06/curso-web-capitulo-3-formularios-con-bootstrap/ when i pasted the div, it changed.
I use Firefox
-
This happens when you show HTML code for visitors, not applying it.
You should have said so from the start. There’s nothing in your original question to show that this is what you were asking about. When we say we paste code, we generally mean we paste it in the Text editor because we want to use it. You don’t display code just by pasting it.
The code tags you’ve used aren’t suitable for the purpose. To display code, you either use the code shortcode:
http://en.support.wordpress.com/code/posting-source-code/
or you convert the code, to turn the functioning characters into the corresponding HTML entities:
http://www.plus2net.com/html_tutorial/tags-page.php
- The topic ‘div class="whatever" dissapear when pasted’ is closed to new replies.