title: How to insert text/symbols from a custom button on textAngular toolbar
body: <p>Essentially I want to add a button to the toolbar to allow the user to insert &copy; into the textangular editor (<a href="http://textangular.com/" rel="noreferrer">http://textangular.com/</a>), however I am having trouble understanding how to add functionality to my button after it has been registered... As all the examples for custom functionality on the textangular site use the same statement "wrapSelection" which has very minimal documentation, an example of this is shown below with  the quote button.</p>
  
  <pre><code>    taRegisterTool('quote', {
      iconclass: 'fa fa-quote-right',
      tooltiptext: taTranslations.quote.tooltip,
      action: function(){
          return this.$editor().wrapSelection("formatBlock", "&lt;BLOCKQUOTE&gt;");
      },
      activeState: function(){ return this.$editor().queryFormatBlockState('blockquote'); }
  });
  </code></pre>
  
  <p>I am confused as to where the "formatBlock" is initialised and believe finding its source would help me with this problem. As you can see any help would be appreciated</p>
  
  <pre><code>    taRegisterTool('insertCopyright', {
          buttontext: '&amp;copy;',
          tooltiptext: taTranslations.insertCopyright.tooltip,
          action: function () {
              //???
         },
      });
  </code></pre>