Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Editing from an empty textarea

Received: by 10.100.205.15 with SMTP id c15mr1135884ang.34.1316766395132;
        Fri, 23 Sep 2011 01:26:35 -0700 (PDT)
X-BeenThere: codemirror@googlegroups.com
Received: by 10.100.237.8 with SMTP id k8ls4912285anh.2.gmail; Fri, 23 Sep
 2011 01:26:33 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.101.80.12 with SMTP id h12mr667690anl.30.1316766393616; Fri,
 23 Sep 2011 01:26:33 -0700 (PDT)
Received: by 1g2000yqm.googlegroups.com with HTTP; Fri, 23 Sep 2011 01:26:33
 -0700 (PDT)
Date: Fri, 23 Sep 2011 01:26:33 -0700 (PDT)
In-Reply-To: <CAJnHWXuzvuhWOA_t_3etVaMsx3YT0+FHyKyoy8-vruicdkF2Cw@mail.gmail.com>
References: <e7182b38-5d49-4a23-b390-c2c83c5ce39d@d41g2000yqc.googlegroups.com>
 <CAJnHWXv1386t42f6bBR20ncVyNtZbtWL0LQ9_-+bLQ06SC3AZg@mail.gmail.com>
 <cf34b98e-84aa-4258-9d92-d9a342e849a3@d12g2000vba.googlegroups.com> <CAJnHWXuzvuhWOA_t_3etVaMsx3YT0+FHyKyoy8-vruicdkF2Cw@mail.gmail.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2,gzip(gfe)
Message-ID: <45cea8bb-bed8-4e30-8a0e-b8b82cdeaaef@1g2000yqm.googlegroups.com>
Subject: Re: Editing from an empty textarea
From: Andrew K <akasp...@gmail.com>
To: CodeMirror <codemirror@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Oh, well, turns out that's not the issue.  I set the mode to htmlmixed
with the empty text and that triggers a JS error which causes the
editor to not initialize properly and therefore causing the issue.

The error though is:

Error: htmlMode.startState is not a function
Source File: /codemirror/mode/htmlmixed/htmlmixed.js
Line: 51

Not setting the mode makes things work though.

On Sep 23, 3:15=A0am, Marijn Haverbeke <mari...@gmail.com> wrote:
> > The cursor is shown when I have content and remove it all, so that's
> > good.
>