Hi,
I am using a textbox as a text editor, and would like to be able to adjust the line and paragraph spacing. I am following CSS practices (I think) for that, but it doesn’t seem to work. I have added a stylesheet to the form, and added:
.tbtext { line-height: 150% ; }
And set the TextBox to use this class. I tested it with the .rotate270 example I found here in the forums, and that one worked. But my CSS has no effect.
Is this possible to do with a TextBox?
Thanks!
-John
Hi, for Textbox line spacing
– Did you tried with fonts property lineHeight? whit this you can control the paragraph spacing in textbox
here a picture about it
Regards
Talking about your request with dev team, an cool approach to customise control TextBox as Editor could be as follow
– Handling keyboard on the server works but creates a request on each keystroke. It’s easy to attach a client side handler.
– The TextBox control in Wisej is a container, the real <input> is inside because Wisej also adds optional tool buttons, labels.
See attached sample:
Two things:
1) the lineHeight can only be set by creating a font. In the sample see /Themes
2) type something and press “h” the javascript will replace it with Hello! and move the caret.
See ClientEvents on the textbox, javascript is in Page1.resx and textbox properties inside Page1.Desdigner.cs
HTH
Regards
Hi Paul,
I tried to install via Nuget TinyEditor last night and it appears to be incompatible with WiseJ3.
There are 2 things I’m trying to accomplish via the TextBox: responsiveness (i.e. not laggy when typing large amounts of text) and monitoring the keystrokes, caret position, etc. so I can monitor the text for keywords in real time. The TextBox control, so far in my testing, seems to give me the performance I need to do what I’m trying to do. (I haven’t simulated slow connections yet to see what that does to the user experience.)
So my thought was to modify the CSS to adjust line/paragraph spacing to what I’m looking for. The properties allow me to change the font and font size, but not the line or paragraph spacing.
Does that make sense?
Thanks!
-John
Hi Paul,
I tried to install via Nuget TinyEditor last night and it appears to be incompatible with WiseJ3.
There are 2 things I’m trying to accomplish via the TextBox: responsiveness (i.e. not laggy when typing large amounts of text) and monitoring the keystrokes, caret position, etc. so I can monitor the text for keywords in real time. The TextBox control, so far in my testing, seems to give me the performance I need to do what I’m trying to do. (I haven’t simulated slow connections yet to see what that does to the user experience.)
So my thought was to modify the CSS to adjust line/paragraph spacing to what I’m looking for. The properties allow me to change the font and font size, but not the line or paragraph spacing.
Does that make sense?
Thanks!
-John
Hi John
Hi
Thanks for your interest in Wisej
For we could better understand of your goal, If you can send us a runnable little sample test will be help
By the way, this cool free wisej extensions maybe be useful.
CKEditor
https://github.com/iceteagroup/wisej-extensions/tree/2.5/Wisej.Web.Ext.CKEditor
https://docs.wisej.com/extensions/extensions/ckeditor
TinyEditor
https://github.com/iceteagroup/wisej-extensions/tree/2.5/Wisej.Web.Ext.TinyEditor
https://docs.wisej.com/extensions/extensions/tinyeditor
Regards
Please login first to submit.