If I add a code, for example

<a class="thickbox" title="Image" href="image.jpg">
    <img scr="image.jpg" alt="image" width="100" height="100" border="0" />

WordPress changes it after visiting Visual side:

<a class="thickbox" title="Image" href="image.jpg">
    <img alt="image" width="100" height="100" border="0" />

What makes scr string disappear? The copy/paste used to work before.


Because the correct attribute is src. S.R.C, not S.C.R. (I'd have assumed it was a typo in the question, but you used it 3 times).

The WordPress editor removes attributes that aren't whitelisted, and since scr isn't an actual attribute it's not on the whitelist.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.