mirror of
https://bitbucket.org/skobkin/chrome_point_plus.git
synced 2024-11-23 18:56:04 +00:00
Visual editor CTRL+Enter fix.
This commit is contained in:
parent
5fa6c94c91
commit
8f75cedf3c
|
@ -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) {
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue