Hello,
I was exploring a resizing issue with the newest editor (everything else works fantastic as far as I have tested), and I have come accross the following issue which is repeatable:
1. When using the editor in FullScreen, the edit box (the iframe with the class name "CuteEditorFrame") which also has a style tag appended to it on build (see line #619 of include_CuteEditor.php) sets the defaults for that tag to "Height: 100%; Width: 100%", however after the page has drawn, the element's height is altered to a fixed height in px inside the style= section of the element with class "CuteEditorFrame" (which is the iframe edit box in between the toolbar, and footer bar).
I have tried attaching the following code to alter this back on page load complete as a sort of hack to work around this issue, however it seems to be something inside the loader.js (which is obfuscated), that is overriding this. I can not confirm at this time, however that is where my troubleshooting ended and I am writing this post.
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
- <script type="text/javascript" charset="utf-8">
- $().ready(function() {
- $('.CuteEditorFrame').css('height','100%');
- });
- </script>
The entire block of code I am using is as follows:
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>TEST</title>
- <style type="text/css">
- html, body {
- height: 100%;
- margin: 0; padding: 0;
- }
- </style>
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
- <script type="text/javascript" charset="utf-8">
- $().ready(function() {
- $('.CuteEditorFrame').css('height','100%');
- });
- </script>
- </head>
- <body bgcolor="#979080" marginheight="0" marginwidth="0">
- <?php
- include_once("php/ce/include_CuteEditor.php");
- $fname = "../" . $_GET['file'];
- $form_unique_id = md5($fname);
- echo '<body bgcolor="#ffffff"><FORM name="' . $form_unique_id . '" method="post" action="editframe.php?file=' . urlencode($_GET['file']) . '&postback=true">';
- $editor=new CuteEditor();
- $editor->ID="code";
- $editor->EditorWysiwygModeCss="/style.css";
- $editor->EditCompleteDocument=false;
- $editor->FullPage=true;
- $editor->BaseHref='http://' . $_SERVER['SERVER_NAME'];
- $editor->ThemeType="Office2003";
- $editor->URLType="SiteRelative";
-
- if(!is_dir($_SERVER['DOCUMENT_ROOT'] . "images/")) { mkdir($_SERVER['DOCUMENT_ROOT'] . "images/"); }
- $editor->ImageGalleryPath="/images/";
-
- if(!is_dir($_SERVER['DOCUMENT_ROOT'] . "uploads/")) { mkdir($_SERVER['DOCUMENT_ROOT'] . "uploads/"); }
- $editor->FlashGalleryPath="/uploads/";
- $editor->MediaGalleryPath="/uploads/";
- $editor->FilesGalleryPath="/uploads/";
-
- if (@$_GET["postback"]!="true")
- {
- if($fname != "../") {
- $editor->LoadHTML($fname);
- }
- $editor->Draw();
- }
- else
- {
- $editor->SaveFile($fname);
- $editor->Draw();
- }
- $editor=null;
- echo '</FORM></body>';
- ?>
- </body>
- </html>
Custom Software Developent at MicroVB INC