a1exsh / redmine_canned_responses

Store and use prepared (canned) responses, per-project or globally.
Other
5 stars 10 forks source link

Can not support the Redmine_CKeditor #1

Open archonwang opened 12 years ago

archonwang commented 12 years ago

Hi, I found that the plugin can not support the Redmine_CKeditor. Could anyone tell me what's the problem.

Thanks.

archonwang commented 12 years ago

http://github.com/a-ono/redmine_ckeditor

when I used the texttile, it's OK.

If you have any idea, please tell me. Thanks.

a1exsh commented 12 years ago

The reason this doesn't work out of the box is that redmine ties itself too tightly to the default text editor.

In order to support both plugins at the same time, redmine needs to be patched to extract the render(:update) part of the code from the JournalsController#new into a separate method. The redmine_ckeditor plugin then needs to be updated to patch only that extracted method instead of new action also, this plugin needs to be patched to use that extracted method in place of the current CannedResponsesController#insert action.

archonwang commented 12 years ago

OK. I see. Thanks so much.

Maybe I should suggest that the redmine should give up the default text editor in some way. Thanks a lot .