Project

General

Profile

Actions

Feature #1097

closed

Banner and Issue Template cant normal work with CKeditor

Added by ZuoFeng Zhang over 12 years ago. Updated almost 11 years ago.

Status:
終了(Closed)
Priority:
通常(Normal)
Assignee:
Target version:
Start date:
08/11/2012
Due date:
% Done:

100%

Estimated time:

Description

Redmine 1.4.4. and use normal ror config

installed a text editor ,the name is CKeditor ,the web site is

https://github.com/a-ono/redmine_ckeditor owner maybe is a japanese name Akihiro Ono

Problem1

in ckeditor mode, banner cant config project banner ,cant save banner info,but redmine banner work is OK, go to admin account config use textile mode ,all ok

Problem2

in ckeditor mode, cant use issus template, first i crate a name is AAA template is OK,but i new create a issue and use AAA template ,no show the template, go to admin account config use textile mode ,all ok

Plaese check the


Related issues 1 (0 open1 closed)

Is duplicate of Issue Template - Support #986: redmine_issue_template can not support the redmine_ckeditor終了(Closed)03/29/2012

Actions
Actions #1

Updated by Akiko Takano almost 12 years ago

  • Tracker changed from Defect to Feature
  • Assignee set to Akiko Takano
  • Target version set to Future Release

Sorry my reply so late...
And thank you so much your information about CKEditor and author.

So I've received the same request, such as #986, that I'm going to try to support CKEditor.
Please wait for a while :)

Actions #2

Updated by Akiko Takano almost 12 years ago

  • Target version changed from Future Release to Unplanned
Actions #3

Updated by ZuoFeng Zhang almost 12 years ago

i guess maybe js function bug

Event.observe('issue_template', 'change', function(e){ load_template(e, load_url, token); },false);

$('issue_description').value = template.description

the value cant push to issue_description

Actions #4

Updated by ZuoFeng Zhang almost 12 years ago

try this:

replace the next line

$('issue_description').value = template.description

with

CKEDITOR.instances.issue_description.setData(template.description);

now the bug is over , all is ok!

Actions #5

Updated by Akiko Takano almost 12 years ago

  • Status changed from 新規(New) to 担当(Assigned)

Hello.
Thank you so much for your feedback and workaround:)

I'm sorry that I've not installed and reviewed CKEditor plugin yet.
It seems in case using CKEditor Redmine admin have to modify Javascript.

Do you hope this plugin works without any workaround code!!?

Actions #7

Updated by Akiko Takano almost 12 years ago

  • Status changed from 担当(Assigned) to 解決(Resolved)
  • % Done changed from 0 to 60

Hello, ZuoFeng Zhang.

Thank you for your information, it's quite helpful for me:)
As I wrote on #986, please try and give some feedback.

It seems you use Redmine1.4, so please try support_0.0.2 branch.

Here is my workaround.

           $('issue_description').value = template.description;
           $('issue_subject').value = template.issue_title;

           // Add try-catch for CKEDitor.
           try {
              if (CKEDITOR.instances.issue_description)
                CKEDITOR.instances.issue_description.setData(template.description);
           } catch(e) {
              // do nothing.
           }

Actions #8

Updated by Akiko Takano over 11 years ago

  • Status changed from 解決(Resolved) to 終了(Closed)
  • % Done changed from 60 to 100

Please re-open if you still have any troubles.

Actions #9

Updated by Akiko Takano almost 11 years ago

  • Target version changed from Unplanned to ver0.0.7
Actions

Also available in: Atom PDF