[Mozile] Line-breaks and XML/XHTML
James A. Overton
james at overton.ca
Mon Jun 12 11:49:17 EDT 2006
The problem is clear now that I can see the page. Block elements
which are Mozile editors are not supposed to be split. This is the
desired behaviour in most situations, I believe; you don't want to
make changes to the container which holds the editable content.
If you want to allow editor blocks to split, just comment out one
line inside splitBlock():
if(mozile.isEditor(node)) return false;
On 2006-Jun-12, at 10:05 AM, Reto Bachmann-Gmür wrote:
> Other issues I encountered:
> - When changing the style of a word, it happens to move to the
> beginning
> of the edit section, similarly when clicking in the paragraph starting
> with "This is the documentation" the contained link happens to show at
> the beginning of the edit area, rather than staying where it is.
There are problems with the cursor handling, which are very difficult
to solve. In the newest development code for Mozile 0.8 we take an
entirely different approach than in 0.7, and it's working better.
> - The cursor sometimes does not appear in the edit sections, it does
> however appear in other tabs (pressing F7 twice has no effect).
This is a bug with Mozilla's "Caret Browsing" mode, and I haven't
found any way to work around it.
> - It is not always possible to remove a style
That's probably a bug with Mozile.
> - The spellbound version I tweaked for firefox 1.5 doesn't work within
> editable sections, any way for doing client-side spell checking
> with mozile?
I don't know much about SpellBound, but it's designed to work inside
text areas and such. It won't work with Mozile without modifications,
probably very large modifications, and it might not be possible to
make it work.
There isn't any way I know of to do spell checking with Mozile at
the current time. I've thought about how it could be done, but I
haven't ever tried to make it work. Hopefully we'll get that feature
some time. It's a major shortcoming.
You might want to take a look at the new Mozile 0.8 version: http://
mozile.mozdev.org/0.8/index.html
It's not finished, and editing XML might not work very well at this
point. But that's where most of the current development effort is
going. It works in Firefox 1.5 and IE 6 right now. There are big
improvements to cursor handling, for example, and we're working on
support for structured editing and validation using RelaxNG schemas.
I think your approach to RDF editing is very interesting. Mozile 0.7
might be able to do what you want, but you're pushing what the
current version is designed to do.
James
More information about the Mozile
mailing list