karthick2014 / jwysiwyg

Automatically exported from code.google.com/p/jwysiwyg
0 stars 0 forks source link

Editor behaviour is different in IE6-7 #35

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open the editor in IE6-7
2. Click on B for bold and type some letters nothing happens
3. Now select the text and click B it becomes bold

Redo - Undo does not work in IE6-7

Even unordered list does not work - When you select an unordered list the
bullet appears on the first line, when enter is pressed instead of the
second bullet appearing a new paragraph is created.

What is the expected output? What do you see instead?
Expected as it works in firefox - When you select B and you type letters
they should be bold
In IE6-7 : you have to select the text and then click B.

What version of the product are you using? On what operating system?
I am using version 0.4 on windows

Please provide any additional information below.

Original issue reported on code.google.com by sheld...@gmail.com on 8 Jul 2008 at 7:13

GoogleCodeExporter commented 8 years ago
This is happending because of "return false;"  in the following function.
            $(this.editorDoc).keydown(function( event )
            {
                if ( $.browser.msie && self.options.brIE && event.keyCode == 13 )
                {
                    var rng = self.getRange();
                        rng.pasteHTML('<br />');
                        rng.collapse(false);
                        rng.select();

                    return false;
                }
            });
Remove "return false;" statement. Then every thing will work fine.

cheers,
Prajwala

Original comment by m.prajw...@gmail.com on 1 Oct 2008 at 9:40

GoogleCodeExporter commented 8 years ago
That function is for IE to put <br /> instated of <p>. If you remove the "return
false;", I suppose that it would create <p> element at the end.

Original comment by joksnet on 1 Oct 2008 at 1:18

GoogleCodeExporter commented 8 years ago
It is creating <p> element but why you want to put <br /> instead of <p>.

Original comment by m.prajw...@gmail.com on 6 Oct 2008 at 5:26

GoogleCodeExporter commented 8 years ago
To copy the behaviour of FF, who put <br /> when you press enter.

Original comment by joksnet on 10 Nov 2008 at 6:07

GoogleCodeExporter commented 8 years ago
IE6 is too old.

Original comment by akzhan.a...@gmail.com on 27 Jun 2010 at 11:37