title: increase/decrease FontSize buttons for RadEditor control
body: <p>How could I implement <strong>increase/decrease</strong> FontSize  buttons for RadEditor control, the new font size should then be refreshed in the <code>&lt;telerik:EditorTool Name="RealFontSize" /&gt;</code> button also included in the RadEditor Toolbar </p>
  
  <p><img src="https://i.stack.imgur.com/ozIsa.jpg" alt="if Click in increase button, the realfontsize dropdown should increase in 1px as well as the font size of the selected text"></p>
  
  <p>for example from the figure if Click in increase button, the realfontsize dropdown should increase in 1px to 17px as well as the font size of the selected text</p>
  
  <p><strong>Update:</strong>
  Thanks to @rdmptn answer : <a href="https://stackoverflow.com/a/23365866/432424">https://stackoverflow.com/a/23365866/432424</a> I got this first approach function, but I still don´t manage to get the current fontSize of selected text:</p>
  
  <pre><code>Telerik.Web.UI.Editor.CommandList["IncreaseFontSize"] = function (commandName, editor, args) 
  {
      if (editor.getSelectionHtml() != "")
      {
          var selection = editor.getSelection();
          var theSelectedElement = selection.getParentElement();
          var currentFontSize = parseInt(theSelectedElement.style.fontSize);
          currentFontSize++;
          editor.fire("FontSize", { value: currentFontSize.toString() }); }); //fire the FontSize command
      }
      else
      {
          alert("Please, select some text!");
          args.set_cancel(true);
      }
  };
  </code></pre>
  
  <p><strong>Update 2:</strong> 
  this function works well:</p>
  
  <pre><code>Telerik.Web.UI.Editor.CommandList["IncreaseFontSize"] = function (commandName, editor, args) 
  {
      if (editor.getSelectionHtml() != "") 
      {
          var selection = editor.getSelection();
          var theSelectedElement = selection.getParentElement().firstElementChild;
          var currentFontSize = parseInt(theSelectedElement.size);
          currentFontSize++;
          var strNewFontSize = currentFontSize.toString();
          editor.fire("FontSize", { value: strNewFontSize }); //fire the FontSize command    
      }
      else
      {
          alert("Please, select some text!");
          args.set_cancel(true);
      }
  };
  </code></pre>