|
|
@ -33,9 +33,13 @@ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
prepareClippyButton = function(e) { |
|
|
|
prepareClippyButton = function(e) { |
|
|
|
var selection = editor.getSession().doc.getTextRange(editor.getSelectionRange()); |
|
|
|
var selection = editor.getSession().doc.getTextRange(editor.getSelectionRange()); |
|
|
|
|
|
|
|
if (!selection) { |
|
|
|
|
|
|
|
$('.statusbar .copy').hide(); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
$('#clippy embed').attr('FlashVars', 'text=' + selection); |
|
|
|
$('#clippy embed').attr('FlashVars', 'text=' + selection); |
|
|
|
$('#clippy param[name="FlashVars"]').attr('value', 'text=' + selection); |
|
|
|
$('#clippy param[name="FlashVars"]').attr('value', 'text=' + selection); |
|
|
|
$('.statusbar .copy').html($('.statusbar .copy').html()); |
|
|
|
$('.statusbar .copy').html($('.statusbar .copy').html()).show(); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|