Hallo
Hab das mal versucht den KFC Editor 2.2 bei 1.6.0.RC2 einzubauen:
1. KFC Editor 2.2 ausgepackt nach /srv/www/phpmyfaq_test/admin/FCKeditor/
2. /srv/www/phpmyfaq_test/admin/footer.php
(1.5.x in header.php)
Alles was mit htmlarea zu tun hat gelöscht
Zeile 41 bis und mit 98
3. /srv/www/phpmyfaq_test/admin/record.edit.php
änderung siehe diff:
Code: Select all
diff record.edit.php record.edit.php_org160
19a20
>
24d24
< include("FCKeditor/fckeditor.php") ;
194,209c194
< <noscript>Please enable JavaScript to use the WYSIWYG editor!</noscript>
< <?php
< $sBasePath = $_SERVER['PHP_SELF'] ;
< $sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "record.edit.php" ) ) ;
< $sBasePath = $sBasePath."FCKeditor/";
< $oFCKeditor = new FCKeditor('content') ;
< $oFCKeditor->BasePath = $sBasePath ;
< $oFCKeditor->Width = '100%' ;
< $oFCKeditor->Height = '300' ;
< if (isset($content))
< {
< $oFCKeditor->Value = $content;
< }
< $oFCKeditor->Create() ;
< ?>
< <br />
---
> <noscript>Please enable JavaScript to use the WYSIWYG editor!</noscript><textarea id="content"
name="content" cols="50" rows="10"><?php if (isset($content)) { print trim($content); } ?></textarea><br />
Probleme nein

1. Firefox zeigt die Editor Taskliste nicht an
Versuche mit den samples von KFC Editor zeigten aber alles auch im Firefox korrekt an
2. Im IE neuer Eintrag funktioniert
Wenn ich den Eintrag dann editiere wird er beim auslesen schon als HTML angezeigt.
Wenn ich dann speichere wird dieser HTML wieder als HTML Codiert
Beispiel:
Neuer Beitrag
Das ist ein Test Text --> speichern --> wird korrekt angezeigt
Beitrag Editieren
Das wird angezeigt ohne auf html editieren zu klicken
Code: Select all
<p>Das ist ein <strong>Test</strong> Text</p> <p> </p>
Das wird im Frontend angezeigt
Code: Select all
<p>Das ist ein <strong>Test</strong> Text</p> <p> </p>
Code: Select all
<p>Das ist ein <strong>Test</strong> Text</p> <p> </p>
- Bilderupload hab ich noch nicht probiert
Gruss Stefan