hi
I m using webhtmleditor 7.3 clr 2.0 build 1058
I want to adjust actually decrease the line spacing coming in between two lines of webhtmleditor. If the user wrote a line presses enter then the space between the previous line and the next line is too much for the user I want to decrease it.
I had searched enough in the help matrial but nothing was there.
Plz help I really need it.
Hello,
I believe this behaviour is caused by the fact that WebHtmlEditor by default uses line breaks <p> (paragraphs) - you can change this behaviour by setting the UseLineBreak property of the editor to True, this should address the issue
<ighedit:WebHtmlEditor ID="WebHtmlEditor1" runat="server" UseLineBreak="True">
Our users initially complained about the double-spacing so we set UseLineBreak to "true." Initially, they were very pleased. Now, they are complaining about the behavior of bullets in the editor, which I believe is a side-effect of setting UseLineBreak to true.
For example, if a user enters six lines of text and hits "enter" after each, the editor will place the bullet on the first line and indent the other 5 lines as part of the first bullet.
The problem appears mainly when bullets are being added to existing text. Another technique to reproduce the effect is to start with a new editor, add 3 lines of text and try to make the last line either bulleted or numbered.
I have set UseLineBreak=false, and have written my own client-side handlers to insert the newline.
="handle_afteraction"/>
Can you elaborate on what your client-side handlers do? Are you trapping the keycode 13? And if so, what are you placing in the text editor body? My understanding of "UseLineBreak=true" means that instead of paragraph tags (<p>), the text editor uses the line break tag (<br>).
The closest approximation that I've been able to invent so far is to replace the "<p>" with something like "<p style="margin-top:0px; margin-bottom:0px">". This seems to work most of the time, but I'm still very interested in knowing what your event handlers do.
Thanks!
Hi,
Please post your line of code here. How to achieve this line spacing between two paragraph. I had already applied this solution but issue come when save letter to DB and again reopen it and again save it will replace with multiple time margin:0.
Pleas help. Thanks in advance.