This is a migrated thread and some comments may be shown as answers.

[Solved] Error when hitting Enter in TextArea

1 Answer 153 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Erwin
Top achievements
Rank 1
Erwin asked on 10 Nov 2009, 09:04 AM
Hi,

When predefining content in a TextArea you get an Unspecified error when hitting Enter.
To reproduce this:
  1. Open Internet Explorer 8 (other versions seem to have the same problem, but I cannot confirm. Firefox apparentally does not allow to predefine content in a Textarea inside the RadEditor).
  2. Go to a website with a RadEditor, eg: http://demos.telerik.com/aspnet-ajax/editor/examples/autosave/defaultcs.aspx
  3. Add a Textarea element.
  4. Hit <Enter> (given that the caret is in the Textarea, otherwise doubleclick on the Textarea before hitting <Enter>)
  5. A messagebox pops up stating Unspecified error

I know that using <Shift> + <Enter> does the trick. But is there a way to either accept the <Enter> as a newline or display a custom error message?

Thanks in advance,
Dries

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 12 Nov 2009, 04:26 PM
Hi Dries,

Thank you for reporting this glitch. I logged it in our bug tracking system for fixing and we will try to fix it in a subsequent release of RadEditor.

I also updated your Telerik points for your bug report.

You can fix the problem by setting the NewLineBr property to false. To reduce the extra space between the paragraph blocks inside the editor's content area, you should set a global CSS paragraph style in your page, i.e.

P  
{  
    margin:0px;  
}  


Sincerely,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
Erwin
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or