1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

Media-Manager bbcode correction.

This commit is contained in:
Cameron
2013-05-31 15:54:14 -07:00
parent c27c5ea403
commit 0ed759d0c7
3 changed files with 5 additions and 4 deletions

View File

@@ -6,9 +6,9 @@ $(document).ready(function()
var newval = $('#bbcode_holder').val();
var target = $(this).attr('data-target');
var bbcode = $(this).attr('data-bbcode'); // TinyMce/Textarea insert mode
if(!target || !bbcode){ return true; }
$('#' + target, window.top.document).atCaret('insert', newval); // http://code.google.com/p/jquery-at-caret/wiki/GettingStarted