added the default embed parameters to the embed code

This commit is contained in:
Peter 'Pita' Martischka 2011-08-21 16:44:38 +01:00
parent 6efaf69157
commit 070b5f16f7
1 changed files with 2 additions and 2 deletions

View File

@ -100,8 +100,8 @@ var padeditbar = (function()
}
else if (cmd == 'embed')
{
var padurl = document.location;
$('#embedinput').val("<iframe src='" + padurl + "' width=600 height=400>");
var padurl = window.location.href.split("?")[0];
$('#embedinput').val("<iframe src='" + padurl + "?showControls=true&showChat=true&showLineNumbers=true&useMonospaceFont=false' width=600 height=400>");
self.toogleDropDown("embed");
$('#embedinput').focus().select();
}