├── assets ├── images │ ├── plus.png │ ├── rich.png │ ├── files.png │ ├── images.png │ ├── loading.png │ ├── x-red.png │ ├── menu-dash.png │ ├── plus-red.png │ ├── view-grid.png │ ├── view-list.png │ ├── insert-many.png │ ├── insert-one.png │ └── document-thumb.png ├── ckeditor │ ├── plugins │ │ ├── icons.png │ │ ├── icons_hidpi.png │ │ ├── link │ │ │ ├── images │ │ │ │ ├── anchor.png │ │ │ │ └── hidpi │ │ │ │ │ └── anchor.png │ │ │ └── dialogs │ │ │ │ └── anchor.js │ │ ├── smiley │ │ │ └── images │ │ │ │ ├── heart.gif │ │ │ │ ├── heart.png │ │ │ │ ├── kiss.gif │ │ │ │ ├── kiss.png │ │ │ │ ├── envelope.gif │ │ │ │ ├── envelope.png │ │ │ │ ├── cry_smile.gif │ │ │ │ ├── cry_smile.png │ │ │ │ ├── lightbulb.gif │ │ │ │ ├── lightbulb.png │ │ │ │ ├── omg_smile.gif │ │ │ │ ├── omg_smile.png │ │ │ │ ├── sad_smile.gif │ │ │ │ ├── sad_smile.png │ │ │ │ ├── thumbs_up.gif │ │ │ │ ├── thumbs_up.png │ │ │ │ ├── wink_smile.gif │ │ │ │ ├── wink_smile.png │ │ │ │ ├── angel_smile.gif │ │ │ │ ├── angel_smile.png │ │ │ │ ├── angry_smile.gif │ │ │ │ ├── angry_smile.png │ │ │ │ ├── broken_heart.gif │ │ │ │ ├── broken_heart.png │ │ │ │ ├── devil_smile.gif │ │ │ │ ├── devil_smile.png │ │ │ │ ├── regular_smile.gif │ │ │ │ ├── regular_smile.png │ │ │ │ ├── shades_smile.gif │ │ │ │ ├── shades_smile.png │ │ │ │ ├── teeth_smile.gif │ │ │ │ ├── teeth_smile.png │ │ │ │ ├── thumbs_down.gif │ │ │ │ ├── thumbs_down.png │ │ │ │ ├── tongue_smile.gif │ │ │ │ ├── tongue_smile.png │ │ │ │ ├── tounge_smile.gif │ │ │ │ ├── confused_smile.gif │ │ │ │ ├── confused_smile.png │ │ │ │ ├── embaressed_smile.gif │ │ │ │ ├── embarrassed_smile.gif │ │ │ │ ├── embarrassed_smile.png │ │ │ │ ├── whatchutalkingabout_smile.gif │ │ │ │ └── whatchutalkingabout_smile.png │ │ ├── image │ │ │ └── images │ │ │ │ └── noimage.png │ │ ├── magicline │ │ │ └── images │ │ │ │ ├── icon.png │ │ │ │ ├── hidpi │ │ │ │ ├── icon.png │ │ │ │ └── icon-rtl.png │ │ │ │ └── icon-rtl.png │ │ ├── flash │ │ │ └── images │ │ │ │ └── placeholder.png │ │ ├── forms │ │ │ ├── images │ │ │ │ └── hiddenfield.gif │ │ │ └── dialogs │ │ │ │ ├── hiddenfield.js │ │ │ │ ├── button.js │ │ │ │ └── form.js │ │ ├── about │ │ │ └── dialogs │ │ │ │ ├── logo_ckeditor.png │ │ │ │ ├── hidpi │ │ │ │ └── logo_ckeditor.png │ │ │ │ └── about.js │ │ ├── iframe │ │ │ └── images │ │ │ │ └── placeholder.png │ │ ├── pagebreak │ │ │ └── images │ │ │ │ └── pagebreak.gif │ │ ├── showblocks │ │ │ └── images │ │ │ │ ├── block_div.png │ │ │ │ ├── block_h1.png │ │ │ │ ├── block_h2.png │ │ │ │ ├── block_h3.png │ │ │ │ ├── block_h4.png │ │ │ │ ├── block_h5.png │ │ │ │ ├── block_h6.png │ │ │ │ ├── block_p.png │ │ │ │ ├── block_pre.png │ │ │ │ ├── block_address.png │ │ │ │ └── block_blockquote.png │ │ ├── templates │ │ │ ├── templates │ │ │ │ ├── images │ │ │ │ │ ├── template1.gif │ │ │ │ │ ├── template2.gif │ │ │ │ │ └── template3.gif │ │ │ │ └── default.js │ │ │ └── dialogs │ │ │ │ └── templates.css │ │ ├── dialog │ │ │ └── dialogDefinition.js │ │ ├── preview │ │ │ └── preview.html │ │ ├── scayt │ │ │ ├── skins │ │ │ │ └── moono-lisa │ │ │ │ │ └── scayt.css │ │ │ ├── dialogs │ │ │ │ ├── dialog.css │ │ │ │ └── toolbar.css │ │ │ ├── README.md │ │ │ ├── CHANGELOG.md │ │ │ └── LICENSE.md │ │ ├── specialchar │ │ │ └── dialogs │ │ │ │ └── lang │ │ │ │ ├── _translationstatus.txt │ │ │ │ └── ja.js │ │ ├── colordialog │ │ │ └── dialogs │ │ │ │ └── colordialog.css │ │ ├── a11yhelp │ │ │ └── dialogs │ │ │ │ └── lang │ │ │ │ └── _translationstatus.txt │ │ ├── wsc │ │ │ ├── README.md │ │ │ ├── skins │ │ │ │ └── moono-lisa │ │ │ │ │ └── wsc.css │ │ │ ├── LICENSE.md │ │ │ └── dialogs │ │ │ │ ├── wsc.css │ │ │ │ ├── ciframe.html │ │ │ │ └── tmpFrameset.html │ │ ├── tableselection │ │ │ └── styles │ │ │ │ └── tableselection.css │ │ └── copyformatting │ │ │ └── styles │ │ │ └── copyformatting.css │ ├── samples │ │ ├── img │ │ │ ├── logo.png │ │ │ ├── github-top.png │ │ │ ├── header-bg.png │ │ │ ├── navigation-tip.png │ │ │ └── header-separator.png │ │ ├── old │ │ │ ├── assets │ │ │ │ ├── sample.jpg │ │ │ │ ├── inlineall │ │ │ │ │ └── logo.png │ │ │ │ ├── uilanguages │ │ │ │ │ └── languages.js │ │ │ │ └── posteddata.php │ │ │ ├── htmlwriter │ │ │ │ └── assets │ │ │ │ │ └── outputforflash │ │ │ │ │ ├── outputforflash.fla │ │ │ │ │ └── outputforflash.swf │ │ │ ├── sample_posteddata.php │ │ │ ├── dialog │ │ │ │ └── assets │ │ │ │ │ └── my_dialog.js │ │ │ └── sample.js │ │ ├── toolbarconfigurator │ │ │ ├── font │ │ │ │ ├── fontello.eot │ │ │ │ ├── fontello.ttf │ │ │ │ ├── fontello.woff │ │ │ │ ├── LICENSE.txt │ │ │ │ ├── config.json │ │ │ │ └── fontello.svg │ │ │ ├── lib │ │ │ │ └── codemirror │ │ │ │ │ ├── show-hint.css │ │ │ │ │ ├── neo.css │ │ │ │ │ └── LICENSE │ │ │ └── css │ │ │ │ └── fontello.css │ │ └── js │ │ │ └── sample.js │ ├── skins │ │ └── moono-lisa │ │ │ ├── icons.png │ │ │ ├── icons_hidpi.png │ │ │ └── images │ │ │ ├── arrow.png │ │ │ ├── close.png │ │ │ ├── lock.png │ │ │ ├── refresh.png │ │ │ ├── spinner.gif │ │ │ ├── hidpi │ │ │ ├── close.png │ │ │ ├── lock.png │ │ │ ├── refresh.png │ │ │ └── lock-open.png │ │ │ └── lock-open.png │ ├── config.js │ ├── bower.json │ ├── composer.json │ └── package.json ├── ckeditor-contrib │ ├── skins │ │ ├── kama │ │ │ ├── icons.png │ │ │ ├── images │ │ │ │ ├── mini.gif │ │ │ │ ├── sprites.png │ │ │ │ ├── sprites_ie6.png │ │ │ │ ├── dialog_sides.gif │ │ │ │ ├── dialog_sides.png │ │ │ │ ├── toolbar_start.gif │ │ │ │ └── dialog_sides_rtl.png │ │ │ └── readme.md │ │ └── moono │ │ │ ├── icons.png │ │ │ ├── icons_hidpi.png │ │ │ └── images │ │ │ ├── arrow.png │ │ │ ├── close.png │ │ │ ├── lock.png │ │ │ ├── refresh.png │ │ │ ├── spinner.gif │ │ │ ├── hidpi │ │ │ ├── lock.png │ │ │ ├── close.png │ │ │ ├── refresh.png │ │ │ └── lock-open.png │ │ │ └── lock-open.png │ └── plugins │ │ ├── codemirror │ │ ├── icons │ │ │ ├── autocomplete.png │ │ │ ├── autoformat.png │ │ │ ├── searchcode.png │ │ │ ├── commentselectedrange.png │ │ │ └── uncommentselectedrange.png │ │ ├── theme │ │ │ ├── ambiance-mobile.css │ │ │ ├── neat.css │ │ │ ├── elegant.css │ │ │ ├── neo.css │ │ │ ├── eclipse.css │ │ │ ├── cobalt.css │ │ │ ├── rubyblue.css │ │ │ ├── night.css │ │ │ ├── monokai.css │ │ │ ├── the-matrix.css │ │ │ ├── colorforth.css │ │ │ ├── blackboard.css │ │ │ ├── 3024-day.css │ │ │ ├── tomorrow-night-bright.css │ │ │ ├── paraiso-dark.css │ │ │ ├── paraiso-light.css │ │ │ ├── 3024-night.css │ │ │ ├── base16-dark.css │ │ │ ├── base16-light.css │ │ │ ├── mbo.css │ │ │ ├── vibrant-ink.css │ │ │ ├── twilight.css │ │ │ ├── midnight.css │ │ │ ├── zenburn.css │ │ │ └── erlang-dark.css │ │ ├── lang │ │ │ ├── af.js │ │ │ ├── ar.js │ │ │ ├── bn.js │ │ │ ├── cs.js │ │ │ ├── cy.js │ │ │ ├── da.js │ │ │ ├── eo.js │ │ │ ├── fa.js │ │ │ ├── fi.js │ │ │ ├── fo.js │ │ │ ├── fr.js │ │ │ ├── he.js │ │ │ ├── hi.js │ │ │ ├── hr.js │ │ │ ├── is.js │ │ │ ├── ja.js │ │ │ ├── ka.js │ │ │ ├── km.js │ │ │ ├── ko.js │ │ │ ├── mk.js │ │ │ ├── mn.js │ │ │ ├── ms.js │ │ │ ├── nb.js │ │ │ ├── no.js │ │ │ ├── pt.js │ │ │ ├── ro.js │ │ │ ├── sk.js │ │ │ ├── sr.js │ │ │ ├── sv.js │ │ │ ├── tr.js │ │ │ ├── ug.js │ │ │ ├── zh.js │ │ │ ├── bg.js │ │ │ ├── bs.js │ │ │ ├── ca.js │ │ │ ├── es.js │ │ │ ├── et.js │ │ │ ├── hu.js │ │ │ ├── ku.js │ │ │ ├── lt.js │ │ │ ├── lv.js │ │ │ ├── ru.js │ │ │ ├── th.js │ │ │ ├── uk.js │ │ │ ├── vi.js │ │ │ ├── zh-cn.js │ │ │ ├── el.js │ │ │ ├── en-au.js │ │ │ ├── en-ca.js │ │ │ ├── en-gb.js │ │ │ ├── en.js │ │ │ ├── eu.js │ │ │ ├── fr-ca.js │ │ │ ├── gl.js │ │ │ ├── it.js │ │ │ ├── sl.js │ │ │ ├── sr-latn.js │ │ │ ├── pt-br.js │ │ │ ├── gu.js │ │ │ ├── nl.js │ │ │ ├── de.js │ │ │ └── pl.js │ │ └── js │ │ │ ├── codemirror.mode.bbcode.min.js │ │ │ └── codemirror.mode.bbcodemixed.min.js │ │ ├── mediaembed │ │ └── icons │ │ │ ├── mediaembed.png │ │ │ └── hidpi │ │ │ └── mediaembed.png │ │ └── redmine │ │ └── plugin.js └── stylesheets │ ├── selector.css │ └── editor.css ├── config ├── routes.rb ├── locales │ ├── fa.yml │ ├── zh.yml │ ├── ko.yml │ ├── ja.yml │ ├── en.yml │ ├── nl.yml │ ├── ru.yml │ ├── pt.yml │ ├── fr.yml │ └── pl.yml └── ckeditor.yml.example ├── app ├── views │ ├── messages │ │ └── quote_with_ckeditor.js.erb │ ├── journals │ │ └── new_with_ckeditor.js.erb │ ├── layouts │ │ └── rich │ │ │ └── application.html.erb │ └── rich │ │ └── files │ │ └── _file.html.erb ├── assets │ └── javascripts │ │ ├── browser.js │ │ └── application.js └── models │ └── redmine_ckeditor_setting.rb ├── .gitmodules ├── lib ├── generators │ └── redmine_ckeditor │ │ └── rich_assets │ │ ├── USAGE │ │ └── rich_assets_generator.rb └── redmine_ckeditor │ ├── tempfile_patch.rb │ ├── rich_files_helper_patch.rb │ ├── application_helper_patch.rb │ ├── queries_helper_patch.rb │ ├── mail_handler_patch.rb │ ├── messages_controller_patch.rb │ ├── journals_controller_patch.rb │ ├── wiki_formatting │ └── formatter.rb │ ├── helper.rb │ └── pdf_patch.rb ├── test └── test_helper.rb ├── db └── migrate │ ├── 20130418001208_add_uri_cache_to_rich_image.rich.rb │ ├── 20130418001207_create_rich_rich_images.rich.rb │ └── 20130418001209_refactor_image_to_file.rich.rb ├── Gemfile └── init.rb /assets/images/plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/images/plus.png -------------------------------------------------------------------------------- /assets/images/rich.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/images/rich.png -------------------------------------------------------------------------------- /assets/images/files.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/images/files.png -------------------------------------------------------------------------------- /assets/images/images.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/images/images.png -------------------------------------------------------------------------------- /assets/images/loading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/images/loading.png -------------------------------------------------------------------------------- /assets/images/x-red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/images/x-red.png -------------------------------------------------------------------------------- /assets/images/menu-dash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/images/menu-dash.png -------------------------------------------------------------------------------- /assets/images/plus-red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/images/plus-red.png -------------------------------------------------------------------------------- /assets/images/view-grid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/images/view-grid.png -------------------------------------------------------------------------------- /assets/images/view-list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/images/view-list.png -------------------------------------------------------------------------------- /assets/images/insert-many.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/images/insert-many.png -------------------------------------------------------------------------------- /assets/images/insert-one.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/images/insert-one.png -------------------------------------------------------------------------------- /config/routes.rb: -------------------------------------------------------------------------------- 1 | RedmineApp::Application.routes.draw do 2 | mount Rich::Engine => '/rich', :as => 'rich' 3 | end 4 | -------------------------------------------------------------------------------- /assets/images/document-thumb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/images/document-thumb.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/icons.png -------------------------------------------------------------------------------- /assets/ckeditor/samples/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/samples/img/logo.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/icons_hidpi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/icons_hidpi.png -------------------------------------------------------------------------------- /assets/ckeditor/samples/img/github-top.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/samples/img/github-top.png -------------------------------------------------------------------------------- /assets/ckeditor/samples/img/header-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/samples/img/header-bg.png -------------------------------------------------------------------------------- /assets/ckeditor/skins/moono-lisa/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/skins/moono-lisa/icons.png -------------------------------------------------------------------------------- /assets/ckeditor-contrib/skins/kama/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor-contrib/skins/kama/icons.png -------------------------------------------------------------------------------- /assets/ckeditor-contrib/skins/moono/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor-contrib/skins/moono/icons.png -------------------------------------------------------------------------------- /assets/ckeditor/samples/old/assets/sample.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/samples/old/assets/sample.jpg -------------------------------------------------------------------------------- /assets/ckeditor/plugins/link/images/anchor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/link/images/anchor.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/heart.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/heart.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/heart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/heart.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/kiss.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/kiss.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/kiss.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/kiss.png -------------------------------------------------------------------------------- /assets/ckeditor/samples/img/navigation-tip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/samples/img/navigation-tip.png -------------------------------------------------------------------------------- /assets/ckeditor-contrib/skins/kama/images/mini.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor-contrib/skins/kama/images/mini.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/image/images/noimage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/image/images/noimage.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/magicline/images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/magicline/images/icon.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/envelope.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/envelope.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/envelope.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/envelope.png -------------------------------------------------------------------------------- /assets/ckeditor/samples/img/header-separator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/samples/img/header-separator.png -------------------------------------------------------------------------------- /assets/ckeditor/skins/moono-lisa/icons_hidpi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/skins/moono-lisa/icons_hidpi.png -------------------------------------------------------------------------------- /assets/ckeditor/skins/moono-lisa/images/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/skins/moono-lisa/images/arrow.png -------------------------------------------------------------------------------- /assets/ckeditor/skins/moono-lisa/images/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/skins/moono-lisa/images/close.png -------------------------------------------------------------------------------- /assets/ckeditor/skins/moono-lisa/images/lock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/skins/moono-lisa/images/lock.png -------------------------------------------------------------------------------- /assets/ckeditor-contrib/skins/moono/icons_hidpi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor-contrib/skins/moono/icons_hidpi.png -------------------------------------------------------------------------------- /assets/ckeditor-contrib/skins/moono/images/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor-contrib/skins/moono/images/arrow.png -------------------------------------------------------------------------------- /assets/ckeditor-contrib/skins/moono/images/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor-contrib/skins/moono/images/close.png -------------------------------------------------------------------------------- /assets/ckeditor-contrib/skins/moono/images/lock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor-contrib/skins/moono/images/lock.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/flash/images/placeholder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/flash/images/placeholder.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/forms/images/hiddenfield.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/forms/images/hiddenfield.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/link/images/hidpi/anchor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/link/images/hidpi/anchor.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/cry_smile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/cry_smile.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/cry_smile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/cry_smile.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/lightbulb.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/lightbulb.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/lightbulb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/lightbulb.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/omg_smile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/omg_smile.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/omg_smile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/omg_smile.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/sad_smile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/sad_smile.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/sad_smile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/sad_smile.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/thumbs_up.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/thumbs_up.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/thumbs_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/thumbs_up.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/wink_smile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/wink_smile.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/wink_smile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/wink_smile.png -------------------------------------------------------------------------------- /assets/ckeditor/skins/moono-lisa/images/refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/skins/moono-lisa/images/refresh.png -------------------------------------------------------------------------------- /assets/ckeditor/skins/moono-lisa/images/spinner.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/skins/moono-lisa/images/spinner.gif -------------------------------------------------------------------------------- /assets/ckeditor-contrib/skins/kama/images/sprites.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor-contrib/skins/kama/images/sprites.png -------------------------------------------------------------------------------- /assets/ckeditor-contrib/skins/moono/images/refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor-contrib/skins/moono/images/refresh.png -------------------------------------------------------------------------------- /assets/ckeditor-contrib/skins/moono/images/spinner.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor-contrib/skins/moono/images/spinner.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/about/dialogs/logo_ckeditor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/about/dialogs/logo_ckeditor.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/iframe/images/placeholder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/iframe/images/placeholder.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/magicline/images/hidpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/magicline/images/hidpi/icon.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/magicline/images/icon-rtl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/magicline/images/icon-rtl.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/pagebreak/images/pagebreak.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/pagebreak/images/pagebreak.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/showblocks/images/block_div.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/showblocks/images/block_div.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/showblocks/images/block_h1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/showblocks/images/block_h1.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/showblocks/images/block_h2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/showblocks/images/block_h2.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/showblocks/images/block_h3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/showblocks/images/block_h3.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/showblocks/images/block_h4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/showblocks/images/block_h4.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/showblocks/images/block_h5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/showblocks/images/block_h5.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/showblocks/images/block_h6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/showblocks/images/block_h6.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/showblocks/images/block_p.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/showblocks/images/block_p.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/showblocks/images/block_pre.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/showblocks/images/block_pre.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/angel_smile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/angel_smile.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/angel_smile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/angel_smile.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/angry_smile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/angry_smile.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/angry_smile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/angry_smile.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/broken_heart.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/broken_heart.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/broken_heart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/broken_heart.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/devil_smile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/devil_smile.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/devil_smile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/devil_smile.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/regular_smile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/regular_smile.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/regular_smile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/regular_smile.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/shades_smile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/shades_smile.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/shades_smile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/shades_smile.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/teeth_smile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/teeth_smile.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/teeth_smile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/teeth_smile.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/thumbs_down.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/thumbs_down.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/thumbs_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/thumbs_down.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/tongue_smile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/tongue_smile.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/tongue_smile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/tongue_smile.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/tounge_smile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/tounge_smile.gif -------------------------------------------------------------------------------- /assets/ckeditor/samples/old/assets/inlineall/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/samples/old/assets/inlineall/logo.png -------------------------------------------------------------------------------- /assets/ckeditor/skins/moono-lisa/images/hidpi/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/skins/moono-lisa/images/hidpi/close.png -------------------------------------------------------------------------------- /assets/ckeditor/skins/moono-lisa/images/hidpi/lock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/skins/moono-lisa/images/hidpi/lock.png -------------------------------------------------------------------------------- /assets/ckeditor/skins/moono-lisa/images/lock-open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/skins/moono-lisa/images/lock-open.png -------------------------------------------------------------------------------- /app/views/messages/quote_with_ckeditor.js.erb: -------------------------------------------------------------------------------- 1 | <%= render :file => "messages/quote" %> 2 | CKEDITOR.instances['message_content'].setData($('#message_content').val()); 3 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/skins/kama/images/sprites_ie6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor-contrib/skins/kama/images/sprites_ie6.png -------------------------------------------------------------------------------- /assets/ckeditor-contrib/skins/moono/images/hidpi/lock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor-contrib/skins/moono/images/hidpi/lock.png -------------------------------------------------------------------------------- /assets/ckeditor-contrib/skins/moono/images/lock-open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor-contrib/skins/moono/images/lock-open.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/confused_smile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/confused_smile.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/confused_smile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/confused_smile.png -------------------------------------------------------------------------------- /assets/ckeditor/skins/moono-lisa/images/hidpi/refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/skins/moono-lisa/images/hidpi/refresh.png -------------------------------------------------------------------------------- /assets/ckeditor-contrib/skins/kama/images/dialog_sides.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor-contrib/skins/kama/images/dialog_sides.gif -------------------------------------------------------------------------------- /assets/ckeditor-contrib/skins/kama/images/dialog_sides.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor-contrib/skins/kama/images/dialog_sides.png -------------------------------------------------------------------------------- /assets/ckeditor-contrib/skins/kama/images/toolbar_start.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor-contrib/skins/kama/images/toolbar_start.gif -------------------------------------------------------------------------------- /assets/ckeditor-contrib/skins/moono/images/hidpi/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor-contrib/skins/moono/images/hidpi/close.png -------------------------------------------------------------------------------- /assets/ckeditor-contrib/skins/moono/images/hidpi/refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor-contrib/skins/moono/images/hidpi/refresh.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/showblocks/images/block_address.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/showblocks/images/block_address.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/embaressed_smile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/embaressed_smile.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/embarrassed_smile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/embarrassed_smile.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/embarrassed_smile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/embarrassed_smile.png -------------------------------------------------------------------------------- /assets/ckeditor/skins/moono-lisa/images/hidpi/lock-open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/skins/moono-lisa/images/hidpi/lock-open.png -------------------------------------------------------------------------------- /config/locales/fa.yml: -------------------------------------------------------------------------------- 1 | fa: 2 | ckeditor_toolbar_buttons: تنظیمات نوار ابزار CKEditor 3 | add: اضافه 4 | remove: حذف 5 | separator: جداساز 6 | line_break: سر خط 7 | 8 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "app/assets/javascripts/ckeditor-releases"] 2 | path = app/assets/javascripts/ckeditor-releases 3 | url = git://github.com/ckeditor/ckeditor-releases.git 4 | -------------------------------------------------------------------------------- /app/assets/javascripts/browser.js: -------------------------------------------------------------------------------- 1 | //= require fileuploader 2 | //= require rich/browser/extensions 3 | //= require rich/browser/uploader 4 | //= require rich/browser/filebrowser 5 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/skins/kama/images/dialog_sides_rtl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor-contrib/skins/kama/images/dialog_sides_rtl.png -------------------------------------------------------------------------------- /assets/ckeditor-contrib/skins/moono/images/hidpi/lock-open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor-contrib/skins/moono/images/hidpi/lock-open.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/showblocks/images/block_blockquote.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/showblocks/images/block_blockquote.png -------------------------------------------------------------------------------- /assets/ckeditor/samples/toolbarconfigurator/font/fontello.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/samples/toolbarconfigurator/font/fontello.eot -------------------------------------------------------------------------------- /assets/ckeditor/samples/toolbarconfigurator/font/fontello.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/samples/toolbarconfigurator/font/fontello.ttf -------------------------------------------------------------------------------- /assets/ckeditor/samples/toolbarconfigurator/font/fontello.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/samples/toolbarconfigurator/font/fontello.woff -------------------------------------------------------------------------------- /lib/generators/redmine_ckeditor/rich_assets/USAGE: -------------------------------------------------------------------------------- 1 | Description: 2 | Generate rich asset files for Redmine 3 | 4 | Example: 5 | rails generate redmine_ckeditor:rich_assets 6 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/icons/autocomplete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor-contrib/plugins/codemirror/icons/autocomplete.png -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/icons/autoformat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor-contrib/plugins/codemirror/icons/autoformat.png -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/icons/searchcode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor-contrib/plugins/codemirror/icons/searchcode.png -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/mediaembed/icons/mediaembed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor-contrib/plugins/mediaembed/icons/mediaembed.png -------------------------------------------------------------------------------- /assets/ckeditor/plugins/templates/templates/images/template1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/templates/templates/images/template1.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/templates/templates/images/template2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/templates/templates/images/template2.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/templates/templates/images/template3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/templates/templates/images/template3.gif -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/theme/ambiance-mobile.css: -------------------------------------------------------------------------------- 1 | .cm-s-ambiance.CodeMirror { 2 | -webkit-box-shadow: none; 3 | -moz-box-shadow: none; 4 | box-shadow: none; 5 | } 6 | -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif -------------------------------------------------------------------------------- /assets/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.png -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/mediaembed/icons/hidpi/mediaembed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor-contrib/plugins/mediaembed/icons/hidpi/mediaembed.png -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/icons/commentselectedrange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor-contrib/plugins/codemirror/icons/commentselectedrange.png -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/icons/uncommentselectedrange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor-contrib/plugins/codemirror/icons/uncommentselectedrange.png -------------------------------------------------------------------------------- /app/assets/javascripts/application.js: -------------------------------------------------------------------------------- 1 | // 2 | //= require rich/editor/ckeditor_path 3 | //= require ckeditor-releases/ckeditor 4 | //= require rich/editor/rich_editor 5 | //= require rich/editor/rich_picker 6 | -------------------------------------------------------------------------------- /assets/ckeditor/plugins/dialog/dialogDefinition.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.md or http://ckeditor.com/license 4 | */ 5 | -------------------------------------------------------------------------------- /assets/ckeditor/samples/old/htmlwriter/assets/outputforflash/outputforflash.fla: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/samples/old/htmlwriter/assets/outputforflash/outputforflash.fla -------------------------------------------------------------------------------- /assets/ckeditor/samples/old/htmlwriter/assets/outputforflash/outputforflash.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-ono/redmine_ckeditor/HEAD/assets/ckeditor/samples/old/htmlwriter/assets/outputforflash/outputforflash.swf -------------------------------------------------------------------------------- /test/test_helper.rb: -------------------------------------------------------------------------------- 1 | # Load the normal Rails helper 2 | require File.expand_path(File.dirname(__FILE__) + '/../../../../test/test_helper') 3 | 4 | # Ensure that we are using the temporary fixture path 5 | Engines::Testing.set_fixture_path 6 | -------------------------------------------------------------------------------- /db/migrate/20130418001208_add_uri_cache_to_rich_image.rich.rb: -------------------------------------------------------------------------------- 1 | # This migration comes from rich (originally 20111117202133) 2 | class AddUriCacheToRichImage < ActiveRecord::Migration[4.2] 3 | def change 4 | add_column :rich_rich_images, :uri_cache, :text 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /assets/ckeditor/samples/toolbarconfigurator/font/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Font license info 2 | 3 | 4 | ## Font Awesome 5 | 6 | Copyright (C) 2012 by Dave Gandy 7 | 8 | Author: Dave Gandy 9 | License: SIL () 10 | Homepage: http://fortawesome.github.com/Font-Awesome/ 11 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | 3 | gem 'rich', git: 'https://github.com/a-ono/rich.git', tag: '1.5.2' 4 | gem 'kaminari' 5 | gem 'htmlentities' 6 | gem 'paperclip', '~> 6.1.0' 7 | gem 'pandoc-ruby' 8 | 9 | # It is needed for upgrading CKEditor 10 | #gem 'sprockets-rails', '< 3.0.0' 11 | -------------------------------------------------------------------------------- /lib/redmine_ckeditor/tempfile_patch.rb: -------------------------------------------------------------------------------- 1 | module RedmineCkeditor 2 | module TempfilePatch 3 | def initialize(basename, *rest) 4 | super.tap do |f| 5 | f.binmode if basename == "raw-upload." 6 | end 7 | end 8 | end 9 | end 10 | 11 | Tempfile.prepend RedmineCkeditor::TempfilePatch 12 | -------------------------------------------------------------------------------- /assets/ckeditor/plugins/preview/preview.html: -------------------------------------------------------------------------------- 1 | 14 | -------------------------------------------------------------------------------- /app/views/journals/new_with_ckeditor.js.erb: -------------------------------------------------------------------------------- 1 | <% 2 | # when quoting a private journal, check the private checkbox 3 | if @journal && @journal.private_notes? 4 | %> 5 | $('#issue_private_notes').attr('checked', true); 6 | <% end %> 7 | 8 | CKEDITOR.instances['issue_notes'].setData(<%= @content.inspect.html_safe %>); 9 | showAndScrollTo("update", "issue_notes"); 10 | -------------------------------------------------------------------------------- /assets/ckeditor/config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. 3 | * For licensing, see LICENSE.md or http://ckeditor.com/license 4 | */ 5 | 6 | CKEDITOR.editorConfig = function( config ) { 7 | // Define changes to default configuration here. For example: 8 | // config.language = 'fr'; 9 | // config.uiColor = '#AADC6E'; 10 | }; 11 | -------------------------------------------------------------------------------- /assets/stylesheets/selector.css: -------------------------------------------------------------------------------- 1 | div.selector-container select { 2 | float: left; 3 | padding: 3px; 4 | width: 250px; 5 | } 6 | 7 | div.selector-container div.container { 8 | float: left; 9 | padding: 3px; 10 | } 11 | 12 | div.selector-container div.clear { 13 | clear: left; 14 | height: 1em; 15 | } 16 | 17 | div.selector-container input.button { 18 | width: 8em; 19 | } 20 | -------------------------------------------------------------------------------- /lib/redmine_ckeditor/rich_files_helper_patch.rb: -------------------------------------------------------------------------------- 1 | module RedmineCkeditor 2 | module RichFilesHelperPatch 3 | def thumb_for_file(file) 4 | Redmine::Utils.relative_url_root + if file.simplified_type == "image" 5 | file.rich_file.url(:rich_thumb) 6 | else 7 | "/plugin_assets/redmine_ckeditor/images/document-thumb.png" 8 | end 9 | end 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /assets/stylesheets/editor.css: -------------------------------------------------------------------------------- 1 | /* 2 | This file defines the default set of CSS styles available in the Rich editor 3 | */ 4 | 5 | 6 | p.caption { 7 | font-style: italic; 8 | color: grey; 9 | } 10 | 11 | span.highlight { 12 | background: yellow; 13 | } 14 | 15 | img.left { 16 | float: left; 17 | } 18 | 19 | img.right { 20 | float: right; 21 | } 22 | 23 | html, body { 24 | height: 100%; 25 | } 26 | -------------------------------------------------------------------------------- /lib/redmine_ckeditor/application_helper_patch.rb: -------------------------------------------------------------------------------- 1 | module RedmineCkeditor 2 | module ApplicationHelperPatch 3 | include RedmineCkeditor::Helper 4 | 5 | def format_activity_description(text) 6 | if RedmineCkeditor.enabled? 7 | simple_format(truncate(HTMLEntities.new.decode(strip_tags(text.to_s)), :length => 120)) 8 | else 9 | super 10 | end 11 | end 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /lib/redmine_ckeditor/queries_helper_patch.rb: -------------------------------------------------------------------------------- 1 | module RedmineCkeditor 2 | module QueriesHelperPatch 3 | def csv_value(column, issue, value) 4 | if RedmineCkeditor.enabled? && column.name == :description 5 | text = Rails::Html::FullSanitizer.new.sanitize(value.to_s) 6 | text.gsub(/(?:\r\n\t*)+/, "\r").gsub(" ", " ").strip 7 | else 8 | super 9 | end 10 | end 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /config/locales/zh.yml: -------------------------------------------------------------------------------- 1 | zh: 2 | ckeditor_skin: 主题设置 3 | ckeditor_ui_color: UI颜色设置 4 | ckeditor_enter_mode: 输入模式 5 | ckeditor_startup_show_blocks: 启动时显示文本块 6 | ckeditor_toolbar_can_collapse: 工具栏合拢 7 | ckeditor_toolbar_location: 工具栏位置 8 | ckeditor_toolbar_buttons: 工具栏按钮 9 | ckeditor_width: 宽度 10 | ckeditor_height: 高度 11 | add: 新增 12 | remove: 移除 13 | separator: 分割符 14 | subgroup: 子菜单 15 | line_break: 换行符 16 | 17 | -------------------------------------------------------------------------------- /app/views/layouts/rich/application.html.erb: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Rich Browser 5 | <%= javascript_heads %> 6 | <%= stylesheet_link_tag "application", :plugin => "redmine_ckeditor" %> 7 | <%= ckeditor_javascripts %> 8 | <%= javascript_include_tag "browser", :plugin => "redmine_ckeditor" %> 9 | <%= csrf_meta_tags %> 10 | 11 | 12 | 13 | <%= yield %> 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /config/locales/ko.yml: -------------------------------------------------------------------------------- 1 | ko: 2 | ckeditor_skin: 스킨 3 | ckeditor_ui_color: UI 색 4 | ckeditor_enter_mode: 엔터 모드 5 | ckeditor_startup_show_blocks: 시작 시 블럭 표시 6 | ckeditor_toolbar_can_collapse: 도구 모움 축소 7 | ckeditor_toolbar_location: 도구 모움 위치 8 | ckeditor_toolbar_buttons: 도구 모움 버튼 9 | ckeditor_width: 폭 10 | ckeditor_height: 높이 11 | add: 추가 12 | remove: 삭제 13 | separator: 구분 14 | subgroup: 하위 그룹 15 | line_break: 줄 바꿈 16 | 17 | -------------------------------------------------------------------------------- /assets/ckeditor/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ckeditor", 3 | "description": "JavaScript WYSIWYG web text editor.", 4 | "keywords": [ "ckeditor", "fckeditor", "editor", "wysiwyg", "html", "richtext", "text", "javascript" ], 5 | "authors": "CKSource (http://cksource.com/)", 6 | "license": "For licensing, see LICENSE.md or http://ckeditor.com/license.", 7 | "homepage": "http://ckeditor.com", 8 | "main": "./ckeditor.js", 9 | "moduleType": "globals" 10 | } 11 | -------------------------------------------------------------------------------- /config/locales/ja.yml: -------------------------------------------------------------------------------- 1 | ja: 2 | ckeditor_skin: スキン 3 | ckeditor_ui_color: UIの色 4 | ckeditor_enter_mode: エンターキーの動作 5 | ckeditor_startup_show_blocks: 初期表示をブロック表示モードにする 6 | ckeditor_toolbar_can_collapse: ツールバーの開閉 7 | ckeditor_toolbar_location: ツールバーの位置 8 | ckeditor_toolbar_buttons: ツールバーのボタン 9 | ckeditor_width: 幅 10 | ckeditor_height: 高さ 11 | add: 追加 12 | remove: 削除 13 | separator: セパレータ 14 | subgroup: サブグループ 15 | line_break: 改行 16 | 17 | -------------------------------------------------------------------------------- /lib/redmine_ckeditor/mail_handler_patch.rb: -------------------------------------------------------------------------------- 1 | module RedmineCkeditor 2 | module MailHandlerPatch 3 | include ActionView::Helpers::TextHelper 4 | 5 | def cleaned_up_text_body(format = true) 6 | if format 7 | simple_format(super()) 8 | else 9 | super() 10 | end 11 | end 12 | 13 | def extract_keyword!(text, attr, format=nil) 14 | text = cleaned_up_text_body(false) if RedmineCkeditor.enabled? 15 | super(text, attr, format) 16 | end 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /config/locales/en.yml: -------------------------------------------------------------------------------- 1 | en: 2 | ckeditor_skin: Skin 3 | ckeditor_ui_color: UI color 4 | ckeditor_enter_mode: Enter mode 5 | ckeditor_startup_show_blocks: Startup show blocks 6 | ckeditor_toolbar_can_collapse: Toolbar can collapse 7 | ckeditor_toolbar_location: Toolbar location 8 | ckeditor_toolbar_buttons: Toolbar buttons 9 | ckeditor_width: Width 10 | ckeditor_height: Height 11 | add: Add 12 | remove: Remove 13 | separator: Separator 14 | subgroup: Subgroup 15 | line_break: Line break 16 | 17 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/af.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'af', { 6 | toolbar: 'Bron', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/ar.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'ar', { 6 | toolbar: 'المصدر', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/bn.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'bn', { 6 | toolbar: 'সোর্স', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/cs.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'cs', { 6 | toolbar: 'Zdroj', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/cy.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'cy', { 6 | toolbar: 'HTML', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/da.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'da', { 6 | toolbar: 'Kilde', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/eo.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'eo', { 6 | toolbar: 'Fonto', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/fa.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'fa', { 6 | toolbar: 'منبع', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/fi.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'fi', { 6 | toolbar: 'Koodi', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/fo.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'fo', { 6 | toolbar: 'Kelda', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/fr.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'fr', { 6 | toolbar: 'Source', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/he.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'he', { 6 | toolbar: 'מקור', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/hi.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'hi', { 6 | toolbar: 'सोर्स', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/hr.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'hr', { 6 | toolbar: 'Kôd', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/is.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'is', { 6 | toolbar: 'Kóði', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/ja.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'ja', { 6 | toolbar: 'ソース', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/ka.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'ka', { 6 | toolbar: 'კოდები', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/km.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'km', { 6 | toolbar: 'កូត', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/ko.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'ko', { 6 | toolbar: '소스', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/mk.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'mk', { 6 | toolbar: 'Source', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/mn.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'mn', { 6 | toolbar: 'Код', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/ms.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'ms', { 6 | toolbar: 'Sumber', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/nb.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'nb', { 6 | toolbar: 'Kilde', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/no.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'no', { 6 | toolbar: 'Kilde', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/pt.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'pt', { 6 | toolbar: 'Fonte', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/ro.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'ro', { 6 | toolbar: 'Sursa', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/sk.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'sk', { 6 | toolbar: 'Zdroj', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/sr.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'sr', { 6 | toolbar: 'Kôд', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/sv.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'sv', { 6 | toolbar: 'Källa', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/tr.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'tr', { 6 | toolbar: 'Kaynak', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/ug.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'ug', { 6 | toolbar: 'مەنبە', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/zh.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'zh', { 6 | toolbar: '原始碼', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /config/locales/nl.yml: -------------------------------------------------------------------------------- 1 | nl: 2 | ckeditor_skin: Thema 3 | ckeditor_ui_color: UI-kleur 4 | ckeditor_enter_mode: Invoermodus 5 | ckeditor_startup_show_blocks: Blokweergave bij opstarten 6 | ckeditor_toolbar_can_collapse: Inklapbare werkbalk 7 | ckeditor_toolbar_location: Werkbalklocatie 8 | ckeditor_toolbar_buttons: Werkbalkknoppen 9 | ckeditor_width: Breedte 10 | ckeditor_height: Hoogte 11 | add: Toevoegen 12 | remove: Verwijderen 13 | separator: Scheidingsteken 14 | subgroup: Deelgroep 15 | line_break: Regeleinde 16 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/bg.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'bg', { 6 | toolbar: 'Източник', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/bs.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'bs', { 6 | toolbar: 'HTML kôd', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/ca.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'ca', { 6 | toolbar: 'Codi font', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/es.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'es', { 6 | toolbar: 'Fuente HTML', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/et.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'et', { 6 | toolbar: 'Lähtekood', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/hu.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'hu', { 6 | toolbar: 'Forráskód', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/ku.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'ku', { 6 | toolbar: 'سەرچاوە', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/lt.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'lt', { 6 | toolbar: 'Šaltinis', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/lv.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'lv', { 6 | toolbar: 'HTML kods', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/ru.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'ru', { 6 | toolbar: 'Источник', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/th.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'th', { 6 | toolbar: 'ดูรหัส HTML', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/uk.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'uk', { 6 | toolbar: 'Джерело', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/vi.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'vi', { 6 | toolbar: 'Mã HTML', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/zh-cn.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'zh-cn', { 6 | toolbar: '源码', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor/plugins/scayt/skins/moono-lisa/scayt.css: -------------------------------------------------------------------------------- 1 | .scayt-lang-list > div 2 | { 3 | padding-bottom: 6px !important; 4 | } 5 | 6 | .scayt-lang-list > div input 7 | { 8 | margin-right: 4px; 9 | } 10 | 11 | #scayt_about_ 12 | { 13 | margin: 30px auto 0 auto; 14 | } 15 | 16 | #scayt_about_ p 17 | { 18 | text-align: center; 19 | margin-bottom: 10px; 20 | } 21 | 22 | .cke_dialog_contents_body div[name=dictionaries] .cke_dialog_ui_hbox_last > a.cke_dialog_ui_button 23 | { 24 | margin-top: 0; 25 | } 26 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/el.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'el', { 6 | toolbar: 'HTML κώδικας', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/en-au.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'en-au', { 6 | toolbar: 'Source', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/en-ca.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'en-ca', { 6 | toolbar: 'Source', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/en-gb.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'en-gb', { 6 | toolbar: 'Source', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/en.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'en', { 6 | toolbar: 'Source', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/eu.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'eu', { 6 | toolbar: 'HTML Iturburua', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/fr-ca.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'fr-ca', { 6 | toolbar: 'Source', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/gl.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'gl', { 6 | toolbar: 'Código Fonte', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/it.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'it', { 6 | toolbar: 'Codice Sorgente', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/sl.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'sl', { 6 | toolbar: 'Izvorna koda', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/sr-latn.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'sr-latn', { 6 | toolbar: 'Kôd', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/pt-br.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'pt-br', { 6 | toolbar: 'Código-Fonte', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /db/migrate/20130418001207_create_rich_rich_images.rich.rb: -------------------------------------------------------------------------------- 1 | # This migration comes from rich (originally 20111002142937) 2 | class CreateRichRichImages < ActiveRecord::Migration[4.2] 3 | def change 4 | create_table :rich_rich_images do |t| 5 | 6 | t.timestamps 7 | 8 | t.string :image_file_name 9 | t.string :image_content_type 10 | t.integer :image_file_size 11 | t.datetime :image_updated_at 12 | 13 | t.string :owner_type 14 | t.integer :owner_id 15 | 16 | end 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/gu.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'gu', { 6 | toolbar: 'મૂળ કે પ્રાથમિક દસ્તાવેજ', 7 | searchCode: 'Search Source', 8 | autoFormat: 'Format Selection', 9 | commentSelectedRange: 'Comment Selection', 10 | uncommentSelectedRange: 'Uncomment Selection', 11 | autoCompleteToggle: 'Enable/Disable HTML Tag Autocomplete' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor/plugins/scayt/dialogs/dialog.css: -------------------------------------------------------------------------------- 1 | div.cke_dialog_ui_scaytItemList { 2 | border: 1px solid #c9cccf; 3 | } 4 | 5 | .cke_scaytItemList-child { 6 | position: relative; 7 | padding: 6px 30px 6px 5px; 8 | overflow: hidden; 9 | text-overflow: ellipsis; 10 | white-space: nowrap; 11 | } 12 | 13 | .cke_scaytItemList-child:hover { 14 | background: #ebebeb; 15 | } 16 | 17 | .cke_scaytItemList-child .cke_scaytItemList_remove { 18 | position: absolute; 19 | top: 0; 20 | right: 5px; 21 | width: 26px; 22 | height: 26px; 23 | } 24 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/nl.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'nl', { 6 | toolbar: 'Broncode', 7 | searchCode: 'Zoek in broncode', 8 | autoFormat: 'Formatteer selectie', 9 | commentSelectedRange: 'Zet selectie in commentaar', 10 | uncommentSelectedRange: 'Haal selectie uit commentaar', 11 | autoCompleteToggle: 'Zet automatisch aanvullen van HTML tags aan/uit' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/de.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'de', { 6 | toolbar: 'Quellcode', 7 | searchCode: 'Quellcode durchsuchen', 8 | autoFormat: 'Auswahl formatieren', 9 | commentSelectedRange: 'Auswahl auskommentieren', 10 | uncommentSelectedRange: 'Auskommentierung entfernen', 11 | autoCompleteToggle: 'HTML Tag Autovervollständigen de-/aktivieren' 12 | }); 13 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/lang/pl.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang( 'codemirror', 'pl', { 6 | toolbar: 'Źródło dokumentu', 7 | autoFormat: 'Sformatuj zaznaczenie', 8 | commentSelectedRange: 'Zakomentuj zaznaczenie', 9 | uncommentSelectedRange: 'Odkomentuj zaznaczenie', 10 | searchCode: 'Wyszukaj w źródle', 11 | autoCompleteToggle: 'Włącza/Wyłącza automatyczne uzupełniania tagów HTML' 12 | }); 13 | -------------------------------------------------------------------------------- /config/locales/ru.yml: -------------------------------------------------------------------------------- 1 | ru: 2 | ckeditor_skin: Тема 3 | ckeditor_ui_color: Цвет Интерфейса 4 | ckeditor_enter_mode: Тип ввода 5 | ckeditor_startup_show_blocks: Показывать блоки при запуске 6 | ckeditor_toolbar_can_collapse: Панель инструментов может сворачиваться 7 | ckeditor_toolbar_location: Расположение панели инструментов 8 | ckeditor_toolbar_buttons: Кнопки панели инструментов 9 | ckeditor_width: Ширина 10 | ckeditor_height: Высота 11 | add: Добавить 12 | remove: Удалить 13 | separator: Разделитель 14 | subgroup: Подгруппа 15 | line_break: Новая строка 16 | -------------------------------------------------------------------------------- /config/locales/pt.yml: -------------------------------------------------------------------------------- 1 | pt: 2 | ckeditor_skin: Skin 3 | ckeditor_ui_color: Cor UI 4 | ckeditor_enter_mode: Modo do ENTER 5 | ckeditor_startup_show_blocks: Blocos de exibição de inicialização 6 | ckeditor_toolbar_can_collapse: Barra de ferramentas pode minimizar 7 | ckeditor_toolbar_location: Barra de ferramentas localização 8 | ckeditor_toolbar_buttons: Barra de ferramentas botões 9 | ckeditor_width: Largura 10 | ckeditor_height: Altura 11 | add: Adicionar 12 | remove: Remover 13 | separator: Separador 14 | subgroup: Subgrupo 15 | line_break: Quebra de linha 16 | -------------------------------------------------------------------------------- /lib/redmine_ckeditor/messages_controller_patch.rb: -------------------------------------------------------------------------------- 1 | module RedmineCkeditor 2 | module MessagesControllerPatch 3 | def quote 4 | unless RedmineCkeditor.enabled? 5 | return super 6 | end 7 | 8 | @subject = @message.subject 9 | @subject = "RE: #{@subject}" unless @subject.starts_with?('RE:') 10 | @content = "

#{ll(I18n.locale, :text_user_wrote, @message.author)}

" 11 | @content << "
#{ActionView::Base.full_sanitizer.sanitize(@message.content.to_s)}

" 12 | 13 | render "quote_with_ckeditor" 14 | end 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /config/locales/fr.yml: -------------------------------------------------------------------------------- 1 | fr: 2 | ckeditor_skin: Thème 3 | ckeditor_ui_color: Couleur de l'interface 4 | ckeditor_enter_mode: Type de blocs 5 | ckeditor_startup_show_blocks: Montrer les blocs au démarrage 6 | ckeditor_toolbar_can_collapse: La barre d'outil peut être réduite 7 | ckeditor_toolbar_location: "Emplacement de la barre d'outil" 8 | ckeditor_toolbar_buttons: "Préférences de la barre d'outil CKEditor" 9 | ckeditor_width: Largeur 10 | ckeditor_height: Hauteur 11 | add: Ajouter 12 | remove: Supprimer 13 | separator: Séparateur 14 | subgroup: Sous-groupe 15 | line_break: Saut de ligne 16 | 17 | -------------------------------------------------------------------------------- /config/locales/pl.yml: -------------------------------------------------------------------------------- 1 | pl: 2 | ckeditor_skin: Skórka 3 | ckeditor_ui_color: Kolor interfejsu użytkownika 4 | ckeditor_enter_mode: Znacznik po wybraniu Enter 5 | ckeditor_startup_show_blocks: Pokazywanie bloków HTML odrazu po uruchomieniu 6 | ckeditor_toolbar_can_collapse: Pasek narzędzi może zostać zwinięty 7 | ckeditor_toolbar_location: Lokalizacja paska narzędzi 8 | ckeditor_toolbar_buttons: Przyciski paska narzędzi 9 | ckeditor_width: Wysokość 10 | ckeditor_height: Szerokość 11 | add: Dodaj 12 | remove: Usuń 13 | separator: Separator 14 | subgroup: Pod grupa 15 | line_break: Linia rozdzielająca 16 | -------------------------------------------------------------------------------- /app/views/rich/files/_file.html.erb: -------------------------------------------------------------------------------- 1 |

  • 2 | 10 |

    <%= file.rich_file_file_name %>

    11 | <%= link_to "delete", file.id.to_s, :method => :delete, :remote => true, :data => { :confirm => t(:delete_confirm) }, :class => "delete", :title => t(:delete) %> 12 |
  • 13 | -------------------------------------------------------------------------------- /assets/ckeditor/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ckeditor/ckeditor", 3 | "description": "JavaScript WYSIWYG web text editor.", 4 | "type": "library", 5 | "keywords": [ "ckeditor", "fckeditor", "editor", "wysiwyg", "html", "richtext", "text", "javascript" ], 6 | "homepage": "http://ckeditor.com", 7 | "license": [ "GPL-2.0+", "LGPL-2.1+", "MPL-1.1+" ], 8 | "authors": [ 9 | { 10 | "name": "CKSource", 11 | "homepage": "http://cksource.com" 12 | } 13 | ], 14 | "support": { 15 | "issues": "http://dev.ckeditor.com", 16 | "forum": "http://ckeditor.com/forums", 17 | "wiki": "http://docs.ckeditor.com", 18 | "source": "http://github.com/ckeditor/ckeditor-dev" 19 | } 20 | } -------------------------------------------------------------------------------- /db/migrate/20130418001209_refactor_image_to_file.rich.rb: -------------------------------------------------------------------------------- 1 | # This migration comes from rich (originally 20111201095829) 2 | class RefactorImageToFile < ActiveRecord::Migration[4.2] 3 | def change 4 | rename_table :rich_rich_images, :rich_rich_files 5 | 6 | rename_column :rich_rich_files, :image_file_name, :rich_file_file_name 7 | rename_column :rich_rich_files, :image_content_type, :rich_file_content_type 8 | rename_column :rich_rich_files, :image_file_size, :rich_file_file_size 9 | rename_column :rich_rich_files, :image_updated_at, :rich_file_updated_at 10 | 11 | add_column :rich_rich_files, :simplified_type, :string, :default => "file" 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /assets/ckeditor/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ckeditor", 3 | "version": "4.7.1", 4 | "description": "JavaScript WYSIWYG web text editor.", 5 | "main": "ckeditor.js", 6 | "repository": { 7 | "type": "git", 8 | "url": "git+https://github.com/ckeditor/ckeditor-releases.git" 9 | }, 10 | "keywords": [ 11 | "ckeditor", 12 | "fckeditor", 13 | "editor", 14 | "wysiwyg", 15 | "html", 16 | "richtext", 17 | "text", 18 | "javascript" 19 | ], 20 | "author": "CKSource (http://cksource.com/)", 21 | "license": "(GPL-2.0 OR LGPL-2.1 OR MPL-1.1)", 22 | "bugs": { 23 | "url": "http://dev.ckeditor.com" 24 | }, 25 | "homepage": "http://ckeditor.com" 26 | } 27 | -------------------------------------------------------------------------------- /assets/ckeditor/samples/toolbarconfigurator/font/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "", 3 | "css_prefix_text": "icon-", 4 | "css_use_suffix": false, 5 | "hinting": true, 6 | "units_per_em": 1000, 7 | "ascent": 850, 8 | "glyphs": [ 9 | { 10 | "uid": "f48ae54adfb27d8ada53d0fd9e34ee10", 11 | "css": "trash-empty", 12 | "code": 59392, 13 | "src": "fontawesome" 14 | }, 15 | { 16 | "uid": "1c4068ed75209e21af36017df8871802", 17 | "css": "down-big", 18 | "code": 59393, 19 | "src": "fontawesome" 20 | }, 21 | { 22 | "uid": "95376bf082bfec6ce06ea1cda7bd7ead", 23 | "css": "up-big", 24 | "code": 59394, 25 | "src": "fontawesome" 26 | } 27 | ] 28 | } -------------------------------------------------------------------------------- /lib/redmine_ckeditor/journals_controller_patch.rb: -------------------------------------------------------------------------------- 1 | module RedmineCkeditor 2 | module JournalsControllerPatch 3 | def new 4 | unless RedmineCkeditor.enabled? 5 | return super 6 | end 7 | 8 | @journal = Journal.visible.find(params[:journal_id]) if params[:journal_id] 9 | if @journal 10 | user = @journal.user 11 | text = @journal.notes 12 | else 13 | user = @issue.author 14 | text = @issue.description 15 | end 16 | @content = "

    #{ll(I18n.locale, :text_user_wrote, user)}

    " 17 | @content << "
    #{text}

    " 18 | 19 | render "new_with_ckeditor" 20 | rescue ActiveRecord::RecordNotFound 21 | render_404 22 | end 23 | end 24 | end 25 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/theme/neat.css: -------------------------------------------------------------------------------- 1 | .cm-s-neat span.cm-comment { color: #a86; } 2 | .cm-s-neat span.cm-keyword { line-height: 1em; font-weight: bold; color: blue; } 3 | .cm-s-neat span.cm-string { color: #a22; } 4 | .cm-s-neat span.cm-builtin { line-height: 1em; font-weight: bold; color: #077; } 5 | .cm-s-neat span.cm-special { line-height: 1em; font-weight: bold; color: #0aa; } 6 | .cm-s-neat span.cm-variable { color: black; } 7 | .cm-s-neat span.cm-number, .cm-s-neat span.cm-atom { color: #3a3; } 8 | .cm-s-neat span.cm-meta {color: #555;} 9 | .cm-s-neat span.cm-link { color: #3a3; } 10 | 11 | .cm-s-neat .CodeMirror-activeline-background {background: #e8f2ff !important;} 12 | .cm-s-neat .CodeMirror-matchingbracket {outline:1px solid grey; color:black !important;} 13 | -------------------------------------------------------------------------------- /init.rb: -------------------------------------------------------------------------------- 1 | require 'redmine' 2 | require 'redmine_ckeditor' 3 | 4 | ActiveSupport::Reloader.to_prepare do 5 | RedmineCkeditor.apply_patch 6 | end 7 | 8 | Redmine::Plugin.register :redmine_ckeditor do 9 | name 'Redmine CKEditor plugin' 10 | author 'Akihiro Ono' 11 | description 'This is a CKEditor plugin for Redmine' 12 | version '1.2.3' 13 | requires_redmine :version_or_higher => '4.0.0' 14 | url 'http://github.com/a-ono/redmine_ckeditor' 15 | 16 | settings(:partial => 'settings/ckeditor') 17 | 18 | wiki_format_provider 'CKEditor', RedmineCkeditor::WikiFormatting::Formatter, 19 | RedmineCkeditor::WikiFormatting::Helper 20 | end 21 | 22 | (Loofah::VERSION >= "2.3.0" ? Loofah::HTML5::SafeList : Loofah::HTML5::WhiteList)::ALLOWED_PROTOCOLS.replace RedmineCkeditor.allowed_protocols 23 | -------------------------------------------------------------------------------- /assets/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. 2 | For licensing, see LICENSE.md or http://ckeditor.com/license 3 | 4 | cs.js Found: 118 Missing: 0 5 | cy.js Found: 118 Missing: 0 6 | de.js Found: 118 Missing: 0 7 | el.js Found: 16 Missing: 102 8 | eo.js Found: 118 Missing: 0 9 | et.js Found: 31 Missing: 87 10 | fa.js Found: 24 Missing: 94 11 | fi.js Found: 23 Missing: 95 12 | fr.js Found: 118 Missing: 0 13 | hr.js Found: 23 Missing: 95 14 | it.js Found: 118 Missing: 0 15 | nb.js Found: 118 Missing: 0 16 | nl.js Found: 118 Missing: 0 17 | no.js Found: 118 Missing: 0 18 | tr.js Found: 118 Missing: 0 19 | ug.js Found: 39 Missing: 79 20 | zh-cn.js Found: 118 Missing: 0 21 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/theme/elegant.css: -------------------------------------------------------------------------------- 1 | .cm-s-elegant span.cm-number, .cm-s-elegant span.cm-string, .cm-s-elegant span.cm-atom {color: #762;} 2 | .cm-s-elegant span.cm-comment {color: #262; font-style: italic; line-height: 1em;} 3 | .cm-s-elegant span.cm-meta {color: #555; font-style: italic; line-height: 1em;} 4 | .cm-s-elegant span.cm-variable {color: black;} 5 | .cm-s-elegant span.cm-variable-2 {color: #b11;} 6 | .cm-s-elegant span.cm-qualifier {color: #555;} 7 | .cm-s-elegant span.cm-keyword {color: #730;} 8 | .cm-s-elegant span.cm-builtin {color: #30a;} 9 | .cm-s-elegant span.cm-link {color: #762;} 10 | .cm-s-elegant span.cm-error {background-color: #fdd;} 11 | 12 | .cm-s-elegant .CodeMirror-activeline-background {background: #e8f2ff !important;} 13 | .cm-s-elegant .CodeMirror-matchingbracket {outline:1px solid grey; color:black !important;} 14 | -------------------------------------------------------------------------------- /assets/ckeditor/samples/old/sample_posteddata.php: -------------------------------------------------------------------------------- 1 |

     2 | 
     3 | -------------------------------------------------------------------------------------------
     4 |   CKEditor - Posted Data
     5 | 
     6 |   We are sorry, but your Web server does not support the PHP language used in this script.
     7 | 
     8 |   Please note that CKEditor can be used with any other server-side language than just PHP.
     9 |   To save the content created with CKEditor you need to read the POST data on the server
    10 |   side and write it to a file or the database.
    11 | 
    12 |   Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
    13 |   For licensing, see LICENSE.md or http://ckeditor.com/license
    14 | -------------------------------------------------------------------------------------------
    15 | 
    16 | 
    */ include "assets/posteddata.php"; ?> 17 | -------------------------------------------------------------------------------- /assets/ckeditor/plugins/colordialog/dialogs/colordialog.css: -------------------------------------------------------------------------------- 1 | /** 2 | * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. 3 | * For licensing, see LICENSE.md or http://ckeditor.com/license 4 | */ 5 | 6 | .cke_colordialog_colorcell { 7 | width: 12px; /* All cells have equal width which depends on parent width (in this case table parent). Width works more like max-width. */ 8 | height: 14px; 9 | padding: 1px; /* Padding is replaced by border for focused cells. Prevents 'jumping' when adding borders. */ 10 | } 11 | 12 | .cke_colordialog_colorcell.cke_colordialog_focused_light, 13 | .cke_colordialog_colorcell.cke_colordialog_focused_dark { 14 | padding: 0; /* Shrink cell to allow 1px border indicating focus. */ 15 | border: 1px dotted #000; 16 | } 17 | 18 | .cke_colordialog_colorcell.cke_colordialog_focused_dark { 19 | border-color: #FFF; 20 | } 21 | -------------------------------------------------------------------------------- /assets/ckeditor/samples/toolbarconfigurator/lib/codemirror/show-hint.css: -------------------------------------------------------------------------------- 1 | .CodeMirror-hints { 2 | position: absolute; 3 | z-index: 10; 4 | overflow: hidden; 5 | list-style: none; 6 | 7 | margin: 0; 8 | padding: 2px; 9 | 10 | -webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2); 11 | -moz-box-shadow: 2px 3px 5px rgba(0,0,0,.2); 12 | box-shadow: 2px 3px 5px rgba(0,0,0,.2); 13 | border-radius: 3px; 14 | border: 1px solid silver; 15 | 16 | background: white; 17 | font-size: 90%; 18 | font-family: monospace; 19 | 20 | max-height: 20em; 21 | overflow-y: auto; 22 | } 23 | 24 | .CodeMirror-hint { 25 | margin: 0; 26 | padding: 0 4px; 27 | border-radius: 2px; 28 | max-width: 19em; 29 | overflow: hidden; 30 | white-space: pre; 31 | color: black; 32 | cursor: pointer; 33 | } 34 | 35 | li.CodeMirror-hint-active { 36 | background: #08f; 37 | color: white; 38 | } 39 | -------------------------------------------------------------------------------- /assets/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. 2 | For licensing, see LICENSE.md or http://ckeditor.com/license 3 | 4 | cs.js Found: 30 Missing: 0 5 | cy.js Found: 30 Missing: 0 6 | da.js Found: 12 Missing: 18 7 | de.js Found: 30 Missing: 0 8 | el.js Found: 25 Missing: 5 9 | eo.js Found: 30 Missing: 0 10 | fa.js Found: 30 Missing: 0 11 | fi.js Found: 30 Missing: 0 12 | fr.js Found: 30 Missing: 0 13 | gu.js Found: 12 Missing: 18 14 | he.js Found: 30 Missing: 0 15 | it.js Found: 30 Missing: 0 16 | mk.js Found: 5 Missing: 25 17 | nb.js Found: 30 Missing: 0 18 | nl.js Found: 30 Missing: 0 19 | no.js Found: 30 Missing: 0 20 | pt-br.js Found: 30 Missing: 0 21 | ro.js Found: 6 Missing: 24 22 | tr.js Found: 30 Missing: 0 23 | ug.js Found: 27 Missing: 3 24 | vi.js Found: 6 Missing: 24 25 | zh-cn.js Found: 30 Missing: 0 26 | -------------------------------------------------------------------------------- /assets/ckeditor/samples/toolbarconfigurator/lib/codemirror/neo.css: -------------------------------------------------------------------------------- 1 | /* neo theme for codemirror */ 2 | 3 | /* Color scheme */ 4 | 5 | .cm-s-neo.CodeMirror { 6 | background-color:#ffffff; 7 | color:#2e383c; 8 | line-height:1.4375; 9 | } 10 | .cm-s-neo .cm-comment {color:#75787b} 11 | .cm-s-neo .cm-keyword, .cm-s-neo .cm-property {color:#1d75b3} 12 | .cm-s-neo .cm-atom,.cm-s-neo .cm-number {color:#75438a} 13 | .cm-s-neo .cm-node,.cm-s-neo .cm-tag {color:#9c3328} 14 | .cm-s-neo .cm-string {color:#b35e14} 15 | .cm-s-neo .cm-variable,.cm-s-neo .cm-qualifier {color:#047d65} 16 | 17 | 18 | /* Editor styling */ 19 | 20 | .cm-s-neo pre { 21 | padding:0; 22 | } 23 | 24 | .cm-s-neo .CodeMirror-gutters { 25 | border:none; 26 | border-right:10px solid transparent; 27 | background-color:transparent; 28 | } 29 | 30 | .cm-s-neo .CodeMirror-linenumber { 31 | padding:0; 32 | color:#e0e2e5; 33 | } 34 | 35 | .cm-s-neo .CodeMirror-guttermarker { color: #1d75b3; } 36 | .cm-s-neo .CodeMirror-guttermarker-subtle { color: #e0e2e5; } 37 | -------------------------------------------------------------------------------- /assets/ckeditor/plugins/wsc/README.md: -------------------------------------------------------------------------------- 1 | CKEditor WebSpellChecker Plugin 2 | =============================== 3 | 4 | This plugin brings Web Spell Checker (WSC) into CKEditor. 5 | 6 | WSC is "installation-less", using the web-services of [WebSpellChecker.net](http://www.webspellchecker.net/). It's an out of the box solution. 7 | 8 | Installation 9 | ------------ 10 | 11 | 1. Clone/copy this repository contents in a new "plugins/wsc" folder in your CKEditor installation. 12 | 2. Enable the "wsc" plugin in the CKEditor configuration file (config.js): 13 | 14 | config.extraPlugins = 'wsc'; 15 | 16 | That's all. WSC will appear on the editor toolbar and will be ready to use. 17 | 18 | License 19 | ------- 20 | 21 | Licensed under the terms of any of the following licenses at your choice: [GPL](http://www.gnu.org/licenses/gpl.html), [LGPL](http://www.gnu.org/licenses/lgpl.html) and [MPL](http://www.mozilla.org/MPL/MPL-1.1.html). 22 | 23 | See LICENSE.md for more information. 24 | 25 | Developed in cooperation with [WebSpellChecker.net](http://www.webspellchecker.net/). 26 | -------------------------------------------------------------------------------- /assets/ckeditor/plugins/scayt/README.md: -------------------------------------------------------------------------------- 1 | CKEditor SCAYT Plugin 2 | ===================== 3 | 4 | This plugin brings Spell Check As You Type (SCAYT) into up to CKEditor 4+. 5 | 6 | SCAYT is a "installation-less", using the web-services of [WebSpellChecker.net](http://www.webspellchecker.net/). It's an out of the box solution. 7 | 8 | Installation 9 | ------------ 10 | 11 | 1. Clone/copy this repository contents in a new "plugins/scayt" folder in your CKEditor installation. 12 | 2. Enable the "scayt" plugin in the CKEditor configuration file (config.js): 13 | 14 | config.extraPlugins = 'scayt'; 15 | 16 | That's all. SCAYT will appear on the editor toolbar and will be ready to use. 17 | 18 | License 19 | ------- 20 | 21 | Licensed under the terms of any of the following licenses at your choice: [GPL](http://www.gnu.org/licenses/gpl.html), [LGPL](http://www.gnu.org/licenses/lgpl.html) and [MPL](http://www.mozilla.org/MPL/MPL-1.1.html). 22 | 23 | See LICENSE.md for more information. 24 | 25 | Developed in cooperation with [WebSpellChecker.net](http://www.webspellchecker.net/). 26 | -------------------------------------------------------------------------------- /assets/ckeditor/samples/old/dialog/assets/my_dialog.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. 3 | * For licensing, see LICENSE.md or http://ckeditor.com/license 4 | */ 5 | 6 | CKEDITOR.dialog.add( 'myDialog', function() { 7 | return { 8 | title: 'My Dialog', 9 | minWidth: 400, 10 | minHeight: 200, 11 | contents: [ 12 | { 13 | id: 'tab1', 14 | label: 'First Tab', 15 | title: 'First Tab', 16 | elements: [ 17 | { 18 | id: 'input1', 19 | type: 'text', 20 | label: 'Text Field' 21 | }, 22 | { 23 | id: 'select1', 24 | type: 'select', 25 | label: 'Select Field', 26 | items: [ 27 | [ 'option1', 'value1' ], 28 | [ 'option2', 'value2' ] 29 | ] 30 | } 31 | ] 32 | }, 33 | { 34 | id: 'tab2', 35 | label: 'Second Tab', 36 | title: 'Second Tab', 37 | elements: [ 38 | { 39 | id: 'button1', 40 | type: 'button', 41 | label: 'Button Field' 42 | } 43 | ] 44 | } 45 | ] 46 | }; 47 | } ); 48 | 49 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/theme/neo.css: -------------------------------------------------------------------------------- 1 | /* neo theme for codemirror */ 2 | 3 | /* Color scheme */ 4 | 5 | .cm-s-neo.CodeMirror { 6 | background-color:#ffffff; 7 | color:#2e383c; 8 | line-height:1.4375; 9 | } 10 | .cm-s-neo .cm-comment {color:#75787b} 11 | .cm-s-neo .cm-keyword, .cm-s-neo .cm-property {color:#1d75b3} 12 | .cm-s-neo .cm-atom,.cm-s-neo .cm-number {color:#75438a} 13 | .cm-s-neo .cm-node,.cm-s-neo .cm-tag {color:#9c3328} 14 | .cm-s-neo .cm-string {color:#b35e14} 15 | .cm-s-neo .cm-variable,.cm-s-neo .cm-qualifier {color:#047d65} 16 | 17 | 18 | /* Editor styling */ 19 | 20 | .cm-s-neo pre { 21 | padding:0; 22 | } 23 | 24 | .cm-s-neo .CodeMirror-gutters { 25 | border:none; 26 | border-right:10px solid transparent; 27 | background-color:transparent; 28 | } 29 | 30 | .cm-s-neo .CodeMirror-linenumber { 31 | padding:0; 32 | color:#e0e2e5; 33 | } 34 | 35 | .cm-s-neo .CodeMirror-guttermarker { color: #1d75b3; } 36 | .cm-s-neo .CodeMirror-guttermarker-subtle { color: #e0e2e5; } 37 | 38 | .cm-s-neo div.CodeMirror-cursor { 39 | width: auto; 40 | border: 0; 41 | background: rgba(155,157,162,0.37); 42 | z-index: 1; 43 | } 44 | -------------------------------------------------------------------------------- /assets/ckeditor/samples/toolbarconfigurator/lib/codemirror/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (C) 2014 by Marijn Haverbeke and others 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /assets/ckeditor/plugins/tableselection/styles/tableselection.css: -------------------------------------------------------------------------------- 1 | .cke_table-faked-selection-editor *::selection, table.cke_table-faked-selection-table *::selection { 2 | background: transparent; 3 | } 4 | 5 | .cke_table-faked-selection-editor { 6 | /* With love, dedicated for Chrome, until https://bugs.chromium.org/p/chromium/issues/detail?id=702610 is resolved. 7 | It will force repaint (without reflow) so that selection is properly displayed. */ 8 | transform: translateZ( 0 ); 9 | } 10 | 11 | .cke_table-faked-selection { 12 | background: darkgray !important; 13 | color: black; 14 | } 15 | .cke_table-faked-selection a { 16 | color: black; 17 | } 18 | .cke_editable:focus .cke_table-faked-selection { 19 | /* We have to use !important here, as td might specify it's own background, thus table selection 20 | would not be visible. */ 21 | background: #0076cb !important; 22 | color: white; 23 | } 24 | .cke_editable:focus .cke_table-faked-selection a { 25 | color: white; 26 | } 27 | .cke_table-faked-selection::-moz-selection, .cke_table-faked-selection ::-moz-selection { 28 | background: transparent; 29 | } 30 | .cke_table-faked-selection::selection, .cke_table-faked-selection ::selection { 31 | background: transparent; 32 | } 33 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/theme/eclipse.css: -------------------------------------------------------------------------------- 1 | .cm-s-eclipse span.cm-meta {color: #FF1717;} 2 | .cm-s-eclipse span.cm-keyword { line-height: 1em; font-weight: bold; color: #7F0055; } 3 | .cm-s-eclipse span.cm-atom {color: #219;} 4 | .cm-s-eclipse span.cm-number {color: #164;} 5 | .cm-s-eclipse span.cm-def {color: #00f;} 6 | .cm-s-eclipse span.cm-variable {color: black;} 7 | .cm-s-eclipse span.cm-variable-2 {color: #0000C0;} 8 | .cm-s-eclipse span.cm-variable-3 {color: #0000C0;} 9 | .cm-s-eclipse span.cm-property {color: black;} 10 | .cm-s-eclipse span.cm-operator {color: black;} 11 | .cm-s-eclipse span.cm-comment {color: #3F7F5F;} 12 | .cm-s-eclipse span.cm-string {color: #2A00FF;} 13 | .cm-s-eclipse span.cm-string-2 {color: #f50;} 14 | .cm-s-eclipse span.cm-qualifier {color: #555;} 15 | .cm-s-eclipse span.cm-builtin {color: #30a;} 16 | .cm-s-eclipse span.cm-bracket {color: #cc7;} 17 | .cm-s-eclipse span.cm-tag {color: #170;} 18 | .cm-s-eclipse span.cm-attribute {color: #00c;} 19 | .cm-s-eclipse span.cm-link {color: #219;} 20 | .cm-s-eclipse span.cm-error {color: #f00;} 21 | 22 | .cm-s-eclipse .CodeMirror-activeline-background {background: #e8f2ff !important;} 23 | .cm-s-eclipse .CodeMirror-matchingbracket {outline:1px solid grey; color:black !important;} 24 | -------------------------------------------------------------------------------- /lib/redmine_ckeditor/wiki_formatting/formatter.rb: -------------------------------------------------------------------------------- 1 | module RedmineCkeditor::WikiFormatting 2 | class Formatter 3 | include Redmine::WikiFormatting::LinksHelper 4 | 5 | def initialize(text) 6 | @text = text 7 | end 8 | 9 | def to_html(&block) 10 | preserved = [] 11 | text = @text.gsub(/
    \s*(.*?)\s*<\/pre>/m) {|m|
    12 |         content = if matched = $1.match(/[\r\n]*(.*?)[\r\n]*<\/code>/m)
    13 |           lang, code = matched.captures
    14 |           code = Redmine::SyntaxHighlighting.highlight_by_language(code, lang)
    15 |           %Q[
    \n#{code}\n
    ] 16 | else 17 | m 18 | end 19 | preserved.push(content) 20 | "____preserved_#{preserved.size}____" 21 | }.gsub(/{{.*?}}/m) {|m| 22 | preserved.push(m) 23 | "____preserved_#{preserved.size}____" 24 | } 25 | 26 | auto_link!(text) 27 | text = ActionView::Base.white_list_sanitizer.sanitize(text, 28 | :tags => RedmineCkeditor.allowed_tags, 29 | :attributes => RedmineCkeditor.allowed_attributes 30 | ) 31 | 32 | preserved.each.with_index(1) {|content, i| 33 | text.gsub!("____preserved_#{i}____", content) 34 | } 35 | text 36 | end 37 | end 38 | end 39 | -------------------------------------------------------------------------------- /lib/redmine_ckeditor/helper.rb: -------------------------------------------------------------------------------- 1 | module RedmineCkeditor 2 | module Helper 3 | def ckeditor_javascripts 4 | root = RedmineCkeditor.assets_root 5 | plugin_script = RedmineCkeditor.plugins.map {|name| 6 | "CKEDITOR.plugins.addExternal('#{name}', '#{root}/ckeditor-contrib/plugins/#{name}/');" 7 | }.join 8 | 9 | javascript_tag("CKEDITOR_BASEPATH = '#{root}/ckeditor/';") + 10 | javascript_include_tag("application", :plugin => "redmine_ckeditor") + 11 | javascript_tag(<<-EOT) 12 | #{plugin_script} 13 | 14 | CKEDITOR.on("instanceReady", function(event) { 15 | var editor = event.editor; 16 | var textarea = document.getElementById(editor.name); 17 | editor.on("change", function() { 18 | textarea.value = editor.getSnapshot(); 19 | }); 20 | }); 21 | 22 | $(window).on("beforeunload", function() { 23 | for (var id in CKEDITOR.instances) { 24 | if (CKEDITOR.instances[id].checkDirty()) { 25 | return #{l(:text_warn_on_leaving_unsaved).inspect}; 26 | } 27 | } 28 | }); 29 | $(document).on("submit", "form", function() { 30 | for (var id in CKEDITOR.instances) { 31 | CKEDITOR.instances[id].resetDirty(); 32 | } 33 | }); 34 | EOT 35 | end 36 | end 37 | end 38 | -------------------------------------------------------------------------------- /assets/ckeditor/samples/old/assets/uilanguages/languages.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.md or http://ckeditor.com/license 4 | */ 5 | var CKEDITOR_LANGS=function(){var c={af:"Afrikaans",ar:"Arabic",az:"Azerbaijani",bg:"Bulgarian",bn:"Bengali/Bangla",bs:"Bosnian",ca:"Catalan",cs:"Czech",cy:"Welsh",da:"Danish",de:"German","de-ch":"German (Switzerland)",el:"Greek",en:"English","en-au":"English (Australia)","en-ca":"English (Canadian)","en-gb":"English (United Kingdom)",eo:"Esperanto",es:"Spanish","es-mx":"Spanish (Mexico)",et:"Estonian",eu:"Basque",fa:"Persian",fi:"Finnish",fo:"Faroese",fr:"French","fr-ca":"French (Canada)",gl:"Galician", 6 | gu:"Gujarati",he:"Hebrew",hi:"Hindi",hr:"Croatian",hu:"Hungarian",id:"Indonesian",is:"Icelandic",it:"Italian",ja:"Japanese",ka:"Georgian",km:"Khmer",ko:"Korean",ku:"Kurdish",lt:"Lithuanian",lv:"Latvian",mk:"Macedonian",mn:"Mongolian",ms:"Malay",nb:"Norwegian Bokmal",nl:"Dutch",no:"Norwegian",oc:"Occitan",pl:"Polish",pt:"Portuguese (Portugal)","pt-br":"Portuguese (Brazil)",ro:"Romanian",ru:"Russian",si:"Sinhala",sk:"Slovak",sq:"Albanian",sl:"Slovenian",sr:"Serbian (Cyrillic)","sr-latn":"Serbian (Latin)", 7 | sv:"Swedish",th:"Thai",tr:"Turkish",tt:"Tatar",ug:"Uighur",uk:"Ukrainian",vi:"Vietnamese",zh:"Chinese Traditional","zh-cn":"Chinese Simplified"},b=[],a;for(a in CKEDITOR.lang.languages)b.push({code:a,name:c[a]||a});b.sort(function(a,b){return a.name "data('uris')[this._options.currentStyle];\n" 28 | 29 | gsub_file RedmineCkeditor.root.join("assets/stylesheets/application.css"), 30 | 'image-url("rich/', 'url("../images/' 31 | 32 | append_to_file RedmineCkeditor.root.join("assets/stylesheets/editor.css"), 33 | "\nhtml, body {\n height: 100%;\n}\n" 34 | end 35 | end 36 | end 37 | -------------------------------------------------------------------------------- /app/models/redmine_ckeditor_setting.rb: -------------------------------------------------------------------------------- 1 | class RedmineCkeditorSetting 2 | def self.setting 3 | Setting[:plugin_redmine_ckeditor] || {} 4 | end 5 | 6 | def self.default 7 | ["1", true].include?(setting["default"]) 8 | end 9 | 10 | def self.toolbar_string 11 | setting["toolbar"] || RedmineCkeditor.default_toolbar 12 | end 13 | 14 | def self.toolbar 15 | bars = [] 16 | bar = [] 17 | toolbar_string.split(",").each {|item| 18 | case item 19 | when '/' 20 | bars.push(bar, item) 21 | bar = [] 22 | when '--' 23 | bars.push(bar) 24 | bar = [] 25 | else 26 | bar.push(item) 27 | end 28 | } 29 | 30 | bars.push(bar) unless bar.empty? 31 | bars 32 | end 33 | 34 | def self.skin 35 | setting["skin"] || "moono-lisa" 36 | end 37 | 38 | def self.ui_color 39 | setting["ui_color"] || "#f4f4f4" 40 | end 41 | 42 | def self.enter_mode 43 | (setting["enter_mode"] || 1).to_i 44 | end 45 | 46 | def self.shift_enter_mode 47 | enter_mode == 2 ? 1 : 2 48 | end 49 | 50 | def self.show_blocks 51 | (setting["show_blocks"] || 1).to_i == 1 52 | end 53 | 54 | def self.toolbar_can_collapse 55 | setting["toolbar_can_collapse"].to_i == 1 56 | end 57 | 58 | def self.toolbar_location 59 | setting["toolbar_location"] || "top" 60 | end 61 | 62 | def self.width 63 | setting["width"] 64 | end 65 | 66 | def self.height 67 | setting["height"] || 400 68 | end 69 | end 70 | -------------------------------------------------------------------------------- /assets/ckeditor/plugins/wsc/skins/moono-lisa/wsc.css: -------------------------------------------------------------------------------- 1 | .cke_dialog_body #overlayBlock, 2 | .cke_dialog_body #no_check_over 3 | { 4 | top: 39px !important; 5 | } 6 | 7 | div[name=SpellTab] .wsc-spelltab-bottom .cke_dialog_ui_vbox td > .cke_dialog_ui_button:first-child 8 | { 9 | margin-top: 4px; 10 | } 11 | 12 | div[name=SpellTab] .wsc-spelltab-bottom .cke_dialog_ui_hbox_first .cke_dialog_ui_select > label 13 | { 14 | margin-left: 0; 15 | } 16 | 17 | div[name=SpellTab] .wsc-spelltab-bottom .cke_dialog_ui_hbox_first .cke_dialog_ui_select div.cke_dialog_ui_input_select 18 | { 19 | width: 140px !important; 20 | } 21 | 22 | div[name=SpellTab] .wsc-spelltab-bottom .cke_dialog_ui_hbox_first .cke_dialog_ui_select select.cke_dialog_ui_input_select, 23 | div[name=Thesaurus] div.cke_dialog_ui_input_select select.cke_dialog_ui_input_select 24 | { 25 | margin-top: 1px; 26 | } 27 | 28 | div[name=SpellTab] .wsc-spelltab-bottom .cke_dialog_ui_hbox_first .cke_dialog_ui_select select.cke_dialog_ui_input_select:focus, 29 | div[name=Thesaurus] div.cke_dialog_ui_input_select select.cke_dialog_ui_input_select:focus 30 | { 31 | margin-top: 0; 32 | } 33 | 34 | div[name=GrammTab] .cke_dialog_ui_vbox tbody > tr:first-child .cke_dialog_ui_button, 35 | div[name=Thesaurus] .cke_dialog_ui_vbox tbody > tr:first-child .cke_dialog_ui_button 36 | { 37 | margin-top: 4px !important; 38 | } 39 | 40 | div[name=Thesaurus] div.cke_dialog_ui_input_select 41 | { 42 | width: 180px !important; 43 | } 44 | -------------------------------------------------------------------------------- /assets/ckeditor/plugins/scayt/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | SCAYT plugin for CKEditor 4 Changelog 2 | ==================== 3 | ### CKEditor 4.5.6 4 | 5 | New Features: 6 | * CKEditor [language addon](http://ckeditor.com/addon/language) support 7 | * CKEditor [placeholder addon](http://ckeditor.com/addon/placeholder) support 8 | * Drag and Drop support 9 | * *Experimental* GRAYT functionality http://www.webspellchecker.net/samples/scayt-ckeditor-plugin.html#25 10 | 11 | Fixed issues: 12 | * [#98](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/98) SCAYT Affects Dialog Double Click. Fixed in SCAYT Core. 13 | * [#102](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/102) SCAYT Core performance enhancements 14 | * [#104](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/104) SCAYT's spans leak into the clipboard and after pasting 15 | * [#105](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/105) Javascript error fired in case of multiple instances of CKEditor in one page 16 | * [#107](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/107) SCAYT should not check non-editable parts of content 17 | * [#108](https://github.com/WebSpellChecker/ckeditor-plugin-scayt/issues/108) Latest SCAYT copies id of editor element to the iframe 18 | * SCAYT stops working when CKEditor Undo plug-in not enabled 19 | * Issue with pasting SCAYT markup in CKEditor 20 | * [#32](https://github.com/WebSpellChecker/ckeditor-plugin-wsc/issues/32) SCAYT stops working after pressing Cancel button in WSC dialog 21 | -------------------------------------------------------------------------------- /lib/redmine_ckeditor/pdf_patch.rb: -------------------------------------------------------------------------------- 1 | module RedmineCkeditor 2 | module PDFPatch 3 | def formatted_text(text) 4 | html = super 5 | html = HTMLEntities.new.decode(html) if RedmineCkeditor.enabled? 6 | html 7 | end 8 | 9 | def RDMwriteHTMLCell(w, h, x, y, txt='', attachments=[], border=0, ln=1, fill=0) 10 | @tmp_images = [] 11 | super 12 | @tmp_images.each do |item| 13 | #logger.info item 14 | File.delete(item) if File.file?(item) 15 | end 16 | end 17 | 18 | def get_image_filename(attrname) 19 | img = nil 20 | 21 | if attrname.sub!(/^data:([^\/]+)\/([^;]+);base64,/, '') 22 | type = $2 23 | data = attrname.dup 24 | 25 | # for base64 encording image such as 'clipboard_image_paste' plugin 26 | if @tmp_images.nil? 27 | @tmp_images = [] 28 | end 29 | 30 | tmp = Tempfile.new([@tmp_images.length.to_s, '.'+type]) 31 | img = tmp.path 32 | tmp.close 33 | 34 | @tmp_images << img 35 | File.open(img, 'wb') do |f| 36 | f.write(Base64.decode64(data)) 37 | end 38 | else 39 | # for CKEditor file uploader with 'rich' plugin 40 | img = if attrname.include?("/rich/rich_files/rich_files/") 41 | Rails.root.join("public#{URI.decode(attrname)}").to_s 42 | else 43 | super(attrname) 44 | end 45 | end 46 | img 47 | end 48 | end 49 | end 50 | 51 | Redmine::Export::PDF::ITCPDF.prepend RedmineCkeditor::PDFPatch 52 | -------------------------------------------------------------------------------- /assets/ckeditor/plugins/wsc/LICENSE.md: -------------------------------------------------------------------------------- 1 | Software License Agreement 2 | ========================== 3 | 4 | **CKEditor WSC Plugin** 5 | Copyright © 2012, [CKSource](http://cksource.com) - Frederico Knabben. All rights reserved. 6 | 7 | Licensed under the terms of any of the following licenses at your choice: 8 | 9 | * GNU General Public License Version 2 or later (the "GPL"): 10 | http://www.gnu.org/licenses/gpl.html 11 | 12 | * GNU Lesser General Public License Version 2.1 or later (the "LGPL"): 13 | http://www.gnu.org/licenses/lgpl.html 14 | 15 | * Mozilla Public License Version 1.1 or later (the "MPL"): 16 | http://www.mozilla.org/MPL/MPL-1.1.html 17 | 18 | You are not required to, but if you want to explicitly declare the license you have chosen to be bound to when using, reproducing, modifying and distributing this software, just include a text file titled "legal.txt" in your version of this software, indicating your license choice. 19 | 20 | Sources of Intellectual Property Included in this plugin 21 | -------------------------------------------------------- 22 | 23 | Where not otherwise indicated, all plugin content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, the plugin will incorporate work done by developers outside of CKSource with their express permission. 24 | 25 | Trademarks 26 | ---------- 27 | 28 | CKEditor is a trademark of CKSource - Frederico Knabben. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders. 29 | -------------------------------------------------------------------------------- /assets/ckeditor/plugins/scayt/LICENSE.md: -------------------------------------------------------------------------------- 1 | Software License Agreement 2 | ========================== 3 | 4 | **CKEditor SCAYT Plugin** 5 | Copyright © 2012, [CKSource](http://cksource.com) - Frederico Knabben. All rights reserved. 6 | 7 | Licensed under the terms of any of the following licenses at your choice: 8 | 9 | * GNU General Public License Version 2 or later (the "GPL"): 10 | http://www.gnu.org/licenses/gpl.html 11 | 12 | * GNU Lesser General Public License Version 2.1 or later (the "LGPL"): 13 | http://www.gnu.org/licenses/lgpl.html 14 | 15 | * Mozilla Public License Version 1.1 or later (the "MPL"): 16 | http://www.mozilla.org/MPL/MPL-1.1.html 17 | 18 | You are not required to, but if you want to explicitly declare the license you have chosen to be bound to when using, reproducing, modifying and distributing this software, just include a text file titled "legal.txt" in your version of this software, indicating your license choice. 19 | 20 | Sources of Intellectual Property Included in this plugin 21 | -------------------------------------------------------- 22 | 23 | Where not otherwise indicated, all plugin content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, the plugin will incorporate work done by developers outside of CKSource with their express permission. 24 | 25 | Trademarks 26 | ---------- 27 | 28 | CKEditor is a trademark of CKSource - Frederico Knabben. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders. 29 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/theme/cobalt.css: -------------------------------------------------------------------------------- 1 | .cm-s-cobalt.CodeMirror { background: #002240; color: white; } 2 | .cm-s-cobalt div.CodeMirror-selected { background: #b36539 !important; } 3 | .cm-s-cobalt.CodeMirror ::selection { background: rgba(179, 101, 57, .99); } 4 | .cm-s-cobalt.CodeMirror ::-moz-selection { background: rgba(179, 101, 57, .99); } 5 | .cm-s-cobalt .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; } 6 | .cm-s-cobalt .CodeMirror-guttermarker { color: #ffee80; } 7 | .cm-s-cobalt .CodeMirror-guttermarker-subtle { color: #d0d0d0; } 8 | .cm-s-cobalt .CodeMirror-linenumber { color: #d0d0d0; } 9 | .cm-s-cobalt .CodeMirror-cursor { border-left: 1px solid white !important; } 10 | 11 | .cm-s-cobalt span.cm-comment { color: #08f; } 12 | .cm-s-cobalt span.cm-atom { color: #845dc4; } 13 | .cm-s-cobalt span.cm-number, .cm-s-cobalt span.cm-attribute { color: #ff80e1; } 14 | .cm-s-cobalt span.cm-keyword { color: #ffee80; } 15 | .cm-s-cobalt span.cm-string { color: #3ad900; } 16 | .cm-s-cobalt span.cm-meta { color: #ff9d00; } 17 | .cm-s-cobalt span.cm-variable-2, .cm-s-cobalt span.cm-tag { color: #9effff; } 18 | .cm-s-cobalt span.cm-variable-3, .cm-s-cobalt span.cm-def { color: white; } 19 | .cm-s-cobalt span.cm-bracket { color: #d8d8d8; } 20 | .cm-s-cobalt span.cm-builtin, .cm-s-cobalt span.cm-special { color: #ff9e59; } 21 | .cm-s-cobalt span.cm-link { color: #845dc4; } 22 | .cm-s-cobalt span.cm-error { color: #9d1e15; } 23 | 24 | .cm-s-cobalt .CodeMirror-activeline-background {background: #002D57 !important;} 25 | .cm-s-cobalt .CodeMirror-matchingbracket {outline:1px solid grey;color:white !important} 26 | -------------------------------------------------------------------------------- /assets/ckeditor/plugins/wsc/dialogs/wsc.css: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.html or http://ckeditor.com/license 4 | */ 5 | 6 | html, body 7 | { 8 | background-color: transparent; 9 | margin: 0px; 10 | padding: 0px; 11 | } 12 | 13 | body 14 | { 15 | padding: 10px; 16 | } 17 | 18 | body, td, input, select, textarea 19 | { 20 | font-size: 11px; 21 | font-family: 'Microsoft Sans Serif' , Arial, Helvetica, Verdana; 22 | } 23 | 24 | .midtext 25 | { 26 | padding:0px; 27 | margin:10px; 28 | } 29 | 30 | .midtext p 31 | { 32 | padding:0px; 33 | margin:10px; 34 | } 35 | 36 | .Button 37 | { 38 | border: #737357 1px solid; 39 | color: #3b3b1f; 40 | background-color: #c7c78f; 41 | } 42 | 43 | .PopupTabArea 44 | { 45 | color: #737357; 46 | background-color: #e3e3c7; 47 | } 48 | 49 | .PopupTitleBorder 50 | { 51 | border-bottom: #d5d59d 1px solid; 52 | } 53 | .PopupTabEmptyArea 54 | { 55 | padding-left: 10px; 56 | border-bottom: #d5d59d 1px solid; 57 | } 58 | 59 | .PopupTab, .PopupTabSelected 60 | { 61 | border-right: #d5d59d 1px solid; 62 | border-top: #d5d59d 1px solid; 63 | border-left: #d5d59d 1px solid; 64 | padding: 3px 5px 3px 5px; 65 | color: #737357; 66 | } 67 | 68 | .PopupTab 69 | { 70 | margin-top: 1px; 71 | border-bottom: #d5d59d 1px solid; 72 | cursor: pointer; 73 | } 74 | 75 | .PopupTabSelected 76 | { 77 | font-weight: bold; 78 | cursor: default; 79 | padding-top: 4px; 80 | border-bottom: #f1f1e3 1px solid; 81 | background-color: #f1f1e3; 82 | } 83 | -------------------------------------------------------------------------------- /assets/ckeditor/plugins/scayt/dialogs/toolbar.css: -------------------------------------------------------------------------------- 1 | a 2 | { 3 | text-decoration:none; 4 | padding: 2px 4px 4px 6px; 5 | display : block; 6 | border-width: 1px; 7 | border-style: solid; 8 | margin : 0px; 9 | } 10 | 11 | a.cke_scayt_toogle:hover, 12 | a.cke_scayt_toogle:focus, 13 | a.cke_scayt_toogle:active 14 | { 15 | border-color: #316ac5; 16 | background-color: #dff1ff; 17 | color : #000; 18 | cursor: pointer; 19 | margin : 0px; 20 | } 21 | a.cke_scayt_toogle { 22 | color : #316ac5; 23 | border-color: #fff; 24 | } 25 | .scayt_enabled a.cke_scayt_item { 26 | color : #316ac5; 27 | border-color: #fff; 28 | margin : 0px; 29 | } 30 | .scayt_disabled a.cke_scayt_item { 31 | color : gray; 32 | border-color : #fff; 33 | } 34 | .scayt_enabled a.cke_scayt_item:hover, 35 | .scayt_enabled a.cke_scayt_item:focus, 36 | .scayt_enabled a.cke_scayt_item:active 37 | { 38 | border-color: #316ac5; 39 | background-color: #dff1ff; 40 | color : #000; 41 | cursor: pointer; 42 | } 43 | .scayt_disabled a.cke_scayt_item:hover, 44 | .scayt_disabled a.cke_scayt_item:focus, 45 | .scayt_disabled a.cke_scayt_item:active 46 | { 47 | border-color: gray; 48 | background-color: #dff1ff; 49 | color : gray; 50 | cursor: no-drop; 51 | } 52 | .cke_scayt_set_on, .cke_scayt_set_off 53 | { 54 | display: none; 55 | } 56 | .scayt_enabled .cke_scayt_set_on 57 | { 58 | display: none; 59 | } 60 | .scayt_disabled .cke_scayt_set_on 61 | { 62 | display: inline; 63 | } 64 | .scayt_disabled .cke_scayt_set_off 65 | { 66 | display: none; 67 | } 68 | .scayt_enabled .cke_scayt_set_off 69 | { 70 | display: inline; 71 | } 72 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/theme/rubyblue.css: -------------------------------------------------------------------------------- 1 | .cm-s-rubyblue.CodeMirror { background: #112435; color: white; } 2 | .cm-s-rubyblue div.CodeMirror-selected { background: #38566F !important; } 3 | .cm-s-rubyblue.CodeMirror ::selection { background: rgba(56, 86, 111, 0.99); } 4 | .cm-s-rubyblue.CodeMirror ::-moz-selection { background: rgba(56, 86, 111, 0.99); } 5 | .cm-s-rubyblue .CodeMirror-gutters { background: #1F4661; border-right: 7px solid #3E7087; } 6 | .cm-s-rubyblue .CodeMirror-guttermarker { color: white; } 7 | .cm-s-rubyblue .CodeMirror-guttermarker-subtle { color: #3E7087; } 8 | .cm-s-rubyblue .CodeMirror-linenumber { color: white; } 9 | .cm-s-rubyblue .CodeMirror-cursor { border-left: 1px solid white !important; } 10 | 11 | .cm-s-rubyblue span.cm-comment { color: #999; font-style:italic; line-height: 1em; } 12 | .cm-s-rubyblue span.cm-atom { color: #F4C20B; } 13 | .cm-s-rubyblue span.cm-number, .cm-s-rubyblue span.cm-attribute { color: #82C6E0; } 14 | .cm-s-rubyblue span.cm-keyword { color: #F0F; } 15 | .cm-s-rubyblue span.cm-string { color: #F08047; } 16 | .cm-s-rubyblue span.cm-meta { color: #F0F; } 17 | .cm-s-rubyblue span.cm-variable-2, .cm-s-rubyblue span.cm-tag { color: #7BD827; } 18 | .cm-s-rubyblue span.cm-variable-3, .cm-s-rubyblue span.cm-def { color: white; } 19 | .cm-s-rubyblue span.cm-bracket { color: #F0F; } 20 | .cm-s-rubyblue span.cm-link { color: #F4C20B; } 21 | .cm-s-rubyblue span.CodeMirror-matchingbracket { color:#F0F !important; } 22 | .cm-s-rubyblue span.cm-builtin, .cm-s-rubyblue span.cm-special { color: #FF9D00; } 23 | .cm-s-rubyblue span.cm-error { color: #AF2018; } 24 | 25 | .cm-s-rubyblue .CodeMirror-activeline-background {background: #173047 !important;} 26 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/theme/night.css: -------------------------------------------------------------------------------- 1 | /* Loosely based on the Midnight Textmate theme */ 2 | 3 | .cm-s-night.CodeMirror { background: #0a001f; color: #f8f8f8; } 4 | .cm-s-night div.CodeMirror-selected { background: #447 !important; } 5 | .cm-s-night.CodeMirror ::selection { background: rgba(68, 68, 119, .99); } 6 | .cm-s-night.CodeMirror ::-moz-selection { background: rgba(68, 68, 119, .99); } 7 | .cm-s-night .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; } 8 | .cm-s-night .CodeMirror-guttermarker { color: white; } 9 | .cm-s-night .CodeMirror-guttermarker-subtle { color: #bbb; } 10 | .cm-s-night .CodeMirror-linenumber { color: #f8f8f8; } 11 | .cm-s-night .CodeMirror-cursor { border-left: 1px solid white !important; } 12 | 13 | .cm-s-night span.cm-comment { color: #6900a1; } 14 | .cm-s-night span.cm-atom { color: #845dc4; } 15 | .cm-s-night span.cm-number, .cm-s-night span.cm-attribute { color: #ffd500; } 16 | .cm-s-night span.cm-keyword { color: #599eff; } 17 | .cm-s-night span.cm-string { color: #37f14a; } 18 | .cm-s-night span.cm-meta { color: #7678e2; } 19 | .cm-s-night span.cm-variable-2, .cm-s-night span.cm-tag { color: #99b2ff; } 20 | .cm-s-night span.cm-variable-3, .cm-s-night span.cm-def { color: white; } 21 | .cm-s-night span.cm-bracket { color: #8da6ce; } 22 | .cm-s-night span.cm-comment { color: #6900a1; } 23 | .cm-s-night span.cm-builtin, .cm-s-night span.cm-special { color: #ff9e59; } 24 | .cm-s-night span.cm-link { color: #845dc4; } 25 | .cm-s-night span.cm-error { color: #9d1e15; } 26 | 27 | .cm-s-night .CodeMirror-activeline-background {background: #1C005A !important;} 28 | .cm-s-night .CodeMirror-matchingbracket {outline:1px solid grey; color:white !important;} 29 | -------------------------------------------------------------------------------- /assets/ckeditor/plugins/forms/dialogs/hiddenfield.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.md or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.dialog.add("hiddenfield",function(d){return{title:d.lang.forms.hidden.title,hiddenField:null,minWidth:350,minHeight:110,onShow:function(){delete this.hiddenField;var a=this.getParentEditor(),b=a.getSelection(),c=b.getSelectedElement();c&&c.data("cke-real-element-type")&&"hiddenfield"==c.data("cke-real-element-type")&&(this.hiddenField=c,c=a.restoreRealElement(this.hiddenField),this.setupContent(c),b.selectElement(this.hiddenField))},onOk:function(){var a=this.getValueOf("info","_cke_saved_name"), 6 | b=this.getParentEditor(),a=CKEDITOR.env.ie&&8>CKEDITOR.document.$.documentMode?b.document.createElement('\x3cinput name\x3d"'+CKEDITOR.tools.htmlEncode(a)+'"\x3e'):b.document.createElement("input");a.setAttribute("type","hidden");this.commitContent(a);a=b.createFakeElement(a,"cke_hidden","hiddenfield");this.hiddenField?(a.replace(this.hiddenField),b.getSelection().selectElement(a)):b.insertElement(a);return!0},contents:[{id:"info",label:d.lang.forms.hidden.title,title:d.lang.forms.hidden.title,elements:[{id:"_cke_saved_name", 7 | type:"text",label:d.lang.forms.hidden.name,"default":"",accessKey:"N",setup:function(a){this.setValue(a.data("cke-saved-name")||a.getAttribute("name")||"")},commit:function(a){this.getValue()?a.setAttribute("name",this.getValue()):a.removeAttribute("name")}},{id:"value",type:"text",label:d.lang.forms.hidden.value,"default":"",accessKey:"V",setup:function(a){this.setValue(a.getAttribute("value")||"")},commit:function(a){this.getValue()?a.setAttribute("value",this.getValue()):a.removeAttribute("value")}}]}]}}); -------------------------------------------------------------------------------- /assets/ckeditor/plugins/copyformatting/styles/copyformatting.css: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.md or http://ckeditor.com/license 4 | */ 5 | 6 | html.cke_copyformatting_active { 7 | min-height: 100%; 8 | } 9 | 10 | /* There is no cursor in CUR format for IE/Edge as that browser 11 | does not support custom cursor in [contenteditable] area. 12 | Ticket for this issue: 13 | https://connect.microsoft.com/IE/feedback/details/1070215/cant-change-cursor-in-contenteditable-using-css */ 14 | .cke_copyformatting_disabled, 15 | .cke_copyformatting_disabled a, 16 | .cke_copyformatting_disabled .cke_editable { 17 | cursor: url(../cursors/cursor-disabled.svg) 12 1, auto; 18 | } 19 | 20 | .cke_copyformatting_disabled .cke_top a, 21 | .cke_copyformatting_disabled .cke_bottom a { 22 | cursor: default; 23 | } 24 | 25 | /* Added `!important` rule as a fix for overriding the cursor by the Table Resize plugin. 26 | The `!important` rule is used because the Table Resize plugin creates a `
    ` which changes the cursor using inlined styles. */ 27 | .cke_copyformatting_active, 28 | .cke_copyformatting_active.cke_editable, 29 | .cke_copyformatting_active .cke_editable, 30 | .cke_copyformatting_active a, 31 | .cke_copyformatting_active table, 32 | .cke_copyformatting_active div[data-cke-temp], 33 | .cke_copyformatting_tableresize_cursor div[data-cke-temp] { 34 | cursor: url(../cursors/cursor.svg) 12 1, auto !important; 35 | } 36 | 37 | .cke_screen_reader_only { 38 | position: absolute; 39 | clip: rect(1px, 1px, 1px, 1px); 40 | padding: 0; 41 | border: 0; 42 | height: 1px; 43 | width: 1px; 44 | overflow: hidden; 45 | } 46 | -------------------------------------------------------------------------------- /assets/ckeditor/samples/old/assets/posteddata.php: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 | Sample — CKEditor 12 | 13 | 14 | 15 |

    16 | CKEditor — Posted Data 17 |

    18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | $value ) 31 | { 32 | if ( ( !is_string($value) && !is_numeric($value) ) || !is_string($key) ) 33 | continue; 34 | 35 | if ( get_magic_quotes_gpc() ) 36 | $value = htmlspecialchars( stripslashes((string)$value) ); 37 | else 38 | $value = htmlspecialchars( (string)$value ); 39 | ?> 40 | 41 | 42 | 43 | 44 | 48 |
    Field NameValue
    49 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /config/ckeditor.yml.example: -------------------------------------------------------------------------------- 1 | # CKEditor configuration 2 | 3 | allowedContent: true 4 | bodyClass: "wiki" 5 | removePlugins: "div,flash,forms,iframe" 6 | forcePasteAsPlainText: false 7 | 8 | # HTML sanitizer configuration 9 | 10 | allowedProtocols: 11 | - afs 12 | - aim 13 | - callto 14 | - ed2k 15 | - feed 16 | - ftp 17 | - gopher 18 | - http 19 | - https 20 | - irc 21 | - mailto 22 | - news 23 | - nntp 24 | - rsync 25 | - rtsp 26 | - sftp 27 | - ssh 28 | - tag 29 | - telnet 30 | - urn 31 | - webcal 32 | - xmpp 33 | 34 | allowedTags: 35 | - a 36 | - abbr 37 | - acronym 38 | - address 39 | - b 40 | - big 41 | - blockquote 42 | - br 43 | - caption 44 | - cite 45 | - code 46 | - dd 47 | - del 48 | - dfn 49 | - div 50 | - dt 51 | - em 52 | - h1 53 | - h2 54 | - h3 55 | - h4 56 | - h5 57 | - h6 58 | - hr 59 | - i 60 | - iframe 61 | - img 62 | - ins 63 | - kbd 64 | - li 65 | - ol 66 | - p 67 | - pre 68 | - s 69 | - samp 70 | - small 71 | - span 72 | - strike 73 | - strong 74 | - sub 75 | - sup 76 | - table 77 | - tbody 78 | - td 79 | - tfoot 80 | - th 81 | - thead 82 | - tr 83 | - tt 84 | - u 85 | - ul 86 | - var 87 | 88 | allowedAttributes: 89 | - abbr 90 | - align 91 | - alt 92 | - border 93 | - cellpadding 94 | - cellspacing 95 | - cite 96 | - class 97 | - colspan 98 | - datetime 99 | - dir 100 | - height 101 | - href 102 | - name 103 | - nowrap 104 | - reversed 105 | - rowspan 106 | - src 107 | - start 108 | - style 109 | - title 110 | - valign 111 | - width 112 | - xml:lang 113 | -------------------------------------------------------------------------------- /assets/ckeditor/samples/toolbarconfigurator/font/fontello.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Copyright (C) 2014 by original authors @ fontello.com 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /assets/ckeditor/plugins/forms/dialogs/button.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.md or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.dialog.add("button",function(b){function d(a){var b=this.getValue();b?(a.attributes[this.id]=b,"name"==this.id&&(a.attributes["data-cke-saved-name"]=b)):(delete a.attributes[this.id],"name"==this.id&&delete a.attributes["data-cke-saved-name"])}return{title:b.lang.forms.button.title,minWidth:350,minHeight:150,onShow:function(){delete this.button;var a=this.getParentEditor().getSelection().getSelectedElement();a&&a.is("input")&&a.getAttribute("type")in{button:1,reset:1,submit:1}&&(this.button= 6 | a,this.setupContent(a))},onOk:function(){var a=this.getParentEditor(),b=this.button,d=!b,c=b?CKEDITOR.htmlParser.fragment.fromHtml(b.getOuterHtml()).children[0]:new CKEDITOR.htmlParser.element("input");this.commitContent(c);var e=new CKEDITOR.htmlParser.basicWriter;c.writeHtml(e);c=CKEDITOR.dom.element.createFromHtml(e.getHtml(),a.document);d?a.insertElement(c):(c.replace(b),a.getSelection().selectElement(c))},contents:[{id:"info",label:b.lang.forms.button.title,title:b.lang.forms.button.title,elements:[{id:"name", 7 | type:"text",bidi:!0,label:b.lang.common.name,"default":"",setup:function(a){this.setValue(a.data("cke-saved-name")||a.getAttribute("name")||"")},commit:d},{id:"value",type:"text",label:b.lang.forms.button.text,accessKey:"V","default":"",setup:function(a){this.setValue(a.getAttribute("value")||"")},commit:d},{id:"type",type:"select",label:b.lang.forms.button.type,"default":"button",accessKey:"T",items:[[b.lang.forms.button.typeBtn,"button"],[b.lang.forms.button.typeSbm,"submit"],[b.lang.forms.button.typeRst, 8 | "reset"]],setup:function(a){this.setValue(a.getAttribute("type")||"")},commit:d}]}]}}); -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/theme/monokai.css: -------------------------------------------------------------------------------- 1 | /* Based on Sublime Text's Monokai theme */ 2 | 3 | .cm-s-monokai.CodeMirror {background: #272822; color: #f8f8f2;} 4 | .cm-s-monokai div.CodeMirror-selected {background: #49483E !important;} 5 | .cm-s-monokai.CodeMirror ::selection { background: rgba(73, 72, 62, .99); } 6 | .cm-s-monokai.CodeMirror ::-moz-selection { background: rgba(73, 72, 62, .99); } 7 | .cm-s-monokai .CodeMirror-gutters {background: #272822; border-right: 0px;} 8 | .cm-s-monokai .CodeMirror-guttermarker { color: white; } 9 | .cm-s-monokai .CodeMirror-guttermarker-subtle { color: #d0d0d0; } 10 | .cm-s-monokai .CodeMirror-linenumber {color: #d0d0d0;} 11 | .cm-s-monokai .CodeMirror-cursor {border-left: 1px solid #f8f8f0 !important;} 12 | 13 | .cm-s-monokai span.cm-comment {color: #75715e;} 14 | .cm-s-monokai span.cm-atom {color: #ae81ff;} 15 | .cm-s-monokai span.cm-number {color: #ae81ff;} 16 | 17 | .cm-s-monokai span.cm-property, .cm-s-monokai span.cm-attribute {color: #a6e22e;} 18 | .cm-s-monokai span.cm-keyword {color: #f92672;} 19 | .cm-s-monokai span.cm-string {color: #e6db74;} 20 | 21 | .cm-s-monokai span.cm-variable {color: #f8f8f2;} 22 | .cm-s-monokai span.cm-variable-2 {color: #9effff;} 23 | .cm-s-monokai span.cm-variable-3 {color: #66d9ef;} 24 | .cm-s-monokai span.cm-def {color: #fd971f;} 25 | .cm-s-monokai span.cm-bracket {color: #f8f8f2;} 26 | .cm-s-monokai span.cm-tag {color: #f92672;} 27 | .cm-s-monokai span.cm-header {color: #ae81ff;} 28 | .cm-s-monokai span.cm-link {color: #ae81ff;} 29 | .cm-s-monokai span.cm-error {background: #f92672; color: #f8f8f0;} 30 | 31 | .cm-s-monokai .CodeMirror-activeline-background {background: #373831 !important;} 32 | .cm-s-monokai .CodeMirror-matchingbracket { 33 | text-decoration: underline; 34 | color: white !important; 35 | } 36 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/theme/the-matrix.css: -------------------------------------------------------------------------------- 1 | .cm-s-the-matrix.CodeMirror { background: #000000; color: #00FF00; } 2 | .cm-s-the-matrix div.CodeMirror-selected { background: #2D2D2D !important; } 3 | .cm-s-the-matrix.CodeMirror ::selection { background: rgba(45, 45, 45, 0.99); } 4 | .cm-s-the-matrix.CodeMirror ::-moz-selection { background: rgba(45, 45, 45, 0.99); } 5 | .cm-s-the-matrix .CodeMirror-gutters { background: #060; border-right: 2px solid #00FF00; } 6 | .cm-s-the-matrix .CodeMirror-guttermarker { color: #0f0; } 7 | .cm-s-the-matrix .CodeMirror-guttermarker-subtle { color: white; } 8 | .cm-s-the-matrix .CodeMirror-linenumber { color: #FFFFFF; } 9 | .cm-s-the-matrix .CodeMirror-cursor { border-left: 1px solid #00FF00 !important; } 10 | 11 | .cm-s-the-matrix span.cm-keyword {color: #008803; font-weight: bold;} 12 | .cm-s-the-matrix span.cm-atom {color: #3FF;} 13 | .cm-s-the-matrix span.cm-number {color: #FFB94F;} 14 | .cm-s-the-matrix span.cm-def {color: #99C;} 15 | .cm-s-the-matrix span.cm-variable {color: #F6C;} 16 | .cm-s-the-matrix span.cm-variable-2 {color: #C6F;} 17 | .cm-s-the-matrix span.cm-variable-3 {color: #96F;} 18 | .cm-s-the-matrix span.cm-property {color: #62FFA0;} 19 | .cm-s-the-matrix span.cm-operator {color: #999} 20 | .cm-s-the-matrix span.cm-comment {color: #CCCCCC;} 21 | .cm-s-the-matrix span.cm-string {color: #39C;} 22 | .cm-s-the-matrix span.cm-meta {color: #C9F;} 23 | .cm-s-the-matrix span.cm-qualifier {color: #FFF700;} 24 | .cm-s-the-matrix span.cm-builtin {color: #30a;} 25 | .cm-s-the-matrix span.cm-bracket {color: #cc7;} 26 | .cm-s-the-matrix span.cm-tag {color: #FFBD40;} 27 | .cm-s-the-matrix span.cm-attribute {color: #FFF700;} 28 | .cm-s-the-matrix span.cm-error {color: #FF0000;} 29 | 30 | .cm-s-the-matrix .CodeMirror-activeline-background {background: #040;} 31 | -------------------------------------------------------------------------------- /assets/ckeditor/samples/js/sample.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. 3 | * For licensing, see LICENSE.md or http://ckeditor.com/license 4 | */ 5 | 6 | /* exported initSample */ 7 | 8 | if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 ) 9 | CKEDITOR.tools.enableHtml5Elements( document ); 10 | 11 | // The trick to keep the editor in the sample quite small 12 | // unless user specified own height. 13 | CKEDITOR.config.height = 150; 14 | CKEDITOR.config.width = 'auto'; 15 | 16 | var initSample = ( function() { 17 | var wysiwygareaAvailable = isWysiwygareaAvailable(), 18 | isBBCodeBuiltIn = !!CKEDITOR.plugins.get( 'bbcode' ); 19 | 20 | return function() { 21 | var editorElement = CKEDITOR.document.getById( 'editor' ); 22 | 23 | // :((( 24 | if ( isBBCodeBuiltIn ) { 25 | editorElement.setHtml( 26 | 'Hello world!\n\n' + 27 | 'I\'m an instance of [url=http://ckeditor.com]CKEditor[/url].' 28 | ); 29 | } 30 | 31 | // Depending on the wysiwygare plugin availability initialize classic or inline editor. 32 | if ( wysiwygareaAvailable ) { 33 | CKEDITOR.replace( 'editor' ); 34 | } else { 35 | editorElement.setAttribute( 'contenteditable', 'true' ); 36 | CKEDITOR.inline( 'editor' ); 37 | 38 | // TODO we can consider displaying some info box that 39 | // without wysiwygarea the classic editor may not work. 40 | } 41 | }; 42 | 43 | function isWysiwygareaAvailable() { 44 | // If in development mode, then the wysiwygarea must be available. 45 | // Split REV into two strings so builder does not replace it :D. 46 | if ( CKEDITOR.revision == ( '%RE' + 'V%' ) ) { 47 | return true; 48 | } 49 | 50 | return !!CKEDITOR.plugins.get( 'wysiwygarea' ); 51 | } 52 | } )(); 53 | 54 | -------------------------------------------------------------------------------- /assets/ckeditor/plugins/link/dialogs/anchor.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.md or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.dialog.add("anchor",function(c){function e(b,a){return b.createFakeElement(b.document.createElement("a",{attributes:a}),"cke_anchor","anchor")}return{title:c.lang.link.anchor.title,minWidth:300,minHeight:60,onOk:function(){var b=CKEDITOR.tools.trim(this.getValueOf("info","txtName")),a={id:b,name:b,"data-cke-saved-name":b};this._.selectedElement?this._.selectedElement.data("cke-realelement")?(b=e(c,a),b.replace(this._.selectedElement),CKEDITOR.env.ie&&c.getSelection().selectElement(b)):this._.selectedElement.setAttributes(a): 6 | (b=(b=c.getSelection())&&b.getRanges()[0],b.collapsed?(a=e(c,a),b.insertNode(a)):(CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(a["class"]="cke_anchor"),a=new CKEDITOR.style({element:"a",attributes:a}),a.type=CKEDITOR.STYLE_INLINE,a.applyToRange(b)))},onHide:function(){delete this._.selectedElement},onShow:function(){var b=c.getSelection(),a;a=b.getRanges()[0];var d=b.getSelectedElement();a.shrink(CKEDITOR.SHRINK_ELEMENT);a=(d=a.getEnclosedNode())&&d.type===CKEDITOR.NODE_ELEMENT&&("anchor"===d.data("cke-real-element-type")|| 7 | d.is("a"))?d:void 0;var f=(d=a&&a.data("cke-realelement"))?CKEDITOR.plugins.link.tryRestoreFakeAnchor(c,a):CKEDITOR.plugins.link.getSelectedLink(c);if(f){this._.selectedElement=f;var e=f.data("cke-saved-name");this.setValueOf("info","txtName",e||"");!d&&b.selectElement(f);a&&(this._.selectedElement=a)}this.getContentElement("info","txtName").focus()},contents:[{id:"info",label:c.lang.link.anchor.title,accessKey:"I",elements:[{type:"text",id:"txtName",label:c.lang.link.anchor.name,required:!0,validate:function(){return this.getValue()? 8 | !0:(alert(c.lang.link.anchor.errorName),!1)}}]}]}}); -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/redmine/plugin.js: -------------------------------------------------------------------------------- 1 | (function(){ 2 | function preservedPattern(i) { 3 | return "____preserved_" + i + "____"; 4 | } 5 | 6 | function wrapConversion(f) { 7 | return function(data) { 8 | var preserved = []; 9 | 10 | // preserve Redmine macro 11 | data = data.replace(/\{\{.*?\}\}/g, function(match) { 12 | preserved.push(decodeEntities(match)); 13 | return preservedPattern(preserved.length); 14 | }); 15 | 16 | // convert 17 | arguments[0] = data; 18 | data = f.apply(this, arguments); 19 | 20 | // restore 21 | for (var i = 0; i < preserved.length; i++) { 22 | data = data.replace(preservedPattern(i + 1), preserved[i]); 23 | } 24 | 25 | return data; 26 | }; 27 | } 28 | 29 | var element = document.createElement('div'); 30 | function decodeEntities(html) { 31 | element.innerHTML = html; 32 | html = element.textContent; 33 | element.textContent = ''; 34 | return html; 35 | } 36 | 37 | function onText(text, node) { 38 | return (node.parent.name == "a") ? 39 | text : text.replace(/(^|\s)https?:\/\/\S*/g, decodeEntities); 40 | } 41 | 42 | CKEDITOR.plugins.add('redmine', { 43 | afterInit: function(editor) { 44 | var processor = editor.dataProcessor; 45 | 46 | processor.toHtml = wrapConversion(processor.toHtml); 47 | processor.toDataFormat = wrapConversion(processor.toDataFormat); 48 | processor.htmlFilter.addRules({text: onText}, 11); 49 | processor.dataFilter.addRules({text: onText}, 11); 50 | } 51 | }); 52 | 53 | CKEDITOR.on('dialogDefinition', function(e) { 54 | if (e.data.name == 'table') { 55 | var width = e.data.definition.getContents('info').get('txtWidth'); 56 | width['default'] = "100%"; 57 | } 58 | }); 59 | })(); 60 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/theme/colorforth.css: -------------------------------------------------------------------------------- 1 | .cm-s-colorforth.CodeMirror { background: #000000; color: #f8f8f8; } 2 | .cm-s-colorforth .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; } 3 | .cm-s-colorforth .CodeMirror-guttermarker { color: #FFBD40; } 4 | .cm-s-colorforth .CodeMirror-guttermarker-subtle { color: #78846f; } 5 | .cm-s-colorforth .CodeMirror-linenumber { color: #bababa; } 6 | .cm-s-colorforth .CodeMirror-cursor { border-left: 1px solid white !important; } 7 | 8 | .cm-s-colorforth span.cm-comment { color: #ededed; } 9 | .cm-s-colorforth span.cm-def { color: #ff1c1c; font-weight:bold; } 10 | .cm-s-colorforth span.cm-keyword { color: #ffd900; } 11 | .cm-s-colorforth span.cm-builtin { color: #00d95a; } 12 | .cm-s-colorforth span.cm-variable { color: #73ff00; } 13 | .cm-s-colorforth span.cm-string { color: #007bff; } 14 | .cm-s-colorforth span.cm-number { color: #00c4ff; } 15 | .cm-s-colorforth span.cm-atom { color: #606060; } 16 | 17 | .cm-s-colorforth span.cm-variable-2 { color: #EEE; } 18 | .cm-s-colorforth span.cm-variable-3 { color: #DDD; } 19 | .cm-s-colorforth span.cm-property {} 20 | .cm-s-colorforth span.cm-operator {} 21 | 22 | .cm-s-colorforth span.cm-meta { color: yellow; } 23 | .cm-s-colorforth span.cm-qualifier { color: #FFF700; } 24 | .cm-s-colorforth span.cm-bracket { color: #cc7; } 25 | .cm-s-colorforth span.cm-tag { color: #FFBD40; } 26 | .cm-s-colorforth span.cm-attribute { color: #FFF700; } 27 | .cm-s-colorforth span.cm-error { color: #f00; } 28 | 29 | .cm-s-colorforth .CodeMirror-selected { background: #333d53 !important; } 30 | 31 | .cm-s-colorforth span.cm-compilation { background: rgba(255, 255, 255, 0.12); } 32 | 33 | .cm-s-colorforth .CodeMirror-activeline-background {background: #253540 !important;} 34 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/theme/blackboard.css: -------------------------------------------------------------------------------- 1 | /* Port of TextMate's Blackboard theme */ 2 | 3 | .cm-s-blackboard.CodeMirror { background: #0C1021; color: #F8F8F8; } 4 | .cm-s-blackboard .CodeMirror-selected { background: #253B76 !important; } 5 | .cm-s-blackboard.CodeMirror ::selection { background: rgba(37, 59, 118, .99); } 6 | .cm-s-blackboard.CodeMirror ::-moz-selection { background: rgba(37, 59, 118, .99); } 7 | .cm-s-blackboard .CodeMirror-gutters { background: #0C1021; border-right: 0; } 8 | .cm-s-blackboard .CodeMirror-guttermarker { color: #FBDE2D; } 9 | .cm-s-blackboard .CodeMirror-guttermarker-subtle { color: #888; } 10 | .cm-s-blackboard .CodeMirror-linenumber { color: #888; } 11 | .cm-s-blackboard .CodeMirror-cursor { border-left: 1px solid #A7A7A7 !important; } 12 | 13 | .cm-s-blackboard .cm-keyword { color: #FBDE2D; } 14 | .cm-s-blackboard .cm-atom { color: #D8FA3C; } 15 | .cm-s-blackboard .cm-number { color: #D8FA3C; } 16 | .cm-s-blackboard .cm-def { color: #8DA6CE; } 17 | .cm-s-blackboard .cm-variable { color: #FF6400; } 18 | .cm-s-blackboard .cm-operator { color: #FBDE2D;} 19 | .cm-s-blackboard .cm-comment { color: #AEAEAE; } 20 | .cm-s-blackboard .cm-string { color: #61CE3C; } 21 | .cm-s-blackboard .cm-string-2 { color: #61CE3C; } 22 | .cm-s-blackboard .cm-meta { color: #D8FA3C; } 23 | .cm-s-blackboard .cm-builtin { color: #8DA6CE; } 24 | .cm-s-blackboard .cm-tag { color: #8DA6CE; } 25 | .cm-s-blackboard .cm-attribute { color: #8DA6CE; } 26 | .cm-s-blackboard .cm-header { color: #FF6400; } 27 | .cm-s-blackboard .cm-hr { color: #AEAEAE; } 28 | .cm-s-blackboard .cm-link { color: #8DA6CE; } 29 | .cm-s-blackboard .cm-error { background: #9D1E15; color: #F8F8F8; } 30 | 31 | .cm-s-blackboard .CodeMirror-activeline-background {background: #3C3636 !important;} 32 | .cm-s-blackboard .CodeMirror-matchingbracket {outline:1px solid grey;color:white !important} -------------------------------------------------------------------------------- /assets/ckeditor/plugins/about/dialogs/about.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.md or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.dialog.add("about",function(a){a=a.lang.about;var b=CKEDITOR.getUrl(CKEDITOR.plugins.get("about").path+"dialogs/"+(CKEDITOR.env.hidpi?"hidpi/":"")+"logo_ckeditor.png");return{title:CKEDITOR.env.ie?a.dlgTitle:a.title,minWidth:390,minHeight:230,contents:[{id:"tab1",label:"",title:"",expand:!0,padding:0,elements:[{type:"html",html:'\x3cstyle type\x3d"text/css"\x3e.cke_about_container{color:#000 !important;padding:10px 10px 0;margin-top:5px}.cke_about_container p{margin: 0 0 10px;}.cke_about_container .cke_about_logo{height:81px;background-color:#fff;background-image:url('+ 6 | b+");"+(CKEDITOR.env.hidpi?"background-size:163px 58px;":"")+'background-position:center; background-repeat:no-repeat;margin-bottom:10px;}.cke_about_container a{cursor:pointer !important;color:#00B2CE !important;text-decoration:underline !important;}\x3c/style\x3e\x3cdiv class\x3d"cke_about_container"\x3e\x3cdiv class\x3d"cke_about_logo"\x3e\x3c/div\x3e\x3cp\x3eCKEditor '+CKEDITOR.version+" (revision "+CKEDITOR.revision+')\x3cbr\x3e\x3ca target\x3d"_blank" rel\x3d"noopener noreferrer" href\x3d"http://ckeditor.com/"\x3ehttp://ckeditor.com\x3c/a\x3e\x3c/p\x3e\x3cp\x3e'+ 7 | a.help.replace("$1",'\x3ca target\x3d"_blank" rel\x3d"noopener noreferrer" href\x3d"http://docs.ckeditor.com/user"\x3e'+a.userGuide+"\x3c/a\x3e")+"\x3c/p\x3e\x3cp\x3e"+a.moreInfo+'\x3cbr\x3e\x3ca target\x3d"_blank" rel\x3d"noopener noreferrer" href\x3d"http://ckeditor.com/about/license"\x3ehttp://ckeditor.com/about/license\x3c/a\x3e\x3c/p\x3e\x3cp\x3e'+a.copy.replace("$1",'\x3ca target\x3d"_blank" rel\x3d"noopener noreferrer" href\x3d"http://cksource.com/"\x3eCKSource\x3c/a\x3e - Frederico Knabben')+ 8 | "\x3c/p\x3e\x3c/div\x3e"}]}],buttons:[CKEDITOR.dialog.cancelButton]}}); -------------------------------------------------------------------------------- /assets/ckeditor/samples/old/sample.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. 3 | * For licensing, see LICENSE.md or http://ckeditor.com/license 4 | */ 5 | 6 | // Tool scripts for the sample pages. 7 | // This file can be ignored and is not required to make use of CKEditor. 8 | 9 | ( function() { 10 | CKEDITOR.on( 'instanceReady', function( ev ) { 11 | // Check for sample compliance. 12 | var editor = ev.editor, 13 | meta = CKEDITOR.document.$.getElementsByName( 'ckeditor-sample-required-plugins' ), 14 | requires = meta.length ? CKEDITOR.dom.element.get( meta[ 0 ] ).getAttribute( 'content' ).split( ',' ) : [], 15 | missing = [], 16 | i; 17 | 18 | if ( requires.length ) { 19 | for ( i = 0; i < requires.length; i++ ) { 20 | if ( !editor.plugins[ requires[ i ] ] ) 21 | missing.push( '' + requires[ i ] + '' ); 22 | } 23 | 24 | if ( missing.length ) { 25 | var warn = CKEDITOR.dom.element.createFromHtml( 26 | '
    ' + 27 | 'To fully experience this demo, the ' + missing.join( ', ' ) + ' plugin' + ( missing.length > 1 ? 's are' : ' is' ) + ' required.' + 28 | '
    ' 29 | ); 30 | warn.insertBefore( editor.container ); 31 | } 32 | } 33 | 34 | // Set icons. 35 | var doc = new CKEDITOR.dom.document( document ), 36 | icons = doc.find( '.button_icon' ); 37 | 38 | for ( i = 0; i < icons.count(); i++ ) { 39 | var icon = icons.getItem( i ), 40 | name = icon.getAttribute( 'data-icon' ), 41 | style = CKEDITOR.skin.getIconStyle( name, ( CKEDITOR.lang.dir == 'rtl' ) ); 42 | 43 | icon.addClass( 'cke_button_icon' ); 44 | icon.addClass( 'cke_button__' + name + '_icon' ); 45 | icon.setAttribute( 'style', style ); 46 | icon.setStyle( 'float', 'none' ); 47 | 48 | } 49 | } ); 50 | } )(); 51 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/theme/3024-day.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Name: 3024 day 4 | Author: Jan T. Sott (http://github.com/idleberg) 5 | 6 | CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) 7 | Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) 8 | 9 | */ 10 | 11 | .cm-s-3024-day.CodeMirror {background: #f7f7f7; color: #3a3432;} 12 | .cm-s-3024-day div.CodeMirror-selected {background: #d6d5d4 !important;} 13 | .cm-s-3024-day.CodeMirror ::selection { background: #d6d5d4; } 14 | .cm-s-3024-day.CodeMirror ::-moz-selection { background: #d9d9d9; } 15 | 16 | .cm-s-3024-day .CodeMirror-gutters {background: #f7f7f7; border-right: 0px;} 17 | .cm-s-3024-day .CodeMirror-guttermarker { color: #db2d20; } 18 | .cm-s-3024-day .CodeMirror-guttermarker-subtle { color: #807d7c; } 19 | .cm-s-3024-day .CodeMirror-linenumber {color: #807d7c;} 20 | 21 | .cm-s-3024-day .CodeMirror-cursor {border-left: 1px solid #5c5855 !important;} 22 | 23 | .cm-s-3024-day span.cm-comment {color: #cdab53;} 24 | .cm-s-3024-day span.cm-atom {color: #a16a94;} 25 | .cm-s-3024-day span.cm-number {color: #a16a94;} 26 | 27 | .cm-s-3024-day span.cm-property, .cm-s-3024-day span.cm-attribute {color: #01a252;} 28 | .cm-s-3024-day span.cm-keyword {color: #db2d20;} 29 | .cm-s-3024-day span.cm-string {color: #fded02;} 30 | 31 | .cm-s-3024-day span.cm-variable {color: #01a252;} 32 | .cm-s-3024-day span.cm-variable-2 {color: #01a0e4;} 33 | .cm-s-3024-day span.cm-def {color: #e8bbd0;} 34 | .cm-s-3024-day span.cm-bracket {color: #3a3432;} 35 | .cm-s-3024-day span.cm-tag {color: #db2d20;} 36 | .cm-s-3024-day span.cm-link {color: #a16a94;} 37 | .cm-s-3024-day span.cm-error {background: #db2d20; color: #5c5855;} 38 | 39 | .cm-s-3024-day .CodeMirror-activeline-background {background: #e8f2ff !important;} 40 | .cm-s-3024-day .CodeMirror-matchingbracket { text-decoration: underline; color: #a16a94 !important;} 41 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/theme/tomorrow-night-bright.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Name: Tomorrow Night - Bright 4 | Author: Chris Kempson 5 | 6 | Port done by Gerard Braad 7 | 8 | */ 9 | 10 | .cm-s-tomorrow-night-bright.CodeMirror {background: #000000; color: #eaeaea;} 11 | .cm-s-tomorrow-night-bright div.CodeMirror-selected {background: #424242 !important;} 12 | .cm-s-tomorrow-night-bright .CodeMirror-gutters {background: #000000; border-right: 0px;} 13 | .cm-s-tomorrow-night-bright .CodeMirror-guttermarker { color: #e78c45; } 14 | .cm-s-tomorrow-night-bright .CodeMirror-guttermarker-subtle { color: #777; } 15 | .cm-s-tomorrow-night-bright .CodeMirror-linenumber {color: #424242;} 16 | .cm-s-tomorrow-night-bright .CodeMirror-cursor {border-left: 1px solid #6A6A6A !important;} 17 | 18 | .cm-s-tomorrow-night-bright span.cm-comment {color: #d27b53;} 19 | .cm-s-tomorrow-night-bright span.cm-atom {color: #a16a94;} 20 | .cm-s-tomorrow-night-bright span.cm-number {color: #a16a94;} 21 | 22 | .cm-s-tomorrow-night-bright span.cm-property, .cm-s-tomorrow-night-bright span.cm-attribute {color: #99cc99;} 23 | .cm-s-tomorrow-night-bright span.cm-keyword {color: #d54e53;} 24 | .cm-s-tomorrow-night-bright span.cm-string {color: #e7c547;} 25 | 26 | .cm-s-tomorrow-night-bright span.cm-variable {color: #b9ca4a;} 27 | .cm-s-tomorrow-night-bright span.cm-variable-2 {color: #7aa6da;} 28 | .cm-s-tomorrow-night-bright span.cm-def {color: #e78c45;} 29 | .cm-s-tomorrow-night-bright span.cm-bracket {color: #eaeaea;} 30 | .cm-s-tomorrow-night-bright span.cm-tag {color: #d54e53;} 31 | .cm-s-tomorrow-night-bright span.cm-link {color: #a16a94;} 32 | .cm-s-tomorrow-night-bright span.cm-error {background: #d54e53; color: #6A6A6A;} 33 | 34 | .cm-s-tomorrow-night-bright .CodeMirror-activeline-background {background: #2a2a2a !important;} 35 | .cm-s-tomorrow-night-bright .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;} 36 | -------------------------------------------------------------------------------- /assets/ckeditor/plugins/templates/templates/default.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.md or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.addTemplates("default",{imagesPath:CKEDITOR.getUrl(CKEDITOR.plugins.getPath("templates")+"templates/images/"),templates:[{title:"Image and Title",image:"template1.gif",description:"One main image with a title and text that surround the image.",html:'\x3ch3\x3e\x3cimg src\x3d" " alt\x3d"" style\x3d"margin-right: 10px" height\x3d"100" width\x3d"100" align\x3d"left" /\x3eType the title here\x3c/h3\x3e\x3cp\x3eType the text here\x3c/p\x3e'},{title:"Strange Template",image:"template2.gif",description:"A template that defines two columns, each one with a title, and some text.", 6 | html:'\x3ctable cellspacing\x3d"0" cellpadding\x3d"0" style\x3d"width:100%" border\x3d"0"\x3e\x3ctr\x3e\x3ctd style\x3d"width:50%"\x3e\x3ch3\x3eTitle 1\x3c/h3\x3e\x3c/td\x3e\x3ctd\x3e\x3c/td\x3e\x3ctd style\x3d"width:50%"\x3e\x3ch3\x3eTitle 2\x3c/h3\x3e\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3eText 1\x3c/td\x3e\x3ctd\x3e\x3c/td\x3e\x3ctd\x3eText 2\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3cp\x3eMore text goes here.\x3c/p\x3e'},{title:"Text and Table",image:"template3.gif",description:"A title with some text and a table.", 7 | html:'\x3cdiv style\x3d"width: 80%"\x3e\x3ch3\x3eTitle goes here\x3c/h3\x3e\x3ctable style\x3d"width:150px;float: right" cellspacing\x3d"0" cellpadding\x3d"0" border\x3d"1"\x3e\x3ccaption style\x3d"border:solid 1px black"\x3e\x3cstrong\x3eTable title\x3c/strong\x3e\x3c/caption\x3e\x3ctr\x3e\x3ctd\x3e\x26nbsp;\x3c/td\x3e\x3ctd\x3e\x26nbsp;\x3c/td\x3e\x3ctd\x3e\x26nbsp;\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x26nbsp;\x3c/td\x3e\x3ctd\x3e\x26nbsp;\x3c/td\x3e\x3ctd\x3e\x26nbsp;\x3c/td\x3e\x3c/tr\x3e\x3ctr\x3e\x3ctd\x3e\x26nbsp;\x3c/td\x3e\x3ctd\x3e\x26nbsp;\x3c/td\x3e\x3ctd\x3e\x26nbsp;\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3cp\x3eType the text here\x3c/p\x3e\x3c/div\x3e'}]}); -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/js/codemirror.mode.bbcode.min.js: -------------------------------------------------------------------------------- 1 | CodeMirror.defineMode("bbcode",function(b){var e,a,g;e={bbCodeTags:"b i u s img quote code list table tr td size color url",bbCodeUnaryTags:"* :-) hr cut"};if(b.hasOwnProperty("bbCodeTags")){e.bbCodeTags=b.bbCodeTags}if(b.hasOwnProperty("bbCodeUnaryTags")){e.bbCodeUnaryTags=b.bbCodeUnaryTags}var f={cont:function(i,h){g=h;return i},escapeRegEx:function(h){return h.replace(/([\:\-\)\(\*\+\?\[\]])/g,"\\$1")}};var d={validIdentifier:/[a-zA-Z0-9_]/,stringChar:/['"]/,tags:new RegExp("(?:"+f.escapeRegEx(e.bbCodeTags).split(" ").join("|")+")"),unaryTags:new RegExp("(?:"+f.escapeRegEx(e.bbCodeUnaryTags).split(" ").join("|")+")")};var c={tokenizer:function(i,h){if(i.eatSpace()){return null}if(i.match("[",true)){h.tokenize=c.bbcode;return f.cont("tag","startTag")}i.next();return null},inAttribute:function(h){return function(k,i){var l=null;var j=null;while(!k.eol()){j=k.peek();if(k.next()==h&&l!=="\\"){i.tokenize=c.bbcode;break}l=j}return"string"}},bbcode:function(k,i){if(a=k.match("]",true)){i.tokenize=c.tokenizer;return f.cont("tag",null)}if(k.match("[",true)){return f.cont("tag","startTag")}var h=k.next();if(d.stringChar.test(h)){i.tokenize=c.inAttribute(h);return f.cont("string","string")}else{if(/\d/.test(h)){k.eatWhile(/\d/);return f.cont("number","number")}else{if(i.last=="whitespace"){k.eatWhile(d.validIdentifier);return f.cont("attribute","modifier")}if(i.last=="property"){k.eatWhile(d.validIdentifier);return f.cont("property",null)}else{if(/\s/.test(h)){g="whitespace";return null}}var j="";if(h!="/"){j+=h}var l=null;while(l=k.eat(d.validIdentifier)){j+=l}if(d.unaryTags.test(j)){return f.cont("atom","atom")}if(d.tags.test(j)){return f.cont("keyword","keyword")}if(/\s/.test(h)){return null}return f.cont("tag","tag")}}}};return{startState:function(){return{tokenize:c.tokenizer,mode:"bbcode",last:null}},token:function(j,i){var h=i.tokenize(j,i);i.last=g;return h},electricChars:""}});CodeMirror.defineMIME("text/x-bbcode","bbcode"); -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/js/codemirror.mode.bbcodemixed.min.js: -------------------------------------------------------------------------------- 1 | CodeMirror.defineMode("bbcode",function(b){var e,a,g;e={bbCodeTags:"b i u s img quote code list table tr td size color url",bbCodeUnaryTags:"* :-) hr cut"};if(b.hasOwnProperty("bbCodeTags")){e.bbCodeTags=b.bbCodeTags}if(b.hasOwnProperty("bbCodeUnaryTags")){e.bbCodeUnaryTags=b.bbCodeUnaryTags}var f={cont:function(i,h){g=h;return i},escapeRegEx:function(h){return h.replace(/([\:\-\)\(\*\+\?\[\]])/g,"\\$1")}};var d={validIdentifier:/[a-zA-Z0-9_]/,stringChar:/['"]/,tags:new RegExp("(?:"+f.escapeRegEx(e.bbCodeTags).split(" ").join("|")+")"),unaryTags:new RegExp("(?:"+f.escapeRegEx(e.bbCodeUnaryTags).split(" ").join("|")+")")};var c={tokenizer:function(i,h){if(i.eatSpace()){return null}if(i.match("[",true)){h.tokenize=c.bbcode;return f.cont("tag","startTag")}i.next();return null},inAttribute:function(h){return function(k,i){var l=null;var j=null;while(!k.eol()){j=k.peek();if(k.next()==h&&l!=="\\"){i.tokenize=c.bbcode;break}l=j}return"string"}},bbcode:function(k,i){if(a=k.match("]",true)){i.tokenize=c.tokenizer;return f.cont("tag",null)}if(k.match("[",true)){return f.cont("tag","startTag")}var h=k.next();if(d.stringChar.test(h)){i.tokenize=c.inAttribute(h);return f.cont("string","string")}else{if(/\d/.test(h)){k.eatWhile(/\d/);return f.cont("number","number")}else{if(i.last=="whitespace"){k.eatWhile(d.validIdentifier);return f.cont("attribute","modifier")}if(i.last=="property"){k.eatWhile(d.validIdentifier);return f.cont("property",null)}else{if(/\s/.test(h)){g="whitespace";return null}}var j="";if(h!="/"){j+=h}var l=null;while(l=k.eat(d.validIdentifier)){j+=l}if(d.unaryTags.test(j)){return f.cont("atom","atom")}if(d.tags.test(j)){return f.cont("keyword","keyword")}if(/\s/.test(h)){return null}return f.cont("tag","tag")}}}};return{startState:function(){return{tokenize:c.tokenizer,mode:"bbcode",last:null}},token:function(j,i){var h=i.tokenize(j,i);i.last=g;return h},electricChars:""}});CodeMirror.defineMIME("text/x-bbcode","bbcode"); -------------------------------------------------------------------------------- /assets/ckeditor/plugins/templates/dialogs/templates.css: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.md or http://ckeditor.com/license 4 | */ 5 | 6 | .cke_tpl_list 7 | { 8 | border: #dcdcdc 2px solid; 9 | background-color: #ffffff; 10 | overflow-y: auto; 11 | overflow-x: hidden; 12 | width: 100%; 13 | height: 220px; 14 | } 15 | 16 | .cke_tpl_item 17 | { 18 | margin: 5px; 19 | padding: 7px; 20 | border: #eeeeee 1px solid; 21 | *width: 88%; 22 | } 23 | 24 | .cke_tpl_preview 25 | { 26 | border-collapse: separate; 27 | text-indent:0; 28 | width: 100%; 29 | } 30 | .cke_tpl_preview td 31 | { 32 | padding: 2px; 33 | vertical-align: middle; 34 | } 35 | .cke_tpl_preview .cke_tpl_preview_img 36 | { 37 | width: 100px; 38 | } 39 | .cke_tpl_preview span 40 | { 41 | white-space: normal; 42 | } 43 | 44 | .cke_tpl_title 45 | { 46 | font-weight: bold; 47 | } 48 | 49 | .cke_tpl_list a:hover .cke_tpl_item, 50 | .cke_tpl_list a:focus .cke_tpl_item, 51 | .cke_tpl_list a:active .cke_tpl_item 52 | { 53 | border: #ff9933 1px solid; 54 | background-color: #fffacd; 55 | } 56 | 57 | .cke_tpl_list a:hover *, 58 | .cke_tpl_list a:focus *, 59 | .cke_tpl_list a:active * 60 | { 61 | cursor: pointer; 62 | } 63 | 64 | /* IE Quirks contextual selectors children will not get :hover transition until 65 | the hover style of the link itself contains certain CSS declarations. */ 66 | .cke_browser_quirks .cke_tpl_list a:active, 67 | .cke_browser_quirks .cke_tpl_list a:hover, 68 | .cke_browser_quirks .cke_tpl_list a:focus 69 | { 70 | background-position: 0 0; 71 | } 72 | 73 | .cke_hc .cke_tpl_list a:hover .cke_tpl_item, 74 | .cke_hc .cke_tpl_list a:focus .cke_tpl_item, 75 | .cke_hc .cke_tpl_list a:active .cke_tpl_item 76 | { 77 | border-width: 3px; 78 | } 79 | 80 | .cke_tpl_empty, .cke_tpl_loading 81 | { 82 | text-align: center; 83 | padding: 5px; 84 | } 85 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/theme/paraiso-dark.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Name: Paraíso (Dark) 4 | Author: Jan T. Sott 5 | 6 | Color scheme by Jan T. Sott (https://github.com/idleberg/Paraiso-CodeMirror) 7 | Inspired by the art of Rubens LP (http://www.rubenslp.com.br) 8 | 9 | */ 10 | 11 | .cm-s-paraiso-dark.CodeMirror {background: #2f1e2e; color: #b9b6b0;} 12 | .cm-s-paraiso-dark div.CodeMirror-selected {background: #41323f !important;} 13 | .cm-s-paraiso-dark.CodeMirror ::selection { background: rgba(65, 50, 63, .99); } 14 | .cm-s-paraiso-dark.CodeMirror ::-moz-selection { background: rgba(65, 50, 63, .99); } 15 | .cm-s-paraiso-dark .CodeMirror-gutters {background: #2f1e2e; border-right: 0px;} 16 | .cm-s-paraiso-dark .CodeMirror-guttermarker { color: #ef6155; } 17 | .cm-s-paraiso-dark .CodeMirror-guttermarker-subtle { color: #776e71; } 18 | .cm-s-paraiso-dark .CodeMirror-linenumber {color: #776e71;} 19 | .cm-s-paraiso-dark .CodeMirror-cursor {border-left: 1px solid #8d8687 !important;} 20 | 21 | .cm-s-paraiso-dark span.cm-comment {color: #e96ba8;} 22 | .cm-s-paraiso-dark span.cm-atom {color: #815ba4;} 23 | .cm-s-paraiso-dark span.cm-number {color: #815ba4;} 24 | 25 | .cm-s-paraiso-dark span.cm-property, .cm-s-paraiso-dark span.cm-attribute {color: #48b685;} 26 | .cm-s-paraiso-dark span.cm-keyword {color: #ef6155;} 27 | .cm-s-paraiso-dark span.cm-string {color: #fec418;} 28 | 29 | .cm-s-paraiso-dark span.cm-variable {color: #48b685;} 30 | .cm-s-paraiso-dark span.cm-variable-2 {color: #06b6ef;} 31 | .cm-s-paraiso-dark span.cm-def {color: #f99b15;} 32 | .cm-s-paraiso-dark span.cm-bracket {color: #b9b6b0;} 33 | .cm-s-paraiso-dark span.cm-tag {color: #ef6155;} 34 | .cm-s-paraiso-dark span.cm-link {color: #815ba4;} 35 | .cm-s-paraiso-dark span.cm-error {background: #ef6155; color: #8d8687;} 36 | 37 | .cm-s-paraiso-dark .CodeMirror-activeline-background {background: #4D344A !important;} 38 | .cm-s-paraiso-dark .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;} 39 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/theme/paraiso-light.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Name: Paraíso (Light) 4 | Author: Jan T. Sott 5 | 6 | Color scheme by Jan T. Sott (https://github.com/idleberg/Paraiso-CodeMirror) 7 | Inspired by the art of Rubens LP (http://www.rubenslp.com.br) 8 | 9 | */ 10 | 11 | .cm-s-paraiso-light.CodeMirror {background: #e7e9db; color: #41323f;} 12 | .cm-s-paraiso-light div.CodeMirror-selected {background: #b9b6b0 !important;} 13 | .cm-s-paraiso-light.CodeMirror ::selection { background: #b9b6b0; } 14 | .cm-s-paraiso-light.CodeMirror ::-moz-selection { background: #b9b6b0; } 15 | .cm-s-paraiso-light .CodeMirror-gutters {background: #e7e9db; border-right: 0px;} 16 | .cm-s-paraiso-light .CodeMirror-guttermarker { color: black; } 17 | .cm-s-paraiso-light .CodeMirror-guttermarker-subtle { color: #8d8687; } 18 | .cm-s-paraiso-light .CodeMirror-linenumber {color: #8d8687;} 19 | .cm-s-paraiso-light .CodeMirror-cursor {border-left: 1px solid #776e71 !important;} 20 | 21 | .cm-s-paraiso-light span.cm-comment {color: #e96ba8;} 22 | .cm-s-paraiso-light span.cm-atom {color: #815ba4;} 23 | .cm-s-paraiso-light span.cm-number {color: #815ba4;} 24 | 25 | .cm-s-paraiso-light span.cm-property, .cm-s-paraiso-light span.cm-attribute {color: #48b685;} 26 | .cm-s-paraiso-light span.cm-keyword {color: #ef6155;} 27 | .cm-s-paraiso-light span.cm-string {color: #fec418;} 28 | 29 | .cm-s-paraiso-light span.cm-variable {color: #48b685;} 30 | .cm-s-paraiso-light span.cm-variable-2 {color: #06b6ef;} 31 | .cm-s-paraiso-light span.cm-def {color: #f99b15;} 32 | .cm-s-paraiso-light span.cm-bracket {color: #41323f;} 33 | .cm-s-paraiso-light span.cm-tag {color: #ef6155;} 34 | .cm-s-paraiso-light span.cm-link {color: #815ba4;} 35 | .cm-s-paraiso-light span.cm-error {background: #ef6155; color: #776e71;} 36 | 37 | .cm-s-paraiso-light .CodeMirror-activeline-background {background: #CFD1C4 !important;} 38 | .cm-s-paraiso-light .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;} 39 | -------------------------------------------------------------------------------- /assets/ckeditor/plugins/wsc/dialogs/ciframe.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 64 | 65 |

    66 | 67 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/theme/3024-night.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Name: 3024 night 4 | Author: Jan T. Sott (http://github.com/idleberg) 5 | 6 | CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror) 7 | Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) 8 | 9 | */ 10 | 11 | .cm-s-3024-night.CodeMirror {background: #090300; color: #d6d5d4;} 12 | .cm-s-3024-night div.CodeMirror-selected {background: #3a3432 !important;} 13 | .cm-s-3024-night.CodeMirror ::selection { background: rgba(58, 52, 50, .99); } 14 | .cm-s-3024-night.CodeMirror ::-moz-selection { background: rgba(58, 52, 50, .99); } 15 | .cm-s-3024-night .CodeMirror-gutters {background: #090300; border-right: 0px;} 16 | .cm-s-3024-night .CodeMirror-guttermarker { color: #db2d20; } 17 | .cm-s-3024-night .CodeMirror-guttermarker-subtle { color: #5c5855; } 18 | .cm-s-3024-night .CodeMirror-linenumber {color: #5c5855;} 19 | 20 | .cm-s-3024-night .CodeMirror-cursor {border-left: 1px solid #807d7c !important;} 21 | 22 | .cm-s-3024-night span.cm-comment {color: #cdab53;} 23 | .cm-s-3024-night span.cm-atom {color: #a16a94;} 24 | .cm-s-3024-night span.cm-number {color: #a16a94;} 25 | 26 | .cm-s-3024-night span.cm-property, .cm-s-3024-night span.cm-attribute {color: #01a252;} 27 | .cm-s-3024-night span.cm-keyword {color: #db2d20;} 28 | .cm-s-3024-night span.cm-string {color: #fded02;} 29 | 30 | .cm-s-3024-night span.cm-variable {color: #01a252;} 31 | .cm-s-3024-night span.cm-variable-2 {color: #01a0e4;} 32 | .cm-s-3024-night span.cm-def {color: #e8bbd0;} 33 | .cm-s-3024-night span.cm-bracket {color: #d6d5d4;} 34 | .cm-s-3024-night span.cm-tag {color: #db2d20;} 35 | .cm-s-3024-night span.cm-link {color: #a16a94;} 36 | .cm-s-3024-night span.cm-error {background: #db2d20; color: #807d7c;} 37 | 38 | .cm-s-3024-night .CodeMirror-activeline-background {background: #2F2F2F !important;} 39 | .cm-s-3024-night .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;} 40 | -------------------------------------------------------------------------------- /assets/ckeditor/samples/toolbarconfigurator/css/fontello.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'fontello'; 3 | src: url('../font/fontello.eot?89024372'); 4 | src: url('../font/fontello.eot?89024372#iefix') format('embedded-opentype'), 5 | url('../font/fontello.woff?89024372') format('woff'), 6 | url('../font/fontello.ttf?89024372') format('truetype'), 7 | url('../font/fontello.svg?89024372#fontello') format('svg'); 8 | font-weight: normal; 9 | font-style: normal; 10 | } 11 | /* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */ 12 | /* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */ 13 | /* 14 | @media screen and (-webkit-min-device-pixel-ratio:0) { 15 | @font-face { 16 | font-family: 'fontello'; 17 | src: url('../font/fontello.svg?89024372#fontello') format('svg'); 18 | } 19 | } 20 | */ 21 | 22 | [class^="icon-"]:before, [class*=" icon-"]:before { 23 | font-family: "fontello"; 24 | font-style: normal; 25 | font-weight: normal; 26 | speak: none; 27 | 28 | display: inline-block; 29 | text-decoration: inherit; 30 | width: 1em; 31 | margin-right: .2em; 32 | text-align: center; 33 | /* opacity: .8; */ 34 | 35 | /* For safety - reset parent styles, that can break glyph codes*/ 36 | font-variant: normal; 37 | text-transform: none; 38 | 39 | /* fix buttons height, for twitter bootstrap */ 40 | line-height: 1em; 41 | 42 | /* Animation center compensation - margins should be symmetric */ 43 | /* remove if not needed */ 44 | margin-left: .2em; 45 | 46 | /* you can be more comfortable with increased icons size */ 47 | /* font-size: 120%; */ 48 | 49 | /* Uncomment for 3D effect */ 50 | /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */ 51 | } 52 | 53 | .icon-trash:before { content: '\e802'; } /* '' */ 54 | .icon-down-big:before { content: '\e800'; } /* '' */ 55 | .icon-up-big:before { content: '\e801'; } /* '' */ 56 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/theme/base16-dark.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Name: Base16 Default Dark 4 | Author: Chris Kempson (http://chriskempson.com) 5 | 6 | CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-chrome-devtools) 7 | Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) 8 | 9 | */ 10 | 11 | .cm-s-base16-dark.CodeMirror {background: #151515; color: #e0e0e0;} 12 | .cm-s-base16-dark div.CodeMirror-selected {background: #303030 !important;} 13 | .cm-s-base16-dark.CodeMirror ::selection { background: rgba(48, 48, 48, .99); } 14 | .cm-s-base16-dark.CodeMirror ::-moz-selection { background: rgba(48, 48, 48, .99); } 15 | .cm-s-base16-dark .CodeMirror-gutters {background: #151515; border-right: 0px;} 16 | .cm-s-base16-dark .CodeMirror-guttermarker { color: #ac4142; } 17 | .cm-s-base16-dark .CodeMirror-guttermarker-subtle { color: #505050; } 18 | .cm-s-base16-dark .CodeMirror-linenumber {color: #505050;} 19 | .cm-s-base16-dark .CodeMirror-cursor {border-left: 1px solid #b0b0b0 !important;} 20 | 21 | .cm-s-base16-dark span.cm-comment {color: #8f5536;} 22 | .cm-s-base16-dark span.cm-atom {color: #aa759f;} 23 | .cm-s-base16-dark span.cm-number {color: #aa759f;} 24 | 25 | .cm-s-base16-dark span.cm-property, .cm-s-base16-dark span.cm-attribute {color: #90a959;} 26 | .cm-s-base16-dark span.cm-keyword {color: #ac4142;} 27 | .cm-s-base16-dark span.cm-string {color: #f4bf75;} 28 | 29 | .cm-s-base16-dark span.cm-variable {color: #90a959;} 30 | .cm-s-base16-dark span.cm-variable-2 {color: #6a9fb5;} 31 | .cm-s-base16-dark span.cm-def {color: #d28445;} 32 | .cm-s-base16-dark span.cm-bracket {color: #e0e0e0;} 33 | .cm-s-base16-dark span.cm-tag {color: #ac4142;} 34 | .cm-s-base16-dark span.cm-link {color: #aa759f;} 35 | .cm-s-base16-dark span.cm-error {background: #ac4142; color: #b0b0b0;} 36 | 37 | .cm-s-base16-dark .CodeMirror-activeline-background {background: #202020 !important;} 38 | .cm-s-base16-dark .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;} 39 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/theme/base16-light.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Name: Base16 Default Light 4 | Author: Chris Kempson (http://chriskempson.com) 5 | 6 | CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-chrome-devtools) 7 | Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) 8 | 9 | */ 10 | 11 | .cm-s-base16-light.CodeMirror {background: #f5f5f5; color: #202020;} 12 | .cm-s-base16-light div.CodeMirror-selected {background: #e0e0e0 !important;} 13 | .cm-s-base16-light.CodeMirror ::selection { background: #e0e0e0; } 14 | .cm-s-base16-light.CodeMirror ::-moz-selection { background: #e0e0e0; } 15 | .cm-s-base16-light .CodeMirror-gutters {background: #f5f5f5; border-right: 0px;} 16 | .cm-s-base16-light .CodeMirror-guttermarker { color: #ac4142; } 17 | .cm-s-base16-light .CodeMirror-guttermarker-subtle { color: #b0b0b0; } 18 | .cm-s-base16-light .CodeMirror-linenumber {color: #b0b0b0;} 19 | .cm-s-base16-light .CodeMirror-cursor {border-left: 1px solid #505050 !important;} 20 | 21 | .cm-s-base16-light span.cm-comment {color: #8f5536;} 22 | .cm-s-base16-light span.cm-atom {color: #aa759f;} 23 | .cm-s-base16-light span.cm-number {color: #aa759f;} 24 | 25 | .cm-s-base16-light span.cm-property, .cm-s-base16-light span.cm-attribute {color: #90a959;} 26 | .cm-s-base16-light span.cm-keyword {color: #ac4142;} 27 | .cm-s-base16-light span.cm-string {color: #f4bf75;} 28 | 29 | .cm-s-base16-light span.cm-variable {color: #90a959;} 30 | .cm-s-base16-light span.cm-variable-2 {color: #6a9fb5;} 31 | .cm-s-base16-light span.cm-def {color: #d28445;} 32 | .cm-s-base16-light span.cm-bracket {color: #202020;} 33 | .cm-s-base16-light span.cm-tag {color: #ac4142;} 34 | .cm-s-base16-light span.cm-link {color: #aa759f;} 35 | .cm-s-base16-light span.cm-error {background: #ac4142; color: #505050;} 36 | 37 | .cm-s-base16-light .CodeMirror-activeline-background {background: #DDDCDC !important;} 38 | .cm-s-base16-light .CodeMirror-matchingbracket { text-decoration: underline; color: white !important;} 39 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/theme/mbo.css: -------------------------------------------------------------------------------- 1 | /****************************************************************/ 2 | /* Based on mbonaci's Brackets mbo theme */ 3 | /* https://github.com/mbonaci/global/blob/master/Mbo.tmTheme */ 4 | /* Create your own: http://tmtheme-editor.herokuapp.com */ 5 | /****************************************************************/ 6 | 7 | .cm-s-mbo.CodeMirror {background: #2c2c2c; color: #ffffec;} 8 | .cm-s-mbo div.CodeMirror-selected {background: #716C62 !important;} 9 | .cm-s-mbo.CodeMirror ::selection { background: rgba(113, 108, 98, .99); } 10 | .cm-s-mbo.CodeMirror ::-moz-selection { background: rgba(113, 108, 98, .99); } 11 | .cm-s-mbo .CodeMirror-gutters {background: #4e4e4e; border-right: 0px;} 12 | .cm-s-mbo .CodeMirror-guttermarker { color: white; } 13 | .cm-s-mbo .CodeMirror-guttermarker-subtle { color: grey; } 14 | .cm-s-mbo .CodeMirror-linenumber {color: #dadada;} 15 | .cm-s-mbo .CodeMirror-cursor {border-left: 1px solid #ffffec !important;} 16 | 17 | .cm-s-mbo span.cm-comment {color: #95958a;} 18 | .cm-s-mbo span.cm-atom {color: #00a8c6;} 19 | .cm-s-mbo span.cm-number {color: #00a8c6;} 20 | 21 | .cm-s-mbo span.cm-property, .cm-s-mbo span.cm-attribute {color: #9ddfe9;} 22 | .cm-s-mbo span.cm-keyword {color: #ffb928;} 23 | .cm-s-mbo span.cm-string {color: #ffcf6c;} 24 | .cm-s-mbo span.cm-string.cm-property {color: #ffffec;} 25 | 26 | .cm-s-mbo span.cm-variable {color: #ffffec;} 27 | .cm-s-mbo span.cm-variable-2 {color: #00a8c6;} 28 | .cm-s-mbo span.cm-def {color: #ffffec;} 29 | .cm-s-mbo span.cm-bracket {color: #fffffc; font-weight: bold;} 30 | .cm-s-mbo span.cm-tag {color: #9ddfe9;} 31 | .cm-s-mbo span.cm-link {color: #f54b07;} 32 | .cm-s-mbo span.cm-error {border-bottom: #636363; color: #ffffec;} 33 | .cm-s-mbo span.cm-qualifier {color: #ffffec;} 34 | 35 | .cm-s-mbo .CodeMirror-activeline-background {background: #494b41 !important;} 36 | .cm-s-mbo .CodeMirror-matchingbracket {color: #222 !important;} 37 | .cm-s-mbo .CodeMirror-matchingtag {background: rgba(255, 255, 255, .37);} 38 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/theme/vibrant-ink.css: -------------------------------------------------------------------------------- 1 | /* Taken from the popular Visual Studio Vibrant Ink Schema */ 2 | 3 | .cm-s-vibrant-ink.CodeMirror { background: black; color: white; } 4 | .cm-s-vibrant-ink .CodeMirror-selected { background: #35493c !important; } 5 | .cm-s-vibrant-ink.CodeMirror ::selection { background: rgba(53, 73, 60, 0.99); } 6 | .cm-s-vibrant-ink.CodeMirror ::-moz-selection { background: rgba(53, 73, 60, 0.99); } 7 | 8 | .cm-s-vibrant-ink .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; } 9 | .cm-s-vibrant-ink .CodeMirror-guttermarker { color: white; } 10 | .cm-s-vibrant-ink .CodeMirror-guttermarker-subtle { color: #d0d0d0; } 11 | .cm-s-vibrant-ink .CodeMirror-linenumber { color: #d0d0d0; } 12 | .cm-s-vibrant-ink .CodeMirror-cursor { border-left: 1px solid white !important; } 13 | 14 | .cm-s-vibrant-ink .cm-keyword { color: #CC7832; } 15 | .cm-s-vibrant-ink .cm-atom { color: #FC0; } 16 | .cm-s-vibrant-ink .cm-number { color: #FFEE98; } 17 | .cm-s-vibrant-ink .cm-def { color: #8DA6CE; } 18 | .cm-s-vibrant-ink span.cm-variable-2, .cm-s-vibrant span.cm-tag { color: #FFC66D } 19 | .cm-s-vibrant-ink span.cm-variable-3, .cm-s-vibrant span.cm-def { color: #FFC66D } 20 | .cm-s-vibrant-ink .cm-operator { color: #888; } 21 | .cm-s-vibrant-ink .cm-comment { color: gray; font-weight: bold; } 22 | .cm-s-vibrant-ink .cm-string { color: #A5C25C } 23 | .cm-s-vibrant-ink .cm-string-2 { color: red } 24 | .cm-s-vibrant-ink .cm-meta { color: #D8FA3C; } 25 | .cm-s-vibrant-ink .cm-builtin { color: #8DA6CE; } 26 | .cm-s-vibrant-ink .cm-tag { color: #8DA6CE; } 27 | .cm-s-vibrant-ink .cm-attribute { color: #8DA6CE; } 28 | .cm-s-vibrant-ink .cm-header { color: #FF6400; } 29 | .cm-s-vibrant-ink .cm-hr { color: #AEAEAE; } 30 | .cm-s-vibrant-ink .cm-link { color: blue; } 31 | .cm-s-vibrant-ink .cm-error { border-bottom: 1px solid red; } 32 | 33 | .cm-s-vibrant-ink .CodeMirror-activeline-background {background: #27282E !important;} 34 | .cm-s-vibrant-ink .CodeMirror-matchingbracket {outline:1px solid grey; color:white !important;} 35 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/theme/twilight.css: -------------------------------------------------------------------------------- 1 | .cm-s-twilight.CodeMirror { background: #141414; color: #f7f7f7; } /**/ 2 | .cm-s-twilight .CodeMirror-selected { background: #323232 !important; } /**/ 3 | .cm-s-twilight.CodeMirror ::selection { background: rgba(50, 50, 50, 0.99); } 4 | .cm-s-twilight.CodeMirror ::-moz-selection { background: rgba(50, 50, 50, 0.99); } 5 | 6 | .cm-s-twilight .CodeMirror-gutters { background: #222; border-right: 1px solid #aaa; } 7 | .cm-s-twilight .CodeMirror-guttermarker { color: white; } 8 | .cm-s-twilight .CodeMirror-guttermarker-subtle { color: #aaa; } 9 | .cm-s-twilight .CodeMirror-linenumber { color: #aaa; } 10 | .cm-s-twilight .CodeMirror-cursor { border-left: 1px solid white !important; } 11 | 12 | .cm-s-twilight .cm-keyword { color: #f9ee98; } /**/ 13 | .cm-s-twilight .cm-atom { color: #FC0; } 14 | .cm-s-twilight .cm-number { color: #ca7841; } /**/ 15 | .cm-s-twilight .cm-def { color: #8DA6CE; } 16 | .cm-s-twilight span.cm-variable-2, .cm-s-twilight span.cm-tag { color: #607392; } /**/ 17 | .cm-s-twilight span.cm-variable-3, .cm-s-twilight span.cm-def { color: #607392; } /**/ 18 | .cm-s-twilight .cm-operator { color: #cda869; } /**/ 19 | .cm-s-twilight .cm-comment { color:#777; font-style:italic; font-weight:normal; } /**/ 20 | .cm-s-twilight .cm-string { color:#8f9d6a; font-style:italic; } /**/ 21 | .cm-s-twilight .cm-string-2 { color:#bd6b18 } /*?*/ 22 | .cm-s-twilight .cm-meta { background-color:#141414; color:#f7f7f7; } /*?*/ 23 | .cm-s-twilight .cm-builtin { color: #cda869; } /*?*/ 24 | .cm-s-twilight .cm-tag { color: #997643; } /**/ 25 | .cm-s-twilight .cm-attribute { color: #d6bb6d; } /*?*/ 26 | .cm-s-twilight .cm-header { color: #FF6400; } 27 | .cm-s-twilight .cm-hr { color: #AEAEAE; } 28 | .cm-s-twilight .cm-link { color:#ad9361; font-style:italic; text-decoration:none; } /**/ 29 | .cm-s-twilight .cm-error { border-bottom: 1px solid red; } 30 | 31 | .cm-s-twilight .CodeMirror-activeline-background {background: #27282E !important;} 32 | .cm-s-twilight .CodeMirror-matchingbracket {outline:1px solid grey; color:white !important;} 33 | -------------------------------------------------------------------------------- /assets/ckeditor/plugins/forms/dialogs/form.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.md or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.dialog.add("form",function(a){var d={action:1,id:1,method:1,enctype:1,target:1};return{title:a.lang.forms.form.title,minWidth:350,minHeight:200,onShow:function(){delete this.form;var b=this.getParentEditor().elementPath().contains("form",1);b&&(this.form=b,this.setupContent(b))},onOk:function(){var b,a=this.form,c=!a;c&&(b=this.getParentEditor(),a=b.document.createElement("form"),a.appendBogus());c&&b.insertElement(a);this.commitContent(a)},onLoad:function(){function a(b){this.setValue(b.getAttribute(this.id)|| 6 | "")}function e(a){this.getValue()?a.setAttribute(this.id,this.getValue()):a.removeAttribute(this.id)}this.foreach(function(c){d[c.id]&&(c.setup=a,c.commit=e)})},contents:[{id:"info",label:a.lang.forms.form.title,title:a.lang.forms.form.title,elements:[{id:"txtName",bidi:!0,type:"text",label:a.lang.common.name,"default":"",accessKey:"N",setup:function(a){this.setValue(a.data("cke-saved-name")||a.getAttribute("name")||"")},commit:function(a){this.getValue()?a.data("cke-saved-name",this.getValue()): 7 | (a.data("cke-saved-name",!1),a.removeAttribute("name"))}},{id:"action",type:"text",label:a.lang.forms.form.action,"default":"",accessKey:"T"},{type:"hbox",widths:["45%","55%"],children:[{id:"id",type:"text",label:a.lang.common.id,"default":"",accessKey:"I"},{id:"enctype",type:"select",label:a.lang.forms.form.encoding,style:"width:100%",accessKey:"E","default":"",items:[[""],["text/plain"],["multipart/form-data"],["application/x-www-form-urlencoded"]]}]},{type:"hbox",widths:["45%","55%"],children:[{id:"target", 8 | type:"select",label:a.lang.common.target,style:"width:100%",accessKey:"M","default":"",items:[[a.lang.common.notSet,""],[a.lang.common.targetNew,"_blank"],[a.lang.common.targetTop,"_top"],[a.lang.common.targetSelf,"_self"],[a.lang.common.targetParent,"_parent"]]},{id:"method",type:"select",label:a.lang.forms.form.method,accessKey:"M","default":"GET",items:[["GET","get"],["POST","post"]]}]}]}]}}); -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/theme/midnight.css: -------------------------------------------------------------------------------- 1 | /* Based on the theme at http://bonsaiden.github.com/JavaScript-Garden */ 2 | 3 | /**/ 4 | .cm-s-midnight span.CodeMirror-matchhighlight { background: #494949; } 5 | .cm-s-midnight.CodeMirror-focused span.CodeMirror-matchhighlight { background: #314D67 !important; } 6 | 7 | /**/ 8 | .cm-s-midnight .CodeMirror-activeline-background {background: #253540 !important;} 9 | 10 | .cm-s-midnight.CodeMirror { 11 | background: #0F192A; 12 | color: #D1EDFF; 13 | } 14 | 15 | .cm-s-midnight.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;} 16 | 17 | .cm-s-midnight div.CodeMirror-selected {background: #314D67 !important;} 18 | .cm-s-midnight.CodeMirror ::selection { background: rgba(49, 77, 103, .99); } 19 | .cm-s-midnight.CodeMirror ::-moz-selection { background: rgba(49, 77, 103, .99); } 20 | .cm-s-midnight .CodeMirror-gutters {background: #0F192A; border-right: 1px solid;} 21 | .cm-s-midnight .CodeMirror-guttermarker { color: white; } 22 | .cm-s-midnight .CodeMirror-guttermarker-subtle { color: #d0d0d0; } 23 | .cm-s-midnight .CodeMirror-linenumber {color: #D0D0D0;} 24 | .cm-s-midnight .CodeMirror-cursor { 25 | border-left: 1px solid #F8F8F0 !important; 26 | } 27 | 28 | .cm-s-midnight span.cm-comment {color: #428BDD;} 29 | .cm-s-midnight span.cm-atom {color: #AE81FF;} 30 | .cm-s-midnight span.cm-number {color: #D1EDFF;} 31 | 32 | .cm-s-midnight span.cm-property, .cm-s-midnight span.cm-attribute {color: #A6E22E;} 33 | .cm-s-midnight span.cm-keyword {color: #E83737;} 34 | .cm-s-midnight span.cm-string {color: #1DC116;} 35 | 36 | .cm-s-midnight span.cm-variable {color: #FFAA3E;} 37 | .cm-s-midnight span.cm-variable-2 {color: #FFAA3E;} 38 | .cm-s-midnight span.cm-def {color: #4DD;} 39 | .cm-s-midnight span.cm-bracket {color: #D1EDFF;} 40 | .cm-s-midnight span.cm-tag {color: #449;} 41 | .cm-s-midnight span.cm-link {color: #AE81FF;} 42 | .cm-s-midnight span.cm-error {background: #F92672; color: #F8F8F0;} 43 | 44 | .cm-s-midnight .CodeMirror-matchingbracket { 45 | text-decoration: underline; 46 | color: white !important; 47 | } 48 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/theme/zenburn.css: -------------------------------------------------------------------------------- 1 | /** 2 | * " 3 | * Using Zenburn color palette from the Emacs Zenburn Theme 4 | * https://github.com/bbatsov/zenburn-emacs/blob/master/zenburn-theme.el 5 | * 6 | * Also using parts of https://github.com/xavi/coderay-lighttable-theme 7 | * " 8 | * From: https://github.com/wisenomad/zenburn-lighttable-theme/blob/master/zenburn.css 9 | */ 10 | 11 | .cm-s-zenburn .CodeMirror-gutters { background: #3f3f3f !important; } 12 | .cm-s-zenburn .CodeMirror-foldgutter-open, .CodeMirror-foldgutter-folded { color: #999; } 13 | .cm-s-zenburn .CodeMirror-cursor { border-left: 1px solid white !important; } 14 | .cm-s-zenburn { background-color: #3f3f3f; color: #dcdccc; } 15 | .cm-s-zenburn span.cm-builtin { color: #dcdccc; font-weight: bold; } 16 | .cm-s-zenburn span.cm-comment { color: #7f9f7f; } 17 | .cm-s-zenburn span.cm-keyword { color: #f0dfaf; font-weight: bold; } 18 | .cm-s-zenburn span.cm-atom { color: #bfebbf; } 19 | .cm-s-zenburn span.cm-def { color: #dcdccc; } 20 | .cm-s-zenburn span.cm-variable { color: #dfaf8f; } 21 | .cm-s-zenburn span.cm-variable-2 { color: #dcdccc; } 22 | .cm-s-zenburn span.cm-string { color: #cc9393; } 23 | .cm-s-zenburn span.cm-string-2 { color: #cc9393; } 24 | .cm-s-zenburn span.cm-number { color: #dcdccc; } 25 | .cm-s-zenburn span.cm-tag { color: #93e0e3; } 26 | .cm-s-zenburn span.cm-property { color: #dfaf8f; } 27 | .cm-s-zenburn span.cm-attribute { color: #dfaf8f; } 28 | .cm-s-zenburn span.cm-qualifier { color: #7cb8bb; } 29 | .cm-s-zenburn span.cm-meta { color: #f0dfaf; } 30 | .cm-s-zenburn span.cm-header { color: #f0efd0; } 31 | .cm-s-zenburn span.cm-operator { color: #f0efd0; } 32 | .cm-s-zenburn span.CodeMirror-matchingbracket { box-sizing: border-box; background: transparent; border-bottom: 1px solid; } 33 | .cm-s-zenburn span.CodeMirror-nonmatchingbracket { border-bottom: 1px solid; background: none; } 34 | .cm-s-zenburn .CodeMirror-activeline { background: #000000; } 35 | .cm-s-zenburn .CodeMirror-activeline-background { background: #000000; } 36 | .cm-s-zenburn .CodeMirror-selected { background: #545454; } 37 | .cm-s-zenburn .CodeMirror-focused .CodeMirror-selected { background: #4f4f4f; } 38 | -------------------------------------------------------------------------------- /assets/ckeditor/plugins/wsc/dialogs/tmpFrameset.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/plugins/codemirror/theme/erlang-dark.css: -------------------------------------------------------------------------------- 1 | .cm-s-erlang-dark.CodeMirror { background: #002240; color: white; } 2 | .cm-s-erlang-dark div.CodeMirror-selected { background: #b36539 !important; } 3 | .cm-s-erlang-dark.CodeMirror ::selection { background: rgba(179, 101, 57, .99); } 4 | .cm-s-erlang-dark.CodeMirror ::-moz-selection { background: rgba(179, 101, 57, .99); } 5 | .cm-s-erlang-dark .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; } 6 | .cm-s-erlang-dark .CodeMirror-guttermarker { color: white; } 7 | .cm-s-erlang-dark .CodeMirror-guttermarker-subtle { color: #d0d0d0; } 8 | .cm-s-erlang-dark .CodeMirror-linenumber { color: #d0d0d0; } 9 | .cm-s-erlang-dark .CodeMirror-cursor { border-left: 1px solid white !important; } 10 | 11 | .cm-s-erlang-dark span.cm-quote { color: #ccc; } 12 | .cm-s-erlang-dark span.cm-atom { color: #f133f1; } 13 | .cm-s-erlang-dark span.cm-attribute { color: #ff80e1; } 14 | .cm-s-erlang-dark span.cm-bracket { color: #ff9d00; } 15 | .cm-s-erlang-dark span.cm-builtin { color: #eaa; } 16 | .cm-s-erlang-dark span.cm-comment { color: #77f; } 17 | .cm-s-erlang-dark span.cm-def { color: #e7a; } 18 | .cm-s-erlang-dark span.cm-keyword { color: #ffee80; } 19 | .cm-s-erlang-dark span.cm-meta { color: #50fefe; } 20 | .cm-s-erlang-dark span.cm-number { color: #ffd0d0; } 21 | .cm-s-erlang-dark span.cm-operator { color: #d55; } 22 | .cm-s-erlang-dark span.cm-property { color: #ccc; } 23 | .cm-s-erlang-dark span.cm-qualifier { color: #ccc; } 24 | .cm-s-erlang-dark span.cm-special { color: #ffbbbb; } 25 | .cm-s-erlang-dark span.cm-string { color: #3ad900; } 26 | .cm-s-erlang-dark span.cm-string-2 { color: #ccc; } 27 | .cm-s-erlang-dark span.cm-tag { color: #9effff; } 28 | .cm-s-erlang-dark span.cm-variable { color: #50fe50; } 29 | .cm-s-erlang-dark span.cm-variable-2 { color: #e0e; } 30 | .cm-s-erlang-dark span.cm-variable-3 { color: #ccc; } 31 | .cm-s-erlang-dark span.cm-error { color: #9d1e15; } 32 | 33 | .cm-s-erlang-dark .CodeMirror-activeline-background {background: #013461 !important;} 34 | .cm-s-erlang-dark .CodeMirror-matchingbracket {outline:1px solid grey; color:white !important;} 35 | -------------------------------------------------------------------------------- /assets/ckeditor-contrib/skins/kama/readme.md: -------------------------------------------------------------------------------- 1 | "Kama" Skin 2 | ==================== 3 | 4 | "Kama" is the default skin of CKEditor 3.x. 5 | It's been ported to CKEditor 4 and fully featured. 6 | 7 | For more information about skins, please check the [CKEditor Skin SDK](http://docs.cksource.com/CKEditor_4.x/Skin_SDK) 8 | documentation. 9 | 10 | Directory Structure 11 | ------------------- 12 | 13 | CSS parts: 14 | - **editor.css**: the main CSS file. It's simply loading several other files, for easier maintenance, 15 | - **mainui.css**: the file contains styles of entire editor outline structures, 16 | - **toolbar.css**: the file contains styles of the editor toolbar space (top), 17 | - **richcombo.css**: the file contains styles of the rich combo ui elements on toolbar, 18 | - **panel.css**: the file contains styles of the rich combo drop-down, it's not loaded 19 | until the first panel open up, 20 | - **elementspath.css**: the file contains styles of the editor elements path bar (bottom), 21 | - **menu.css**: the file contains styles of all editor menus including context menu and button drop-down, 22 | it's not loaded until the first menu open up, 23 | - **dialog.css**: the CSS files for the dialog UI, it's not loaded until the first dialog open, 24 | - **reset.css**: the file defines the basis of style resets among all editor UI spaces, 25 | - **preset.css**: the file defines the default styles of some UI elements reflecting the skin preference, 26 | - **editor_XYZ.css** and **dialog_XYZ.css**: browser specific CSS hacks. 27 | 28 | Other parts: 29 | - **skin.js**: the only JavaScript part of the skin that registers the skin, its browser specific files and its icons and defines the Chameleon feature, 30 | - **icons/**: contains all skin defined icons, 31 | - **images/**: contains a fill general used images. 32 | 33 | License 34 | ------- 35 | 36 | Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. 37 | 38 | Licensed under the terms of any of the following licenses at your choice: [GPL](http://www.gnu.org/licenses/gpl.html), [LGPL](http://www.gnu.org/licenses/lgpl.html) and [MPL](http://www.mozilla.org/MPL/MPL-1.1.html). 39 | 40 | See LICENSE.md for more information. 41 | -------------------------------------------------------------------------------- /assets/ckeditor/plugins/specialchar/dialogs/lang/ja.js: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. 3 | For licensing, see LICENSE.md or http://ckeditor.com/license 4 | */ 5 | CKEDITOR.plugins.setLang("specialchar","ja",{euro:"ユーロ記号",lsquo:"左シングル引用符",rsquo:"右シングル引用符",ldquo:"左ダブル引用符",rdquo:"右ダブル引用符",ndash:"半角ダッシュ",mdash:"全角ダッシュ",iexcl:"逆さ感嘆符",cent:"セント記号",pound:"ポンド記号",curren:"通貨記号",yen:"円記号",brvbar:"上下に分かれた縦棒",sect:"節記号",uml:"分音記号(ウムラウト)",copy:"著作権表示記号",ordf:"女性序数標識",laquo:" 始め二重山括弧引用記号",not:"論理否定記号",reg:"登録商標記号",macr:"長音符",deg:"度記号",sup2:"上つき2, 2乗",sup3:"上つき3, 3乗",acute:"揚音符",micro:"ミクロン記号",para:"段落記号",middot:"中黒",cedil:"セディラ",sup1:"上つき1",ordm:"男性序数標識",raquo:"終わり二重山括弧引用記号", 6 | frac14:"四分の一",frac12:"二分の一",frac34:"四分の三",iquest:"逆疑問符",Agrave:"抑音符つき大文字A",Aacute:"揚音符つき大文字A",Acirc:"曲折アクセントつき大文字A",Atilde:"チルダつき大文字A",Auml:"分音記号つき大文字A",Aring:"リングつき大文字A",AElig:"AとEの合字",Ccedil:"セディラつき大文字C",Egrave:"抑音符つき大文字E",Eacute:"揚音符つき大文字E",Ecirc:"曲折アクセントつき大文字E",Euml:"分音記号つき大文字E",Igrave:"抑音符つき大文字I",Iacute:"揚音符つき大文字I",Icirc:"曲折アクセントつき大文字I",Iuml:"分音記号つき大文字I",ETH:"[アイスランド語]大文字ETH",Ntilde:"チルダつき大文字N",Ograve:"抑音符つき大文字O",Oacute:"揚音符つき大文字O",Ocirc:"曲折アクセントつき大文字O",Otilde:"チルダつき大文字O",Ouml:" 分音記号つき大文字O", 7 | times:"乗算記号",Oslash:"打ち消し線つき大文字O",Ugrave:"抑音符つき大文字U",Uacute:"揚音符つき大文字U",Ucirc:"曲折アクセントつき大文字U",Uuml:"分音記号つき大文字U",Yacute:"揚音符つき大文字Y",THORN:"[アイスランド語]大文字THORN",szlig:"ドイツ語エスツェット",agrave:"抑音符つき小文字a",aacute:"揚音符つき小文字a",acirc:"曲折アクセントつき小文字a",atilde:"チルダつき小文字a",auml:"分音記号つき小文字a",aring:"リングつき小文字a",aelig:"aとeの合字",ccedil:"セディラつき小文字c",egrave:"抑音符つき小文字e",eacute:"揚音符つき小文字e",ecirc:"曲折アクセントつき小文字e",euml:"分音記号つき小文字e",igrave:"抑音符つき小文字i",iacute:"揚音符つき小文字i",icirc:"曲折アクセントつき小文字i",iuml:"分音記号つき小文字i",eth:"アイスランド語小文字eth", 8 | ntilde:"チルダつき小文字n",ograve:"抑音符つき小文字o",oacute:"揚音符つき小文字o",ocirc:"曲折アクセントつき小文字o",otilde:"チルダつき小文字o",ouml:"分音記号つき小文字o",divide:"除算記号",oslash:"打ち消し線つき小文字o",ugrave:"抑音符つき小文字u",uacute:"揚音符つき小文字u",ucirc:"曲折アクセントつき小文字u",uuml:"分音記号つき小文字u",yacute:"揚音符つき小文字y",thorn:"アイスランド語小文字thorn",yuml:"分音記号つき小文字y",OElig:"OとEの合字",oelig:"oとeの合字",372:"曲折アクセントつき大文字W",374:"曲折アクセントつき大文字Y",373:"曲折アクセントつき小文字w",375:"曲折アクセントつき小文字y",sbquo:"シングル下引用符",8219:"左右逆の左引用符",bdquo:"ダブル下引用符",hellip:"三点リーダ",trade:"商標記号",9658:"右黒三角ポインタ",bull:"黒丸", 9 | rarr:"右矢印",rArr:"右二重矢印",hArr:"左右二重矢印",diams:"ダイヤ",asymp:"漸近"}); --------------------------------------------------------------------------------