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%'
|
'max-height': '100%'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// WYSIWYG editor
|
// Visual editor
|
||||||
if (options.option_visual_editor_post == true) {
|
if (options.option_visual_editor_post == true) {
|
||||||
// Add classes
|
// Add classes
|
||||||
$('#new-post-form #text-input, .post-content #text-input').addClass('markitup').css('height', '20em');
|
$('#new-post-form #text-input, .post-content #text-input').addClass('markitup').css('height', '20em');
|
||||||
// Init
|
// Init
|
||||||
$('.markitup').markItUp(mySettings);
|
$('.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
|
// Google search
|
||||||
if (options.option_search_with_google == true) {
|
if (options.option_search_with_google == true) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "Point+",
|
"name": "Point+",
|
||||||
"version": "1.3",
|
"version": "1.4",
|
||||||
"author": "Alexey Skobkin",
|
"author": "Alexey Skobkin",
|
||||||
"homepage_url": "https://bitbucket.org/skobkin/chrome_point_plus",
|
"homepage_url": "https://bitbucket.org/skobkin/chrome_point_plus",
|
||||||
"description": "Some new features for point.im",
|
"description": "Some new features for point.im",
|
||||||
|
|
Loading…
Reference in a new issue