Nuevo plugin Redmine CKEditor 1.1.5

This commit is contained in:
Manuel Cillero 2018-02-02 22:25:19 +01:00
parent 64924a6376
commit 698e4e7c3c
635 changed files with 24046 additions and 0 deletions

View file

@ -0,0 +1,112 @@
# CKEditor configuration
allowedContent: true
bodyClass: "wiki"
removePlugins: "div,flash,forms,iframe"
forcePasteAsPlainText: false
# HTML sanitizer configuration
allowedProtocols:
- afs
- aim
- callto
- ed2k
- feed
- ftp
- gopher
- http
- https
- irc
- mailto
- news
- nntp
- rsync
- rtsp
- sftp
- ssh
- tag
- telnet
- urn
- webcal
- xmpp
allowedTags:
- a
- abbr
- acronym
- address
- b
- big
- blockquote
- br
- caption
- cite
- code
- dd
- del
- dfn
- div
- dt
- em
- h1
- h2
- h3
- h4
- h5
- h6
- hr
- i
- iframe
- img
- ins
- kbd
- li
- ol
- p
- pre
- s
- samp
- small
- span
- strike
- strong
- sub
- sup
- table
- tbody
- td
- tfoot
- th
- thead
- tr
- tt
- u
- ul
- var
allowedAttributes:
- abbr
- align
- alt
- border
- cellpadding
- cellspacing
- cite
- class
- colspan
- datetime
- dir
- height
- href
- name
- nowrap
- reversed
- rowspan
- src
- start
- style
- title
- valign
- width
- xml:lang

View file

@ -0,0 +1,110 @@
require "rich"
if Object.const_defined?("Rich")
Rich.setup do |config|
# == CKEditor configuration
#
# Rich ships with what I hope are sensible defaults.
# You may want to override these.
#
# For example, the elements available in the formats
# dropdown are defined like this:
# config.editor[:format_tags] = "h3;p;pre"
#
# By default, Rich visualizes what type of element
# you are editing. To disable this:
# config.editor[:startupOutlineBlocks] = false
# == Image styles
#
# Rich uses paperclip for image processing. You can
# define the styles you would like to use here. You
# can use the standard syntax allowed by paperclip.
# See: https://github.com/thoughtbot/paperclip/wiki/Thumbnail-Generation
#
# When you change these after uploading some files,
# remember to re-generate your styles by running:
# rake rich:refresh_assets
config.image_styles = {
:thumb => "100x100#"
}
# == Convert options
#
# You can pass additional commands to ImageMagick to set image quality,
# apply a blur, and other fancy tricks.
#
# Example (this will make your image look terrible):
# config.convert_options = {
# :large => '-quality 1'
# }
# == Allowed styles (in file manager)
#
# Of the styles specified above, which should be user
# selectable in the file manager?
#
# Example:
# config.allowed_styles = [ :large, :thumb ]
#
# Default:
# config.allowed_styles = :all
# == Default Style
#
# The style to insert by default. In addition to the
# styles defined above you can also use :original to get
# the unprocessed file. Make sure this style exists.
config.default_style = :thumb
# == Upload non-image files
#
# Setting this option to true will add a second Rich filebrowser icon to
# the editor toolbar. In this filebrowser you can upload non-image files.
# Inserting these files into your editor will result in a direct (A) link.
#
# Default:
# config.allow_document_uploads = false
# == Set allowed filetypes for non-image files
#
# If you want, you can restrict the types of documents that users can upload.
# Default behavior is to allow any kind of file to be uploaded. You can set
# the accepted types by providing an array of mimetypes to check against.
# Note that for this to have any effect, you first need to enable document
# uploads using the setting above.
#
# Default, allow any file to be uploaded:
# config.allowed_document_types = :all
#
# Example, only allow PDF uploads:
# config.allowed_document_types = ['application/pdf']
# == Asset insertion
#
# Set this to true to keep the filebrowser open after inserting an asset.
# Also configurable per-use from within the filebrowser.
#
# Default:
# config.insert_many = false
# == User Authentication
#
# When defined, Rich will automatically call this method
# in a before filter to ensure that the user is logged in.
#
# If you do not change this value from the default, anyone
# will be able to see your images, and upload files.
#
# Example for Devise with an AdminUser model:
# config.authentication_method = :authenticate_admin_user!
#
# Default (NOT recommended in production environments):
# config.authentication_method = :none
end
Rich.insert
end

View file

@ -0,0 +1,16 @@
en:
ckeditor_skin: Skin
ckeditor_ui_color: UI color
ckeditor_enter_mode: Enter mode
ckeditor_startup_show_blocks: Startup show blocks
ckeditor_toolbar_can_collapse: Toolbar can collapse
ckeditor_toolbar_location: Toolbar location
ckeditor_toolbar_buttons: Toolbar buttons
ckeditor_width: Width
ckeditor_height: Height
add: Add
remove: Remove
separator: Separator
subgroup: Subgroup
line_break: Line break

View file

@ -0,0 +1,7 @@
fa:
ckeditor_toolbar_buttons: تنظیمات نوار ابزار CKEditor
add: اضافه
remove: حذف
separator: جداساز
line_break: سر خط

View file

@ -0,0 +1,16 @@
fr:
ckeditor_skin: Thème
ckeditor_ui_color: Couleur de l'interface
ckeditor_enter_mode: Type de blocs
ckeditor_startup_show_blocks: Montrer les blocs au démarrage
ckeditor_toolbar_can_collapse: La barre d'outil peut être réduite
ckeditor_toolbar_location: "Emplacement de la barre d'outil"
ckeditor_toolbar_buttons: "Préférences de la barre d'outil CKEditor"
ckeditor_width: Largeur
ckeditor_height: Hauteur
add: Ajouter
remove: Supprimer
separator: Séparateur
subgroup: Sous-groupe
line_break: Saut de ligne

View file

@ -0,0 +1,16 @@
ja:
ckeditor_skin: スキン
ckeditor_ui_color: UIの色
ckeditor_enter_mode: エンターキーの動作
ckeditor_startup_show_blocks: 初期表示をブロック表示モードにする
ckeditor_toolbar_can_collapse: ツールバーの開閉
ckeditor_toolbar_location: ツールバーの位置
ckeditor_toolbar_buttons: ツールバーのボタン
ckeditor_width:
ckeditor_height: 高さ
add: 追加
remove: 削除
separator: セパレータ
subgroup: サブグループ
line_break: 改行

View file

@ -0,0 +1,16 @@
ko:
ckeditor_skin: 스킨
ckeditor_ui_color: UI 색
ckeditor_enter_mode: 엔터 모드
ckeditor_startup_show_blocks: 시작 시 블럭 표시
ckeditor_toolbar_can_collapse: 도구 모움 축소
ckeditor_toolbar_location: 도구 모움 위치
ckeditor_toolbar_buttons: 도구 모움 버튼
ckeditor_width:
ckeditor_height: 높이
add: 추가
remove: 삭제
separator: 구분
subgroup: 하위 그룹
line_break: 줄 바꿈

View file

@ -0,0 +1,15 @@
nl:
ckeditor_skin: Thema
ckeditor_ui_color: UI-kleur
ckeditor_enter_mode: Invoermodus
ckeditor_startup_show_blocks: Blokweergave bij opstarten
ckeditor_toolbar_can_collapse: Inklapbare werkbalk
ckeditor_toolbar_location: Werkbalklocatie
ckeditor_toolbar_buttons: Werkbalkknoppen
ckeditor_width: Breedte
ckeditor_height: Hoogte
add: Toevoegen
remove: Verwijderen
separator: Scheidingsteken
subgroup: Deelgroep
line_break: Regeleinde

View file

@ -0,0 +1,15 @@
pl:
ckeditor_skin: Skórka
ckeditor_ui_color: Kolor interfejsu użytkownika
ckeditor_enter_mode: Znacznik po wybraniu Enter
ckeditor_startup_show_blocks: Pokazywanie bloków HTML odrazu po uruchomieniu
ckeditor_toolbar_can_collapse: Pasek narzędzi może zostać zwinięty
ckeditor_toolbar_location: Lokalizacja paska narzędzi
ckeditor_toolbar_buttons: Przyciski paska narzędzi
ckeditor_width: Wysokość
ckeditor_height: Szerokość
add: Dodaj
remove: Usuń
separator: Separator
subgroup: Pod grupa
line_break: Linia rozdzielająca

View file

@ -0,0 +1,15 @@
ru:
ckeditor_skin: Тема
ckeditor_ui_color: Цвет Интерфейса
ckeditor_enter_mode: Тип ввода
ckeditor_startup_show_blocks: Показывать блоки при запуске
ckeditor_toolbar_can_collapse: Панель инструментов может сворачиваться
ckeditor_toolbar_location: Расположение панели инструментов
ckeditor_toolbar_buttons: Кнопки панели инструментов
ckeditor_width: Ширина
ckeditor_height: Высота
add: Добавить
remove: Удалить
separator: Разделитель
subgroup: Подгруппа
line_break: Новая строка

View file

@ -0,0 +1,16 @@
zh:
ckeditor_skin: 主题设置
ckeditor_ui_color: UI颜色设置
ckeditor_enter_mode: 输入模式
ckeditor_startup_show_blocks: 启动时显示文本块
ckeditor_toolbar_can_collapse: 工具栏合拢
ckeditor_toolbar_location: 工具栏位置
ckeditor_toolbar_buttons: 工具栏按钮
ckeditor_width: 宽度
ckeditor_height: 高度
add: 新增
remove: 移除
separator: 分割符
subgroup: 子菜单
line_break: 换行符

View file

@ -0,0 +1,3 @@
RedmineApp::Application.routes.draw do
mount Rich::Engine => '/rich', :as => 'rich'
end