HTML Editor austauschen

You have a suggestion for a future version of phpMyFAQ? Then post it here!

Moderator: Thorsten

merlin
Posts: 28
Joined: Thu Nov 18, 2004 1:46 pm
Location: CH
Contact:

KFC Editor 2.2 bei 1.6.0.RC2

Post by merlin »

Hallo
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 />
Sonst hab ich im Moment nichts geändert

Probleme nein :-) Herausforderungen:
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>
--> Ohne etwas zu ändern Speichen

Das wird im Frontend angezeigt

Code: Select all

<p>Das ist ein <strong>Test</strong> Text</p> <p> </p>
Das wird jetzt im Backend angezeigt

Code: Select all

<p>Das ist ein <strong>Test</strong> Text</p> <p> </p>

- Bilderupload hab ich noch nicht probiert

Gruss Stefan
merlin
Posts: 28
Joined: Thu Nov 18, 2004 1:46 pm
Location: CH
Contact:

Post by merlin »

Firefox mit FCKeditor will nicht, der Code ist wie oben beschrieben.
Weiss jemad Rat?
Das hab ich gefunden bringt aber nichts:
http://wiki.fckeditor.net/Troubleshooti ... ox_headers

Das hier ist der Code den der Browser bekommt

IE FCKeditor

Code: Select all

	
   <label for="content">Text:</label>
   <div>
   <input type="hidden" id="content" name="content" value="" style="display:none" />
   <input type="hidden" id="content___Config" value="" style="display:none" />
   <iframe id="content___Frame" src="FCKeditor/editor/fckeditor.html?
        InstanceName=content&Toolbar=Default" width="100%" height="300" 
		frameborder="no" scrolling="no">
   </iframe>
   </div><br />
Firefox FCKeditor

Code: Select all

    <label for="content">Text:</label>
    <div>
	<textarea name="content" rows="4" cols="40" style="width: 100%; height: 300px">
	</textarea>
	</div><br />

Firefox Orginal htmlarea

Code: Select all

   <textarea id="content" name="content" cols="50" rows="10">
   <?php if (isset($content)) { print trim($content); } ?>
   </textarea><br />
Post Reply