title: Ckeditor adds empty paragraphs when applying a style
body: <p>My CKEditor is adding a lot of unnecessary tags when applying a style to a selected paragraph</p>
  
  <p>I initiate CKeditor with the following html:</p>
  
  <pre><code>&lt;p&gt;
      Hi, this a text!&lt;/p&gt;
  </code></pre>
  
  <p>When I select the paragraph and apply a style using the toolbar, CKEditor formats my html to the following:</p>
  
  <pre><code>&lt;p&gt;
      &lt;span style="display: none;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
  &lt;p&gt;
      &lt;span id="cke_bm_173S" style="display: none;"&gt;&amp;nbsp;&lt;/span&gt;Hi, this a text!&lt;span id="cke_bm_173E" style="display: none;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
  &lt;p&gt;
      &lt;span style="display: none;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
  </code></pre>
  
  <p>Is there any way preventing CKEditor from adding the paragraphs with the non breaking space?</p>
  
  <p>Things I've already tried are adding <code>config.fillEmptyBlocks = false;</code> and <code>config.IgnoreEmptyParagraphValue = true;</code> to my config file</p>
  
  <p><strong>Update</strong>
  Turns out this problem was caused by the style itself which was a custom defined style. This piece of code was the problem: <code>{name : 'Heading1', element : 'p class= "subheadingsecondlevel"}</code>, once I changed it to: <code>{name : 'Heading1', element : 'p', attributes : {class : 'subheadingsecondlevel'} }</code></p>