close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

iexplorer error ... irite (re) format source code

Thread began 10/07/2009 12:26 pm by info321189 | Last modified 10/12/2009 1:54 am by info321189 | 2192 views | 7 replies |

info321189

iexplorer error ... irite (re) format source code

Hello, in pages created by irite I use swfobject for flash animations, to do this I paste the source code from swf online generator, first time I save the page work fine in any browser, when I update the page irite reformat the source code (delete spaces and return line) this generate a lot of errors in iexplorer and the page not working fine...
How I can mantain the spaces and format code ?

Sign in to reply to this post

Eric Mittman

Is there any formatting occurring for the results that you load into the editor? If it is ok the first time but not ok when updating this indicates that there is some extra formatting occurring during the insert or when getting the info back.

The places to check for this would be the initial value for the iRite editor, this is on the first page of the iRite wizard.

You should also check the value is being inserted and updated, if there is any formatting here it can cause something like this. Please check for this extra formatting and remove it if it exists. Let us know the result, also if you can post back with links to the pages or the pages themselves in a zip archive we would be able to get a better idea of what is occurring.

Sign in to reply to this post

info321189

Hello Eric,
I try but continue to reformat the source...

my js configuration for the editor is:

-- BEGIN --

// Custom configuration for iRite

FCKConfig.SkinPath = 'skins/silver/'; // relative to fckeditor/editor/fckeditor.html
FCKConfig.DocType = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';

FCKConfig.AutoDetectLanguage = false;
FCKConfig.DefaultLanguage = 'en';

FCKConfig.StartupFocus = false;
FCKConfig.FullPage = false;

FCKConfig.BaseHref = '';
FCKConfig.DefaultLinkTarget = '_blank';

FCKConfig.ToolbarSets["Custom"] = [
['Source','DocProps','-','NewPage','Preview','-','Templates'],
['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
'/',
['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
['OrderedList','UnorderedList','-','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link','Unlink','Anchor'],
['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak'],
'/',
['Style','FontFormat','FontName','FontSize'],
['TextColor','BGColor'],
['FitWindow','-','About']
]; /* Toolbar end */

FCKConfig.ForceStrongEm = true;
FCKConfig.FormatIndentator = ' ';
FCKConfig.EnterMode = 'p';
FCKConfig.FillEmptyBlocks = false;
FCKConfig.FormatOutput = false;
FCKConfig.FormatSource = false;
FCKConfig.IncludeGreekEntities = false;
FCKConfig.IncludeLatinEntities = false;
FCKConfig.ProcessHTMLEntities = false;
FCKConfig.ProcessNumericEntities = false;
FCKConfig.AdditionalNumericEntities = '';
FCKConfig.ForcePasteAsPlainText = true;
FCKConfig.CleanWordKeepsStructure = true;


FCKConfig.EditorAreaCSS = '../../css/screen.css'; // relative to fckeditor/editor/fckeditor.html
FCKConfig.BodyClass = 'editor';
FCKConfig.StylesXmlPath = '../custom/default1.xml'; // relative to fckeditor/editor/fckeditor.html

-- END --

the iRite code in update page is
<?php
// WebAssist iRite: Rich Text Editor for Dreamweaver
$WARichTextEditor_1 = CreateRichTextEditor ("htmleditor", "WA_iRite/", "640px", "480px", "Custom", "../custom/default1.js", "".$row_WADApages['webpage'] ."");
?>

if I paste the first time a code like this:
-- BEGIN --
<div>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="300" height="100" id="swf" name="flash">
<param name="movie" value="test.swf" />
<param name="quality" value="high" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="test.swf" width="300" height="100">
<param name="quality" value="high" />
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
-- END --

When I update I get:

-- BEGIN --
<div><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="300" height="100" id="swf" name="flash">
<param name="movie" value="test.swf" />
<param name="quality" value="high" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="test.swf" width="300" height="100">
<param name="quality" value="high" />
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object> <!--<![endif]--></div>
-- END --

This cause errors in iexplorer... :-(

Sign in to reply to this post

Eric Mittman

The configuration file is probably not the source of the problem. This is likely an issue on the page that iRite is applied to directly. If you can please post back with the insert and update pages that have iRite applied to them. You can just put them in a zip archive and attach that to your post. I will check out these pages to try and determine what is going wrong.

Sign in to reply to this post

info321189

Thankyou very much for support Eric.
I attach the two pages.

Attached Files
pages.zip
Sign in to reply to this post

Eric Mittman

The pages you posted with the iRite code on them do not seem to be doing any formatting of the data that is in them. Do you have a link to a live page where the error is occurring? Also please include information about the swf that was originally placed in the iRite instance.

Sign in to reply to this post

info321189

Hello Eric, I just paste the code changing names, the live pages are under administration area, I can send you a private link ?

Sign in to reply to this post

info321189

Solved !
Hello, the <object> tag are inside a <div> element, I just add in the irite page configuration this line:

FCKConfig.ProtectedSource.Add( /<div[\s\S]*?<\/div>/gi);

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...