Visual editor CTRL+Enter fix.

This commit is contained in:
skobkin 2014-03-20 14:05:11 -07:00
parent 5fa6c94c91
commit 8f75cedf3c
2 changed files with 13 additions and 2 deletions

View file

@ -74,12 +74,23 @@ $(document).ready(function() {
'max-height': '100%'
});
}
// WYSIWYG editor
// Visual editor
if (options.option_visual_editor_post == true) {
// Add classes
$('#new-post-form #text-input, .post-content #text-input').addClass('markitup').css('height', '20em');
// Init
$('.markitup').markItUp(mySettings);
// Send by CTRL+Enter
if (options.option_ctrl_enter == true) {
// New post
$('#new-post-form #text-input, .post-content #text-input').on('keydown.point_plus', function(e) {
if (e.ctrlKey && (e.keyCode == 10 || e.keyCode == 13)) {
e.preventDefault();
$(this).parents('#new-post-form,#post-edit-form').submit();
}
});
}
}
// Google search
if (options.option_search_with_google == true) {

View file

@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Point+",
"version": "1.3",
"version": "1.4",
"author": "Alexey Skobkin",
"homepage_url": "https://bitbucket.org/skobkin/chrome_point_plus",
"description": "Some new features for point.im",