Changeset 2235 for FCKeditor/branches

Show
Ignore:
Timestamp:
2008-07-21 11:11:58 (5 months ago)
Author:
fredck
Message:

Changed the Flash sample to have flexible layout so it works on different resolutions.
Fixed some errors in the config file.
Removed the margins for ul and ol elements.

Location:
FCKeditor/branches/features/new_samples/_samples/html
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/branches/features/new_samples/_samples/html/sample16.config.js

    r2228 r2235  
    4444        { 
    4545                Element         : 'font', 
    46                 Attributes      : { 'face' : '#("Font")' }, 
     46                Attributes      : { 'face' : '#("Font")' } 
    4747        } ; 
    4848 
     
    6767        { 
    6868                Element         : 'font', 
    69                 Attributes      : { 'color' : '#("Color")' }, 
     69                Attributes      : { 'color' : '#("Color")' } 
    7070        } ; 
    7171/** 
     
    8888 * Flash specific formatting settings. 
    8989 */ 
    90 FCKConfig.EditorAreaStyles = 'p {margin: 0px;}' ; 
     90FCKConfig.EditorAreaStyles = 'p, ol, ul {margin: 0px;}' ; 
    9191FCKConfig.FormatSource = false ; 
    9292FCKConfig.FormatOutput = false ; 
  • FCKeditor/branches/features/new_samples/_samples/html/sample16.html

    r2228 r2235  
    1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
     1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    22<!-- 
    33 * FCKeditor - The text editor for Internet - http://www.fckeditor.net 
     
    4545        <div> 
    4646                This sample shows FCKeditor configured to produce HTML code that can be used with 
    47                 <a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14808#TextArea_Component">Flash</a>. 
     47                <a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14808#TextArea_Component"> 
     48                        Flash</a>. 
    4849        </div> 
    4950        <hr /> 
    50         <form target="_blank"> 
    51                 <div style="float: left;"> 
    52                 <script type="text/javascript"> 
     51        <form target="_blank" action=""> 
     52                <table width="100%" cellpadding="0" cellspacing="0"> 
     53                        <tr> 
     54                                <td style="width: 100%"> 
     55                                        <script type="text/javascript"> 
    5356<!-- 
    5457// Automatically calculates the editor base path based on the _samples directory. 
     
    6467oFCKeditor.Config['CustomConfigurationsPath'] = sBasePath + '_samples/html/sample16.config.js' ; 
    6568oFCKeditor.Height = 400 ; 
    66 oFCKeditor.Width = 500 ; 
     69oFCKeditor.Width = '100%' ; 
    6770oFCKeditor.ToolbarSet = 'Flash' ; 
    6871oFCKeditor.Value = '<p>This is some <b>sample text<\/b>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ; 
    6972oFCKeditor.Create() ; 
    7073//--> 
    71                 </script> 
    72                 </div> 
    73                 <div style="float:left; padding: 5px;"> 
    74                         <input type="button" style="position: relative; top: 190px;" value="->" onclick="sendToFlash();" /> 
    75                 </div> 
    76                 <div id="fckFlashContainer" style="float: left;" /> 
    77                 <br /> 
     74                                        </script> 
     75                                        <input type="button" value="Send to Flash" onclick="sendToFlash();" /> 
     76                                </td> 
     77                                <td id="fckFlashContainer" valign="top" style="padding-left: 15px"> 
     78                                </td> 
     79                        </tr> 
     80                </table> 
    7881        </form> 
    7982        <script type="text/javascript">