<p>Not a solution, but I strip it out as part of a cleanup macro that runs on body text.</p>

<pre><code>{% macro cleanup(string) -%}
    {%- if string|length -%}
        {{- string|typogrify|replace('&lt;p&gt;&lt;br&gt;&lt;/p&gt;','')|replace('redactor-inline-converted','')|raw -}}
    {%- endif -%}
{%- endmacro %}
</code></pre>

CC BY-SA 3.0
2016-04-19T08:32:41.813Z
Thanks @maxfenton I've done the same with a bit of regex but it would be good to have clean data stored as I never want these classes.
Elliot Lewis
CC BY-SA 3.0
2016-04-15T14:33:04.433Z
2016-04-15T18:54:57.777Z
2016-04-15T18:54:57.777Z
maxfenton
<p>Not specifically a Craft problem but I'm struggling to find an answer from Redactors site.</p>

<p>I've got over 100 occurrences of class="redactor-inline-converted" littered throughout the markup of Rich Text fields. How can I stop Redactor adding this class?</p>

<hr>

<p>Update 2016-04-26</p>

<p>Here's the steps to recreate this. It's an odd thing between Redactor and Word.</p>

<ol>
<li>Have styled text in Word with a superscript</li>
<li>Copy / paste in to Craft</li>
<li>Add some text and format it</li>
<li>Check the source and Redactor will add <code>class="redactor-inline-converted"</code></li>
</ol>

<p>This happens randomly on all tags:</p>

<pre><code>&lt;strong class="redactor-inline-converted"&gt;&lt;em class="redactor-inline-converted"&gt;Superscript&lt;/em&gt;&lt;/strong&gt;
&lt;ul&gt;&lt;li&gt;&lt;em class="redactor-inline-converted"&gt;list item&lt;/em&gt;&lt;/li&gt;&lt;/ul&gt;
</code></pre>

<p>Video example:
<a href="http://sendvid.com/h41rosb3" rel="nofollow">http://sendvid.com/h41rosb3</a></p>

CC BY-SA 3.0
2016-04-15T14:07:27.637Z
What version of Craft/Redactor?  Any idea on how they get inserted?
Brad Bell
CC BY-SA 3.0
2016-04-19T08:31:08.407Z
Craft CMS 2.6.2780 and whatever version of Redactor comes with Craft. The text is being copied from Word on Windows 7.
Elliot Lewis
<redactor><richtext>
Remove/stop 'redactor-inline-converted'
# Remove/stop 'redactor-inline-converted'

(Asked by: username_0 on 2016-04-15)

Not specifically a Craft problem but I'm struggling to find an answer from Redactors site.
I've got over 100 occurrences of class="redactor-inline-converted" littered throughout the markup of Rich Text fields. How can I stop Redactor adding this class?

Update 2016-04-26
Here's the steps to recreate this. It's an odd thing between Redactor and Word.

Have styled text in Word with a superscript
Copy / paste in to Craft
Add some text and format it
Check the source and Redactor will add class="redactor-inline-converted"

This happens randomly on all tags:
Superscript
list item

Video example:
http://sendvid.com/h41rosb3

**Tags:** redactor, richtext
> **Comments:**
> **username_1**: What version of Craft/Redactor?  Any idea on how they get inserted?  
> **username_0**: Craft CMS 2.6.2780 and whatever version of Redactor comes with Craft. The text is being copied from Word on Windows 7.  

---

## 1 answers

### Answer by username_2 on 2016-04-15. Score: 1

Not a solution, but I strip it out as part of a cleanup macro that runs on body text.
{% macro cleanup(string) -%}
    {%- if string|length -%}
        {{- string|typogrify|replace('','')|replace('redactor-inline-converted','')|raw -}}
    {%- endif -%}
{%- endmacro %}

> **Comments:**
> **username_0**: Thanks @maxfenton I've done the same with a bit of regex but it would be good to have clean data stored as I never want these classes.  

---

