Mar 11, 2009

Telerik radEditor, it is not a bug... but wait ...

Okay, yesterday I wrote a small post showing a small malfunction in telerik radEditor.

The problem was using Sub - Sup...

I got a comment from Tervel - a guy who works on the editor.

As the comment is in Bulgarian I will add a free translation in english (I will ommit hi, pavel and so on and will translate only the things that have relation to this post).

"The way you are changing the commands, it seems to me that the problem is in the browser RichText edit engine.
Sup and Sub commands are sent from telerik radEditor to the browser for further processing
." (I think there was something like execCommand("commandName") in JavaScript, this is what he is talking about.

"You can check other editors to verify this behaviour. Strictly, I don't think this is a bug, IE does include sup / sub tags in the context of the current tag, not as a parrent element of the current tag. The result is logical and correct. Whether this is intuitive behavior is another question offcourse. By the way, I think it is."

So here is what I think:
I think that Tervel is right - this is the behavior of IE. And the behavior of FireFox. I checked it too. And this is not a bug.
Yes it is not very intuitive.
Yes it takes another click.

But to me this behavior can be fixed in Telerik making their editor even more intuitive and easy to use.
I don't see any situation in which one would like to have both : sup and sub tags selected. Why would we do that?

Here is what I think can be done in the editor, if someday the guys have some spare time:

Click on sup scnario:
1. Check if the sub command is added (probably it will be but just check for sure).
2. If yes - unselect it.

Same can happen for sub.

Here is a video in which I am trying to input formula with two variables:



And last but not least - this is not an issue for the editor. I just wanted to share my opinion as Tervel left comment.

And once again - we love radEdit ;).

No comments: