Project

General

Profile

Feature #1097

Banner and Issue Template cant normal work with CKeditor

Added by ZuoFeng Zhang about 7 years ago. Updated over 5 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

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

Actions

Associated revisions

Revision 108:927be084d2ad (diff)
Added by Akiko Takano almost 7 years ago

Add quick workaround to support Redmine CKEditor Plugin.(IssueID: #986, IssueID: #1097)

Revision 104 (diff)
Added by Akiko Takano almost 7 years ago

Add quick workaround to support Redmine CKEditor Plugin.(IssueID: #986, IssueID: #1097)

Revision 105:49caa1c3feca (diff)
Added by Akiko Takano almost 7 years ago

Add quick workaround to support Redmine CKEditor Plugin, for Issue Template Plugin 0.0.2, Redmine1.4. (IssueID: #986, IssueID: #1097)

Revision 106:d3606251cdce (diff)
Added by Akiko Takano almost 7 years ago

Merge / Add quick workaround to support Redmine CKEditor Plugin, for Issue Template Plugin 0.0.2, Redmine1.4. (IssueID: #986, IssueID: #1097)

Revision 110:8b1d33f514ef (diff)
Added by Akiko Takano almost 7 years ago

Merge / Add quick workaround to support Redmine CKEditor Plugin, for Issue Template Plugin 0.0.2, Redmine1.4. (IssueID: #986, IssueID: #1097)

Revision 106 (diff)
Added by Akiko Takano almost 7 years ago

Merge / Add quick workaround to support Redmine CKEditor Plugin, for Issue Template Plugin 0.0.2, Redmine1.4. (IssueID: #986, IssueID: #1097)

History

#1

Updated by Akiko Takano almost 7 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 :)

#2

Updated by Akiko Takano almost 7 years ago

  • Target version changed from Future Release to Unplanned
#3

Updated by ZuoFeng Zhang almost 7 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

#4

Updated by ZuoFeng Zhang almost 7 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!

#5

Updated by Akiko Takano almost 7 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!!?

#7

Updated by Akiko Takano almost 7 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.
           }

#8

Updated by Akiko Takano over 6 years ago

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

Please re-open if you still have any troubles.

#9

Updated by Akiko Takano over 5 years ago

  • Target version changed from Unplanned to ver0.0.7

Also available in: Atom PDF