I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

Feature #1882

Wiki toolbar for Wiki text

Added by Andriy Lesyuk about 8 years ago. Updated about 8 years ago.

Status:
Incomplete
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
28 Oct 2011
Due date:
% Done:

0%

External issue:

Description

Currently “Wiki text” does not contain toolbar... There are two reasons:

  1. Not sure if it’s possible to place two toolbars on a page (did not check);
  2. The following:

There can be too small space for a toolbar... So not sure if it should be added. How do you think (just vote for this issue if you want toolbar)?

Maybe there will be some ideas (e.g. how to make it smaller)?

wiki-toolbar.png View (7.77 KB) Andriy Lesyuk, 28 Oct 2011 21:14

History

#1 Updated by Andriy Lesyuk about 8 years ago

Code for adding toolbar:

case field_format.try(:edit_as)
when 'string', 'link'
    tag = text_field_tag(field_name, custom_value.value, :id => field_id, :class => field_class)
when 'text'
    tag = text_area_tag(field_name, custom_value.value, :id => field_id, :rows => 5, :class => 'wiki-edit', :style => 'width: 90%;') +
          wikitoolbar_for(field_id)
else
    tag = custom_field_tag_without_extended(name, custom_value)
end

Also available in: Atom PDF

Terms of use | Privacy policy