Bester Editor Ever

Fragen zur Installation von CONTENIDO 4.9? Probleme bei der Konfiguration? Hinweise oder Fragen zur Entwicklung des Systemes oder zur Sicherheit?
workaholics
Beiträge: 18
Registriert: Mo 24. Mai 2004, 15:32
Kontaktdaten:

Beitrag von workaholics » Do 23. Jun 2005, 11:44

Danke.

Ich hatte den Thread komplett durchgelesen, aber man sollte doch zweimal nachschauen. Ich hatte das td in der letzten Zeile vergessen.

Was ich noch vergessen hab: super Editor. Danke für die Implementierung.

emergence
Beiträge: 10645
Registriert: Mo 28. Jul 2003, 12:49
Wohnort: Austria
Kontaktdaten:

Beitrag von emergence » Do 23. Jun 2005, 14:20

da die final 1.45 heute erschienen ist dachte ich mir ich bau eine version 0.0.5

diese version verwendet die optimierten js dateien (sollte somit schneller geladen werden)
ach ja es wurde keine einzige zeile des orginal codes des editors verändert...
die zip datei ist etwas größer da sie nun beide versionen des js codes beinhaltet...
*** make your own tools (wishlist :: thx)

trixta
Beiträge: 165
Registriert: Di 26. Apr 2005, 12:53
Kontaktdaten:

Beitrag von trixta » Do 23. Jun 2005, 15:09

n1 :D

kann jemand mit dem javascript fehler bei der einbindung des hydrogen filebrowsers was anfangen? mir helfen???? plz :cry:


@tono:

habe eben versucht den hydrogen so zu implementieren wie du meintest. leider lädt er dann nicht den tiny, sondern zeigt die seite im html-modus an und lädt keine buttons. außerdem taucht ein javascript fehler auf wonach: imanager undefiniert ist, der dafür verantwortlich ist.

kannst du dir dabei was denken?

habe das nach deiner anleitung modifizierte pack hochgeladen:
tinymce-m-hydrogen.zip

tono
Beiträge: 574
Registriert: Mo 25. Apr 2005, 20:51
Wohnort: Frankfurt am Main
Kontaktdaten:

Beitrag von tono » Do 23. Jun 2005, 20:36

@trixta

Du hast eine andere Ordnerstruktur als ich, vielleicht hast Du eine andere Hydrogen Version als ich erwischt? Damit es klappt muss es so aussehen:

/tinymce/hydrogen/hydrogen/ <-- Hier sind die Hydrogen Dateien
/tinymce/hydrogen/phpthumbs/ <-- Hier ist phpthumbs

tono
Beiträge: 574
Registriert: Mo 25. Apr 2005, 20:51
Wohnort: Frankfurt am Main
Kontaktdaten:

Beitrag von tono » Do 23. Jun 2005, 20:57

@emergence

Danke für den Hinweis bzgl. der Mandantenpfade, hab die Installationsanleitung entsprechend geändert.

andrej
Beiträge: 333
Registriert: Mi 8. Okt 2003, 09:46
Kontaktdaten:

Beitrag von andrej » Fr 24. Jun 2005, 11:05

weiß einer wie ich die option

Code: Alles auswählen

border="0"
aus dem img konstrukt bei dem edit entferne?

immer wenn ich bilder einfüge, und border="0" entferne, wird es automatisch wieder generiert. dies ist dann leider nicht mehr xhtml konform.

über eine antwort würde ich mich freuen.

tantalus
Beiträge: 30
Registriert: Do 3. Mär 2005, 12:06
Kontaktdaten:

Beitrag von tantalus » So 26. Jun 2005, 16:48

Der enditor läuft bei mir auf Contenido 4.4.5 prima. Bilder lassen sich auch aus der Liste auswählen und einbinden, nur interne links lassen sich nicht auswählen. Ist das ein Fehler bei mir oder ist es generell nicht möglich?

webdev
Beiträge: 41
Registriert: Do 16. Sep 2004, 15:54
Kontaktdaten:

schaff es nicht, den Editor einzubauen :-(

Beitrag von webdev » Mo 27. Jun 2005, 13:14

Hallo
wie lange wünsche ich mir schon einen funktionstüchtigen (auch hinsichtlich xhtml) Editor
... welch Freude, diesen Thread gefunden zu haben!! Ich habe den ganzen Thread gelesen und bin folgendermassen vorgegangen:


1. bei http://tinymce.moxiecode.com den TinyMCE 1.45 runtergeladen und bei contenido/external/wysiwyg > tinymce
hochgeladen.
2. die beiden Pfade in config.php angepasst
3. dann (da war ich nicht ganz sicher) das ganze jscripts-Verzeichnis mit dem von Emergence
ersetzt - Version 0.0.5
4. zu guter Letzt die beiden Dateien includes.CMS_HTML.php und includes.CMS_HTMLHEAD.php entsprechend angepasst.

Leider öffnet sich KEIN Editor, wenn ich einen Artikel via Text/HTML klicke. Ich sehe bloss '1. Text / HTML:' und
die beiden Icons (Haken/Kreuz) unten. Hab also das gleiche Problem wie 'workaholics', aber mir fehlt, meines Wissens
kein </td>. Hier der Code-Passagen der beiden Files (Fehler werden übrigens auch keine ausgegeben):


include.CMS_HTML.php

echo " <FORM method=\"post\" action=\"".$cfg["path"]["contenido_fullhtml"].$cfg["path"]["includes"]."include.backendedit.php\">";
$sess->hidden_session();
echo " <INPUT type=hidden name=lang value=\"$lang\">";
// echo " <INPUT type=hidden name=submit value=\"editcontent\">";
echo " <INPUT type=hidden name=typenr value=\"$typenr\">";
echo " <INPUT type=hidden name=idart value=\"$idart\">";
echo "<INPUT type=hidden name=doedit value=1>";
echo " <INPUT type=hidden name=action value=\"10\">";
echo " <INPUT type=hidden name=type value=\"$type\">";
echo " <INPUT type=hidden name=idcat value=\"$idcat\">";
echo " <INPUT type=hidden name=idartlang value=\"$idartlang\">";
echo "<INPUT type=hidden name=changeview value=\"edit\">";
echo "<TABLE cellpadding=2 cellspacing=0 border=0 width=100%>";

echo " <TR><TD valign=top class=text_medium nowrap>&nbsp;".$typenr.".&nbsp;".$a_description[$type][$typenr].":&nbsp;</TD></TR><tr><td>";

include ($cfg["path"]["wysiwyg"] . 'editor.php');


echo " </td></TR>";
$tmp_area = "con_editcontent";
echo " <TR valign=top><TD colspan=2><br>
<a href=".$sess->url($cfgClient[$client]["path"]["htmlpath"]."front_content.php?area=$tmp_area&idart=$idart&idcat=$idcat&lang=$lang")."><img src=\"".$cfg["path"]["contenido_fullhtml"].$cfg["path"]["images"]."but_cancel.gif\" border=0></a>
<INPUT type=image name=submit value=editcontent src=\"".$cfg["path"]["contenido_fullhtml"].$cfg["path"]["images"]."but_ok.gif\" border=0>
</TD></TR>";

echo " </TABLE>";
echo "</FORM>";


und

include.CMS_HTMLHEAD.php

echo " <FORM method=\"post\" action=\"".$cfg["path"]["contenido_fullhtml"].$cfg["path"]["includes"]."include.backendedit.php\">";
$sess->hidden_session();
echo "<INPUT type=hidden name=lang value=\"$lang\">";
// echo "<INPUT type=hidden name=submit value=\"editcontent\">";
echo "<INPUT type=hidden name=typenr value=\"$typenr\">";
echo "<INPUT type=hidden name=idart value=\"$idart\">";
echo "<INPUT type=hidden name=action value=\"10\">";
echo "<INPUT type=hidden name=type value=\"$type\">";
echo "<INPUT type=hidden name=idcat value=\"$idcat\">";
echo "<INPUT type=hidden name=doedit value=1>";
echo "<INPUT type=hidden name=idartlang value=\"$idartlang\">";
echo "<INPUT type=hidden name=test value=\"Test\">";
echo "<INPUT type=hidden name=changeview value=\"edit\">";
echo "<TABLE cellpadding=2 cellspacing=0 border=0 width=100%>";
echo "<TR><TD valign=top class=text_medium nowrap>&nbsp;".$typenr.".&nbsp;".$a_description[$type][$typenr].":&nbsp;</TD></TR><tr><td>";

include ($cfg["path"]["wysiwyg"] . 'editor.php');


echo " </td></TR>";

$tmp_area = "con_editcontent";
echo " <TR valign=top><TD colspan=2><br>
<a href=".$sess->url($cfgClient[$client]["path"]["htmlpath"]."front_content.php?area=$tmp_area&idart=$idart&idcat=$idcat&lang=$lang")."><img src=\"".$cfg["path"]["contenido_fullhtml"].$cfg["path"]["images"]."but_cancel.gif\" border=0></a>
<INPUT type=image name=submit value=editcontent src=\"".$cfg["path"]["contenido_fullhtml"].$cfg["path"]["images"]."but_ok.gif\" border=0>
</TD></TR>";

echo "</TABLE>";
echo "</FORM>";



Kann mir jemand einen Tipp geben? Das wäre sehr nett.
webdev

PS: ich habs an der 4.4.4er versucht und wenns klappt, versuche ich es in der 4.5.3er

emergence
Beiträge: 10645
Registriert: Mo 28. Jul 2003, 12:49
Wohnort: Austria
Kontaktdaten:

Beitrag von emergence » Mo 27. Jun 2005, 17:24

@andrej
es ist nur nicht xhtml strict konform...
bei fragen dieser art kann ich dich nur auf das offizielle forum verweisen
-> http://tinymce.moxiecode.com/forum/

@tantalus
das mit der internen link auswahl funktioniert bei mir ohne weiteres..
gibts nen javascript fehler ? oder ne fehlermeldung im logs/errorlog.txt ?

@webdev
steht was im logs/errorlog.txt ?
wenn du nicht mal ein textarea feld siehst hast du die dateien in den falschen ordner kopiert...

grundsätzlich reicht es das standard zipfile as-is zu verwenden...
verwendest du die orginale dateien von http://tinymce.moxiecode.com
benötigst du nur die dateien editor.php config.php und list.php
die verzeichniss struktur sollte in etwa so aussehen
external/wysiwyg/tinymce/editor.php
external/wysiwyg/tinymce/config.php
external/wysiwyg/tinymce/list.php
external/wysiwyg/tinymce/jscript/*.*
*** make your own tools (wishlist :: thx)

timo
Beiträge: 6284
Registriert: Do 15. Mai 2003, 18:32
Wohnort: Da findet ihr mich nie!
Kontaktdaten:

Beitrag von timo » Mo 27. Jun 2005, 18:26

Ich habe noch einiges im CVS umgebaut - nicht erschrecken

und zwar habe ich den kompletten Initialisierungscode in eine Klasse ausgelagert. Grund:

Soll der TinyMCE an anderen Stellen eingesetzt werden, müsste man den Code der editor.php per copy'n'paste übernehmen.

Mit der Klasse kann man die Eigenschaften des TinyMCE verändern. Außerdem kann man den TinyMCE instanziieren, auch wenn z.b. der SPAW der defaulteditor ist.

HerrB
Beiträge: 6935
Registriert: Do 22. Mai 2003, 12:44
Wohnort: Berlin
Kontaktdaten:

Beitrag von HerrB » Mo 27. Jun 2005, 19:04

Mit der Klasse kann man die Eigenschaften des TinyMCE verändern. Außerdem kann man den TinyMCE instanziieren, auch wenn z.b. der SPAW der defaulteditor ist.
Schmatz, denke ich... :wink:

Gruß
HerrB
Bitte keine unaufgeforderten PMs oder E-Mails -> use da Forum!

Newsletter: V4.4.x | V4.6.0-15 (Module, Backend) | V4.6.22+
Standardartikelliste: V4.4.x | V4.6.x
http://www.contenido.org/forum/search.php | http://faq.contenido.org | http://www.communido.net

webdev
Beiträge: 41
Registriert: Do 16. Sep 2004, 15:54
Kontaktdaten:

4.5.2 er ok (ohne css), 4.5.3 Fehler

Beitrag von webdev » Di 28. Jun 2005, 08:13

Hallo Emergence, hallo alle

@emergence: danke für die Antwort. Das war es genau. Die Pfade stimmten nicht... Und was noch nicht klappt (zumindest bei der 4.5.2er): die Einbindung der Styles. Bei Spaw trug ich zwei Zeilen ein:

wysiwyg / spaw-stylesheet-file / text;textkursiv;subtitel;link
wysiwyg / spaw-styles / css/styles.css

Dies ermöglicht die Auswahl (text;textkursiv;subtitel;link) der im styles.css-definierten Styles im Spaw-Editor. Bei tinymce klappt es nicht. Wenn ich die beiden Zeilen einfüge:

wysiwyg / tinymce-stylesheet-file / text;textkursiv;subtitel;link
wysiwyg / tinymce-styles / css/styles.css

bekomme ich im Editor bei 'styles' 'styles.css' angezeigt. Lasse ich die zweite Zeile weg, gibts im Editor nichts auszuwählen. Wo liegt der Fehler?

Bei der 4.5.3er hatte ich schon vorher Probleme, überhaupt einen Editor angezeigt zu bekommen. Beim klick auf Text/HTML bekomme ich eine Ansammlung von Fehlermeldungen (weiter unten) die Fehlermeldungen im errorlog:

---------------
Warning: main(config.php): failed to open stream: No such file or directory in /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php on line 24

Warning: main(): Failed opening 'config.php' for inclusion (include_path='.:') in /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php on line 24

Warning: chdir(): No such file or directory (errno 2) in /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php on line 27

Warning: Cannot modify header information - headers already sent by (output started at /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php:24) in /home/wwwcustomers/taxjustice.net/conlib/session.inc on line 481

Warning: Cannot modify header information - headers already sent by (output started at /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php:24) in /home/wwwcustomers/taxjustice.net/conlib/session.inc on line 484

Warning: Cannot modify header information - headers already sent by (output started at /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php:24) in /home/wwwcustomers/taxjustice.net/conlib/session.inc on line 485

Warning: Cannot modify header information - headers already sent by (output started at /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php:24) in /home/wwwcustomers/taxjustice.net/conlib/session.inc on line 486

Warning: Cannot modify header information - headers already sent by (output started at /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php:24) in /home/wwwcustomers/taxjustice.net/conlib/session.inc on line 487

Warning: Cannot modify header information - headers already sent by (output started at /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php:24) in /home/wwwcustomers/taxjustice.net/conlib/session.inc on line 488

Warning: Cannot modify header information - headers already sent by (output started at /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php:24) in /home/wwwcustomers/taxjustice.net/conlib/session.inc on line 489

Warning: Cannot modify header information - headers already sent by (output started at /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php:24) in /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php on line 149

Warning: Cannot modify header information - headers already sent by (output started at /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php:24) in /home/wwwcustomers/taxjustice.net/contenido/includes/include.con_editcontent.php on line 58
-----------------

errorlog:

[28-Jun-2005 09:07:31] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php:24) in /home/wwwcustomers/taxjustice.net/contenido/includes/include.con_editcontent.php on line 58
[28-Jun-2005 09:07:31] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php:24) in /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php on line 149
[28-Jun-2005 09:07:31] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php:24) in /home/wwwcustomers/taxjustice.net/conlib/session.inc on line 489
[28-Jun-2005 09:07:31] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php:24) in /home/wwwcustomers/taxjustice.net/conlib/session.inc on line 488
[28-Jun-2005 09:07:31] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php:24) in /home/wwwcustomers/taxjustice.net/conlib/session.inc on line 487
[28-Jun-2005 09:07:31] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php:24) in /home/wwwcustomers/taxjustice.net/conlib/session.inc on line 486
[28-Jun-2005 09:07:31] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php:24) in /home/wwwcustomers/taxjustice.net/conlib/session.inc on line 485
[28-Jun-2005 09:07:31] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php:24) in /home/wwwcustomers/taxjustice.net/conlib/session.inc on line 484
[28-Jun-2005 09:07:31] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php:24) in /home/wwwcustomers/taxjustice.net/conlib/session.inc on line 481
[28-Jun-2005 09:07:31] PHP Warning: chdir(): No such file or directory (errno 2) in /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php on line 27
[28-Jun-2005 09:07:31] PHP Warning: main(): Failed opening 'config.php' for inclusion (include_path='.:') in /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php on line 24
[28-Jun-2005 09:07:31] PHP Warning: main(config.php): failed to open stream: No such file or directory in /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php on line 24
[28-Jun-2005 08:40:39] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php:24) in /home/wwwcustomers/taxjustice.net/contenido/includes/include.con_editcontent.php on line 58
[28-Jun-2005 08:40:39] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php:24) in /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php on line 149
[28-Jun-2005 08:40:39] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php:24) in /home/wwwcustomers/taxjustice.net/conlib/session.inc on line 489
[28-Jun-2005 08:40:39] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php:24) in /home/wwwcustomers/taxjustice.net/conlib/session.inc on line 488
[28-Jun-2005 08:40:39] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php:24) in /home/wwwcustomers/taxjustice.net/conlib/session.inc on line 487
[28-Jun-2005 08:40:39] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php:24) in /home/wwwcustomers/taxjustice.net/conlib/session.inc on line 486
[28-Jun-2005 08:40:39] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php:24) in /home/wwwcustomers/taxjustice.net/conlib/session.inc on line 485
[28-Jun-2005 08:40:39] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php:24) in /home/wwwcustomers/taxjustice.net/conlib/session.inc on line 484
[28-Jun-2005 08:40:39] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php:24) in /home/wwwcustomers/taxjustice.net/conlib/session.inc on line 481
[28-Jun-2005 08:40:38] PHP Warning: chdir(): No such file or directory (errno 2) in /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php on line 27
[28-Jun-2005 08:40:38] PHP Warning: main(): Failed opening 'config.php' for inclusion (include_path='.:') in /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php on line 24
[28-Jun-2005 08:40:38] PHP Warning: main(config.php): failed to open stream: No such file or directory in /home/wwwcustomers/taxjustice.net/contenido/external/backendedit/front_content.php on line 24

der Fehler muss hier liegen:
include_once ($cfgClient[$client]["path"]["frontend"]."config.php");

Hat jemand schon Erfahrung mit der 4.5.3er?

Danke für eine Antwort
webdev

timo
Beiträge: 6284
Registriert: Do 15. Mai 2003, 18:32
Wohnort: Da findet ihr mich nie!
Kontaktdaten:

Beitrag von timo » Di 28. Jun 2005, 08:34

stimmen deine Mandantenpfade?

webdev
Beiträge: 41
Registriert: Do 16. Sep 2004, 15:54
Kontaktdaten:

Beitrag von webdev » Di 28. Jun 2005, 08:40

Hallo Timo

ich glaub schon:

Kunde
Sprache(n) deutsch
HTM-Pfad http://www.taxjustice.net/cms/
frontend-Pfad /home/wwwcustomers/taxjustice.net/cms/


Woran könnte es sonst liegen?

Danke für eine Antwort
webdev

emergence
Beiträge: 10645
Registriert: Mo 28. Jul 2003, 12:49
Wohnort: Austria
Kontaktdaten:

Re: 4.5.2 er ok (ohne css), 4.5.3 Fehler

Beitrag von emergence » Di 28. Jun 2005, 11:43

webdev hat geschrieben:Und was noch nicht klappt (zumindest bei der 4.5.2er): die Einbindung der Styles. Bei Spaw trug ich zwei Zeilen ein:

wysiwyg / spaw-stylesheet-file / text;textkursiv;subtitel;link
wysiwyg / spaw-styles / css/styles.css

Dies ermöglicht die Auswahl (text;textkursiv;subtitel;link) der im styles.css-definierten Styles im Spaw-Editor. Bei tinymce klappt es nicht. Wenn ich die beiden Zeilen einfüge:

wysiwyg / tinymce-stylesheet-file / text;textkursiv;subtitel;link
wysiwyg / tinymce-styles / css/styles.css

bekomme ich im Editor bei 'styles' 'styles.css' angezeigt. Lasse ich die zweite Zeile weg, gibts im Editor nichts auszuwählen. Wo liegt der Fehler?
geh bitte...
weil du es vertauscht hast... darin liegt der fehler...

wysiwyg / tinymce-stylesheet-file / css/styles.css
wysiwyg / tinymce-styles / Style 1=textkursiv;Style 2=link;

-> tinymce-stylesheet-file -> pfad zum stylessheet file
-> tinymce-styles -> selbst definierte styles für das drop down
Zuletzt geändert von emergence am Mo 4. Jul 2005, 12:53, insgesamt 1-mal geändert.
*** make your own tools (wishlist :: thx)

Antworten