<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Nathan,<br>
      <br>
      An AuthorDocumentFragment is a very low level API and the insert
      symbol actions also go though it (from what I've investigated,
      through insertFragment()). Perhaps the code you've written in
      insertFragment() needs to make some additional checks? Is there
      any exception stack trace presented in the console? If not,
      perhaps you can surround your code with something like this to see
      if an exception is generated there:<br>
      <br>
        public void insertFragment(AuthorDocumentFilterBypass
      filterBypass, int offset,<br>
            AuthorDocumentFragment frag) {<br>
      <br>
      try {<br>
      // The code <br>
      .....<br>
      } catch (Throwable t) {<br>
        t.printStackTrace()<br>
      }<br>
      }<br>
      <br>
      If you start Oxygen from the command line scripts (oxygen.bat,
      oxygen.sh etc) you should be able to see what exception is to
      blame.<br>
      <br>
      Another think you could do to see if your customization is to
      blame is to disable your AuthorExtensionStateListener and see if
      the issue still happens. If the issue still happens then it's
      probably an Oxygen issue.<br>
      <pre class="moz-signature" cols="72">Best regards,
Alex
-- 
Alex Jitianu
<oXygen/>  XML Editor, Schema Editor and XSLT Editor/Debugger
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com">http://www.oxygenxml.com</a> </pre>
      On 12-May-14 10:02 AM, Nathan wrote:<br>
    </div>
    <blockquote
cite="mid:CAAA7NDjZ2sVkFnF24X6G7uYwfuzTF6YH2kb-dkiHzg74jCYwvw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi,
        <div>  Whenever I try to insert a symbol using the symbol
          toolbar, I get the following error which I am not able to
          debug:</div>
        <div><br>
        </div>
        <div>
          <div><font face="courier new, monospace">System ID:
              /Users/xxxxxxx/.../dev_guides/ajax/sforce_api_ajax_debug_shell.xml</font></div>
          <div><font face="courier new, monospace">Severity: error</font></div>
          <div><font face="courier new, monospace">Description: :Paste
              failed due to: Index: 0, Size: 0</font></div>
        </div>
        <div><br>
        </div>
        <div>Could someone point me in the right direction on what is
          happening here? I did create a new class by extending the
          AuthorExtensionStateListener and implemented the inserText and
          inserFragment methods which work fine.</div>
        <div><br>
        </div>
        <div>Thanks in advance,</div>
        <div>Nathan</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
oXygen-sdk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-sdk@oxygenxml.com">oXygen-sdk@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk">http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>