<script type="text/javascript" language="javascript" charset="utf-8" src="DHTMLapi.js"></script>
<script type="text/javascript">
// <!--
- var FCK = window.parent.FCK;
- var contentPath = FCK.Config.contentPath;
-
- var FCKConfig = window.parent.FCKConfig;
- var connUrl = FCKConfig.AttachmentBrowserConnectorUrl;
- var imagesPath = 'images/';
+ // var FCK = window.parent.FCK;
+ // var contentPath = FCK.Config.contentPath;
+ //
+ // var FCKConfig = window.parent.FCKConfig;
+ // var connUrl = FCKConfig.AttachmentBrowserConnectorUrl;
var slide_size = 222;
}
- addListener(window, 'load', _initBrowser);
+ //addListener(window, 'load', _initBrowser);
// -->
</script>
</head>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">\r\r<html xmlns="http://www.w3.org/1999/xhtml">\r\r <head>\r <meta http-equiv="content-type" content="text/html;charset=utf-8" />\r <title>Image selector</title>\r <script type="text/javascript" language="javascript" charset="utf-8" src="epoz_script_detect.js"></script>\r <script type="text/javascript" language="javascript" charset="utf-8" src="javascript_events_api.js"></script>\r <script type="text/javascript" language="javascript" charset="utf-8" src="sarissa.js"></script>\r <!--<script type="text/javascript" src="plinn_image.js"></script>-->\r </head>\r\r <frameset rows="27,*" border="0" frameborder="no" framespacing="0">\r <frame name="tabs" src="about:blank" noresize="noresize" scrolling="no" />\r <frame name="main" src="about:blank" />\r <noframes><body></body></noframes>\r </frameset>\r\r</html>
\ No newline at end of file
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">\r\r<html xmlns="http://www.w3.org/1999/xhtml">\r\r <head>\r <meta http-equiv="content-type" content="text/html;charset=utf-8" />\r <title>Image selector</title>\r <script type="text/javascript" language="javascript" charset="utf-8" src="epoz_script_detect.js"></script>\r <script type="text/javascript" language="javascript" charset="utf-8" src="javascript_events_api.js"></script>\r <script type="text/javascript" language="javascript" charset="utf-8" src="sarissa.js"></script>\r <script type="text/javascript" src="plinn_image.js"></script>\r </head>\r\r <frameset rows="27,*" border="0" frameborder="no" framespacing="0">\r <frame name="tabs" src="about:blank" noresize="noresize" scrolling="no" />\r <frame name="main" src="about:blank" />\r <noframes><body></body></noframes>\r </frameset>\r\r</html>
\ No newline at end of file
// Licence GPL
var editor = window.dialogArguments.editor;
-var FCK = editor.FCK ;
-var FCKLang = editor.FCKLang ;
-var FCKConfig = editor.FCKConfig ;
-var FCKPlugins = editor.FCKPlugins;
-var FCKDebug = editor.FCKDebug ;
+var pluginPath = window.dialogArguments.pluginPath;
+//var FCK = editor.FCK ;
+//var FCKLang = editor.FCKLang ;
+//var FCKConfig = editor.FCKConfig ;
+//var FCKPlugins = editor.FCKPlugins;
+//var FCKDebug = editor.FCKDebug ;
window.onload = function() {
var mainFrame = window.frames['main'];
- mainFrame.src = FCKPlugins.Items['image'].Path + 'embedded_images.html';
+ mainFrame.src = pluginPath + 'dialog/embedded_images.html';
mainFrame.location.href = mainFrame.src;
var tabsFrame = window.frames['tabs'];
- tabsFrame.src = FCKPlugins.Items['image'].Path + 'plinn_image_tabs.html'
- tabsFrame.location.href = FCKPlugins.Items['image'].Path + 'plinn_image_tabs.html'
+ tabsFrame.src = pluginPath + 'dialog/plinn_image_tabs.html';
+ tabsFrame.location.href = tabsFrame.src;
}
function updateOrInsertImage(url) {
// <!--
var tabs = [];
function initTabs() {
- var FCKPlugins = window.parent.FCKPlugins;
+ var pluginPath = window.parent.pluginPath;
tabs = document.getElementsByTagName('a');
- tabs[0].href = FCKPlugins.Items['image'].Path + 'embedded_images.html';
- tabs[1].href = window.parent.FCKConfig.ImageBrowserURL;
+ tabs[0].href = pluginPath + 'dialog/embedded_images.html';
+ //tabs[1].href = window.parent.FCKConfig.ImageBrowserURL;
addListener(document, 'click', updateTabs)
};
addListener(window, 'load', initTabs);
var win = open(path + 'dialog/plinn_image.html', 'PlinnImageDialog', winOptions);
win.dialogArguments = new Object();
win.dialogArguments.editor = editor;
+ win.dialogArguments.pluginPath = path;
}