diff --git a/editor.js b/editor.js
index a6e7baf..8f1efdd 100644
--- a/editor.js
+++ b/editor.js
@@ -1041,7 +1041,15 @@ You should have received a copy of the GNU General Public License along with thi
$(editor_Content).data("statusBar").html('
'+'Words : '+wordCount+'
');
$(editor_Content).data("statusBar").append(''+'Characters : '+charCount+'
');
});
- }
+ }
+
+ editor.keypress ( function(e) {
+
+ if ( e.which == 13 || e.which==10 ) {
+ methods.insertTextAtSelection.apply(this,['
','html']);
+
+ }
+ });
for(var item in menuItems){