Hello, I am using a htmleditor that use </br> only, hence to change it to <p></p>, I copy and paste this code, it works but the thing is the text is not enter into the code. How can I make it that when I press enter and start typing, it starts with <p> and when I press enter again to a new line, it ends with </p> for the previous line and the new one begins with <p>? This is the code and the website.
http://www.obout.com/Obout.Ajax.UI/HTMLEditor/KnowledgeBase.aspx?id=959
<script type="text/JavaScript">
// this function will be called on EditPanel 'loaded' event fired
function editPanelLoaded(sender, args) {
// get the DesignPanel component
var designMode = Obout.Ajax.UI.HTMLEditor.ActiveModeType.Design;
var designPanelObject = sender.get_modePanels()[designMode];
// set the capture method
designPanelObject.captureInDesign = function (e ...
Go to the complete details ...