|
Rank: Member Groups: Member
Joined: 7/14/2009 Posts: 15
|
Hi,
We are using the Editor but there are 2 problems we are facing:
1. The cursor is coming from the next line 2. If nothing is entered then it is showing <p> </p>
It would be appreciated if we get a solution to the above problems.
Thanks,
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
#2 is normal because the editor always need something to place the cursor. If you wish to ensure that user enters something, we have a new build that would allow you to use the Editor with a RequiredFieldValidator. When using it that way, the Editor will treat <p> </p> as empty and trigger the RequriedFieldValidator. Please let us know if you wish to try out that build.
I do not know exactly what you mean by the cursor is coming from the next line. The Editor does not have precise control of where the cursor is, the user has. So sometimes the user may need to explicitly move the cursor to the desired location.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 7/14/2009 Posts: 15
|
Thanks for the update.
However, the RequiredFieldValidator in my case will not work because it is not a required field.
For #1, what I meant was that when I click in the editor the cursor is not at the extreme top left corner. There is some space at the top and left side. We want the cursor to be at the extreme top left corner and if this is possible then #2 will get resolved automatically.
Let me know if it is doable.
Thanks,
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, The space you see most likely is the padding for the body element. To remove the space you will need to create a CSS file with something like this:
Code: CSS
body
{
margin: 0px;
padding: 0px;
}
You will then set the Editor's TextAreaCssFile property to the name of this css file. Thanks
|
|