Welcome Guest Search | Active Topics | Sign In | Register

Editor problem Options
Nick
Posted: Friday, January 8, 2010 3:31:47 AM
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>&nbsp;</p>

It would be appreciated if we get a solution to the above problems.

Thanks,
eo_support
Posted: Friday, January 8, 2010 9:47:58 AM
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>&nbsp;</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!
Nick
Posted: Friday, January 8, 2010 10:07:04 AM
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,
eo_support
Posted: Friday, January 8, 2010 10:22:37 AM
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


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.