SiNG cmsскачать SiNG cms

система управления сайтом
22 Февраль 2017 18:11 мск  
Стиль оформления
Quick Guide :: Connecting FCKeditor
Quick Guide > Connecting FCKeditor
In the content management system SiNG cms is possible to connect the visual editor FCKeditor to create and edit articles, news and pages.

FCKeditor is a third-party development, so it is not included in the distribution SiNG cms. Download FCKeditor 2.6.10 you can here - http://sourceforge.net/projects/fckeditor/.

To connect the FCKeditor unpack the downloaded archive and place the folder fckeditor/ to the root directory of your site. After that, will can switch on visual editor by clicking appropriate button when you edit articles, news or custom pages.

If you intend to use FCKeditor not only for editing the text, but also to download and insert images, make the following changes to the file fckeditor/editor/filemanager/connectors/php/config.php:

1. at the beginning of file after string:
<?phpadd new string:
require "../../../../../conf.php"; require PATH."core.php"; if (!rights("VE")) exit();

2. find and replace in this file the following variables:
$Config['Enabled'] = false ;with
$Config['Enabled'] = true ;
$Config['UserFilesPath'] = '/userfiles/' ;with
$Config['UserFilesPath'] = $basedir ;
$Config['UserFilesAbsolutePath'] = '' ;with
$Config['UserFilesAbsolutePath'] = PATH ;
$Config['UserFilesPath'] . 'image/' ;with
$Config['UserFilesPath'] . 'images/' ;
$Config['UserFilesAbsolutePath'].'image/' ;with
$Config['UserFilesAbsolutePath'].'images/' ;

To comply with the HTML 4.01 standard make the following changes:

1. in the files fckeditor/editor/js/fckeditqweqweqweorcode_gecko.js and fckeditor/editor/js/fckeditorcode_ie.js find using some text editor and replace in 9 places " />" (space_slash_>) with ">" (without space and slash);

2. in the file fckeditor/fckconfig.js replace:
{ Element : 'strong', Overrides : 'b' }with
{ Element : 'b', Overrides : 'strong' }
{ Element : 'em', Overrides : 'i' }with
{ Element : 'i', Overrides : 'em' }

If you want to free up space (~3 Mb), you can remove from the folder fckeditor/ next files and folders:

_samples/
editor/_source/
editor/dtd/
editor/filemanager/connectors/
all except of php/
editor/js/fckadobeair.js
editor/lang/
all except of your_lang.js
editor/skins/
all except of default/
editor/plugins/
editor/fckdebug.html
editor/fckeditor.original.html
_documentation.html
_upgrade.html
_whatsnew.html
_whatsnew_history.html
fckpackager.xml
fckeditor.afp
fckeditor.asp
fckeditor.cfc
fckeditor.cfm
fckutils.cfm
fckeditor.lasso
fckeditor.pl
fckeditor.py


Detailed documentation for FCKeditor:
for users - http://docs.cksource.com/FCKeditor_2.x/Users_Guide,
for developers - http://docs.cksource.com/FCKeditor_2.x/Developers_Guide
Рейтинг@Mail.ru Rambler's Top100
Simple Network Gear
Сайт управляется SiNG cms © 2010-2015