منتدى استراحات زايد

منتدى استراحات زايد (http://vb.ma7room.com/index.php)
-   منتدى أخبار المواقع والمنتديات العربية والأجنبية (http://vb.ma7room.com/forumdisplay.php?f=183)
-   -   How to upgrade the FCKeditor 2.1.1 to a newer version (http://vb.ma7room.com/showthread.php?t=323517)

محروم.كوم 02-09-2010 05:40 PM

How to upgrade the FCKeditor 2.1.1 to a newer version
 
Just sharing some information as it might be useful to others.

I am using the xwysiwyg mod in a few 0.10.2 and 0.11 websites with the default fck_211 (fck_211_php) packages/editors (and others installed).
The fck editor is very nice but has some very irritating bugs that only seem to manifest with current browsers. At least, I didn't experience the below issue when still using Firefox 1.5.
One bug is as documented at http://dev.fckeditor.net/ticket/220 where adding a link the first time adds an anchor with something like href="javascript:void(0);/*1264006125069*/".
That means you always have to check and correct that.

To try and fix the above, I found a rather simple way to upgrade the fck editor to the current version 2.6.5.

Steps to take:

1. Download the FCKeditor 2.6.5 from http://ckeditor.com/download in zip format.
I didn't try the even newer CKEditor 3.1

2. Unzip the FCKeditor_2.6.5.zip locally which creates a 'fckeditor' directory

3. Use ftp to copy the full fckeditor directory to the server under the phpWebsite directory /files/xwysiwyg/editors/

4. Rename the directory /files/xwysiwyg/editors/fckeditor/ to /files/xwysiwyg/editors/fck_265_php/

5. Copy the following files under /files/xwysiwyg/editors/ :
fck_211_php.conf to fck_265_php.conf
fck_211_php.php to fck_265_php.php

6. Change in /files/xwysiwyg/editors/fck_265_php.conf the path like
$cfg_path = "/files/xwysiwyg/editors/fck_265_php/";

No changes have to be made in /files/xwysiwyg/editors/fck_265_php.php

7. In the database, copy in table mod_xw_config the record with the editor field value
'fck_211_php' to a new row with editor field value 'fck_265_php'

This allows the new editor version to be selected in the xwysiwyg Manager

8. For the FCKeditor 2.6.5, add support for Safari by defining the supported browsers as
FB.6+;NS7+;IE5.5+;MZ1.3+;FX1+;SF

Note that the FCKeditor 2.1.1 does apparently not support Safari.

9. At this point most works as usual except for browsing the server file system to select or upload files.
Trying to do so raises a warning
This connector is disabled.
Please check the "editor/filemanager/connectors/php/config.php" file

So, in this file, change the default value ´false´ to ´true´ in the line
$Config['Enabled'] = true;


الساعة الآن 05:43 AM

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By Almuhajir


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227