<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>You are right that by putting the cursor to the left it writes
      normal text. It only happens when you put the cursor to the right
      of the field.<br>
    </p>
    <p>It is not necessary that the field is the last thing in a file.
      It is sufficient it is the last thing in a paragraph. In this case
      you won't be able to insert text after the field without expanding
      the field. At least it will be not so simple. You will have to
      press Enter, space, left arrow, backspace, right arrow, and type.<br>
    </p>
    <p>I also noticed an exception: if you don't select anything, and do
      Insert -> Cross Reference ->  Set Reference, type a name,
      press Insert and then Close, it will insert an empty reference
      (which I have no idea why it differs conceptually from a
      bookmark?). This empty reference will be not modifiable: nor by
      putting the cursor to the left nor to the right, the text of the
      reference will stay empty.</p>
    <p>So exception aside, I think maybe a good compromise would be
      that, if the user put the cursor on the right of a field, and
      press "Esc", it will start to type outside of the field, without
      expanding the field? Would that work?</p>
    <p>Best,</p>
    <p>Phil</p>
    <div class="moz-cite-prefix">On 19/08/2022 16:04, Andrew Pitonyak
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:4029e24f-ab0c-4b58-91b0-e8fc2815757a@pitonyak.org">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="auto">The general expected behavior in libre office, at
        least for me, is that if I place the cursor and start typing,
        that it will continue using the same attributes and properties
        of the character directly to the left of the cursor. So, if I
        have bold text, and I placed the cursor to the left of the bold
        text and I type, it will not be bold, it will be whatever is to
        the left of the cursor. If the cursor is immediately to the
        right of the bold text however then it will be bold.<br>
        <br>
      </div>
      <div dir="auto">In this case, I assume, but have not verified or
        checked in anyway,  references are a field. So the intent of
        this is to make certain that when the cursor is sitting directly
        to the left or right of, whatever is typed does not end up
        inside of that field. One side effect of this I expect, is that
        if you have a field with only one character you will have no way
        of modifying the text inside the field unless there is some
        special case when the text of the field is selected. I did not
        even check, can I select the text in a field? So what if the
        selection is partially in a field?<br>
        <br>
      </div>
      <div dir="auto">I would never have considered this a bug, I would
        have just considered it an extension of expected behavior. The
        annoying part is that if the field is the last thing in a file
        you have no way to add text after the field unless you do it
        programmatically, but that is also true last I checked of text
        tables.<br>
        <br>
      </div>
      <div dir="auto">I hope other contributors to comments in the bugs
        are correct that it is an easy fix, but I am skeptical.<br>
        <br>
      </div>
      <div dir="auto"><!-- tmjah_g_1299s -->Get
        <!-- tmjah_g_1299e --><a href="https://bluemail.me"
          moz-do-not-send="true"><!-- tmjah_g_1299s -->BlueMail for
          Android<!-- tmjah_g_1299e --></a><!-- tmjah_g_1299s -->
        <!-- tmjah_g_1299e --></div>
      <div class="gmail_quote">On Aug 19, 2022, at 9:41 AM, Phillips
        Rogfield <<a href="mailto:thebudget72@gmail.com"
          target="_blank" moz-do-not-send="true"
          class="moz-txt-link-freetext">thebudget72@gmail.com</a>>
        wrote:
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div class="markdown-here-wrapper" data-md-url="" style="">
            <p style="margin: 0px 0px 1.2em !important;">Dear
              developers,</p>
            <p style="margin: 0px 0px 1.2em !important;">I would like to
              fix <a
                href="https://bugs.documentfoundation.org/show_bug.cgi?id=81720#c22"
                moz-do-not-send="true">bug 81720</a>.</p>
            <p style="margin: 0px 0px 1.2em !important;">Basically when
              you insert a ReferenceMark, if you put the cursor at the
              edge of it (start or end), and type something, it will
              expand on the reference mark instead of writing it as a
              “normal text”.</p>
            <p style="margin: 0px 0px 1.2em !important;">You can find
              how to reproduce it in comment <a
                href="https://bugs.documentfoundation.org/show_bug.cgi?id=81720#c22"
                moz-do-not-send="true">22</a>.</p>
            <p style="margin: 0px 0px 1.2em !important;">I have set up
              my environment, but I’m not sure where is the code that
              “checks” if something is a ReferenceMark, if anything.</p>
            <p style="margin: 0px 0px 1.2em !important;">Can you point
              me in the right direction, please?</p>
            <p style="margin: 0px 0px 1.2em !important;">Best,</p>
            <p style="margin: 0px 0px 1.2em !important;">Phil</p>
            <div
title="MDH:PHA+RGVhciBkZXZlbG9wZXJzLDwvcD48cD5JIHdvdWxkIGxpa2UgdG8gZml4IFtidWcgODE3MjBdKGh0dHBzOi8vYnVncy5kb2N1bWVudGZvdW5kYXRpb24ub3JnL3Nob3dfYnVnLmNnaT9pZD04MTcy
MCNjMjIpLjwvcD48cD5CYXNpY2FsbHkgd2hlbiB5b3UgaW5zZXJ0IGEgUmVmZXJlbmNlTWFyaywg
aWYgeW91IHB1dCB0aGUgY3Vyc29yIGF0IHRoZSBlZGdlIG9mIGl0IChzdGFydCBvciBlbmQpLCBh
bmQgdHlwZSBzb21ldGhpbmcsIGl0IHdpbGwgZXhwYW5kIG9uIHRoZSByZWZlcmVuY2UgbWFyayBp
bnN0ZWFkIG9mIHdyaXRpbmcgaXQgYXMgYSAibm9ybWFsIHRleHQiLjwvcD48cD5Zb3UgY2FuIGZp
bmQgaG93IHRvIHJlcHJvZHVjZSBpdCBpbiBjb21tZW50IFsyMl0oaHR0cHM6Ly9idWdzLmRvY3Vt
ZW50Zm91bmRhdGlvbi5vcmcvc2hvd19idWcuY2dpP2lkPTgxNzIwI2MyMikuPC9wPjxwPkkgaGF2
ZSBzZXQgdXAgbXkgZW52aXJvbm1lbnQsIGJ1dCBJJ20gbm90IHN1cmUgd2hlcmUgaXMgdGhlIGNv
ZGUgdGhhdCAiY2hlY2tzIiBpZiBzb21ldGhpbmcgaXMgYSBSZWZlcmVuY2VNYXJrLCBpZiBhbnl0
aGluZy48L3A+PHA+Q2FuIHlvdSBwb2ludCBtZSBpbiB0aGUgcmlnaHQgZGlyZWN0aW9uLCBwbGVh
              c2U/PC9wPjxwPkJlc3QsPC9wPjxwPlBoaWw8YnI+PC9wPg=="
              aria-hidden="true"
style="height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0;padding:0;margin:0;">​</div>
          </div>
        </blockquote>
      </div>
    </blockquote>
  </body>
</html>