Ticket #2252: 2252.patch

File 2252.patch, 3.0 KB (added by Wojciech Olchawa, 11 years ago)
  • _whatsnew.html

     
    112112                        properly wrap the text.</li>
    113113                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2239">#2239</a>] The Samplepostdata.php has been
    114114                        changed from "&lt;?=" to "&lt;? echo".</li>
     115                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2252">#2252</a>] It's now possible to enable the
     116                        browsers default menu using the configuration file (FCKConfig.BrowserContextMenu option).</li>
    115117        </ul>
    116118        <h3>
    117119                Version 2.6</h3>
  • editor/_source/internals/fck_gecko.js

     
    267267        }
    268268
    269269        // Reset the context menu.
     270        if (FCKConfig.BrowserContextMenu == false)
     271        {
    270272        FCK.ContextMenu._InnerContextMenu.SetMouseClickWindow( FCK.EditorWindow ) ;
    271273        FCK.ContextMenu._InnerContextMenu.AttachToElement( FCK.EditorDocument ) ;
     274        }
    272275}
    273276
    274277FCK.MakeEditable = function()
  • editor/_source/internals/fck_ie.js

     
    130130        this.EditorDocument.body.attachEvent( 'ondrop', Doc_OnDrop ) ;
    131131
    132132        // Reset the context menu.
    133         FCK.ContextMenu._InnerContextMenu.AttachToElement( FCK.EditorDocument.body ) ;
     133        if (FCKConfig.BrowserContextMenu == false)
     134                FCK.ContextMenu._InnerContextMenu.AttachToElement( FCK.EditorDocument.body ) ;
    134135
    135136        this.EditorDocument.attachEvent("onkeydown", FCK._KeyDownListener ) ;
    136137
  • editor/fckeditor.html

     
    261261        <script type="text/javascript">
    262262
    263263// Initialize the editing area context menu.
    264 FCK_ContextMenu_Init() ;
     264if (FCKConfig.BrowserContextMenu == false)
     265        FCK_ContextMenu_Init() ;
    265266
    266267FCKPlugins.Load() ;
    267268
  • fckconfig.js

     
    144144
    145145FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form'] ;
    146146FCKConfig.BrowserContextMenuOnCtrl = false ;
     147FCKConfig.BrowserContextMenu = false;
    147148
    148149FCKConfig.EnableMoreFontColors = true ;
    149150FCKConfig.FontColors = '000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,808080,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF' ;
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy