Project

General

Profile

help change text new page wiki

Added by Denis Kurochkin over 8 years ago

i want change text in WYSIWYG editor, which displayed when i create new page in wiki.

At now this text is: "h1 <page name>", i want change it to "*%{font-size: 20pt}<page name>%*" + next line empty + next line "{{toc}}". What i need to do?

Thanks.

Additional info

Environment:
Redmine version 2.4.0.stable
Ruby version 2.0.0-p451 (2014-02-24) [i386-mingw32]
Rails version 3.2.15
Environment production
Database adapter SQLite
SCM:
Mercurial 1.8.4
Filesystem

- Operating system (precise if you're using cygwin when running on Windows): Windows xp x64 sp2
- Database used, and its version: sqlite3
- Ruby-aware server used: Webrick, Mongrel, Thin, etc. If you don't understand this point, you're using Webrick.: Webrick


Replies (2)

RE: help change text new page wiki - Added by Denis Kurochkin over 8 years ago

i change file

\redmine\lib\redmine\wiki_formatting\textile\helper.rb

it was

        def initial_page_content(page)
          "h1. #{@page.pretty_title}%*" 
        end

I changed it to

        def initial_page_content(page)
          "*%{font-size: 20pt}#{@page.pretty_title}%*" 
        end

    (1-2/2)