thanhlong203 / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

Ordered and unordered list buttons in rich text editor don't work if field not focused #289

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Go to 
http://closure-library.googlecode.com/svn/trunk/closure/goog/demos/editor/editor
.html
2. Check that the text field does not have focus (it should still have the 
lorem text, "Click here to edit")
3. Click the ordered (numbered) list button in the toolbar

What is the expected output? What do you see instead?

Expected: field gains focus and ordered list appears in field.
Actual: Firefox places the cursor in the field, but doesn't create a list. IE 
throws a JavaScript error: 'null' is null or not an object, line 560 of 
basictextformatter.js. Chrome puts an "x" in the field and doesn't move the 
cursor or remove the lorem text.

Same behavior for unordered (bulleted) list.

What version of the product are you using? On what operating system?

Chrome 10.0.648.127 beta on Linux

Please provide any additional information below.

Original issue reported on code.google.com by jl...@google.com on 8 Mar 2011 at 11:31

GoogleCodeExporter commented 8 years ago

Original comment by pall...@google.com on 15 Jul 2011 at 1:32