Hi all,
I am trying to figure out how to make it so that when you hit the enter key in the cutesoft editor it does a single return (<BR>) instead of making a paragraph tag. For our purposes we need our users to be able to do single returns without hitting shift+enter. Is there a way to make the editor do this? It seems that there must be since the demos on this site do single returns!
-Marc
Marc,
We used the style sheet int our web site to get the single returns.
P { BORDER-RIGHT: 0px; PADDING-RIGHT: 0px; BORDER-TOP: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; BORDER-LEFT: 0px; PADDING-TOP: 0px; BORDER-BOTTOM: 0px }
The reason we didn't implement the UerBr property in the version 1.8 is: For fast loading, we use Div tag intead of Iframe. If we impement the UseBR property, we need to use onkeydown event for the editor.
But onkeydown event will make the Redo/Undo function stop working.
Adam
<!-- Inject Script Filtered --> <!-- Inject Script Filtered -->
asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx Web Messenger: http://cutesoft.net/Web-Messenger/default.aspxasp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspxasp wysiwyg html editor: http://cutesoft.net/ASP asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx Live Support: http://cutesoft.net/live-support/default.aspx
Adam,
Is the UseBr property available in the version .NET 2.0 ? Is there another way to make single returns without using a stylesheet ?
Thanks in advance for you answer,
Damien
Damien,
No available in Version 2.0.
I finished that code long ago. But can't pass the test. onkeydown event stops the undo/redo.
Sorry for the inconvenience.