mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
Fixed the iframe problems
This commit is contained in:
parent
f4e04be9da
commit
115f7d6b51
2 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ function makeCSSManager(emptyStylesheetTitle, top)
|
||||||
function getSheetByTitle(title, top)
|
function getSheetByTitle(title, top)
|
||||||
{
|
{
|
||||||
if(top)
|
if(top)
|
||||||
var allSheets = window.top.document.styleSheets;
|
var allSheets = window.parent.parent.document.styleSheets;
|
||||||
else
|
else
|
||||||
var allSheets = document.styleSheets;
|
var allSheets = document.styleSheets;
|
||||||
|
|
||||||
|
|
|
@ -101,13 +101,13 @@ var padeditbar = (function()
|
||||||
else if (cmd == 'embed')
|
else if (cmd == 'embed')
|
||||||
{
|
{
|
||||||
var padurl = document.location;
|
var padurl = document.location;
|
||||||
$('#embedinput').val("<iframe src='" + padurl + "' width=500 height=400>");
|
$('#embedinput').val("<iframe src='" + padurl + "' width=600 height=400>");
|
||||||
self.toogleDropDown("embed");
|
self.toogleDropDown("embed");
|
||||||
$('#embedinput').focus().select();
|
$('#embedinput').focus().select();
|
||||||
}
|
}
|
||||||
else if (cmd == 'import_export')
|
else if (cmd == 'import_export')
|
||||||
{
|
{
|
||||||
self.toogleDropDown("importexport");
|
self.toogleDropDown("importexport");
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (cmd == 'readonly')
|
else if (cmd == 'readonly')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue