You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$doc.bind("keyup",function(e){varcode=$(editor.doc.body).html()varregexReplace=[[/\s*style\s*=\s*("|')([^"']+)("|')/ig,''],//replace styles[/<([^>])>\s*<\s*\/[^>]>/mgi,''],//replace empty tags[/ /gi," "],//replace spaces nbsp [/<div>/gi,'<p>'],//replace div to p[/<\/div>/gi,"</p>"]//replace close div tag to close p tag];// Edit code$.each(regexReplace,function(index,item){code=code.replace(item[0],item[1]);});editor.$area.val(code);editor.updateFrame();returntrue;});
Is there an option to make it so the enter key only does a "br" rather then a "p"
The text was updated successfully, but these errors were encountered: