Wordpress TinyMCE & wisywyg strips & changes span -


ok want implement responsive image wordpress pages. found article learned me work picturefill.

this code tinymce editor:

<span data-picture data-alt="my responsive image">     <span data-src="http://localhost:88/mywpwebsite/wp-content/uploads/2014/03/picture_200.png"></span>    <span data-src="http://localhost:88/mywpwebsite/wp-content/uploads/2014/03/picture_300" data-media="(min-width: 768px)"></span>    <span data-src="http://localhost:88/mywpwebsite/wp-content/uploads/2014/03/picture_400.png" data-media="(min-width: 1200px)"></span>     <!-- fallback content non-js browsers. same img src initial, unqualified source element. -->     <noscript>         <img src="picture_200.png" alt="my responsive image">     </noscript> </span> 

when change tinymce editor wisywyg editor strips code this:

<span data-picture="" data-alt="my responsive image"><span data-picture="" data-alt="my responsive image">    <!-- fallback content non-js browsers. same img src initial, unqualified source element. --><noscript>         <img src="picture_200.png" alt="my responsive image"> </noscript></span></span>&nbsp; 

when stay on tinymce , save page works have spaces browser. if @ source code see this:

<span data-picture data-alt="my responsive image"><br />     <span data-src="http://localhost:88/controle_direct_wp/wp-content/uploads/2014/03/energieprestatiecertificaat_200.png"></span><br />    <span data-src="http://localhost:88/controle_direct_wp/wp-content/uploads/2014/03/energieprestatiecertificaat_300.png" data-media="(min-width: 768px)"></span><br />    <span data-src="http://localhost:88/controle_direct_wp/wp-content/uploads/2014/03/energieprestatiecertificaat_400.png" data-media="(min-width: 1200px)"></span><br /> </span><br />     <!-- fallback content non-js browsers. same img src initial, unqualified source element. --></p> <noscript>         <img src="picture_200.png" alt="my responsive image"><br />     </noscript> 

i think problem showing because of span tags. cannot seem find solution. cannot disable wisywyg editor because client has change content in future


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -