Pour rebondir sur ce ticket, en l'état je ne peux pas adapter le
plugin gallery pour fonctionner pleinement avec la 2.7. Soit je fais
une croix sur le legacyeditor (car je n'ai pas de "#edit-entry" dans
mes formulaires), soit je dois écrire du code jsspécifique
dcLegacyEditor, ce qui ne me plait pas vraiment...
D'ailleurs, beaucoup de plugins qui utilisaient les toolbars risquent
de ne plus marcher avec la 2.7, il y a notamment une régression sur
$core->getFormaters() qui a changé de comportement.
--
Bruno
2014-12-29 13:55 GMT+01:00 Dev Dotclear 2 <trac(a)dotclear.net>:
#2037: Rich-text fields should be easier to implement
-------------------------+-----------------------
Reporter: bruno | Owner: team
Type: defect | Status: new
Priority: normal | Milestone: A definir
Component: module:core | Version: 2.7.2
Severity: normal | Keywords:
-------------------------+-----------------------
Currently dcCKEditor and dcLegacyEditor enable multiple editors for
textareas.
However, when a plugin wants to implement its own rich-text fields, it
quickly becomes a nightmare :
dcLegacyEditor visual editor is only enabled if fields are sons of "edit-
entry" and must be named post_excerpt or post_content. Otherwise lots of
copy&paste of insane js are required.
Same thing for dcCKEditor, where rich text fields are currently quite hard
to define.
Having a rich-text field shoud be as easy as adding a css class to this
field (and eventually add a generic code on php side), and not borying
about its id...
--
Ticket URL: <
http://dev.dotclear.org/2.0/ticket/2037>
Dev Dotclear 2 <
http://dev.dotclear.org/2.0/>
Dotclear 2 - Blog software
--
Tracker mailing list - Tracker(a)list.dotclear.net -
http://ml.dotclear.net/listinfo/tracker