I use wysihtml5 editor. I can type a text normally only till it fits the textarea window. After that a scroll bar appears (which is fine) but let's say I want to type new line on the very top of the text area and when I press enter the line which was just typed moves up outside of the top border of text area and cursos stays on the same first line. So in order to see the first line in the document I just typed I need to scroll one line up. All that instead of the text line stays in place and cursor moves one line down.
That is not usual text editing beheavor. Why is that? Is that an CSS issue?
I guess this has to be an attribute of the text area itself.. but I have no idea how.. I'm myself a beginner in this..
try to search for extra attribute of text-area like:
<textarea rows="2" cols="20" wrap="hard">
....
</textarea>
good luck..
Related
Given something like:
<div class="panel-footer">
<button type="submit" name="submit" value="submit" class="btn btn-primary">Submit</button>
Some lengthy amount of text goes here.
</div>
I want the text to automatically wrap next to the button, instead of starting next to it and wrapping underneath it. It appears with the default alignment, the text of the button is vertically aligned with the text next to it - but the button consumes additional vertical space for the button background. I want the text to use that space - instead of only seeing a single available line. It looks to me my text should be able to wrap at least once if not twice next to the button without consuming additional vertical space.
I've tried just wrapping the button & text in separate divs - but then the text appears under the button. There's obviously something I'm missing - I either want to do this using native bootstrap or a simple inline style - I don't want to modify css.
The default:
[---button top margin--]
[---------SUBMIT---------] Normal text aligns with button text
[button bottom margin]
and then wraps beneath button like this.
Desired:
[---button top margin--] If the text is long enough it should wrap
[---------SUBMIT---------] in this space and automatically
[button bottom margin] center vertically against button
Let's see if I can express it differently - the button element occupies a certain vertical space, which is typically greater than just the vertical height of the text. I want to have a text area next to the button that has the same vertical height as the total button - not just the button text.
I use Stimul soft 2013 for reporting in ASP .NET.
When I show my report in A5 letter, it shows like this:
My text from left did not show correctly. I suppose if I could add margin from left to my text, it will solve my problem.
Consider that, I added html tag justify to my text
any body.
Can you help me with this problem?
In Stimul you can shrink your text.
For this problem is better that you set Shrink Text to "True", set a Minimum Size for it, and set Word Wrap to "True".
And sometimes you must put an empty text box to fix it.
When I'm make a button on the screen in the storyboard and have more text in it than the buttons width. The text just keep on going on a straight line past the buttons end. When this happens I want to have a line break so I can have the text on two lines, but I can't figure out how to get two lines of text in a button in the storyboard..
Any ideas how I can get this done in the storyboard?
Set Line Break to "Word Wrap":
Set the frame of the button whatever you want by the code and set Line break to "Word Wrap".
Hope it will solve your problem.
Not only should you "Word Wrap" the text but, you should also use the auto layout debugging tool and select the "add missing constraints."
How would I display text in something like QTextEdit starting from bottom up? QTextEdit starts writing at the top filling down to bottom. I want to start from the bottom and then pushing the previous text up as more text is added. I figure I could hack it and simply fill the field with nextlines to reach the bottom then reprinting whatever was written before again when text is to be added, but I wouldn't want to do that unless there isn't any other way.
insertPlainText inserts text at the current text position. You could move the cursor to the start of the docuement using the moveCursor function.
Every time you want to add some text do the following:
textEdit->moveCursor(QTextCursor::Start);
textEdit->insertPlainText(textToBeAdded);
alt text http://img31.imageshack.us/img31/1183/tedit.jpg
Hi Guys,
I am trying to make a text editor in Flex.
i can move image on mouse click.
Problem is it moves with the key up or down handler. But it moves out of text area after the last line in textarea. And it also doesn't move with scroll.
Pls give suggestions for these problems.
Thanks.
Regards,
Shivang
You may want to increase the white space of your 'text editor'. Just have numbers up till person entered text. That way when you move to the bottom you are not moving outside of the textArea.
would need more example of what is going wrong with the key up or down handler. What events are you trying to capture? How are you dragging the image?
good luck.