[xwiki-devs] [vote] Apply inline style to the whole word or just the insertion point?
Hi devs, Let's consider the following scenario: * Edit a new page with the new WYSIWYG editor. * Type a word like "ubuntu". * Move the caret inside the word like "ubu|ntu". * Press the Bold button or type CTRL+B. Question: What is the expected behavior? a) Apply the inline style (bold) only to the insertion point. The next letters typed will have this style applied. b) Apply the inline style (bold) to the word that contains the insertion point ("ubuntu"). Note: b) is the current behavior in Open Office and IE. FF behaves as in a). The behavior currently implemented in the new WYSIWYG editor is a). Also, by choosing b) I avoid the use of the special space character in IE (see my previous mail), but I have to re-implement the current behavior of the new WYSIWYG. I need around 2 days for it. Of course, it will work for any inline style like bold, italic etc. I'm +1 for b) Thanks, Marius.
Marius Dumitru Florea wrote:
Hi devs,
Let's consider the following scenario:
* Edit a new page with the new WYSIWYG editor. * Type a word like "ubuntu". * Move the caret inside the word like "ubu|ntu". * Press the Bold button or type CTRL+B.
Question: What is the expected behavior?
a) Apply the inline style (bold) only to the insertion point. The next letters typed will have this style applied. b) Apply the inline style (bold) to the word that contains the insertion point ("ubuntu").
Note: b) is the current behavior in Open Office and IE. FF behaves as in a). The behavior currently implemented in the new WYSIWYG editor is a).
Also, by choosing b) I avoid the use of the special space character in IE (see my previous mail), but I have to re-implement the current behavior of the new WYSIWYG. I need around 2 days for it. Of course, it will work for any inline style like bold, italic etc.
If this is the solution to not using the special hacky character, and compared to that solution, I'm a dancing +1 for b) We might as well leave it act like it does on FF and otherwise on IE. It's not that big of a deal, I feel, since it addresses a very niche usecase: a user tries to start typing bold inside a word. Also, it will cause troubles only if a user switches between browsers currently ('cause otherwise he just gets used with the behaviour in his loved browser and lives with it). Happy coding, Anca
I'm +1 for b)
Thanks, Marius. _______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
On Oct 27, 2008, at 1:20 PM, Marius Dumitru Florea wrote:
Hi devs,
Let's consider the following scenario:
* Edit a new page with the new WYSIWYG editor. * Type a word like "ubuntu". * Move the caret inside the word like "ubu|ntu". * Press the Bold button or type CTRL+B.
Question: What is the expected behavior?
a) Apply the inline style (bold) only to the insertion point. The next letters typed will have this style applied. b) Apply the inline style (bold) to the word that contains the insertion point ("ubuntu").
Note: b) is the current behavior in Open Office and IE. FF behaves as in a). The behavior currently implemented in the new WYSIWYG editor is a).
Also, by choosing b) I avoid the use of the special space character in IE (see my previous mail), but I have to re-implement the current behavior of the new WYSIWYG. I need around 2 days for it. Of course, it will work for any inline style like bold, italic etc.
I'm +1 for b)
The third choice is to have a different behavior for FF and IE. Since I don't think we need to bold only a portion of word (I can't think of a real world use case for it), I'd also prefer b) (independently of the problem of implementing a) for IE). Just to be sure, if I type the following: * Type "hello" * Hit space * click on bold * type "world" Will "world" be in bold? Thanks -Vincent
Vincent Massol wrote:
On Oct 27, 2008, at 1:20 PM, Marius Dumitru Florea wrote:
Hi devs,
Let's consider the following scenario:
* Edit a new page with the new WYSIWYG editor. * Type a word like "ubuntu". * Move the caret inside the word like "ubu|ntu". * Press the Bold button or type CTRL+B.
Question: What is the expected behavior?
a) Apply the inline style (bold) only to the insertion point. The next letters typed will have this style applied. b) Apply the inline style (bold) to the word that contains the insertion point ("ubuntu").
Note: b) is the current behavior in Open Office and IE. FF behaves as in a). The behavior currently implemented in the new WYSIWYG editor is a).
Also, by choosing b) I avoid the use of the special space character in IE (see my previous mail), but I have to re-implement the current behavior of the new WYSIWYG. I need around 2 days for it. Of course, it will work for any inline style like bold, italic etc.
I'm +1 for b)
The third choice is to have a different behavior for FF and IE.
Since I don't think we need to bold only a portion of word (I can't think of a real world use case for it), I'd also prefer b) (independently of the problem of implementing a) for IE).
Just to be sure, if I type the following: * Type "hello" * Hit space * click on bold * type "world"
Will "world" be in bold?
Definitely. This is what Open Office does. If you are inside a word it bolds that word, otherwise you start typing bold.
Thanks -Vincent _______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
Marius Dumitru Florea wrote:
Vincent Massol wrote:
On Oct 27, 2008, at 1:20 PM, Marius Dumitru Florea wrote:
Hi devs,
Let's consider the following scenario:
* Edit a new page with the new WYSIWYG editor. * Type a word like "ubuntu". * Move the caret inside the word like "ubu|ntu". * Press the Bold button or type CTRL+B.
Question: What is the expected behavior?
a) Apply the inline style (bold) only to the insertion point. The next letters typed will have this style applied. b) Apply the inline style (bold) to the word that contains the insertion point ("ubuntu").
Note: b) is the current behavior in Open Office and IE. FF behaves as in a). The behavior currently implemented in the new WYSIWYG editor is a).
Also, by choosing b) I avoid the use of the special space character in IE (see my previous mail), but I have to re-implement the current behavior of the new WYSIWYG. I need around 2 days for it. Of course, it will work for any inline style like bold, italic etc.
I'm +1 for b) The third choice is to have a different behavior for FF and IE.
Since I don't think we need to bold only a portion of word (I can't think of a real world use case for it), I'd also prefer b)
of what I understood you _can_ bold only a portion of a word: type the whole word, select your piece of it and click bold. The pb is only if you'd like to start typing bold in the middle of a word (in which case you'd need to position inside, click bold and start typing).
(independently of the problem of implementing a) for IE).
Just to be sure, if I type the following: * Type "hello" * Hit space * click on bold * type "world"
Will "world" be in bold?
Definitely. This is what Open Office does. If you are inside a word it bolds that word, otherwise you start typing bold.
Thanks -Vincent _______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
On Oct 27, 2008, at 2:06 PM, Anca Paula Luca wrote:
Marius Dumitru Florea wrote:
Vincent Massol wrote:
On Oct 27, 2008, at 1:20 PM, Marius Dumitru Florea wrote:
Hi devs,
Let's consider the following scenario:
* Edit a new page with the new WYSIWYG editor. * Type a word like "ubuntu". * Move the caret inside the word like "ubu|ntu". * Press the Bold button or type CTRL+B.
Question: What is the expected behavior?
a) Apply the inline style (bold) only to the insertion point. The next letters typed will have this style applied. b) Apply the inline style (bold) to the word that contains the insertion point ("ubuntu").
Note: b) is the current behavior in Open Office and IE. FF behaves as in a). The behavior currently implemented in the new WYSIWYG editor is a).
Also, by choosing b) I avoid the use of the special space character in IE (see my previous mail), but I have to re-implement the current behavior of the new WYSIWYG. I need around 2 days for it. Of course, it will work for any inline style like bold, italic etc.
I'm +1 for b) The third choice is to have a different behavior for FF and IE.
Since I don't think we need to bold only a portion of word (I can't think of a real world use case for it), I'd also prefer b)
of what I understood you _can_ bold only a portion of a word: type the whole word, select your piece of it and click bold. The pb is only if you'd like to start typing bold in the middle of a word (in which case you'd need to position inside, click bold and start typing).
In that case I'm even more in favor of b). Thanks -Vincent
(independently of the problem of implementing a) for IE).
Just to be sure, if I type the following: * Type "hello" * Hit space * click on bold * type "world"
Will "world" be in bold?
Definitely. This is what Open Office does. If you are inside a word it bolds that word, otherwise you start typing bold.
Thanks -Vincent
On Mon, Oct 27, 2008 at 5:50 PM, Marius Dumitru Florea < mariusdumitru.florea@xwiki.com> wrote:
Hi devs,
Let's consider the following scenario:
* Edit a new page with the new WYSIWYG editor. * Type a word like "ubuntu". * Move the caret inside the word like "ubu|ntu". * Press the Bold button or type CTRL+B.
Question: What is the expected behavior?
a) Apply the inline style (bold) only to the insertion point. The next letters typed will have this style applied. b) Apply the inline style (bold) to the word that contains the insertion point ("ubuntu").
Note: b) is the current behavior in Open Office and IE. FF behaves as in a). The behavior currently implemented in the new WYSIWYG editor is a).
Also, by choosing b) I avoid the use of the special space character in IE (see my previous mail), but I have to re-implement the current behavior of the new WYSIWYG. I need around 2 days for it. Of course, it will work for any inline style like bold, italic etc.
As a user I would expect the behaviour in a) (personal opinion). But if b) is currently used existing editors and it also let's us go around a hacky solution. I would say +0 for b). Thanks. - Asiri
I'm +1 for b)
Thanks, Marius. _______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
Asiri Rathnayake wrote:
On Mon, Oct 27, 2008 at 5:50 PM, Marius Dumitru Florea < mariusdumitru.florea@xwiki.com> wrote:
Hi devs,
Let's consider the following scenario:
* Edit a new page with the new WYSIWYG editor. * Type a word like "ubuntu". * Move the caret inside the word like "ubu|ntu". * Press the Bold button or type CTRL+B.
Question: What is the expected behavior?
a) Apply the inline style (bold) only to the insertion point. The next letters typed will have this style applied. b) Apply the inline style (bold) to the word that contains the insertion point ("ubuntu").
Note: b) is the current behavior in Open Office and IE. FF behaves as in a). The behavior currently implemented in the new WYSIWYG editor is a).
Also, by choosing b) I avoid the use of the special space character in IE (see my previous mail), but I have to re-implement the current behavior of the new WYSIWYG. I need around 2 days for it. Of course, it will work for any inline style like bold, italic etc.
As a user I would expect the behaviour in a) (personal opinion). But if b) is currently used existing editors and it also let's us go around a hacky solution. I would say +0 for b).
Why would you expect a)? It doesn't seem intuitive to me. It does seem a bit consistent, since if you're outside the word and click bold, then you start writing bold, without anything already existing being turned into bold. But intuitive, no. I expect (and both MS Word and OO Writer do this) that when I click inside a word and press the B button, that word becomes bold. I don't (almost) ever need or want to start typing bold inside a word. If I want part of the word to be bold, I write the full word, select the part that I want bold, and click the B button. Isn't this what everybody would do? To Marius and the rest of the WYSIWYG team, the final goal is that the editor behaves as the user expects, not as the browser is coded. We should stick to what desktop products do as much as possible, unless their behavior strongly contradicts what we think the user expects. Of course, having a feature working sooner is more important than waiting for all the browser misbehaviors to be corrected. Working feature first, bug workaround afterwards (only other people's bugs, as we should not produce bugs in our code in the first place). -- Sergiu Dumitriu http://purl.org/net/sergiu/
On Mon, Oct 27, 2008 at 7:55 PM, Sergiu Dumitriu <sergiu@xwiki.com> wrote:
Asiri Rathnayake wrote:
On Mon, Oct 27, 2008 at 5:50 PM, Marius Dumitru Florea < mariusdumitru.florea@xwiki.com> wrote:
Hi devs,
Let's consider the following scenario:
* Edit a new page with the new WYSIWYG editor. * Type a word like "ubuntu". * Move the caret inside the word like "ubu|ntu". * Press the Bold button or type CTRL+B.
Question: What is the expected behavior?
a) Apply the inline style (bold) only to the insertion point. The next letters typed will have this style applied. b) Apply the inline style (bold) to the word that contains the insertion point ("ubuntu").
Note: b) is the current behavior in Open Office and IE. FF behaves as in a). The behavior currently implemented in the new WYSIWYG editor is a).
Also, by choosing b) I avoid the use of the special space character in IE (see my previous mail), but I have to re-implement the current behavior of the new WYSIWYG. I need around 2 days for it. Of course, it will work for any inline style like bold, italic etc.
As a user I would expect the behaviour in a) (personal opinion). But if b) is currently used existing editors and it also let's us go around a hacky solution. I would say +0 for b).
Why would you expect a)? It doesn't seem intuitive to me. It does seem a bit consistent,
Yes that's what I thought. Anyway, I'm not an experienced user. I thought it's the way most editors behave but it seems like I'm wrong. +1 fro b). Thanks. - Asiri
since if you're outside the word and click bold, then you start writing bold, without anything already existing being turned into bold. But intuitive, no. I expect (and both MS Word and OO Writer do this) that when I click inside a word and press the B button, that word becomes bold. I don't (almost) ever need or want to start typing bold inside a word. If I want part of the word to be bold, I write the full word, select the part that I want bold, and click the B button. Isn't this what everybody would do?
To Marius and the rest of the WYSIWYG team, the final goal is that the editor behaves as the user expects, not as the browser is coded. We should stick to what desktop products do as much as possible, unless their behavior strongly contradicts what we think the user expects. Of course, having a feature working sooner is more important than waiting for all the browser misbehaviors to be corrected. Working feature first, bug workaround afterwards (only other people's bugs, as we should not produce bugs in our code in the first place).
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
+1 for b) On Mon, Oct 27, 2008 at 1:20 PM, Marius Dumitru Florea <mariusdumitru.florea@xwiki.com> wrote:
Hi devs,
Let's consider the following scenario:
* Edit a new page with the new WYSIWYG editor. * Type a word like "ubuntu". * Move the caret inside the word like "ubu|ntu". * Press the Bold button or type CTRL+B.
Question: What is the expected behavior?
a) Apply the inline style (bold) only to the insertion point. The next letters typed will have this style applied. b) Apply the inline style (bold) to the word that contains the insertion point ("ubuntu").
Note: b) is the current behavior in Open Office and IE. FF behaves as in a). The behavior currently implemented in the new WYSIWYG editor is a).
Also, by choosing b) I avoid the use of the special space character in IE (see my previous mail), but I have to re-implement the current behavior of the new WYSIWYG. I need around 2 days for it. Of course, it will work for any inline style like bold, italic etc.
I'm +1 for b)
Thanks, Marius. _______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
-- Jean-Vincent Drean
Marius Dumitru Florea wrote:
Hi devs,
Let's consider the following scenario:
* Edit a new page with the new WYSIWYG editor. * Type a word like "ubuntu". * Move the caret inside the word like "ubu|ntu". * Press the Bold button or type CTRL+B.
Question: What is the expected behavior?
a) Apply the inline style (bold) only to the insertion point. The next letters typed will have this style applied. b) Apply the inline style (bold) to the word that contains the insertion point ("ubuntu").
Note: b) is the current behavior in Open Office and IE. FF behaves as in a). The behavior currently implemented in the new WYSIWYG editor is a).
Also, by choosing b) I avoid the use of the special space character in IE (see my previous mail), but I have to re-implement the current behavior of the new WYSIWYG. I need around 2 days for it. Of course, it will work for any inline style like bold, italic etc.
I'm +1 for b)
+1 for b) also. -- Sergiu Dumitriu http://purl.org/net/sergiu/
+1 for b) On Mon, Oct 27, 2008 at 5:20 AM, Marius Dumitru Florea <mariusdumitru.florea@xwiki.com> wrote:
Hi devs,
Let's consider the following scenario:
* Edit a new page with the new WYSIWYG editor. * Type a word like "ubuntu". * Move the caret inside the word like "ubu|ntu". * Press the Bold button or type CTRL+B.
Question: What is the expected behavior?
a) Apply the inline style (bold) only to the insertion point. The next letters typed will have this style applied. b) Apply the inline style (bold) to the word that contains the insertion point ("ubuntu").
Note: b) is the current behavior in Open Office and IE. FF behaves as in a). The behavior currently implemented in the new WYSIWYG editor is a).
Also, by choosing b) I avoid the use of the special space character in IE (see my previous mail), but I have to re-implement the current behavior of the new WYSIWYG. I need around 2 days for it. Of course, it will work for any inline style like bold, italic etc.
I'm +1 for b)
Thanks, Marius. _______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
participants (7)
-
Anca Paula Luca -
Asiri Rathnayake -
Jean-Vincent Drean -
Marius Dumitru Florea -
Sergiu Dumitriu -
Thomas Mortagne -
Vincent Massol