Dotclear

Ticket #2011 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

Plus d'éditeur chargé pour la gestion des commentaires (admin)

Reported by: franck Owned by: nikrou
Priority: normal Milestone: 2.7.1
Component: module:core Version: 2.7
Severity: normal Keywords:
Cc:

Description

L'éditeur XHTML n'est pas chargé pour l'édition ou la création de commentaire.

Change History

comment:1 Changed 11 years ago by franck <carnet.franck.paul@…>

(In [b258519fdbb9]) args missing for behaviour adminPostEditor - First step, should be tested and applied where needed - addresses #2011

comment:2 Changed 11 years ago by franck

Premier jet pour régler le souci, mais il va falloir charger le bon éditeur (même si un autre est chargé côté édition de billet) :

Ex :

Si un billet est rédigé en wiki (dcLegacyEditor), mais que les préfs user sont réglées sur dcCKEditor pour le XHTML, il va falloir charger AUSSI dcCKEditor pour la saisie des commentaires (dans l'onglet idoine).

Il faudra probablement appeler deux fois le behaviour, la seconde si l'éditeur XHTML est différent du premier (celui pour les billets). Mais il faudra différencier les textarea sur lesquels les éditeurs sont chargés, sinon on va avoir les deux éditeurs sur tous les textarea (billet et commentaire), ça va faire désordre.

Last edited 11 years ago by franck (previous) (diff)

comment:3 Changed 11 years ago by franck

Et il faudra aussi songer à ajouter textarea#comment_content à la liste des zones "surveillées" du plugin dcCKEditor (y compris à l'upgrade 2.x -> 2.7.1).

comment:4 Changed 11 years ago by franck

  • Owner changed from team to nikrou

comment:5 Changed 11 years ago by Nicolas <nikrou77@…>

(In [2d4e6314b899]) Add tags into inject ckeditor for adminPostEditor behavior Addresses #2011

@TODO : need to find a way to add multiple context: for example comment tab on admin/post.php page

comment:6 Changed 11 years ago by franck

À propos du @TODO : 2 appels au behaviour, 1 pour le post, 1 pour le comment et baste, non ?

comment:7 Changed 11 years ago by franck

Lignes 379 et suivantes de admin/post.php, un truc comme ça :

if ($post_editor && !empty($post_editor[$post_format])) {
	$admin_post_behavior = $core->callBehavior('adminPostEditor', $post_editor[$post_format], 'post', array('#post_excerpt','#post_content'));
}
if ($post_editor && !empty($post_editor['xhtml'])) {
	$admin_post_behavior = $core->callBehavior('adminPostEditor', $post_editor['xhtml'], 'comment', array('#comment_content'));
}

?

comment:8 Changed 11 years ago by Nicolas <nikrou77@…>

  • Status changed from new to closed
  • Resolution set to fixed

(In [b9ae6bf9bd6e]) Load wanted editor for each context Closes #2011, Closes #2014

comment:9 Changed 11 years ago by Nicolas <nikrou77@…>

(In [3c827bdd6879]) Add sibbling tags for context in comment page. Fix way to test jsToolBar is defined Addresses #2011

Note: See TracTickets for help on using tickets.

Sites map