Thread tagged as: Problem, TinyMCE

Blog adding spans to paragraphs

Some paragrpahs in a blog posts are correctly formatted in the text editor when I write a post, but then <span. tags are being added all over the place in the browser. Ive tried copying the text from a lpain text file and it dtill does it.

<div class="hentry">
        <a href="<perch:blog id="postURL" type="hidden" />" rel="bookmark" class="entry-title">
            <perch:blog id="postTitle" type="text" label="Title" required="true" size="xl autowidth" order="1" />
    <p class="entry-published date">
        <perch:blog id="postDateTime" type="date" label="Date" time="true" format="%d %B %Y" divider-before="Meta information" /> 
    <perch:if exists="image">
        <div class="blog-image">
            <img src="<perch:blog id="image" type="image" width="450" height="450" crop="true" label="Image" order="4" />" alt="<perch:blog id="postTitle" />" />
    <div class="description entry-content">
        <perch:blog id="postDescHTML" type="textarea" label="Post" order="2" editor="redactor" html="true" size="xxl autowidth" required="true" />

    <!-- Social Media Buttons -->
    <div class="social-buttons-wrap">
        <div class="twitter-button">
            <a href="" class="twitter-share-button" data-count="none">Tweet</a>
            <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^https:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);;js.src=p+'://';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
        </div><!-- .twitter button -->

        <div class="linkedin-button">
            <script src="//" type="text/javascript">
              lang: en_US
            <script type="IN/Share"></script>
        </div><!-- .linkedin-button -->

    </div><!-- .social-buttons-wrap -->


<perch:blog id="excerpt" type="textarea" label="Excerpt" editor="markitup" textile="true" order="3" suppress="true" size="s" />
<perch:blog id="image" type="image" width="450" height="450" crop="false" suppress="true" />

Chris James

Chris James 0 points

  • 5 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Does this happen if you remove the Redactor editor?

Perch itself doesn't add spans so you should look at whether the editor is doing it.