New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to make textarea didn't change line ... #4937
Comments
There are several things wrong with your example: Instead of Second: The newline is put into the textarea on <div id="editor">
<textarea :value="input" @keydown.enter="onEnter"></textarea>
</div> Here is an updated fiddle: https://jsfiddle.net/tedt89kv/ Also, keep in mind that your users may Copy and Paste text with newlines into your document. Maybe a Watcher would be more what you want. In the watcher, you could remove all newlines on every change of the textarea's value. |
Also, from the issue template that you removed to post your question:
|
thank u ... i will think more next time |
https://jsfiddle.net/wangmin/rdjjpc7a/1628/
in this demo,when i click enter
i used e.stopPropagation() and e.preventDefault()
but it not work
it will change a new line
i do not want that
how to avoid ...
thank u
The text was updated successfully, but these errors were encountered: