Feature #1882
Wiki toolbar for Wiki text
Start date:
28 Oct 2011
Due date:
% Done:
0%
External issue:
Description
Currently “Wiki text” does not contain toolbar... There are two reasons:
- Not sure if it’s possible to place two toolbars on a page (did not check);
- 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)?
History
#1 Updated by Andriy Lesyuk about 13 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