goldencobra 1.4.27 → 2.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.markdown +112 -41
- data/app/adapters/goldencobra/article_adapter.rb +75 -0
- data/app/assets/images/goldencobra/chosen-sprite@2x.png +0 -0
- data/app/assets/images/goldencobra/lastnode.png +0 -0
- data/app/assets/images/goldencobra/node.png +0 -0
- data/app/assets/images/goldencobra/vline.png +0 -0
- data/app/assets/javascripts/active_admin.js +1 -0
- data/app/assets/javascripts/goldencobra/active_admin.js +189 -202
- data/app/assets/javascripts/goldencobra/application.js.erb +86 -0
- data/app/assets/javascripts/goldencobra/chosen.jquery.js +1257 -0
- data/app/assets/javascripts/goldencobra/components.js +1 -0
- data/app/assets/javascripts/goldencobra/components/navigation_menu.js +191 -0
- data/app/assets/javascripts/goldencobra/components/overviewTree.js +156 -0
- data/app/assets/javascripts/goldencobra/components/select.js +43 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/adapters/jquery.js +10 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/ckeditor.js +996 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/ckeditor_inits.js +25 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/config.js +45 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/contents.css +132 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/lang/de.js +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/lang/en-gb.js +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/lang/en.js +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +10 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +25 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/af.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/eu.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/fo.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +9 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +10 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +10 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +9 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +9 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/about/dialogs/about.js +7 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/autogrow/plugin.js +221 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/clipboard/dialogs/paste.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/dialogadvtab/plugin.js +196 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/icons.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/icons_hidpi.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/image/dialogs/image.js +44 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/image/images/noimage.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/link/dialogs/anchor.js +7 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/link/dialogs/link.js +26 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/link/images/anchor.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/magicline/images/icon-rtl.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/magicline/images/icon.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/pastefromword/filter/default.js +32 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/scayt/LICENSE.md +28 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/scayt/README.md +25 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/scayt/dialogs/options.js +18 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/scayt/dialogs/toolbar.css +71 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +20 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/af.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/ar.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/bg.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/ca.js +14 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/cs.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/cy.js +14 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/da.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/de.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/el.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/en.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/eo.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/es.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/et.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/eu.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/fa.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/fi.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +10 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/fr.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/gl.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/he.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/hr.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/hu.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/id.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/it.js +14 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/ja.js +9 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/km.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/ko.js +10 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/ku.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/lt.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/lv.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/nb.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/nl.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/no.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/pl.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/pt.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/ru.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/si.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/sk.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/sl.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/sq.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/sv.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/th.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/tr.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/tt.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/ug.js +13 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/uk.js +12 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/vi.js +14 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +9 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/lang/zh.js +9 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/specialchar/dialogs/specialchar.js +14 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/table/dialogs/table.js +21 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/tabletools/dialogs/tableCell.js +17 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/wsc/LICENSE.md +28 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/wsc/README.md +25 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/wsc/dialogs/ciframe.html +66 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +52 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/wsc/dialogs/wsc.css +82 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/wsc/dialogs/wsc.js +92 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/plugins/wsc/dialogs/wsc_ie.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/dialog.css +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/dialog_ie.css +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/dialog_ie7.css +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/dialog_ie8.css +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/dialog_iequirks.css +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/editor.css +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/editor_gecko.css +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/editor_ie.css +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/editor_ie7.css +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/editor_ie8.css +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/editor_iequirks.css +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/icons.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/icons_hidpi.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/images/arrow.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/images/close.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/images/hidpi/close.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/images/hidpi/lock-open.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/images/hidpi/lock.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/images/hidpi/refresh.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/images/lock-open.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/images/lock.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/images/refresh.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/images/spinner.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/skins/moono/readme.md +49 -0
- data/app/assets/javascripts/goldencobra/html_editors/ckeditor/styles.js +111 -0
- data/app/assets/javascripts/goldencobra/html_editors/general.js +32 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/jquery.tinymce_v3.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/langs/de.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/langs/en.js +1 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advhr/css/advhr.css +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advhr/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advhr/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advhr/js/rule.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advhr/langs/en_dlg.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advhr/rule.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advimage/css/advimage.css +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advimage/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advimage/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advimage/image.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advimage/img/sample.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/advimage/js/image.js +464 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advimage/langs/en_dlg.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advlink/css/advlink.css +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advlink/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advlink/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/advlink/js/advlink.js +543 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advlink/langs/en_dlg.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advlink/link.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advlist/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/advlist/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/autolink/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/autolink/editor_plugin_src.js +184 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/autoresize/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/autoresize/editor_plugin_src.js +119 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/autosave/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/autosave/editor_plugin_src.js +433 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/bbcode/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/bbcode/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/contextmenu/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/contextmenu/editor_plugin_src.js +163 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/directionality/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/directionality/editor_plugin_src.js +85 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/emotions/emotions.htm +42 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-cool.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-cry.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-embarassed.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-foot-in-mouth.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-frown.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-innocent.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-kiss.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-laughing.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-money-mouth.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-sealed.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-smile.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-surprised.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-tongue-out.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-undecided.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-wink.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/img/smiley-yell.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/js/emotions.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/emotions/langs/en_dlg.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/example/dialog.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/example/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/example/editor_plugin_src.js +84 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/example/img/example.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/example/js/dialog.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/example/langs/en.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/example/langs/en_dlg.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/example_dependency/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/example_dependency/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/fullpage/css/fullpage.css +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/fullpage/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/fullpage/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/fullpage/fullpage.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/fullpage/js/fullpage.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/fullpage/langs/en_dlg.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/fullscreen/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/fullscreen/editor_plugin_src.js +234 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/fullscreen/fullscreen.htm +117 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/iespell/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/iespell/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/inlinepopups/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/inlinepopups/editor_plugin_src.js +699 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/inlinepopups/skins/clearlooks2/window.css +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/inlinepopups/template.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/insertdatetime/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/insertdatetime/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/layer/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/layer/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/legacyoutput/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/legacyoutput/editor_plugin_src.js +139 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/lists/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/lists/editor_plugin_src.js +955 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/media/css/media.css +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/media/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/media/editor_plugin_src.js +898 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/media/js/embed.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/media/js/media.js +513 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/media/langs/en_dlg.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/media/media.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/media/moxieplayer.swf +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/nonbreaking/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/nonbreaking/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/noneditable/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/noneditable/editor_plugin_src.js +537 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/pagebreak/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/pagebreak/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/paste/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/paste/editor_plugin_src.js +887 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/paste/js/pastetext.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/paste/js/pasteword.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/paste/langs/en_dlg.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/paste/pastetext.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/paste/pasteword.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/preview/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/preview/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/preview/example.html +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/preview/jscripts/embed.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/preview/preview.html +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/print/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/print/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/save/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/save/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/searchreplace/css/searchreplace.css +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/searchreplace/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/searchreplace/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/searchreplace/js/searchreplace.js +152 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/searchreplace/langs/en_dlg.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/searchreplace/searchreplace.htm +100 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/spellchecker/css/content.css +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/spellchecker/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/spellchecker/editor_plugin_src.js +471 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/spellchecker/img/wline.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/style/css/props.css +14 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/style/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/style/editor_plugin_src.js +71 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/style/js/props.js +709 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/style/langs/en_dlg.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/style/props.htm +845 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/style/readme.txt +19 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/tabfocus/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/tabfocus/editor_plugin_src.js +122 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/table/cell.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/table/css/cell.css +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/table/css/row.css +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/table/css/table.css +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/table/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/table/editor_plugin_src.js +1456 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/table/js/cell.js +319 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/table/js/merge_cells.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/table/js/row.js +254 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/table/js/table.js +501 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/table/langs/en_dlg.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/table/merge_cells.htm +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/table/row.htm +158 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/table/table.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/template/blank.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/template/css/template.css +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/template/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/template/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/template/js/template.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/template/langs/en_dlg.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/template/template.htm +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/visualblocks/css/visualblocks.css +21 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/visualblocks/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/visualblocks/editor_plugin_src.js +63 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/visualchars/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/visualchars/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/wordcount/editor_plugin.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/plugins/wordcount/editor_plugin_src.js +122 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/abbr.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/acronym.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/attributes.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/cite.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/css/attributes.css +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/css/popup.css +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/del.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/editor_plugin.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/editor_plugin_src.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/ins.htm +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/js/abbr.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/js/acronym.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/js/attributes.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/js/cite.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/js/del.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/js/element_common.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/js/ins.js +0 -0
- data/app/assets/javascripts/goldencobra/{plugins → html_editors/tinymce_v3/plugins}/xhtmlxtras/langs/en_dlg.js +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/about.htm +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/anchor.htm +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/charmap.htm +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/color_picker.htm +70 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/editor_template.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/editor_template_src.js +1490 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/image.htm +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/img/colorpicker.jpg +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/img/flash.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/img/icons.gif +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/img/iframe.gif +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/img/pagebreak.gif +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/img/quicktime.gif +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/img/realmedia.gif +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/img/shockwave.gif +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/img/trans.gif +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/img/video.gif +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/img/windowsmedia.gif +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/js/about.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/js/anchor.js +56 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/js/charmap.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/js/color_picker.js +345 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/js/image.js +253 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/js/link.js +159 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/js/source_editor.js +78 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/langs/de.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/langs/de_dlg.js +1 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/langs/en.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/langs/en_dlg.js +1 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/link.htm +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/shortcuts.htm +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/default/content.css +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/skins/default/dialog.css +118 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/default/img/buttons.png +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/default/img/items.gif +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/default/img/menu_arrow.gif +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/default/img/menu_check.gif +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/default/img/progress.gif +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/default/img/tabs.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/skins/default/ui.css +219 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/highcontrast/content.css +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/skins/highcontrast/dialog.css +106 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/skins/highcontrast/ui.css +106 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/o2k7/content.css +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/skins/o2k7/dialog.css +118 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/o2k7/img/button_bg.png +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/o2k7/img/button_bg_black.png +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/skins/o2k7/ui.css +222 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/o2k7/ui_black.css +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/advanced/skins/o2k7/ui_silver.css +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/advanced/source_editor.htm +25 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/simple/editor_template.js +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/simple/editor_template_src.js +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/simple/img/icons.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/themes/simple/langs/de.js +1 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/simple/langs/en.js +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/simple/skins/default/content.css +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/simple/skins/default/ui.css +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/simple/skins/o2k7/content.css +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/simple/skins/o2k7/img/button_bg.png +0 -0
- data/app/assets/javascripts/goldencobra/{themes → html_editors/tinymce_v3/themes}/simple/skins/o2k7/ui.css +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/tiny_mce_popup.js +5 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/tiny_mce_src.js +17942 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/tinymce_v3.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v3/tinymce_v3_inits.js +62 -0
- data/app/assets/javascripts/goldencobra/{utils → html_editors/tinymce_v3/utils}/editable_selects.js +0 -0
- data/app/assets/javascripts/goldencobra/{utils → html_editors/tinymce_v3/utils}/form_utils.js +0 -0
- data/app/assets/javascripts/goldencobra/{utils → html_editors/tinymce_v3/utils}/mctabs.js +0 -0
- data/app/assets/javascripts/goldencobra/{utils → html_editors/tinymce_v3/utils}/validate.js +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/jquery.tinymce_v4.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/langs/de.js +219 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/langs/readme.md +3 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/advlist/plugin.js +97 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/advlist/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/anchor/plugin.js +47 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/anchor/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/autolink/plugin.js +199 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/autolink/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/autoresize/plugin.js +162 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/autoresize/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/autosave/plugin.js +165 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/autosave/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/bbcode/plugin.js +123 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/bbcode/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/charmap/plugin.js +398 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/charmap/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/code/plugin.js +60 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/code/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/colorpicker/plugin.js +112 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/colorpicker/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/css/dialog.css +118 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/img/buttons.png +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/img/icons.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/img/items.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/img/menu_arrow.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/img/menu_check.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/img/progress.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/img/tabs.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/plugin.js +297 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/tiny_mce_popup.js +542 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/utils/editable_selects.js +70 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/utils/form_utils.js +210 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/utils/mctabs.js +164 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/compat3x/utils/validate.js +252 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/contextmenu/plugin.js +88 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/contextmenu/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/directionality/plugin.js +64 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/directionality/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-cool.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-cry.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-embarassed.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-foot-in-mouth.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-frown.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-innocent.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-kiss.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-laughing.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-money-mouth.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-sealed.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-smile.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-surprised.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-tongue-out.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-undecided.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-wink.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/img/smiley-yell.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/plugin.js +65 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/emoticons/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/example/dialog.html +8 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/example/plugin.js +68 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/example/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/example_dependency/plugin.js +22 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/example_dependency/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/fullpage/plugin.js +490 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/fullpage/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/fullscreen/plugin.js +136 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/fullscreen/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/hr/plugin.js +30 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/hr/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/image/plugin.js +550 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/image/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/classes/Canvas.js +35 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/classes/ColorMatrix.js +222 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/classes/Conversions.js +186 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/classes/CropRect.js +214 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/classes/Dialog.js +486 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/classes/Filters.js +221 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/classes/ImagePanel.js +218 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/classes/ImageSize.js +27 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/classes/ImageTools.js +99 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/classes/Mime.js +42 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/classes/Plugin.js +390 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/classes/UndoStack.js +57 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/plugin.dev.js +149 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/plugin.js +2334 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/imagetools/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/importcss/plugin.js +197 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/importcss/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/insertdatetime/plugin.js +121 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/insertdatetime/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/layer/plugin.js +225 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/layer/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/legacyoutput/plugin.js +211 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/legacyoutput/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/link/plugin.js +403 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/link/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/lists/plugin.js +821 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/lists/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/media/moxieplayer.swf +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/media/plugin.js +795 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/media/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/nonbreaking/plugin.js +53 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/nonbreaking/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/noneditable/plugin.js +614 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/noneditable/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/pagebreak/plugin.js +88 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/pagebreak/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/paste/classes/Clipboard.js +688 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/paste/classes/Plugin.js +110 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/paste/classes/Quirks.js +159 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/paste/classes/Utils.js +129 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/paste/classes/WordFilter.js +498 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/paste/plugin.dev.js +142 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/paste/plugin.js +1700 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/paste/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/preview/plugin.js +88 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/preview/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/print/plugin.js +32 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/print/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/save/plugin.js +94 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/save/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/searchreplace/plugin.js +600 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/searchreplace/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/spellchecker/classes/DomTextMatcher.js +470 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/spellchecker/classes/Plugin.js +435 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/spellchecker/plugin.dev.js +139 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/spellchecker/plugin.js +1012 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/spellchecker/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/tabfocus/plugin.js +120 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/tabfocus/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/table/classes/CellSelection.js +176 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/table/classes/Dialogs.js +824 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/table/classes/Plugin.js +436 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/table/classes/Quirks.js +397 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/table/classes/TableGrid.js +860 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/table/classes/Utils.js +34 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/table/plugin.dev.js +141 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/table/plugin.js +2844 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/table/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/template/plugin.js +264 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/template/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/textcolor/plugin.js +282 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/textcolor/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/textpattern/plugin.js +268 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/textpattern/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/css/visualblocks.css +135 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/address.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/article.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/aside.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/blockquote.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/div.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/dl.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/figure.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/h1.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/h2.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/h3.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/h4.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/h5.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/h6.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/hgroup.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/ol.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/p.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/pre.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/section.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/img/ul.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/plugin.js +86 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualblocks/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualchars/plugin.js +123 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/visualchars/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/wordcount/plugin.js +69 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/plugins/wordcount/plugin.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/content.inline.min.css +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/content.min.css +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/fonts/tinymce-small.eot +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/fonts/tinymce-small.svg +62 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/fonts/tinymce-small.ttf +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/fonts/tinymce-small.woff +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/fonts/tinymce.eot +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/fonts/tinymce.svg +83 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/fonts/tinymce.ttf +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/fonts/tinymce.woff +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/img/anchor.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/img/loader.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/img/object.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/img/trans.gif +0 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/skin.ie7.min.css +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/skins/lightgray/skin.min.css +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/themes/modern/theme.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/themes/modern/theme.min.js +1 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/tinymce_v4.js +11 -0
- data/app/assets/javascripts/goldencobra/html_editors/tinymce_v4/tinymce_v4_inits.js +62 -0
- data/app/assets/javascripts/goldencobra/jquery.color-2.1.2.js +663 -0
- data/app/assets/javascripts/goldencobra/pagination.js +28 -0
- data/app/assets/javascripts/goldencobra/react_0.13.1.min.js +15 -0
- data/app/assets/javascripts/goldencobra/tiny_mce_popup.js +1 -1
- data/app/assets/javascripts/goldencobra/tiny_mce_src.js +17942 -0
- data/app/assets/stylesheets/goldencobra/active_admin.scss +16 -0
- data/app/assets/stylesheets/goldencobra/active_admin_backup.scss +608 -0
- data/app/assets/stylesheets/goldencobra/{application.css.scss → application.scss} +0 -0
- data/app/assets/stylesheets/goldencobra/chosen.css +51 -31
- data/app/assets/stylesheets/goldencobra/gc-articles.scss +12 -0
- data/app/assets/stylesheets/goldencobra/gc-chosen-overwrite.scss +12 -0
- data/app/assets/stylesheets/goldencobra/gc-general.scss +487 -0
- data/app/assets/stylesheets/goldencobra/gc-grid.scss +5 -0
- data/app/assets/stylesheets/goldencobra/gc-header.scss +47 -0
- data/app/assets/stylesheets/goldencobra/gc-overview-tree.scss +145 -0
- data/app/assets/stylesheets/goldencobra/gc-settings.scss +52 -0
- data/app/assets/stylesheets/goldencobra/ikusei_active_admin.scss +16 -34
- data/app/controllers/goldencobra/api/v1/tokens_controller.rb +10 -0
- data/app/controllers/goldencobra/api/v2/articles_controller.rb +213 -143
- data/app/controllers/goldencobra/api/v2/locales_controller.rb +1 -1
- data/app/controllers/goldencobra/api/v2/navigation_menus_controller.rb +223 -0
- data/app/controllers/goldencobra/api/v2/settings_controller.rb +1 -1
- data/app/controllers/goldencobra/api/v2/uploads_controller.rb +32 -0
- data/app/controllers/goldencobra/api/v3/articles_controller.rb +124 -0
- data/app/controllers/goldencobra/application_controller.rb +17 -41
- data/app/controllers/goldencobra/articles_controller.rb +60 -62
- data/app/controllers/goldencobra/manage_controller.rb +3 -4
- data/app/controllers/goldencobra/sessions_controller.rb +22 -15
- data/app/helpers/goldencobra/application_helper.rb +15 -3
- data/app/helpers/goldencobra/articles_helper.rb +80 -52
- data/app/helpers/goldencobra/login_helper.rb +4 -5
- data/app/helpers/goldencobra/navigation_helper.rb +52 -44
- data/app/mailers/goldencobra/confirmation_mailer.rb +3 -2
- data/app/models/ability.rb +1 -1
- data/app/models/active_admin/views/index_as_seo_table.rb +9 -0
- data/app/models/active_admin/views/index_as_tree.rb +118 -0
- data/app/models/goldencobra/article.rb +327 -246
- data/app/models/goldencobra/article_concerns/meta_tag.rb +104 -0
- data/app/models/goldencobra/article_image.rb +2 -2
- data/app/models/goldencobra/article_url.rb +54 -0
- data/app/models/goldencobra/articletype.rb +109 -48
- data/app/models/goldencobra/articletype_field.rb +3 -2
- data/app/models/goldencobra/articletype_group.rb +4 -4
- data/app/models/goldencobra/author.rb +5 -3
- data/app/models/goldencobra/comment.rb +7 -7
- data/app/models/goldencobra/domain.rb +3 -3
- data/app/models/goldencobra/import.rb +282 -282
- data/app/models/goldencobra/import_metadata.rb +5 -1
- data/app/models/goldencobra/link_checker.rb +27 -14
- data/app/models/goldencobra/location.rb +16 -4
- data/app/models/goldencobra/menue.rb +144 -17
- data/app/models/goldencobra/permission.rb +15 -3
- data/app/models/goldencobra/redirector.rb +23 -23
- data/app/models/goldencobra/role.rb +1 -0
- data/app/models/goldencobra/role_user.rb +4 -2
- data/app/models/goldencobra/setting.rb +54 -35
- data/app/models/goldencobra/tracking.rb +6 -3
- data/app/models/goldencobra/upload.rb +71 -53
- data/app/models/goldencobra/vita.rb +3 -3
- data/app/models/goldencobra/widget.rb +22 -16
- data/app/models/translation.rb +2 -2
- data/app/models/user.rb +18 -15
- data/app/models/visitor.rb +13 -8
- data/app/presenters/goldencobra/articletype_presenter.rb +266 -0
- data/app/serializers/goldencobra/article_custom_serializer.rb +24 -0
- data/app/serializers/goldencobra/article_serializer.rb +26 -0
- data/app/serializers/goldencobra/upload_serializer.rb +22 -0
- data/app/services/goldencobra/attribute_repair_service.rb +47 -0
- data/app/services/goldencobra/attribute_validator.rb +55 -0
- data/app/services/goldencobra/settings_cleanup.rb +95 -0
- data/app/services/goldencobra/url.rb +25 -0
- data/app/views/goldencobra/admin/articles/_article_type.html.erb +4 -3
- data/app/views/goldencobra/admin/articles/_image_module_sidebar.html.erb +2 -2
- data/app/views/goldencobra/admin/articles/_link_checker.html.erb +10 -13
- data/app/views/goldencobra/admin/articles/_select_article_type.html.erb +1 -4
- data/app/views/goldencobra/admin/dashboard/_base_dashboard.html.arb +106 -0
- data/app/views/goldencobra/admin/shared/_item.html.erb +1 -1
- data/app/views/goldencobra/admin/shared/_overview.html.erb +3 -3
- data/app/views/goldencobra/admin/shared/_react_overview.html.erb +15 -0
- data/app/views/goldencobra/admin/shared/load_overviewtree.js.erb +8 -3
- data/app/views/goldencobra/api/v2/articles/index.xml.builder +29 -0
- data/app/views/goldencobra/articles/show.rss.builder +1 -1
- data/app/views/goldencobra/manage/_admin_article_management_content.html.erb +2 -2
- data/app/views/layouts/goldencobra/active_admin_resque.html.erb +15 -15
- data/app/views/layouts/goldencobra/application.html.erb +1 -1
- data/app/views/layouts/goldencobra/bare_layout.html.erb +1 -1
- data/app/views/layouts/goldencobra/for_pdf.html.erb +1 -1
- data/app/worker/articles_cache_worker.rb +1 -2
- data/config/initializers/active_admin_devise.rb +4 -4
- data/config/initializers/check_for_missing_articletypes.rb +2 -55
- data/config/initializers/devise.rb +9 -1
- data/config/initializers/http_validator.rb +8 -10
- data/config/initializers/sass_load_path.rb +4 -0
- data/config/initializers/sidekiq.rb.tmpl +7 -0
- data/config/locales/active_admin.de.yml +49 -25
- data/config/locales/active_admin.en.yml +46 -22
- data/config/locales/active_admin.zh-CN.yml +645 -0
- data/config/locales/de.yml +95 -78
- data/config/locales/en.yml +97 -90
- data/config/locales/zh-CN.yml +632 -0
- data/config/routes.rb +37 -78
- data/config/settings.yml +17 -8
- data/config/spring.rb +1 -0
- data/db/migrate/20150811082119_install_goldencobra.rb +589 -0
- data/db/migrate/20150818133609_change_article_index_type_default.rb +5 -0
- data/db/migrate/20150818140444_rename_user_title_to_user_position.rb +5 -0
- data/db/migrate/20150818141321_add_displayarticletypeindex_to_goldencobra_articles.rb +5 -0
- data/db/migrate/20150819121715_add_descendentsdepth_to_goldencobra_articles.rb +6 -0
- data/db/migrate/20150820073443_change_metatag_storage.rb +13 -0
- data/db/migrate/20160527083745_add_state_to_goldencobra_articles.rb +5 -0
- data/db/migrate/20160614074840_create_goldencobra_article_urls.rb +10 -0
- data/db/migrate/20160704070529_add_showindexarticles_to_goldencobra_articles.rb +5 -0
- data/db/seeds.rb +28 -13
- data/lib/generators/goldencobra/articletype/articletype_generator.rb +3 -5
- data/lib/generators/goldencobra/articletype/templates/edit_articletype.html.erb +3 -3
- data/lib/generators/goldencobra/articletype/templates/edit_index.html.erb +11 -6
- data/lib/generators/goldencobra/articletype/templates/edit_show.html.erb +4 -6
- data/lib/generators/goldencobra/articletype/templates/index.html.erb +18 -21
- data/lib/generators/goldencobra/articletype/templates/initializer.rb +3 -6
- data/lib/generators/goldencobra/articletype/templates/show.html.erb +187 -9
- data/lib/generators/goldencobra/install_generator.rb +47 -65
- data/lib/generators/goldencobra/server_generator.rb +14 -17
- data/lib/generators/goldencobra/templates/active_admin.rb.erb +20 -17
- data/lib/generators/goldencobra/templates/assets/javascripts/application.js +1 -29
- data/lib/generators/goldencobra/templates/assets/stylesheets/_bootstrap_overwrite.scss +60 -0
- data/lib/generators/goldencobra/templates/assets/stylesheets/{active_admin.css.scss → active_admin.scss} +0 -0
- data/lib/generators/goldencobra/templates/assets/stylesheets/application.scss +16 -0
- data/lib/generators/goldencobra/templates/deploy.rb.erb +0 -6
- data/lib/generators/goldencobra/templates/robots.txt +6 -2
- data/lib/generators/goldencobra/templates/seeds.rb.erb +29 -163
- data/lib/generators/goldencobra/templates/views/articletypes/default/_edit_index.html.erb +3 -9
- data/lib/generators/goldencobra/templates/views/articletypes/default/_show.html.erb +181 -15
- data/lib/generators/goldencobra/templates/views/layouts/_footer.html.erb +22 -18
- data/lib/generators/goldencobra/templates/views/layouts/_header_meta.html.erb +29 -15
- data/lib/generators/goldencobra/templates/views/layouts/_navigation.html.erb +31 -0
- data/lib/generators/goldencobra/templates/views/layouts/_startpage.html.erb +71 -0
- data/lib/generators/goldencobra/templates/views/layouts/application.html.erb +10 -41
- data/lib/goldencobra.rb +33 -0
- data/lib/goldencobra/acts_as_setting.rb +8 -10
- data/lib/goldencobra/engine.rb +30 -41
- data/lib/goldencobra/version.rb +1 -3
- data/lib/i18n/backend/active_record.rb +61 -0
- data/lib/i18n/backend/active_record/translation.rb +109 -0
- data/lib/tasks/article_cache.rake +1 -1
- data/lib/tasks/attribute_validator.rake +18 -0
- data/lib/tasks/link_checker.rake +3 -7
- metadata +917 -803
- data/app/assets/javascripts/goldencobra/application.js +0 -84
- data/app/assets/javascripts/goldencobra/jquery.tinymce.js +0 -1
- data/app/assets/javascripts/goldencobra/langs/en.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/advimage/js/image.js +0 -462
- data/app/assets/javascripts/goldencobra/plugins/advlink/js/advlink.js +0 -532
- data/app/assets/javascripts/goldencobra/plugins/autolink/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/autolink/editor_plugin_src.js +0 -172
- data/app/assets/javascripts/goldencobra/plugins/autoresize/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/autoresize/editor_plugin_src.js +0 -137
- data/app/assets/javascripts/goldencobra/plugins/autosave/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/autosave/editor_plugin_src.js +0 -431
- data/app/assets/javascripts/goldencobra/plugins/autosave/langs/en.js +0 -4
- data/app/assets/javascripts/goldencobra/plugins/contextmenu/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/contextmenu/editor_plugin_src.js +0 -160
- data/app/assets/javascripts/goldencobra/plugins/directionality/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/directionality/editor_plugin_src.js +0 -82
- data/app/assets/javascripts/goldencobra/plugins/emotions/emotions.htm +0 -42
- data/app/assets/javascripts/goldencobra/plugins/example/editor_plugin_src.js +0 -84
- data/app/assets/javascripts/goldencobra/plugins/example/img/image_button.gif +0 -0
- data/app/assets/javascripts/goldencobra/plugins/fullscreen/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/fullscreen/editor_plugin_src.js +0 -159
- data/app/assets/javascripts/goldencobra/plugins/fullscreen/fullscreen.htm +0 -110
- data/app/assets/javascripts/goldencobra/plugins/inlinepopups/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/inlinepopups/editor_plugin_src.js +0 -699
- data/app/assets/javascripts/goldencobra/plugins/legacyoutput/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/legacyoutput/editor_plugin_src.js +0 -139
- data/app/assets/javascripts/goldencobra/plugins/lists/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/lists/editor_plugin_src.js +0 -925
- data/app/assets/javascripts/goldencobra/plugins/media/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/media/editor_plugin_src.js +0 -890
- data/app/assets/javascripts/goldencobra/plugins/media/js/media.js +0 -464
- data/app/assets/javascripts/goldencobra/plugins/noneditable/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/noneditable/editor_plugin_src.js +0 -95
- data/app/assets/javascripts/goldencobra/plugins/paste/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/paste/editor_plugin_src.js +0 -871
- data/app/assets/javascripts/goldencobra/plugins/searchreplace/js/searchreplace.js +0 -142
- data/app/assets/javascripts/goldencobra/plugins/searchreplace/searchreplace.htm +0 -100
- data/app/assets/javascripts/goldencobra/plugins/spellchecker/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/spellchecker/editor_plugin_src.js +0 -436
- data/app/assets/javascripts/goldencobra/plugins/style/css/props.css +0 -13
- data/app/assets/javascripts/goldencobra/plugins/style/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/style/editor_plugin_src.js +0 -55
- data/app/assets/javascripts/goldencobra/plugins/style/js/props.js +0 -635
- data/app/assets/javascripts/goldencobra/plugins/style/langs/en_dlg.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/style/props.htm +0 -840
- data/app/assets/javascripts/goldencobra/plugins/tabfocus/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/tabfocus/editor_plugin_src.js +0 -122
- data/app/assets/javascripts/goldencobra/plugins/table/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/table/editor_plugin_src.js +0 -1408
- data/app/assets/javascripts/goldencobra/plugins/table/js/cell.js +0 -319
- data/app/assets/javascripts/goldencobra/plugins/table/js/row.js +0 -237
- data/app/assets/javascripts/goldencobra/plugins/table/js/table.js +0 -484
- data/app/assets/javascripts/goldencobra/plugins/table/row.htm +0 -158
- data/app/assets/javascripts/goldencobra/plugins/wordcount/editor_plugin.js +0 -1
- data/app/assets/javascripts/goldencobra/plugins/wordcount/editor_plugin_src.js +0 -114
- data/app/assets/javascripts/goldencobra/themes/advanced/color_picker.htm +0 -74
- data/app/assets/javascripts/goldencobra/themes/advanced/editor_template.js +0 -1
- data/app/assets/javascripts/goldencobra/themes/advanced/editor_template_src.js +0 -1362
- data/app/assets/javascripts/goldencobra/themes/advanced/img/icons.gif +0 -0
- data/app/assets/javascripts/goldencobra/themes/advanced/js/anchor.js +0 -43
- data/app/assets/javascripts/goldencobra/themes/advanced/js/color_picker.js +0 -329
- data/app/assets/javascripts/goldencobra/themes/advanced/js/image.js +0 -251
- data/app/assets/javascripts/goldencobra/themes/advanced/js/link.js +0 -153
- data/app/assets/javascripts/goldencobra/themes/advanced/js/source_editor.js +0 -56
- data/app/assets/javascripts/goldencobra/themes/advanced/langs/en_dlg.js +0 -1
- data/app/assets/javascripts/goldencobra/themes/advanced/skins/default/dialog.css +0 -117
- data/app/assets/javascripts/goldencobra/themes/advanced/skins/default/ui.css +0 -214
- data/app/assets/javascripts/goldencobra/themes/advanced/skins/highcontrast/dialog.css +0 -105
- data/app/assets/javascripts/goldencobra/themes/advanced/skins/highcontrast/ui.css +0 -102
- data/app/assets/javascripts/goldencobra/themes/advanced/skins/o2k7/dialog.css +0 -117
- data/app/assets/javascripts/goldencobra/themes/advanced/skins/o2k7/ui.css +0 -217
- data/app/assets/javascripts/goldencobra/themes/advanced/source_editor.htm +0 -25
- data/app/assets/javascripts/goldencobra/tiny_mce.js +0 -1
- data/app/assets/stylesheets/goldencobra/active_admin.css.scss +0 -595
- data/app/models/goldencobra/metatag.rb +0 -23
- data/app/models/goldencobra/url_builder.rb +0 -58
- data/app/views/goldencobra/admin/articles/_articles_index.html.erb +0 -4
- data/app/views/goldencobra/admin/articles/_widgets_sidebar.html.erb +0 -15
- data/app/views/goldencobra/admin/articles/toggle_expert_mode.js.erb +0 -7
- data/config/initializers/check_for_migrations.rb +0 -21
- data/config/initializers/compass.rb +0 -24
- data/db/migrate/20120109093658_create_articles.rb +0 -9
- data/db/migrate/20120109111205_add_devise_to_admin_users.rb +0 -56
- data/db/migrate/20120109121212_create_admin_notes.rb +0 -16
- data/db/migrate/20120109121213_move_admin_notes_to_comments.rb +0 -25
- data/db/migrate/20120109140423_create_roles.rb +0 -10
- data/db/migrate/20120109141338_create_role_users.rb +0 -8
- data/db/migrate/20120110112157_add_urlname_to_article.rb +0 -7
- data/db/migrate/20120110114803_create_friendly_id_slugs.rb +0 -18
- data/db/migrate/20120112163045_add_body_to_articles.rb +0 -6
- data/db/migrate/20120112171037_add_ancestry_to_articles.rb +0 -6
- data/db/migrate/20120112172723_add_index_to_articles.rb +0 -9
- data/db/migrate/20120113100243_create_menues.rb +0 -12
- data/db/migrate/20120113101714_add_ancestry_to_menues.rb +0 -6
- data/db/migrate/20120113170904_add_startpage_to_article.rb +0 -5
- data/db/migrate/20120120095700_create_goldencobra_metatags.rb +0 -11
- data/db/migrate/20120125145920_add_fields_to_articles.rb +0 -9
- data/db/migrate/20120125161800_add_noindex_to_articles.rb +0 -5
- data/db/migrate/20120126132846_create_goldencobra_uploads.rb +0 -14
- data/db/migrate/20120206110452_create_goldencobra_locations.rb +0 -15
- data/db/migrate/20120209100956_create_goldencobra_settings.rb +0 -11
- data/db/migrate/20120217085735_add_options_to_users.rb +0 -16
- data/db/migrate/20120221100021_create_goldencobra_helps.rb +0 -11
- data/db/migrate/20120307151355_add_breadcrumb_to_goldencobra_articles.rb +0 -6
- data/db/migrate/20120312111338_create_goldencobra_widgets.rb +0 -12
- data/db/migrate/20120312150558_create_goldencobra_article_widgets.rb +0 -10
- data/db/migrate/20120313125443_create_goldencobra_permissions.rb +0 -18
- data/db/migrate/20120313142221_add_name_to_goldencobra_widgets.rb +0 -6
- data/db/migrate/20120313142421_add_sorter_to_goldencobra_widgets.rb +0 -6
- data/db/migrate/20120314102039_add_template_to_goldencobra_articles.rb +0 -6
- data/db/migrate/20120315161536_add_sorter_to_goldencobra_menue.rb +0 -6
- data/db/migrate/20120321102414_acts_as_taggable_on_migration.rb +0 -30
- data/db/migrate/20120321114923_add_articleindex_to_goldencobra_articles.rb +0 -7
- data/db/migrate/20120321120727_add_social_sharing_to_goldencobra_articles.rb +0 -6
- data/db/migrate/20120321130204_add_articleindeximages_to_goldencobra_articles.rb +0 -6
- data/db/migrate/20120321131058_create_goldencobra_article_images.rb +0 -10
- data/db/migrate/20120416154848_create_goldencobra_vita.rb +0 -13
- data/db/migrate/20120420094029_add_cachable_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20120423141814_add_imagegallery_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20120509125734_add_title_to_goldencobra_locations.rb +0 -5
- data/db/migrate/20120604141401_add_article_type_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20120605082035_add_description_to_goldencobra_menues.rb +0 -6
- data/db/migrate/20120608095444_add_teaser_title_to_goldencobra_menue.rb +0 -5
- data/db/migrate/20120608121356_create_versions.rb +0 -18
- data/db/migrate/20120611082814_create_goldencobra_imports.rb +0 -13
- data/db/migrate/20120615085225_add_externalurl_to_goldencobra_article.rb +0 -5
- data/db/migrate/20120615150128_add_attachable_to_goldencobra_uploads.rb +0 -6
- data/db/migrate/20120618122627_add_indextag_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20120618132330_add_sliderfields_to_widgets.rb +0 -5
- data/db/migrate/20120618141449_add_teaser_to_goldencobra_widgets.rb +0 -5
- data/db/migrate/20120619123238_add_sorter_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20120619132259_add_reverse_sort_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20120625131154_add_author_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20120627122742_add_sorter_limit_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20120718153348_add_nottags_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20120730103912_add_use_frontend_tags_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20120807124808_add_image_to_goldencobra_menues.rb +0 -5
- data/db/migrate/20120814111900_add_default_and_description_to_goldencobra.rb +0 -6
- data/db/migrate/20120814114800_change_default_type_to_goldencobra_widgets.rb +0 -6
- data/db/migrate/20120821105002_add_alttext_to_goldencobra_uploads.rb +0 -5
- data/db/migrate/20120926133635_add_position_to_goldencobra_article_images.rb +0 -5
- data/db/migrate/20120928092721_create_goldencobra_comments.rb +0 -16
- data/db/migrate/20120928105956_devise_create_visitors.rb +0 -46
- data/db/migrate/20121001092249_add_names_to_visitors.rb +0 -6
- data/db/migrate/20121002143111_add_columns_to_visitors.rb +0 -8
- data/db/migrate/20121003102003_add_dynamicredirect_to_goldencobraarticles.rb +0 -6
- data/db/migrate/20121003140056_add_token_to_visitors.rb +0 -12
- data/db/migrate/20121006095912_add_commentable_to_article.rb +0 -5
- data/db/migrate/20121007125002_add_activesince_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20121011062432_add_username_to_visitors.rb +0 -5
- data/db/migrate/20121015071150_add_link_title_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20121029131138_add_offline_setter_to_goldencobra_widgets.rb +0 -7
- data/db/migrate/20121030112343_add_offline_active_to_goldencobra_widgets.rb +0 -5
- data/db/migrate/20121030120838_add_alternative_content_to_goldencobra_widgets.rb +0 -5
- data/db/migrate/20121121144623_add_datum_to_widgets.rb +0 -6
- data/db/migrate/20121122091033_add_sorter_number_to_goldencobra_uploads.rb +0 -5
- data/db/migrate/20121206104701_add_type_to_goldencobra_settings.rb +0 -5
- data/db/migrate/20130104145454_add_weektimes_to_goldencobra_widgets.rb +0 -7
- data/db/migrate/20130114154115_add_sorter_to_goldencobra_permissions.rb +0 -8
- data/db/migrate/20130115104440_add_expert_mode_to_users.rb +0 -5
- data/db/migrate/20130118115233_add_poly_to_goldencobra_role_users.rb +0 -6
- data/db/migrate/20130128170204_add_default_article_type_for_nil.rb +0 -11
- data/db/migrate/20130129092029_add_poly_to_goldencobra_locations.rb +0 -6
- data/db/migrate/20130204102953_add_locationoption_to_goldencobra_locations.rb +0 -5
- data/db/migrate/20130205084748_add_loginable_to_visitors.rb +0 -6
- data/db/migrate/20130225154241_add_redirect_to_goldencobra_roles.rb +0 -5
- data/db/migrate/20130301144344_add_indextypes_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20130404110743_add_sessions_table.rb +0 -12
- data/db/migrate/20130404121434_create_goldencobra_trackings.rb +0 -13
- data/db/migrate/20130404135801_add_options_to_goldencobra_trackings.rb +0 -6
- data/db/migrate/20130404140858_add_moreoptions_to_goldencobra_trackings.rb +0 -8
- data/db/migrate/20130405071320_add_params_to_goldencobra_trackings.rb +0 -5
- data/db/migrate/20130405073103_add_googleparams_to_goldencobra_trackings.rb +0 -9
- data/db/migrate/20130405074654_add_location_to_tracking.rb +0 -5
- data/db/migrate/20130426123928_add_polymorphic_to_goldencobra_metatags.rb +0 -6
- data/db/migrate/20130507115517_create_translations.rb +0 -13
- data/db/migrate/20130702155529_create_goldencobra_authors.rb +0 -12
- data/db/migrate/20130702160247_rename_authorstobackup_to_goldencobra_articles.rb +0 -11
- data/db/migrate/20130722152135_add_encodingtype_to_goldencobra_imports.rb +0 -5
- data/db/migrate/20130723084542_add_assgroup_to_goldencobra_importer.rb +0 -5
- data/db/migrate/20130724123225_create_goldencobra_import_metadata.rb +0 -16
- data/db/migrate/20130730113452_add_skip_to_goldencobra_locations.rb +0 -5
- data/db/migrate/20130730144331_add_linkchecker_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20130903085746_change_datatype_of_url_paremeters.rb +0 -9
- data/db/migrate/20130909143144_create_goldencobra_domains.rb +0 -11
- data/db/migrate/20130925133203_add_prefix_to_goldencobra_domains.rb +0 -5
- data/db/migrate/20131018111343_add_cache_to_goldencobra_menues.rb +0 -12
- data/db/migrate/20131129143509_add_remote_to_goldencobra_menues.rb +0 -5
- data/db/migrate/20131216110750_add_main_to_goldencobra_domains.rb +0 -7
- data/db/migrate/20140127084929_create_goldencobra_articletypes.rb +0 -16
- data/db/migrate/20140128091516_create_goldencobra_articletype_groups.rb +0 -16
- data/db/migrate/20140128104519_create_goldencobra_articletype_fields.rb +0 -14
- data/db/migrate/20140128112747_add_position_to_goldencobra_articletype_group.rb +0 -7
- data/db/migrate/20140204221345_add_operator_to_goldencobra_permissions.rb +0 -5
- data/db/migrate/20140411152728_add_creator_id_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20140505144517_add_taggingcounter.rb +0 -15
- data/db/migrate/20140603084537_add_domain_to_goldencobra_permissions.rb +0 -7
- data/db/migrate/20140615200342_resize_link_checkfield.rb +0 -13
- data/db/migrate/20140626135753_add_externalreferee_to_goldencobra_articles.rb +0 -6
- data/db/migrate/20140702103024_add_externaldate_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20140702105550_add_remoteurl_to_goldencobra_uploads.rb +0 -5
- data/db/migrate/20140702142818_add_image_gallery_type_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20140819101033_add_urlpath_to_goldencobra_articles.rb +0 -5
- data/db/migrate/20141104115144_create_goldencobra_redirectors.rb +0 -15
- data/db/migrate/20141112124531_add_globalsorting_to_goldencobra_articles.rb +0 -7
- data/db/migrate/20141124170930_add_indiex_to_gc.rb +0 -26
- data/db/migrate/20150115111024_create_goldencobra_article_authors.rb +0 -28
- data/db/migrate/20150115134707_add_remove_author_stuff.rb +0 -11
- data/db/migrate/20150417153454_add_status_to_goldencobra_vita_steps.rb +0 -5
- data/lib/generators/goldencobra/templates/assets/images/icons/icon-bookmark-40x40-light.png +0 -0
- data/lib/generators/goldencobra/templates/assets/images/icons/icon-pdf-40x40-light.png +0 -0
- data/lib/generators/goldencobra/templates/assets/images/icons/icon-print-40x40-light.png +0 -0
- data/lib/generators/goldencobra/templates/assets/images/logo.gif +0 -0
- data/lib/generators/goldencobra/templates/assets/images/rails.png +0 -0
- data/lib/generators/goldencobra/templates/assets/stylesheets/application.css.scss +0 -29
- data/lib/generators/goldencobra/templates/assets/stylesheets/footer/content.css.scss +0 -31
- data/lib/generators/goldencobra/templates/assets/stylesheets/header/content.css.scss +0 -102
- data/lib/generators/goldencobra/templates/assets/stylesheets/main/content.css.scss +0 -192
- data/lib/generators/goldencobra/templates/assets/stylesheets/share/mixins.css.scss +0 -174
- data/lib/generators/goldencobra/templates/assets/stylesheets/share/variables.css.scss +0 -31
- data/lib/generators/goldencobra/templates/views/layouts/_header.html.erb +0 -61
- data/lib/generators/goldencobra/templates/views/layouts/_header_slider.html.erb +0 -14
@@ -1,158 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
2
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
-
<head>
|
4
|
-
<title>{#table_dlg.row_title}</title>
|
5
|
-
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
|
6
|
-
<script type="text/javascript" src="../../utils/mctabs.js"></script>
|
7
|
-
<script type="text/javascript" src="../../utils/form_utils.js"></script>
|
8
|
-
<script type="text/javascript" src="../../utils/validate.js"></script>
|
9
|
-
<script type="text/javascript" src="../../utils/editable_selects.js"></script>
|
10
|
-
<script type="text/javascript" src="js/row.js"></script>
|
11
|
-
<link href="css/row.css" rel="stylesheet" type="text/css" />
|
12
|
-
</head>
|
13
|
-
<body id="tablerow" style="display: none" role="application">
|
14
|
-
<form onsubmit="updateAction();return false;" action="#">
|
15
|
-
<div class="tabs">
|
16
|
-
<ul>
|
17
|
-
<li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#table_dlg.general_tab}</a></span></li>
|
18
|
-
<li id="advanced_tab" aria-controls="advanced_panel"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#table_dlg.advanced_tab}</a></span></li>
|
19
|
-
</ul>
|
20
|
-
</div>
|
21
|
-
|
22
|
-
<div class="panel_wrapper">
|
23
|
-
<div id="general_panel" class="panel current">
|
24
|
-
<fieldset>
|
25
|
-
<legend>{#table_dlg.general_props}</legend>
|
26
|
-
|
27
|
-
<table role="presentation" border="0" cellpadding="4" cellspacing="0">
|
28
|
-
<tr>
|
29
|
-
<td><label for="rowtype">{#table_dlg.rowtype}</label></td>
|
30
|
-
<td class="col2">
|
31
|
-
<select id="rowtype" name="rowtype" class="mceFocus">
|
32
|
-
<option value="thead">{#table_dlg.thead}</option>
|
33
|
-
<option value="tbody">{#table_dlg.tbody}</option>
|
34
|
-
<option value="tfoot">{#table_dlg.tfoot}</option>
|
35
|
-
</select>
|
36
|
-
</td>
|
37
|
-
</tr>
|
38
|
-
|
39
|
-
<tr>
|
40
|
-
<td><label for="align">{#table_dlg.align}</label></td>
|
41
|
-
<td class="col2">
|
42
|
-
<select id="align" name="align">
|
43
|
-
<option value="">{#not_set}</option>
|
44
|
-
<option value="center">{#table_dlg.align_middle}</option>
|
45
|
-
<option value="left">{#table_dlg.align_left}</option>
|
46
|
-
<option value="right">{#table_dlg.align_right}</option>
|
47
|
-
</select>
|
48
|
-
</td>
|
49
|
-
</tr>
|
50
|
-
|
51
|
-
<tr>
|
52
|
-
<td><label for="valign">{#table_dlg.valign}</label></td>
|
53
|
-
<td class="col2">
|
54
|
-
<select id="valign" name="valign">
|
55
|
-
<option value="">{#not_set}</option>
|
56
|
-
<option value="top">{#table_dlg.align_top}</option>
|
57
|
-
<option value="middle">{#table_dlg.align_middle}</option>
|
58
|
-
<option value="bottom">{#table_dlg.align_bottom}</option>
|
59
|
-
</select>
|
60
|
-
</td>
|
61
|
-
</tr>
|
62
|
-
|
63
|
-
<tr id="styleSelectRow">
|
64
|
-
<td><label for="class">{#class_name}</label></td>
|
65
|
-
<td class="col2">
|
66
|
-
<select id="class" name="class" class="mceEditableSelect">
|
67
|
-
<option value="" selected="selected">{#not_set}</option>
|
68
|
-
</select>
|
69
|
-
</td>
|
70
|
-
</tr>
|
71
|
-
|
72
|
-
<tr>
|
73
|
-
<td><label for="height">{#table_dlg.height}</label></td>
|
74
|
-
<td class="col2"><input name="height" type="text" id="height" value="" size="7" maxlength="7" onchange="changedSize();" class="size" /></td>
|
75
|
-
</tr>
|
76
|
-
</table>
|
77
|
-
</fieldset>
|
78
|
-
</div>
|
79
|
-
|
80
|
-
<div id="advanced_panel" class="panel">
|
81
|
-
<fieldset>
|
82
|
-
<legend>{#table_dlg.advanced_props}</legend>
|
83
|
-
|
84
|
-
<table role="presentation" border="0" cellpadding="0" cellspacing="4">
|
85
|
-
<tr>
|
86
|
-
<td class="column1"><label for="id">{#table_dlg.id}</label></td>
|
87
|
-
<td><input id="id" name="id" type="text" value="" style="width: 200px" /></td>
|
88
|
-
</tr>
|
89
|
-
|
90
|
-
<tr>
|
91
|
-
<td><label for="style">{#table_dlg.style}</label></td>
|
92
|
-
<td><input type="text" id="style" name="style" value="" style="width: 200px;" onchange="changedStyle();" /></td>
|
93
|
-
</tr>
|
94
|
-
|
95
|
-
<tr>
|
96
|
-
<td class="column1"><label for="dir">{#table_dlg.langdir}</label></td>
|
97
|
-
<td>
|
98
|
-
<select id="dir" name="dir" style="width: 200px">
|
99
|
-
<option value="">{#not_set}</option>
|
100
|
-
<option value="ltr">{#table_dlg.ltr}</option>
|
101
|
-
<option value="rtl">{#table_dlg.rtl}</option>
|
102
|
-
</select>
|
103
|
-
</td>
|
104
|
-
</tr>
|
105
|
-
|
106
|
-
<tr>
|
107
|
-
<td class="column1"><label for="lang">{#table_dlg.langcode}</label></td>
|
108
|
-
<td>
|
109
|
-
<input id="lang" name="lang" type="text" value="" style="width: 200px" />
|
110
|
-
</td>
|
111
|
-
</tr>
|
112
|
-
|
113
|
-
<tr>
|
114
|
-
<td class="column1"><label for="backgroundimage">{#table_dlg.bgimage}</label></td>
|
115
|
-
<td>
|
116
|
-
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
117
|
-
<tr>
|
118
|
-
<td><input id="backgroundimage" name="backgroundimage" type="text" value="" style="width: 200px" onchange="changedBackgroundImage();" /></td>
|
119
|
-
<td id="backgroundimagebrowsercontainer"> </td>
|
120
|
-
</tr>
|
121
|
-
</table>
|
122
|
-
</td>
|
123
|
-
</tr>
|
124
|
-
|
125
|
-
<tr>
|
126
|
-
<td class="column1"><label for="bgcolor" id="bgcolor_label">{#table_dlg.bgcolor}</label></td>
|
127
|
-
<td>
|
128
|
-
<span role="group" aria-labelledby="bgcolor_label">
|
129
|
-
<table role="presentation" border="0" cellpadding="0" cellspacing="0">
|
130
|
-
<tr>
|
131
|
-
<td><input id="bgcolor" name="bgcolor" type="text" value="" size="9" onchange="updateColor('bgcolor_pick','bgcolor');changedColor();" /></td>
|
132
|
-
<td id="bgcolor_pickcontainer"> </td>
|
133
|
-
</tr>
|
134
|
-
</table>
|
135
|
-
</span>
|
136
|
-
</td>
|
137
|
-
</tr>
|
138
|
-
</table>
|
139
|
-
</fieldset>
|
140
|
-
</div>
|
141
|
-
</div>
|
142
|
-
|
143
|
-
<div class="mceActionPanel">
|
144
|
-
<div>
|
145
|
-
<select id="action" name="action">
|
146
|
-
<option value="row">{#table_dlg.row_row}</option>
|
147
|
-
<option value="odd">{#table_dlg.row_odd}</option>
|
148
|
-
<option value="even">{#table_dlg.row_even}</option>
|
149
|
-
<option value="all">{#table_dlg.row_all}</option>
|
150
|
-
</select>
|
151
|
-
</div>
|
152
|
-
|
153
|
-
<input type="submit" id="insert" name="insert" value="{#update}" />
|
154
|
-
<input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
|
155
|
-
</div>
|
156
|
-
</form>
|
157
|
-
</body>
|
158
|
-
</html>
|
@@ -1 +0,0 @@
|
|
1
|
-
(function(){tinymce.create("tinymce.plugins.WordCount",{block:0,id:null,countre:null,cleanre:null,init:function(a,b){var c=this,d=0;c.countre=a.getParam("wordcount_countregex",/[\w\u2019\'-]+/g);c.cleanre=a.getParam("wordcount_cleanregex",/[0-9.(),;:!?%#$?\'\"_+=\\\/-]*/g);c.id=a.id+"-word-count";a.onPostRender.add(function(f,e){var g,h;h=f.getParam("wordcount_target_id");if(!h){g=tinymce.DOM.get(f.id+"_path_row");if(g){tinymce.DOM.add(g.parentNode,"div",{style:"float: right"},f.getLang("wordcount.words","Words: ")+'<span id="'+c.id+'">0</span>')}}else{tinymce.DOM.add(h,"span",{},'<span id="'+c.id+'">0</span>')}});a.onInit.add(function(e){e.selection.onSetContent.add(function(){c._count(e)});c._count(e)});a.onSetContent.add(function(e){c._count(e)});a.onKeyUp.add(function(f,g){if(g.keyCode==d){return}if(13==g.keyCode||8==d||46==d){c._count(f)}d=g.keyCode})},_getCount:function(c){var a=0;var b=c.getContent({format:"raw"});if(b){b=b.replace(/\.\.\./g," ");b=b.replace(/<.[^<>]*?>/g," ").replace(/ | /gi," ");b=b.replace(/(\w+)(&.+?;)+(\w+)/,"$1$3").replace(/&.+?;/g," ");b=b.replace(this.cleanre,"");var d=b.match(this.countre);if(d){a=d.length}}return a},_count:function(a){var b=this;if(b.block){return}b.block=1;setTimeout(function(){if(!a.destroyed){var c=b._getCount(a);tinymce.DOM.setHTML(b.id,c.toString());setTimeout(function(){b.block=0},2000)}},1)},getInfo:function(){return{longname:"Word Count plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/wordcount",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("wordcount",tinymce.plugins.WordCount)})();
|
@@ -1,114 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* editor_plugin_src.js
|
3
|
-
*
|
4
|
-
* Copyright 2009, Moxiecode Systems AB
|
5
|
-
* Released under LGPL License.
|
6
|
-
*
|
7
|
-
* License: http://tinymce.moxiecode.com/license
|
8
|
-
* Contributing: http://tinymce.moxiecode.com/contributing
|
9
|
-
*/
|
10
|
-
|
11
|
-
(function() {
|
12
|
-
tinymce.create('tinymce.plugins.WordCount', {
|
13
|
-
block : 0,
|
14
|
-
id : null,
|
15
|
-
countre : null,
|
16
|
-
cleanre : null,
|
17
|
-
|
18
|
-
init : function(ed, url) {
|
19
|
-
var t = this, last = 0;
|
20
|
-
|
21
|
-
t.countre = ed.getParam('wordcount_countregex', /[\w\u2019\'-]+/g); // u2019 == ’
|
22
|
-
t.cleanre = ed.getParam('wordcount_cleanregex', /[0-9.(),;:!?%#$?\'\"_+=\\\/-]*/g);
|
23
|
-
t.id = ed.id + '-word-count';
|
24
|
-
|
25
|
-
ed.onPostRender.add(function(ed, cm) {
|
26
|
-
var row, id;
|
27
|
-
|
28
|
-
// Add it to the specified id or the theme advanced path
|
29
|
-
id = ed.getParam('wordcount_target_id');
|
30
|
-
if (!id) {
|
31
|
-
row = tinymce.DOM.get(ed.id + '_path_row');
|
32
|
-
|
33
|
-
if (row)
|
34
|
-
tinymce.DOM.add(row.parentNode, 'div', {'style': 'float: right'}, ed.getLang('wordcount.words', 'Words: ') + '<span id="' + t.id + '">0</span>');
|
35
|
-
} else {
|
36
|
-
tinymce.DOM.add(id, 'span', {}, '<span id="' + t.id + '">0</span>');
|
37
|
-
}
|
38
|
-
});
|
39
|
-
|
40
|
-
ed.onInit.add(function(ed) {
|
41
|
-
ed.selection.onSetContent.add(function() {
|
42
|
-
t._count(ed);
|
43
|
-
});
|
44
|
-
|
45
|
-
t._count(ed);
|
46
|
-
});
|
47
|
-
|
48
|
-
ed.onSetContent.add(function(ed) {
|
49
|
-
t._count(ed);
|
50
|
-
});
|
51
|
-
|
52
|
-
ed.onKeyUp.add(function(ed, e) {
|
53
|
-
if (e.keyCode == last)
|
54
|
-
return;
|
55
|
-
|
56
|
-
if (13 == e.keyCode || 8 == last || 46 == last)
|
57
|
-
t._count(ed);
|
58
|
-
|
59
|
-
last = e.keyCode;
|
60
|
-
});
|
61
|
-
},
|
62
|
-
|
63
|
-
_getCount : function(ed) {
|
64
|
-
var tc = 0;
|
65
|
-
var tx = ed.getContent({ format: 'raw' });
|
66
|
-
|
67
|
-
if (tx) {
|
68
|
-
tx = tx.replace(/\.\.\./g, ' '); // convert ellipses to spaces
|
69
|
-
tx = tx.replace(/<.[^<>]*?>/g, ' ').replace(/ | /gi, ' '); // remove html tags and space chars
|
70
|
-
|
71
|
-
// deal with html entities
|
72
|
-
tx = tx.replace(/(\w+)(&.+?;)+(\w+)/, "$1$3").replace(/&.+?;/g, ' ');
|
73
|
-
tx = tx.replace(this.cleanre, ''); // remove numbers and punctuation
|
74
|
-
|
75
|
-
var wordArray = tx.match(this.countre);
|
76
|
-
if (wordArray) {
|
77
|
-
tc = wordArray.length;
|
78
|
-
}
|
79
|
-
}
|
80
|
-
|
81
|
-
return tc;
|
82
|
-
},
|
83
|
-
|
84
|
-
_count : function(ed) {
|
85
|
-
var t = this;
|
86
|
-
|
87
|
-
// Keep multiple calls from happening at the same time
|
88
|
-
if (t.block)
|
89
|
-
return;
|
90
|
-
|
91
|
-
t.block = 1;
|
92
|
-
|
93
|
-
setTimeout(function() {
|
94
|
-
if (!ed.destroyed) {
|
95
|
-
var tc = t._getCount(ed);
|
96
|
-
tinymce.DOM.setHTML(t.id, tc.toString());
|
97
|
-
setTimeout(function() {t.block = 0;}, 2000);
|
98
|
-
}
|
99
|
-
}, 1);
|
100
|
-
},
|
101
|
-
|
102
|
-
getInfo: function() {
|
103
|
-
return {
|
104
|
-
longname : 'Word Count plugin',
|
105
|
-
author : 'Moxiecode Systems AB',
|
106
|
-
authorurl : 'http://tinymce.moxiecode.com',
|
107
|
-
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/wordcount',
|
108
|
-
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
109
|
-
};
|
110
|
-
}
|
111
|
-
});
|
112
|
-
|
113
|
-
tinymce.PluginManager.add('wordcount', tinymce.plugins.WordCount);
|
114
|
-
})();
|
@@ -1,74 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
2
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
-
<head>
|
4
|
-
<title>{#advanced_dlg.colorpicker_title}</title>
|
5
|
-
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
|
6
|
-
<script type="text/javascript" src="../../utils/mctabs.js"></script>
|
7
|
-
<script type="text/javascript" src="js/color_picker.js"></script>
|
8
|
-
</head>
|
9
|
-
<body id="colorpicker" style="display: none" role="application" aria-labelledby="app_label">
|
10
|
-
<span class="mceVoiceLabel" id="app_label" style="display:none;">{#advanced_dlg.colorpicker_title}</span>
|
11
|
-
<form onsubmit="insertAction();return false" action="#">
|
12
|
-
<div class="tabs">
|
13
|
-
<ul>
|
14
|
-
<li id="picker_tab" aria-controls="picker_panel" class="current"><span><a href="javascript:mcTabs.displayTab('picker_tab','picker_panel');" onmousedown="return false;">{#advanced_dlg.colorpicker_picker_tab}</a></span></li>
|
15
|
-
<li id="rgb_tab" aria-controls="rgb_panel"><span><a href="javascript:;" onclick="mcTabs.displayTab('rgb_tab','rgb_panel');" onmousedown="return false;">{#advanced_dlg.colorpicker_palette_tab}</a></span></li>
|
16
|
-
<li id="named_tab" aria-controls="named_panel"><span><a href="javascript:;" onclick="javascript:mcTabs.displayTab('named_tab','named_panel');" onmousedown="return false;">{#advanced_dlg.colorpicker_named_tab}</a></span></li>
|
17
|
-
</ul>
|
18
|
-
</div>
|
19
|
-
|
20
|
-
<div class="panel_wrapper">
|
21
|
-
<div id="picker_panel" class="panel current">
|
22
|
-
<fieldset>
|
23
|
-
<legend>{#advanced_dlg.colorpicker_picker_title}</legend>
|
24
|
-
<div id="picker">
|
25
|
-
<img id="colors" src="img/colorpicker.jpg" onclick="computeColor(event)" onmousedown="isMouseDown = true;return false;" onmouseup="isMouseDown = false;" onmousemove="if (isMouseDown && isMouseOver) computeColor(event); return false;" onmouseover="isMouseOver=true;" onmouseout="isMouseOver=false;" alt="" />
|
26
|
-
|
27
|
-
<div id="light">
|
28
|
-
<!-- Will be filled with divs -->
|
29
|
-
</div>
|
30
|
-
|
31
|
-
<br style="clear: both" />
|
32
|
-
</div>
|
33
|
-
</fieldset>
|
34
|
-
</div>
|
35
|
-
|
36
|
-
<div id="rgb_panel" class="panel">
|
37
|
-
<fieldset>
|
38
|
-
<legend id="webcolors_title">{#advanced_dlg.colorpicker_palette_title}</legend>
|
39
|
-
<div id="webcolors">
|
40
|
-
<!-- Gets filled with web safe colors-->
|
41
|
-
</div>
|
42
|
-
|
43
|
-
<br style="clear: both" />
|
44
|
-
</fieldset>
|
45
|
-
</div>
|
46
|
-
|
47
|
-
<div id="named_panel" class="panel">
|
48
|
-
<fieldset id="named_picker_label">
|
49
|
-
<legend id="named_title">{#advanced_dlg.colorpicker_named_title}</legend>
|
50
|
-
<div id="namedcolors" role="listbox" tabindex="0" aria-labelledby="named_picker_label">
|
51
|
-
<!-- Gets filled with named colors-->
|
52
|
-
</div>
|
53
|
-
|
54
|
-
<br style="clear: both" />
|
55
|
-
|
56
|
-
<div id="colornamecontainer">
|
57
|
-
{#advanced_dlg.colorpicker_name} <span id="colorname"></span>
|
58
|
-
</div>
|
59
|
-
</fieldset>
|
60
|
-
</div>
|
61
|
-
</div>
|
62
|
-
|
63
|
-
<div class="mceActionPanel">
|
64
|
-
<input type="submit" id="insert" name="insert" value="{#apply}" />
|
65
|
-
|
66
|
-
<div id="preview"></div>
|
67
|
-
|
68
|
-
<div id="previewblock">
|
69
|
-
<label for="color">{#advanced_dlg.colorpicker_color}</label> <input id="color" type="text" size="8" class="text mceFocus" aria-required="true" />
|
70
|
-
</div>
|
71
|
-
</div>
|
72
|
-
</form>
|
73
|
-
</body>
|
74
|
-
</html>
|
@@ -1 +0,0 @@
|
|
1
|
-
(function(e){var d=e.DOM,b=e.dom.Event,h=e.extend,f=e.each,a=e.util.Cookie,g,c=e.explode;e.ThemeManager.requireLangPack("advanced");e.create("tinymce.themes.AdvancedTheme",{sizes:[8,10,12,14,18,24,36],controls:{bold:["bold_desc","Bold"],italic:["italic_desc","Italic"],underline:["underline_desc","Underline"],strikethrough:["striketrough_desc","Strikethrough"],justifyleft:["justifyleft_desc","JustifyLeft"],justifycenter:["justifycenter_desc","JustifyCenter"],justifyright:["justifyright_desc","JustifyRight"],justifyfull:["justifyfull_desc","JustifyFull"],bullist:["bullist_desc","InsertUnorderedList"],numlist:["numlist_desc","InsertOrderedList"],outdent:["outdent_desc","Outdent"],indent:["indent_desc","Indent"],cut:["cut_desc","Cut"],copy:["copy_desc","Copy"],paste:["paste_desc","Paste"],undo:["undo_desc","Undo"],redo:["redo_desc","Redo"],link:["link_desc","mceLink"],unlink:["unlink_desc","unlink"],image:["image_desc","mceImage"],cleanup:["cleanup_desc","mceCleanup"],help:["help_desc","mceHelp"],code:["code_desc","mceCodeEditor"],hr:["hr_desc","InsertHorizontalRule"],removeformat:["removeformat_desc","RemoveFormat"],sub:["sub_desc","subscript"],sup:["sup_desc","superscript"],forecolor:["forecolor_desc","ForeColor"],forecolorpicker:["forecolor_desc","mceForeColor"],backcolor:["backcolor_desc","HiliteColor"],backcolorpicker:["backcolor_desc","mceBackColor"],charmap:["charmap_desc","mceCharMap"],visualaid:["visualaid_desc","mceToggleVisualAid"],anchor:["anchor_desc","mceInsertAnchor"],newdocument:["newdocument_desc","mceNewDocument"],blockquote:["blockquote_desc","mceBlockQuote"]},stateControls:["bold","italic","underline","strikethrough","bullist","numlist","justifyleft","justifycenter","justifyright","justifyfull","sub","sup","blockquote"],init:function(j,k){var l=this,m,i,n;l.editor=j;l.url=k;l.onResolveName=new e.util.Dispatcher(this);j.forcedHighContrastMode=j.settings.detect_highcontrast&&l._isHighContrast();j.settings.skin=j.forcedHighContrastMode?"highcontrast":j.settings.skin;l.settings=m=h({theme_advanced_path:true,theme_advanced_toolbar_location:"bottom",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect",theme_advanced_buttons2:"bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code",theme_advanced_buttons3:"hr,removeformat,visualaid,|,sub,sup,|,charmap",theme_advanced_blockformats:"p,address,pre,h1,h2,h3,h4,h5,h6",theme_advanced_toolbar_align:"center",theme_advanced_fonts:"Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",theme_advanced_more_colors:1,theme_advanced_row_height:23,theme_advanced_resize_horizontal:1,theme_advanced_resizing_use_cookie:1,theme_advanced_font_sizes:"1,2,3,4,5,6,7",theme_advanced_font_selector:"span",theme_advanced_show_current_color:0,readonly:j.settings.readonly},j.settings);if(!m.font_size_style_values){m.font_size_style_values="8pt,10pt,12pt,14pt,18pt,24pt,36pt"}if(e.is(m.theme_advanced_font_sizes,"string")){m.font_size_style_values=e.explode(m.font_size_style_values);m.font_size_classes=e.explode(m.font_size_classes||"");n={};j.settings.theme_advanced_font_sizes=m.theme_advanced_font_sizes;f(j.getParam("theme_advanced_font_sizes","","hash"),function(q,p){var o;if(p==q&&q>=1&&q<=7){p=q+" ("+l.sizes[q-1]+"pt)";o=m.font_size_classes[q-1];q=m.font_size_style_values[q-1]||(l.sizes[q-1]+"pt")}if(/^\s*\./.test(q)){o=q.replace(/\./g,"")}n[p]=o?{"class":o}:{fontSize:q}});m.theme_advanced_font_sizes=n}if((i=m.theme_advanced_path_location)&&i!="none"){m.theme_advanced_statusbar_location=m.theme_advanced_path_location}if(m.theme_advanced_statusbar_location=="none"){m.theme_advanced_statusbar_location=0}if(j.settings.content_css!==false){j.contentCSS.push(j.baseURI.toAbsolute(k+"/skins/"+j.settings.skin+"/content.css"))}j.onInit.add(function(){if(!j.settings.readonly){j.onNodeChange.add(l._nodeChanged,l);j.onKeyUp.add(l._updateUndoStatus,l);j.onMouseUp.add(l._updateUndoStatus,l);j.dom.bind(j.dom.getRoot(),"dragend",function(){l._updateUndoStatus(j)})}});j.onSetProgressState.add(function(q,o,r){var s,t=q.id,p;if(o){l.progressTimer=setTimeout(function(){s=q.getContainer();s=s.insertBefore(d.create("DIV",{style:"position:relative"}),s.firstChild);p=d.get(q.id+"_tbl");d.add(s,"div",{id:t+"_blocker","class":"mceBlocker",style:{width:p.clientWidth+2,height:p.clientHeight+2}});d.add(s,"div",{id:t+"_progress","class":"mceProgress",style:{left:p.clientWidth/2,top:p.clientHeight/2}})},r||0)}else{d.remove(t+"_blocker");d.remove(t+"_progress");clearTimeout(l.progressTimer)}});d.loadCSS(m.editor_css?j.documentBaseURI.toAbsolute(m.editor_css):k+"/skins/"+j.settings.skin+"/ui.css");if(m.skin_variant){d.loadCSS(k+"/skins/"+j.settings.skin+"/ui_"+m.skin_variant+".css")}},_isHighContrast:function(){var i,j=d.add(d.getRoot(),"div",{style:"background-color: rgb(171,239,86);"});i=(d.getStyle(j,"background-color",true)+"").toLowerCase().replace(/ /g,"");d.remove(j);return i!="rgb(171,239,86)"&&i!="#abef56"},createControl:function(l,i){var j,k;if(k=i.createControl(l)){return k}switch(l){case"styleselect":return this._createStyleSelect();case"formatselect":return this._createBlockFormats();case"fontselect":return this._createFontSelect();case"fontsizeselect":return this._createFontSizeSelect();case"forecolor":return this._createForeColorMenu();case"backcolor":return this._createBackColorMenu()}if((j=this.controls[l])){return i.createButton(l,{title:"advanced."+j[0],cmd:j[1],ui:j[2],value:j[3]})}},execCommand:function(k,j,l){var i=this["_"+k];if(i){i.call(this,j,l);return true}return false},_importClasses:function(k){var i=this.editor,j=i.controlManager.get("styleselect");if(j.getLength()==0){f(i.dom.getClasses(),function(n,l){var m="style_"+l;i.formatter.register(m,{inline:"span",attributes:{"class":n["class"]},selector:"*"});j.add(n["class"],m)})}},_createStyleSelect:function(m){var k=this,i=k.editor,j=i.controlManager,l;l=j.createListBox("styleselect",{title:"advanced.style_select",onselect:function(o){var p,n=[];f(l.items,function(q){n.push(q.value)});i.focus();i.undoManager.add();p=i.formatter.matchAll(n);if(!o||p[0]==o){if(p[0]){i.formatter.remove(p[0])}}else{i.formatter.apply(o)}i.undoManager.add();i.nodeChanged();return false}});i.onInit.add(function(){var o=0,n=i.getParam("style_formats");if(n){f(n,function(p){var q,r=0;f(p,function(){r++});if(r>1){q=p.name=p.name||"style_"+(o++);i.formatter.register(q,p);l.add(p.title,q)}else{l.add(p.title)}})}else{f(i.getParam("theme_advanced_styles","","hash"),function(r,q){var p;if(r){p="style_"+(o++);i.formatter.register(p,{inline:"span",classes:r,selector:"*"});l.add(k.editor.translate(q),p)}})}});if(l.getLength()==0){l.onPostRender.add(function(o,p){if(!l.NativeListBox){b.add(p.id+"_text","focus",k._importClasses,k);b.add(p.id+"_text","mousedown",k._importClasses,k);b.add(p.id+"_open","focus",k._importClasses,k);b.add(p.id+"_open","mousedown",k._importClasses,k)}else{b.add(p.id,"focus",k._importClasses,k)}})}return l},_createFontSelect:function(){var k,j=this,i=j.editor;k=i.controlManager.createListBox("fontselect",{title:"advanced.fontdefault",onselect:function(l){var m=k.items[k.selectedIndex];if(!l&&m){i.execCommand("FontName",false,m.value);return}i.execCommand("FontName",false,l);k.select(function(n){return l==n});if(m&&m.value==l){k.select(null)}return false}});if(k){f(i.getParam("theme_advanced_fonts",j.settings.theme_advanced_fonts,"hash"),function(m,l){k.add(i.translate(l),m,{style:m.indexOf("dings")==-1?"font-family:"+m:""})})}return k},_createFontSizeSelect:function(){var m=this,k=m.editor,n,l=0,j=[];n=k.controlManager.createListBox("fontsizeselect",{title:"advanced.font_size",onselect:function(i){var o=n.items[n.selectedIndex];if(!i&&o){o=o.value;if(o["class"]){k.formatter.toggle("fontsize_class",{value:o["class"]});k.undoManager.add();k.nodeChanged()}else{k.execCommand("FontSize",false,o.fontSize)}return}if(i["class"]){k.focus();k.undoManager.add();k.formatter.toggle("fontsize_class",{value:i["class"]});k.undoManager.add();k.nodeChanged()}else{k.execCommand("FontSize",false,i.fontSize)}n.select(function(p){return i==p});if(o&&(o.value.fontSize==i.fontSize||o.value["class"]==i["class"])){n.select(null)}return false}});if(n){f(m.settings.theme_advanced_font_sizes,function(o,i){var p=o.fontSize;if(p>=1&&p<=7){p=m.sizes[parseInt(p)-1]+"pt"}n.add(i,o,{style:"font-size:"+p,"class":"mceFontSize"+(l++)+(" "+(o["class"]||""))})})}return n},_createBlockFormats:function(){var k,i={p:"advanced.paragraph",address:"advanced.address",pre:"advanced.pre",h1:"advanced.h1",h2:"advanced.h2",h3:"advanced.h3",h4:"advanced.h4",h5:"advanced.h5",h6:"advanced.h6",div:"advanced.div",blockquote:"advanced.blockquote",code:"advanced.code",dt:"advanced.dt",dd:"advanced.dd",samp:"advanced.samp"},j=this;k=j.editor.controlManager.createListBox("formatselect",{title:"advanced.block",onselect:function(l){j.editor.execCommand("FormatBlock",false,l);return false}});if(k){f(j.editor.getParam("theme_advanced_blockformats",j.settings.theme_advanced_blockformats,"hash"),function(m,l){k.add(j.editor.translate(l!=m?l:i[m]),m,{"class":"mce_formatPreview mce_"+m})})}return k},_createForeColorMenu:function(){var m,j=this,k=j.settings,l={},i;if(k.theme_advanced_more_colors){l.more_colors_func=function(){j._mceColorPicker(0,{color:m.value,func:function(n){m.setColor(n)}})}}if(i=k.theme_advanced_text_colors){l.colors=i}if(k.theme_advanced_default_foreground_color){l.default_color=k.theme_advanced_default_foreground_color}l.title="advanced.forecolor_desc";l.cmd="ForeColor";l.scope=this;m=j.editor.controlManager.createColorSplitButton("forecolor",l);return m},_createBackColorMenu:function(){var m,j=this,k=j.settings,l={},i;if(k.theme_advanced_more_colors){l.more_colors_func=function(){j._mceColorPicker(0,{color:m.value,func:function(n){m.setColor(n)}})}}if(i=k.theme_advanced_background_colors){l.colors=i}if(k.theme_advanced_default_background_color){l.default_color=k.theme_advanced_default_background_color}l.title="advanced.backcolor_desc";l.cmd="HiliteColor";l.scope=this;m=j.editor.controlManager.createColorSplitButton("backcolor",l);return m},renderUI:function(k){var m,l,q,v=this,r=v.editor,w=v.settings,u,j,i;if(r.settings){r.settings.aria_label=w.aria_label+r.getLang("advanced.help_shortcut")}m=j=d.create("span",{role:"application","aria-labelledby":r.id+"_voice",id:r.id+"_parent","class":"mceEditor "+r.settings.skin+"Skin"+(w.skin_variant?" "+r.settings.skin+"Skin"+v._ufirst(w.skin_variant):"")});d.add(m,"span",{"class":"mceVoiceLabel",style:"display:none;",id:r.id+"_voice"},w.aria_label);if(!d.boxModel){m=d.add(m,"div",{"class":"mceOldBoxModel"})}m=u=d.add(m,"table",{role:"presentation",id:r.id+"_tbl","class":"mceLayout",cellSpacing:0,cellPadding:0});m=q=d.add(m,"tbody");switch((w.theme_advanced_layout_manager||"").toLowerCase()){case"rowlayout":l=v._rowLayout(w,q,k);break;case"customlayout":l=r.execCallback("theme_advanced_custom_layout",w,q,k,j);break;default:l=v._simpleLayout(w,q,k,j)}m=k.targetNode;i=u.rows;d.addClass(i[0],"mceFirst");d.addClass(i[i.length-1],"mceLast");f(d.select("tr",q),function(o){d.addClass(o.firstChild,"mceFirst");d.addClass(o.childNodes[o.childNodes.length-1],"mceLast")});if(d.get(w.theme_advanced_toolbar_container)){d.get(w.theme_advanced_toolbar_container).appendChild(j)}else{d.insertAfter(j,m)}b.add(r.id+"_path_row","click",function(n){n=n.target;if(n.nodeName=="A"){v._sel(n.className.replace(/^.*mcePath_([0-9]+).*$/,"$1"));return b.cancel(n)}});if(!r.getParam("accessibility_focus")){b.add(d.add(j,"a",{href:"#"},"<!-- IE -->"),"focus",function(){tinyMCE.get(r.id).focus()})}if(w.theme_advanced_toolbar_location=="external"){k.deltaHeight=0}v.deltaHeight=k.deltaHeight;k.targetNode=null;r.onKeyDown.add(function(p,n){var s=121,o=122;if(n.altKey){if(n.keyCode===s){if(e.isWebKit){window.focus()}v.toolbarGroup.focus();return b.cancel(n)}else{if(n.keyCode===o){d.get(p.id+"_path_row").focus();return b.cancel(n)}}}});r.addShortcut("alt+0","","mceShortcuts",v);return{iframeContainer:l,editorContainer:r.id+"_parent",sizeContainer:u,deltaHeight:k.deltaHeight}},getInfo:function(){return{longname:"Advanced theme",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",version:e.majorVersion+"."+e.minorVersion}},resizeBy:function(i,j){var k=d.get(this.editor.id+"_ifr");this.resizeTo(k.clientWidth+i,k.clientHeight+j)},resizeTo:function(i,m,k){var j=this.editor,l=this.settings,n=d.get(j.id+"_tbl"),o=d.get(j.id+"_ifr");i=Math.max(l.theme_advanced_resizing_min_width||100,i);m=Math.max(l.theme_advanced_resizing_min_height||100,m);i=Math.min(l.theme_advanced_resizing_max_width||65535,i);m=Math.min(l.theme_advanced_resizing_max_height||65535,m);d.setStyle(n,"height","");d.setStyle(o,"height",m);if(l.theme_advanced_resize_horizontal){d.setStyle(n,"width","");d.setStyle(o,"width",i);if(i<n.clientWidth){i=n.clientWidth;d.setStyle(o,"width",n.clientWidth)}}if(k&&l.theme_advanced_resizing_use_cookie){a.setHash("TinyMCE_"+j.id+"_size",{cw:i,ch:m})}},destroy:function(){var i=this.editor.id;b.clear(i+"_resize");b.clear(i+"_path_row");b.clear(i+"_external_close")},_simpleLayout:function(y,r,k,i){var x=this,u=x.editor,v=y.theme_advanced_toolbar_location,m=y.theme_advanced_statusbar_location,l,j,q,w;if(y.readonly){l=d.add(r,"tr");l=j=d.add(l,"td",{"class":"mceIframeContainer"});return j}if(v=="top"){x._addToolbars(r,k)}if(v=="external"){l=w=d.create("div",{style:"position:relative"});l=d.add(l,"div",{id:u.id+"_external","class":"mceExternalToolbar"});d.add(l,"a",{id:u.id+"_external_close",href:"javascript:;","class":"mceExternalClose"});l=d.add(l,"table",{id:u.id+"_tblext",cellSpacing:0,cellPadding:0});q=d.add(l,"tbody");if(i.firstChild.className=="mceOldBoxModel"){i.firstChild.appendChild(w)}else{i.insertBefore(w,i.firstChild)}x._addToolbars(q,k);u.onMouseUp.add(function(){var o=d.get(u.id+"_external");d.show(o);d.hide(g);var n=b.add(u.id+"_external_close","click",function(){d.hide(u.id+"_external");b.remove(u.id+"_external_close","click",n)});d.show(o);d.setStyle(o,"top",0-d.getRect(u.id+"_tblext").h-1);d.hide(o);d.show(o);o.style.filter="";g=u.id+"_external";o=null})}if(m=="top"){x._addStatusBar(r,k)}if(!y.theme_advanced_toolbar_container){l=d.add(r,"tr");l=j=d.add(l,"td",{"class":"mceIframeContainer"})}if(v=="bottom"){x._addToolbars(r,k)}if(m=="bottom"){x._addStatusBar(r,k)}return j},_rowLayout:function(w,m,k){var v=this,p=v.editor,u,x,i=p.controlManager,l,j,r,q;u=w.theme_advanced_containers_default_class||"";x=w.theme_advanced_containers_default_align||"center";f(c(w.theme_advanced_containers||""),function(s,o){var n=w["theme_advanced_container_"+s]||"";switch(s.toLowerCase()){case"mceeditor":l=d.add(m,"tr");l=j=d.add(l,"td",{"class":"mceIframeContainer"});break;case"mceelementpath":v._addStatusBar(m,k);break;default:q=(w["theme_advanced_container_"+s+"_align"]||x).toLowerCase();q="mce"+v._ufirst(q);l=d.add(d.add(m,"tr"),"td",{"class":"mceToolbar "+(w["theme_advanced_container_"+s+"_class"]||u)+" "+q||x});r=i.createToolbar("toolbar"+o);v._addControls(n,r);d.setHTML(l,r.renderHTML());k.deltaHeight-=w.theme_advanced_row_height}});return j},_addControls:function(j,i){var k=this,l=k.settings,m,n=k.editor.controlManager;if(l.theme_advanced_disable&&!k._disabled){m={};f(c(l.theme_advanced_disable),function(o){m[o]=1});k._disabled=m}else{m=k._disabled}f(c(j),function(p){var o;if(m&&m[p]){return}if(p=="tablecontrols"){f(["table","|","row_props","cell_props","|","row_before","row_after","delete_row","|","col_before","col_after","delete_col","|","split_cells","merge_cells"],function(q){q=k.createControl(q,n);if(q){i.add(q)}});return}o=k.createControl(p,n);if(o){i.add(o)}})},_addToolbars:function(x,k){var A=this,p,m,r=A.editor,B=A.settings,z,j=r.controlManager,u,l,q=[],y,w;w=j.createToolbarGroup("toolbargroup",{name:r.getLang("advanced.toolbar"),tab_focus_toolbar:r.getParam("theme_advanced_tab_focus_toolbar")});A.toolbarGroup=w;y=B.theme_advanced_toolbar_align.toLowerCase();y="mce"+A._ufirst(y);l=d.add(d.add(x,"tr",{role:"presentation"}),"td",{"class":"mceToolbar "+y,role:"presentation"});for(p=1;(z=B["theme_advanced_buttons"+p]);p++){m=j.createToolbar("toolbar"+p,{"class":"mceToolbarRow"+p});if(B["theme_advanced_buttons"+p+"_add"]){z+=","+B["theme_advanced_buttons"+p+"_add"]}if(B["theme_advanced_buttons"+p+"_add_before"]){z=B["theme_advanced_buttons"+p+"_add_before"]+","+z}A._addControls(z,m);w.add(m);k.deltaHeight-=B.theme_advanced_row_height}q.push(w.renderHTML());q.push(d.createHTML("a",{href:"#",accesskey:"z",title:r.getLang("advanced.toolbar_focus"),onfocus:"tinyMCE.getInstanceById('"+r.id+"').focus();"},"<!-- IE -->"));d.setHTML(l,q.join(""))},_addStatusBar:function(m,j){var k,v=this,p=v.editor,w=v.settings,i,q,u,l;k=d.add(m,"tr");k=l=d.add(k,"td",{"class":"mceStatusbar"});k=d.add(k,"div",{id:p.id+"_path_row",role:"group","aria-labelledby":p.id+"_path_voice"});if(w.theme_advanced_path){d.add(k,"span",{id:p.id+"_path_voice"},p.translate("advanced.path"));d.add(k,"span",{},": ")}else{d.add(k,"span",{}," ")}if(w.theme_advanced_resizing){d.add(l,"a",{id:p.id+"_resize",href:"javascript:;",onclick:"return false;","class":"mceResize",tabIndex:"-1"});if(w.theme_advanced_resizing_use_cookie){p.onPostRender.add(function(){var n=a.getHash("TinyMCE_"+p.id+"_size"),r=d.get(p.id+"_tbl");if(!n){return}v.resizeTo(n.cw,n.ch)})}p.onPostRender.add(function(){b.add(p.id+"_resize","click",function(n){n.preventDefault()});b.add(p.id+"_resize","mousedown",function(D){var t,r,s,o,C,z,A,F,n,E,x;function y(G){G.preventDefault();n=A+(G.screenX-C);E=F+(G.screenY-z);v.resizeTo(n,E)}function B(G){b.remove(d.doc,"mousemove",t);b.remove(p.getDoc(),"mousemove",r);b.remove(d.doc,"mouseup",s);b.remove(p.getDoc(),"mouseup",o);n=A+(G.screenX-C);E=F+(G.screenY-z);v.resizeTo(n,E,true)}D.preventDefault();C=D.screenX;z=D.screenY;x=d.get(v.editor.id+"_ifr");A=n=x.clientWidth;F=E=x.clientHeight;t=b.add(d.doc,"mousemove",y);r=b.add(p.getDoc(),"mousemove",y);s=b.add(d.doc,"mouseup",B);o=b.add(p.getDoc(),"mouseup",B)})})}j.deltaHeight-=21;k=m=null},_updateUndoStatus:function(j){var i=j.controlManager,k=j.undoManager;i.setDisabled("undo",!k.hasUndo()&&!k.typing);i.setDisabled("redo",!k.hasRedo())},_nodeChanged:function(m,r,D,q,E){var y=this,C,F=0,x,G,z=y.settings,w,k,u,B,l,j,i;e.each(y.stateControls,function(n){r.setActive(n,m.queryCommandState(y.controls[n][1]))});function o(p){var s,n=E.parents,t=p;if(typeof(p)=="string"){t=function(v){return v.nodeName==p}}for(s=0;s<n.length;s++){if(t(n[s])){return n[s]}}}r.setActive("visualaid",m.hasVisual);y._updateUndoStatus(m);r.setDisabled("outdent",!m.queryCommandState("Outdent"));C=o("A");if(G=r.get("link")){if(!C||!C.name){G.setDisabled(!C&&q);G.setActive(!!C)}}if(G=r.get("unlink")){G.setDisabled(!C&&q);G.setActive(!!C&&!C.name)}if(G=r.get("anchor")){G.setActive(!q&&!!C&&C.name)}C=o("IMG");if(G=r.get("image")){G.setActive(!q&&!!C&&D.className.indexOf("mceItem")==-1)}if(G=r.get("styleselect")){y._importClasses();j=[];f(G.items,function(n){j.push(n.value)});i=m.formatter.matchAll(j);G.select(i[0])}if(G=r.get("formatselect")){C=o(d.isBlock);if(C){G.select(C.nodeName.toLowerCase())}}o(function(p){if(p.nodeName==="SPAN"){if(!w&&p.className){w=p.className}}if(m.dom.is(p,z.theme_advanced_font_selector)){if(!k&&p.style.fontSize){k=p.style.fontSize}if(!u&&p.style.fontFamily){u=p.style.fontFamily.replace(/[\"\']+/g,"").replace(/^([^,]+).*/,"$1").toLowerCase()}if(!B&&p.style.color){B=p.style.color}if(!l&&p.style.backgroundColor){l=p.style.backgroundColor}}return false});if(G=r.get("fontselect")){G.select(function(n){return n.replace(/^([^,]+).*/,"$1").toLowerCase()==u})}if(G=r.get("fontsizeselect")){if(z.theme_advanced_runtime_fontsize&&!k&&!w){k=m.dom.getStyle(D,"fontSize",true)}G.select(function(n){if(n.fontSize&&n.fontSize===k){return true}if(n["class"]&&n["class"]===w){return true}})}if(z.theme_advanced_show_current_color){function A(p,n){if(G=r.get(p)){if(!n){n=G.settings.default_color}if(n!==G.value){G.displayColor(n)}}}A("forecolor",B);A("backcolor",l)}if(z.theme_advanced_show_current_color){function A(p,n){if(G=r.get(p)){if(!n){n=G.settings.default_color}if(n!==G.value){G.displayColor(n)}}}A("forecolor",B);A("backcolor",l)}if(z.theme_advanced_path&&z.theme_advanced_statusbar_location){C=d.get(m.id+"_path")||d.add(m.id+"_path_row","span",{id:m.id+"_path"});if(y.statusKeyboardNavigation){y.statusKeyboardNavigation.destroy();y.statusKeyboardNavigation=null}d.setHTML(C,"");o(function(H){var p=H.nodeName.toLowerCase(),s,v,t="";if(H.nodeType!=1||p==="br"||H.getAttribute("data-mce-bogus")||d.hasClass(H,"mceItemHidden")||d.hasClass(H,"mceItemRemoved")){return}if(e.isIE&&H.scopeName!=="HTML"){p=H.scopeName+":"+p}p=p.replace(/mce\:/g,"");switch(p){case"b":p="strong";break;case"i":p="em";break;case"img":if(x=d.getAttrib(H,"src")){t+="src: "+x+" "}break;case"a":if(x=d.getAttrib(H,"name")){t+="name: "+x+" ";p+="#"+x}if(x=d.getAttrib(H,"href")){t+="href: "+x+" "}break;case"font":if(x=d.getAttrib(H,"face")){t+="font: "+x+" "}if(x=d.getAttrib(H,"size")){t+="size: "+x+" "}if(x=d.getAttrib(H,"color")){t+="color: "+x+" "}break;case"span":if(x=d.getAttrib(H,"style")){t+="style: "+x+" "}break}if(x=d.getAttrib(H,"id")){t+="id: "+x+" "}if(x=H.className){x=x.replace(/\b\s*(webkit|mce|Apple-)\w+\s*\b/g,"");if(x){t+="class: "+x+" ";if(d.isBlock(H)||p=="img"||p=="span"){p+="."+x}}}p=p.replace(/(html:)/g,"");p={name:p,node:H,title:t};y.onResolveName.dispatch(y,p);t=p.title;p=p.name;v=d.create("a",{href:"javascript:;",role:"button",onmousedown:"return false;",title:t,"class":"mcePath_"+(F++)},p);if(C.hasChildNodes()){C.insertBefore(d.create("span",{"aria-hidden":"true"},"\u00a0\u00bb "),C.firstChild);C.insertBefore(v,C.firstChild)}else{C.appendChild(v)}},m.getBody());if(d.select("a",C).length>0){y.statusKeyboardNavigation=new e.ui.KeyboardNavigation({root:m.id+"_path_row",items:d.select("a",C),excludeFromTabOrder:true,onCancel:function(){m.focus()}},d)}}},_sel:function(i){this.editor.execCommand("mceSelectNodeDepth",false,i)},_mceInsertAnchor:function(k,j){var i=this.editor;i.windowManager.open({url:this.url+"/anchor.htm",width:320+parseInt(i.getLang("advanced.anchor_delta_width",0)),height:90+parseInt(i.getLang("advanced.anchor_delta_height",0)),inline:true},{theme_url:this.url})},_mceCharMap:function(){var i=this.editor;i.windowManager.open({url:this.url+"/charmap.htm",width:550+parseInt(i.getLang("advanced.charmap_delta_width",0)),height:260+parseInt(i.getLang("advanced.charmap_delta_height",0)),inline:true},{theme_url:this.url})},_mceHelp:function(){var i=this.editor;i.windowManager.open({url:this.url+"/about.htm",width:480,height:380,inline:true},{theme_url:this.url})},_mceShortcuts:function(){var i=this.editor;i.windowManager.open({url:this.url+"/shortcuts.htm",width:480,height:380,inline:true},{theme_url:this.url})},_mceColorPicker:function(k,j){var i=this.editor;j=j||{};i.windowManager.open({url:this.url+"/color_picker.htm",width:375+parseInt(i.getLang("advanced.colorpicker_delta_width",0)),height:250+parseInt(i.getLang("advanced.colorpicker_delta_height",0)),close_previous:false,inline:true},{input_color:j.color,func:j.func,theme_url:this.url})},_mceCodeEditor:function(j,k){var i=this.editor;i.windowManager.open({url:this.url+"/source_editor.htm",width:parseInt(i.getParam("theme_advanced_source_editor_width",720)),height:parseInt(i.getParam("theme_advanced_source_editor_height",580)),inline:true,resizable:true,maximizable:true},{theme_url:this.url})},_mceImage:function(j,k){var i=this.editor;if(i.dom.getAttrib(i.selection.getNode(),"class").indexOf("mceItem")!=-1){return}i.windowManager.open({url:this.url+"/image.htm",width:355+parseInt(i.getLang("advanced.image_delta_width",0)),height:275+parseInt(i.getLang("advanced.image_delta_height",0)),inline:true},{theme_url:this.url})},_mceLink:function(j,k){var i=this.editor;i.windowManager.open({url:this.url+"/link.htm",width:310+parseInt(i.getLang("advanced.link_delta_width",0)),height:200+parseInt(i.getLang("advanced.link_delta_height",0)),inline:true},{theme_url:this.url})},_mceNewDocument:function(){var i=this.editor;i.windowManager.confirm("advanced.newdocument",function(j){if(j){i.execCommand("mceSetContent",false,"")}})},_mceForeColor:function(){var i=this;this._mceColorPicker(0,{color:i.fgColor,func:function(j){i.fgColor=j;i.editor.execCommand("ForeColor",false,j)}})},_mceBackColor:function(){var i=this;this._mceColorPicker(0,{color:i.bgColor,func:function(j){i.bgColor=j;i.editor.execCommand("HiliteColor",false,j)}})},_ufirst:function(i){return i.substring(0,1).toUpperCase()+i.substring(1)}});e.ThemeManager.add("advanced",e.themes.AdvancedTheme)}(tinymce));
|
@@ -1,1362 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* editor_template_src.js
|
3
|
-
*
|
4
|
-
* Copyright 2009, Moxiecode Systems AB
|
5
|
-
* Released under LGPL License.
|
6
|
-
*
|
7
|
-
* License: http://tinymce.moxiecode.com/license
|
8
|
-
* Contributing: http://tinymce.moxiecode.com/contributing
|
9
|
-
*/
|
10
|
-
|
11
|
-
(function(tinymce) {
|
12
|
-
var DOM = tinymce.DOM, Event = tinymce.dom.Event, extend = tinymce.extend, each = tinymce.each, Cookie = tinymce.util.Cookie, lastExtID, explode = tinymce.explode;
|
13
|
-
|
14
|
-
// Tell it to load theme specific language pack(s)
|
15
|
-
tinymce.ThemeManager.requireLangPack('advanced');
|
16
|
-
|
17
|
-
tinymce.create('tinymce.themes.AdvancedTheme', {
|
18
|
-
sizes : [8, 10, 12, 14, 18, 24, 36],
|
19
|
-
|
20
|
-
// Control name lookup, format: title, command
|
21
|
-
controls : {
|
22
|
-
bold : ['bold_desc', 'Bold'],
|
23
|
-
italic : ['italic_desc', 'Italic'],
|
24
|
-
underline : ['underline_desc', 'Underline'],
|
25
|
-
strikethrough : ['striketrough_desc', 'Strikethrough'],
|
26
|
-
justifyleft : ['justifyleft_desc', 'JustifyLeft'],
|
27
|
-
justifycenter : ['justifycenter_desc', 'JustifyCenter'],
|
28
|
-
justifyright : ['justifyright_desc', 'JustifyRight'],
|
29
|
-
justifyfull : ['justifyfull_desc', 'JustifyFull'],
|
30
|
-
bullist : ['bullist_desc', 'InsertUnorderedList'],
|
31
|
-
numlist : ['numlist_desc', 'InsertOrderedList'],
|
32
|
-
outdent : ['outdent_desc', 'Outdent'],
|
33
|
-
indent : ['indent_desc', 'Indent'],
|
34
|
-
cut : ['cut_desc', 'Cut'],
|
35
|
-
copy : ['copy_desc', 'Copy'],
|
36
|
-
paste : ['paste_desc', 'Paste'],
|
37
|
-
undo : ['undo_desc', 'Undo'],
|
38
|
-
redo : ['redo_desc', 'Redo'],
|
39
|
-
link : ['link_desc', 'mceLink'],
|
40
|
-
unlink : ['unlink_desc', 'unlink'],
|
41
|
-
image : ['image_desc', 'mceImage'],
|
42
|
-
cleanup : ['cleanup_desc', 'mceCleanup'],
|
43
|
-
help : ['help_desc', 'mceHelp'],
|
44
|
-
code : ['code_desc', 'mceCodeEditor'],
|
45
|
-
hr : ['hr_desc', 'InsertHorizontalRule'],
|
46
|
-
removeformat : ['removeformat_desc', 'RemoveFormat'],
|
47
|
-
sub : ['sub_desc', 'subscript'],
|
48
|
-
sup : ['sup_desc', 'superscript'],
|
49
|
-
forecolor : ['forecolor_desc', 'ForeColor'],
|
50
|
-
forecolorpicker : ['forecolor_desc', 'mceForeColor'],
|
51
|
-
backcolor : ['backcolor_desc', 'HiliteColor'],
|
52
|
-
backcolorpicker : ['backcolor_desc', 'mceBackColor'],
|
53
|
-
charmap : ['charmap_desc', 'mceCharMap'],
|
54
|
-
visualaid : ['visualaid_desc', 'mceToggleVisualAid'],
|
55
|
-
anchor : ['anchor_desc', 'mceInsertAnchor'],
|
56
|
-
newdocument : ['newdocument_desc', 'mceNewDocument'],
|
57
|
-
blockquote : ['blockquote_desc', 'mceBlockQuote']
|
58
|
-
},
|
59
|
-
|
60
|
-
stateControls : ['bold', 'italic', 'underline', 'strikethrough', 'bullist', 'numlist', 'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'sub', 'sup', 'blockquote'],
|
61
|
-
|
62
|
-
init : function(ed, url) {
|
63
|
-
var t = this, s, v, o;
|
64
|
-
|
65
|
-
t.editor = ed;
|
66
|
-
t.url = url;
|
67
|
-
t.onResolveName = new tinymce.util.Dispatcher(this);
|
68
|
-
|
69
|
-
ed.forcedHighContrastMode = ed.settings.detect_highcontrast && t._isHighContrast();
|
70
|
-
ed.settings.skin = ed.forcedHighContrastMode ? 'highcontrast' : ed.settings.skin;
|
71
|
-
|
72
|
-
// Default settings
|
73
|
-
t.settings = s = extend({
|
74
|
-
theme_advanced_path : true,
|
75
|
-
theme_advanced_toolbar_location : 'bottom',
|
76
|
-
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect",
|
77
|
-
theme_advanced_buttons2 : "bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code",
|
78
|
-
theme_advanced_buttons3 : "hr,removeformat,visualaid,|,sub,sup,|,charmap",
|
79
|
-
theme_advanced_blockformats : "p,address,pre,h1,h2,h3,h4,h5,h6",
|
80
|
-
theme_advanced_toolbar_align : "center",
|
81
|
-
theme_advanced_fonts : "Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",
|
82
|
-
theme_advanced_more_colors : 1,
|
83
|
-
theme_advanced_row_height : 23,
|
84
|
-
theme_advanced_resize_horizontal : 1,
|
85
|
-
theme_advanced_resizing_use_cookie : 1,
|
86
|
-
theme_advanced_font_sizes : "1,2,3,4,5,6,7",
|
87
|
-
theme_advanced_font_selector : "span",
|
88
|
-
theme_advanced_show_current_color: 0,
|
89
|
-
readonly : ed.settings.readonly
|
90
|
-
}, ed.settings);
|
91
|
-
|
92
|
-
// Setup default font_size_style_values
|
93
|
-
if (!s.font_size_style_values)
|
94
|
-
s.font_size_style_values = "8pt,10pt,12pt,14pt,18pt,24pt,36pt";
|
95
|
-
|
96
|
-
if (tinymce.is(s.theme_advanced_font_sizes, 'string')) {
|
97
|
-
s.font_size_style_values = tinymce.explode(s.font_size_style_values);
|
98
|
-
s.font_size_classes = tinymce.explode(s.font_size_classes || '');
|
99
|
-
|
100
|
-
// Parse string value
|
101
|
-
o = {};
|
102
|
-
ed.settings.theme_advanced_font_sizes = s.theme_advanced_font_sizes;
|
103
|
-
each(ed.getParam('theme_advanced_font_sizes', '', 'hash'), function(v, k) {
|
104
|
-
var cl;
|
105
|
-
|
106
|
-
if (k == v && v >= 1 && v <= 7) {
|
107
|
-
k = v + ' (' + t.sizes[v - 1] + 'pt)';
|
108
|
-
cl = s.font_size_classes[v - 1];
|
109
|
-
v = s.font_size_style_values[v - 1] || (t.sizes[v - 1] + 'pt');
|
110
|
-
}
|
111
|
-
|
112
|
-
if (/^\s*\./.test(v))
|
113
|
-
cl = v.replace(/\./g, '');
|
114
|
-
|
115
|
-
o[k] = cl ? {'class' : cl} : {fontSize : v};
|
116
|
-
});
|
117
|
-
|
118
|
-
s.theme_advanced_font_sizes = o;
|
119
|
-
}
|
120
|
-
|
121
|
-
if ((v = s.theme_advanced_path_location) && v != 'none')
|
122
|
-
s.theme_advanced_statusbar_location = s.theme_advanced_path_location;
|
123
|
-
|
124
|
-
if (s.theme_advanced_statusbar_location == 'none')
|
125
|
-
s.theme_advanced_statusbar_location = 0;
|
126
|
-
|
127
|
-
if (ed.settings.content_css !== false)
|
128
|
-
ed.contentCSS.push(ed.baseURI.toAbsolute(url + "/skins/" + ed.settings.skin + "/content.css"));
|
129
|
-
|
130
|
-
// Init editor
|
131
|
-
ed.onInit.add(function() {
|
132
|
-
if (!ed.settings.readonly) {
|
133
|
-
ed.onNodeChange.add(t._nodeChanged, t);
|
134
|
-
ed.onKeyUp.add(t._updateUndoStatus, t);
|
135
|
-
ed.onMouseUp.add(t._updateUndoStatus, t);
|
136
|
-
ed.dom.bind(ed.dom.getRoot(), 'dragend', function() {
|
137
|
-
t._updateUndoStatus(ed);
|
138
|
-
});
|
139
|
-
}
|
140
|
-
});
|
141
|
-
|
142
|
-
ed.onSetProgressState.add(function(ed, b, ti) {
|
143
|
-
var co, id = ed.id, tb;
|
144
|
-
|
145
|
-
if (b) {
|
146
|
-
t.progressTimer = setTimeout(function() {
|
147
|
-
co = ed.getContainer();
|
148
|
-
co = co.insertBefore(DOM.create('DIV', {style : 'position:relative'}), co.firstChild);
|
149
|
-
tb = DOM.get(ed.id + '_tbl');
|
150
|
-
|
151
|
-
DOM.add(co, 'div', {id : id + '_blocker', 'class' : 'mceBlocker', style : {width : tb.clientWidth + 2, height : tb.clientHeight + 2}});
|
152
|
-
DOM.add(co, 'div', {id : id + '_progress', 'class' : 'mceProgress', style : {left : tb.clientWidth / 2, top : tb.clientHeight / 2}});
|
153
|
-
}, ti || 0);
|
154
|
-
} else {
|
155
|
-
DOM.remove(id + '_blocker');
|
156
|
-
DOM.remove(id + '_progress');
|
157
|
-
clearTimeout(t.progressTimer);
|
158
|
-
}
|
159
|
-
});
|
160
|
-
|
161
|
-
DOM.loadCSS(s.editor_css ? ed.documentBaseURI.toAbsolute(s.editor_css) : url + "/skins/" + ed.settings.skin + "/ui.css");
|
162
|
-
|
163
|
-
if (s.skin_variant)
|
164
|
-
DOM.loadCSS(url + "/skins/" + ed.settings.skin + "/ui_" + s.skin_variant + ".css");
|
165
|
-
},
|
166
|
-
|
167
|
-
_isHighContrast : function() {
|
168
|
-
var actualColor, div = DOM.add(DOM.getRoot(), 'div', {'style': 'background-color: rgb(171,239,86);'});
|
169
|
-
|
170
|
-
actualColor = (DOM.getStyle(div, 'background-color', true) + '').toLowerCase().replace(/ /g, '');
|
171
|
-
DOM.remove(div);
|
172
|
-
|
173
|
-
return actualColor != 'rgb(171,239,86)' && actualColor != '#abef56';
|
174
|
-
},
|
175
|
-
|
176
|
-
createControl : function(n, cf) {
|
177
|
-
var cd, c;
|
178
|
-
|
179
|
-
if (c = cf.createControl(n))
|
180
|
-
return c;
|
181
|
-
|
182
|
-
switch (n) {
|
183
|
-
case "styleselect":
|
184
|
-
return this._createStyleSelect();
|
185
|
-
|
186
|
-
case "formatselect":
|
187
|
-
return this._createBlockFormats();
|
188
|
-
|
189
|
-
case "fontselect":
|
190
|
-
return this._createFontSelect();
|
191
|
-
|
192
|
-
case "fontsizeselect":
|
193
|
-
return this._createFontSizeSelect();
|
194
|
-
|
195
|
-
case "forecolor":
|
196
|
-
return this._createForeColorMenu();
|
197
|
-
|
198
|
-
case "backcolor":
|
199
|
-
return this._createBackColorMenu();
|
200
|
-
}
|
201
|
-
|
202
|
-
if ((cd = this.controls[n]))
|
203
|
-
return cf.createButton(n, {title : "advanced." + cd[0], cmd : cd[1], ui : cd[2], value : cd[3]});
|
204
|
-
},
|
205
|
-
|
206
|
-
execCommand : function(cmd, ui, val) {
|
207
|
-
var f = this['_' + cmd];
|
208
|
-
|
209
|
-
if (f) {
|
210
|
-
f.call(this, ui, val);
|
211
|
-
return true;
|
212
|
-
}
|
213
|
-
|
214
|
-
return false;
|
215
|
-
},
|
216
|
-
|
217
|
-
_importClasses : function(e) {
|
218
|
-
var ed = this.editor, ctrl = ed.controlManager.get('styleselect');
|
219
|
-
|
220
|
-
if (ctrl.getLength() == 0) {
|
221
|
-
each(ed.dom.getClasses(), function(o, idx) {
|
222
|
-
var name = 'style_' + idx;
|
223
|
-
|
224
|
-
ed.formatter.register(name, {
|
225
|
-
inline : 'span',
|
226
|
-
attributes : {'class' : o['class']},
|
227
|
-
selector : '*'
|
228
|
-
});
|
229
|
-
|
230
|
-
ctrl.add(o['class'], name);
|
231
|
-
});
|
232
|
-
}
|
233
|
-
},
|
234
|
-
|
235
|
-
_createStyleSelect : function(n) {
|
236
|
-
var t = this, ed = t.editor, ctrlMan = ed.controlManager, ctrl;
|
237
|
-
|
238
|
-
// Setup style select box
|
239
|
-
ctrl = ctrlMan.createListBox('styleselect', {
|
240
|
-
title : 'advanced.style_select',
|
241
|
-
onselect : function(name) {
|
242
|
-
var matches, formatNames = [];
|
243
|
-
|
244
|
-
each(ctrl.items, function(item) {
|
245
|
-
formatNames.push(item.value);
|
246
|
-
});
|
247
|
-
|
248
|
-
ed.focus();
|
249
|
-
ed.undoManager.add();
|
250
|
-
|
251
|
-
// Toggle off the current format
|
252
|
-
matches = ed.formatter.matchAll(formatNames);
|
253
|
-
if (!name || matches[0] == name) {
|
254
|
-
if (matches[0])
|
255
|
-
ed.formatter.remove(matches[0]);
|
256
|
-
} else
|
257
|
-
ed.formatter.apply(name);
|
258
|
-
|
259
|
-
ed.undoManager.add();
|
260
|
-
ed.nodeChanged();
|
261
|
-
|
262
|
-
return false; // No auto select
|
263
|
-
}
|
264
|
-
});
|
265
|
-
|
266
|
-
// Handle specified format
|
267
|
-
ed.onInit.add(function() {
|
268
|
-
var counter = 0, formats = ed.getParam('style_formats');
|
269
|
-
|
270
|
-
if (formats) {
|
271
|
-
each(formats, function(fmt) {
|
272
|
-
var name, keys = 0;
|
273
|
-
|
274
|
-
each(fmt, function() {keys++;});
|
275
|
-
|
276
|
-
if (keys > 1) {
|
277
|
-
name = fmt.name = fmt.name || 'style_' + (counter++);
|
278
|
-
ed.formatter.register(name, fmt);
|
279
|
-
ctrl.add(fmt.title, name);
|
280
|
-
} else
|
281
|
-
ctrl.add(fmt.title);
|
282
|
-
});
|
283
|
-
} else {
|
284
|
-
each(ed.getParam('theme_advanced_styles', '', 'hash'), function(val, key) {
|
285
|
-
var name;
|
286
|
-
|
287
|
-
if (val) {
|
288
|
-
name = 'style_' + (counter++);
|
289
|
-
|
290
|
-
ed.formatter.register(name, {
|
291
|
-
inline : 'span',
|
292
|
-
classes : val,
|
293
|
-
selector : '*'
|
294
|
-
});
|
295
|
-
|
296
|
-
ctrl.add(t.editor.translate(key), name);
|
297
|
-
}
|
298
|
-
});
|
299
|
-
}
|
300
|
-
});
|
301
|
-
|
302
|
-
// Auto import classes if the ctrl box is empty
|
303
|
-
if (ctrl.getLength() == 0) {
|
304
|
-
ctrl.onPostRender.add(function(ed, n) {
|
305
|
-
if (!ctrl.NativeListBox) {
|
306
|
-
Event.add(n.id + '_text', 'focus', t._importClasses, t);
|
307
|
-
Event.add(n.id + '_text', 'mousedown', t._importClasses, t);
|
308
|
-
Event.add(n.id + '_open', 'focus', t._importClasses, t);
|
309
|
-
Event.add(n.id + '_open', 'mousedown', t._importClasses, t);
|
310
|
-
} else
|
311
|
-
Event.add(n.id, 'focus', t._importClasses, t);
|
312
|
-
});
|
313
|
-
}
|
314
|
-
|
315
|
-
return ctrl;
|
316
|
-
},
|
317
|
-
|
318
|
-
_createFontSelect : function() {
|
319
|
-
var c, t = this, ed = t.editor;
|
320
|
-
|
321
|
-
c = ed.controlManager.createListBox('fontselect', {
|
322
|
-
title : 'advanced.fontdefault',
|
323
|
-
onselect : function(v) {
|
324
|
-
var cur = c.items[c.selectedIndex];
|
325
|
-
|
326
|
-
if (!v && cur) {
|
327
|
-
ed.execCommand('FontName', false, cur.value);
|
328
|
-
return;
|
329
|
-
}
|
330
|
-
|
331
|
-
ed.execCommand('FontName', false, v);
|
332
|
-
|
333
|
-
// Fake selection, execCommand will fire a nodeChange and update the selection
|
334
|
-
c.select(function(sv) {
|
335
|
-
return v == sv;
|
336
|
-
});
|
337
|
-
|
338
|
-
if (cur && cur.value == v) {
|
339
|
-
c.select(null);
|
340
|
-
}
|
341
|
-
|
342
|
-
return false; // No auto select
|
343
|
-
}
|
344
|
-
});
|
345
|
-
|
346
|
-
if (c) {
|
347
|
-
each(ed.getParam('theme_advanced_fonts', t.settings.theme_advanced_fonts, 'hash'), function(v, k) {
|
348
|
-
c.add(ed.translate(k), v, {style : v.indexOf('dings') == -1 ? 'font-family:' + v : ''});
|
349
|
-
});
|
350
|
-
}
|
351
|
-
|
352
|
-
return c;
|
353
|
-
},
|
354
|
-
|
355
|
-
_createFontSizeSelect : function() {
|
356
|
-
var t = this, ed = t.editor, c, i = 0, cl = [];
|
357
|
-
|
358
|
-
c = ed.controlManager.createListBox('fontsizeselect', {title : 'advanced.font_size', onselect : function(v) {
|
359
|
-
var cur = c.items[c.selectedIndex];
|
360
|
-
|
361
|
-
if (!v && cur) {
|
362
|
-
cur = cur.value;
|
363
|
-
|
364
|
-
if (cur['class']) {
|
365
|
-
ed.formatter.toggle('fontsize_class', {value : cur['class']});
|
366
|
-
ed.undoManager.add();
|
367
|
-
ed.nodeChanged();
|
368
|
-
} else {
|
369
|
-
ed.execCommand('FontSize', false, cur.fontSize);
|
370
|
-
}
|
371
|
-
|
372
|
-
return;
|
373
|
-
}
|
374
|
-
|
375
|
-
if (v['class']) {
|
376
|
-
ed.focus();
|
377
|
-
ed.undoManager.add();
|
378
|
-
ed.formatter.toggle('fontsize_class', {value : v['class']});
|
379
|
-
ed.undoManager.add();
|
380
|
-
ed.nodeChanged();
|
381
|
-
} else
|
382
|
-
ed.execCommand('FontSize', false, v.fontSize);
|
383
|
-
|
384
|
-
// Fake selection, execCommand will fire a nodeChange and update the selection
|
385
|
-
c.select(function(sv) {
|
386
|
-
return v == sv;
|
387
|
-
});
|
388
|
-
|
389
|
-
if (cur && (cur.value.fontSize == v.fontSize || cur.value['class'] == v['class'])) {
|
390
|
-
c.select(null);
|
391
|
-
}
|
392
|
-
|
393
|
-
return false; // No auto select
|
394
|
-
}});
|
395
|
-
|
396
|
-
if (c) {
|
397
|
-
each(t.settings.theme_advanced_font_sizes, function(v, k) {
|
398
|
-
var fz = v.fontSize;
|
399
|
-
|
400
|
-
if (fz >= 1 && fz <= 7)
|
401
|
-
fz = t.sizes[parseInt(fz) - 1] + 'pt';
|
402
|
-
|
403
|
-
c.add(k, v, {'style' : 'font-size:' + fz, 'class' : 'mceFontSize' + (i++) + (' ' + (v['class'] || ''))});
|
404
|
-
});
|
405
|
-
}
|
406
|
-
|
407
|
-
return c;
|
408
|
-
},
|
409
|
-
|
410
|
-
_createBlockFormats : function() {
|
411
|
-
var c, fmts = {
|
412
|
-
p : 'advanced.paragraph',
|
413
|
-
address : 'advanced.address',
|
414
|
-
pre : 'advanced.pre',
|
415
|
-
h1 : 'advanced.h1',
|
416
|
-
h2 : 'advanced.h2',
|
417
|
-
h3 : 'advanced.h3',
|
418
|
-
h4 : 'advanced.h4',
|
419
|
-
h5 : 'advanced.h5',
|
420
|
-
h6 : 'advanced.h6',
|
421
|
-
div : 'advanced.div',
|
422
|
-
blockquote : 'advanced.blockquote',
|
423
|
-
code : 'advanced.code',
|
424
|
-
dt : 'advanced.dt',
|
425
|
-
dd : 'advanced.dd',
|
426
|
-
samp : 'advanced.samp'
|
427
|
-
}, t = this;
|
428
|
-
|
429
|
-
c = t.editor.controlManager.createListBox('formatselect', {title : 'advanced.block', onselect : function(v) {
|
430
|
-
t.editor.execCommand('FormatBlock', false, v);
|
431
|
-
return false;
|
432
|
-
}});
|
433
|
-
|
434
|
-
if (c) {
|
435
|
-
each(t.editor.getParam('theme_advanced_blockformats', t.settings.theme_advanced_blockformats, 'hash'), function(v, k) {
|
436
|
-
c.add(t.editor.translate(k != v ? k : fmts[v]), v, {'class' : 'mce_formatPreview mce_' + v});
|
437
|
-
});
|
438
|
-
}
|
439
|
-
|
440
|
-
return c;
|
441
|
-
},
|
442
|
-
|
443
|
-
_createForeColorMenu : function() {
|
444
|
-
var c, t = this, s = t.settings, o = {}, v;
|
445
|
-
|
446
|
-
if (s.theme_advanced_more_colors) {
|
447
|
-
o.more_colors_func = function() {
|
448
|
-
t._mceColorPicker(0, {
|
449
|
-
color : c.value,
|
450
|
-
func : function(co) {
|
451
|
-
c.setColor(co);
|
452
|
-
}
|
453
|
-
});
|
454
|
-
};
|
455
|
-
}
|
456
|
-
|
457
|
-
if (v = s.theme_advanced_text_colors)
|
458
|
-
o.colors = v;
|
459
|
-
|
460
|
-
if (s.theme_advanced_default_foreground_color)
|
461
|
-
o.default_color = s.theme_advanced_default_foreground_color;
|
462
|
-
|
463
|
-
o.title = 'advanced.forecolor_desc';
|
464
|
-
o.cmd = 'ForeColor';
|
465
|
-
o.scope = this;
|
466
|
-
|
467
|
-
c = t.editor.controlManager.createColorSplitButton('forecolor', o);
|
468
|
-
|
469
|
-
return c;
|
470
|
-
},
|
471
|
-
|
472
|
-
_createBackColorMenu : function() {
|
473
|
-
var c, t = this, s = t.settings, o = {}, v;
|
474
|
-
|
475
|
-
if (s.theme_advanced_more_colors) {
|
476
|
-
o.more_colors_func = function() {
|
477
|
-
t._mceColorPicker(0, {
|
478
|
-
color : c.value,
|
479
|
-
func : function(co) {
|
480
|
-
c.setColor(co);
|
481
|
-
}
|
482
|
-
});
|
483
|
-
};
|
484
|
-
}
|
485
|
-
|
486
|
-
if (v = s.theme_advanced_background_colors)
|
487
|
-
o.colors = v;
|
488
|
-
|
489
|
-
if (s.theme_advanced_default_background_color)
|
490
|
-
o.default_color = s.theme_advanced_default_background_color;
|
491
|
-
|
492
|
-
o.title = 'advanced.backcolor_desc';
|
493
|
-
o.cmd = 'HiliteColor';
|
494
|
-
o.scope = this;
|
495
|
-
|
496
|
-
c = t.editor.controlManager.createColorSplitButton('backcolor', o);
|
497
|
-
|
498
|
-
return c;
|
499
|
-
},
|
500
|
-
|
501
|
-
renderUI : function(o) {
|
502
|
-
var n, ic, tb, t = this, ed = t.editor, s = t.settings, sc, p, nl;
|
503
|
-
|
504
|
-
if (ed.settings) {
|
505
|
-
ed.settings.aria_label = s.aria_label + ed.getLang('advanced.help_shortcut');
|
506
|
-
}
|
507
|
-
|
508
|
-
// TODO: ACC Should have an aria-describedby attribute which is user-configurable to describe what this field is actually for.
|
509
|
-
// Maybe actually inherit it from the original textara?
|
510
|
-
n = p = DOM.create('span', {role : 'application', 'aria-labelledby' : ed.id + '_voice', id : ed.id + '_parent', 'class' : 'mceEditor ' + ed.settings.skin + 'Skin' + (s.skin_variant ? ' ' + ed.settings.skin + 'Skin' + t._ufirst(s.skin_variant) : '')});
|
511
|
-
DOM.add(n, 'span', {'class': 'mceVoiceLabel', 'style': 'display:none;', id: ed.id + '_voice'}, s.aria_label);
|
512
|
-
|
513
|
-
if (!DOM.boxModel)
|
514
|
-
n = DOM.add(n, 'div', {'class' : 'mceOldBoxModel'});
|
515
|
-
|
516
|
-
n = sc = DOM.add(n, 'table', {role : "presentation", id : ed.id + '_tbl', 'class' : 'mceLayout', cellSpacing : 0, cellPadding : 0});
|
517
|
-
n = tb = DOM.add(n, 'tbody');
|
518
|
-
|
519
|
-
switch ((s.theme_advanced_layout_manager || '').toLowerCase()) {
|
520
|
-
case "rowlayout":
|
521
|
-
ic = t._rowLayout(s, tb, o);
|
522
|
-
break;
|
523
|
-
|
524
|
-
case "customlayout":
|
525
|
-
ic = ed.execCallback("theme_advanced_custom_layout", s, tb, o, p);
|
526
|
-
break;
|
527
|
-
|
528
|
-
default:
|
529
|
-
ic = t._simpleLayout(s, tb, o, p);
|
530
|
-
}
|
531
|
-
|
532
|
-
n = o.targetNode;
|
533
|
-
|
534
|
-
// Add classes to first and last TRs
|
535
|
-
nl = sc.rows;
|
536
|
-
DOM.addClass(nl[0], 'mceFirst');
|
537
|
-
DOM.addClass(nl[nl.length - 1], 'mceLast');
|
538
|
-
|
539
|
-
// Add classes to first and last TDs
|
540
|
-
each(DOM.select('tr', tb), function(n) {
|
541
|
-
DOM.addClass(n.firstChild, 'mceFirst');
|
542
|
-
DOM.addClass(n.childNodes[n.childNodes.length - 1], 'mceLast');
|
543
|
-
});
|
544
|
-
|
545
|
-
if (DOM.get(s.theme_advanced_toolbar_container))
|
546
|
-
DOM.get(s.theme_advanced_toolbar_container).appendChild(p);
|
547
|
-
else
|
548
|
-
DOM.insertAfter(p, n);
|
549
|
-
|
550
|
-
Event.add(ed.id + '_path_row', 'click', function(e) {
|
551
|
-
e = e.target;
|
552
|
-
|
553
|
-
if (e.nodeName == 'A') {
|
554
|
-
t._sel(e.className.replace(/^.*mcePath_([0-9]+).*$/, '$1'));
|
555
|
-
|
556
|
-
return Event.cancel(e);
|
557
|
-
}
|
558
|
-
});
|
559
|
-
/*
|
560
|
-
if (DOM.get(ed.id + '_path_row')) {
|
561
|
-
Event.add(ed.id + '_tbl', 'mouseover', function(e) {
|
562
|
-
var re;
|
563
|
-
|
564
|
-
e = e.target;
|
565
|
-
|
566
|
-
if (e.nodeName == 'SPAN' && DOM.hasClass(e.parentNode, 'mceButton')) {
|
567
|
-
re = DOM.get(ed.id + '_path_row');
|
568
|
-
t.lastPath = re.innerHTML;
|
569
|
-
DOM.setHTML(re, e.parentNode.title);
|
570
|
-
}
|
571
|
-
});
|
572
|
-
|
573
|
-
Event.add(ed.id + '_tbl', 'mouseout', function(e) {
|
574
|
-
if (t.lastPath) {
|
575
|
-
DOM.setHTML(ed.id + '_path_row', t.lastPath);
|
576
|
-
t.lastPath = 0;
|
577
|
-
}
|
578
|
-
});
|
579
|
-
}
|
580
|
-
*/
|
581
|
-
|
582
|
-
if (!ed.getParam('accessibility_focus'))
|
583
|
-
Event.add(DOM.add(p, 'a', {href : '#'}, '<!-- IE -->'), 'focus', function() {tinyMCE.get(ed.id).focus();});
|
584
|
-
|
585
|
-
if (s.theme_advanced_toolbar_location == 'external')
|
586
|
-
o.deltaHeight = 0;
|
587
|
-
|
588
|
-
t.deltaHeight = o.deltaHeight;
|
589
|
-
o.targetNode = null;
|
590
|
-
|
591
|
-
ed.onKeyDown.add(function(ed, evt) {
|
592
|
-
var DOM_VK_F10 = 121, DOM_VK_F11 = 122;
|
593
|
-
|
594
|
-
if (evt.altKey) {
|
595
|
-
if (evt.keyCode === DOM_VK_F10) {
|
596
|
-
// Make sure focus is given to toolbar in Safari.
|
597
|
-
// We can't do this in IE as it prevents giving focus to toolbar when editor is in a frame
|
598
|
-
if (tinymce.isWebKit) {
|
599
|
-
window.focus();
|
600
|
-
}
|
601
|
-
t.toolbarGroup.focus();
|
602
|
-
return Event.cancel(evt);
|
603
|
-
} else if (evt.keyCode === DOM_VK_F11) {
|
604
|
-
DOM.get(ed.id + '_path_row').focus();
|
605
|
-
return Event.cancel(evt);
|
606
|
-
}
|
607
|
-
}
|
608
|
-
});
|
609
|
-
|
610
|
-
// alt+0 is the UK recommended shortcut for accessing the list of access controls.
|
611
|
-
ed.addShortcut('alt+0', '', 'mceShortcuts', t);
|
612
|
-
|
613
|
-
return {
|
614
|
-
iframeContainer : ic,
|
615
|
-
editorContainer : ed.id + '_parent',
|
616
|
-
sizeContainer : sc,
|
617
|
-
deltaHeight : o.deltaHeight
|
618
|
-
};
|
619
|
-
},
|
620
|
-
|
621
|
-
getInfo : function() {
|
622
|
-
return {
|
623
|
-
longname : 'Advanced theme',
|
624
|
-
author : 'Moxiecode Systems AB',
|
625
|
-
authorurl : 'http://tinymce.moxiecode.com',
|
626
|
-
version : tinymce.majorVersion + "." + tinymce.minorVersion
|
627
|
-
}
|
628
|
-
},
|
629
|
-
|
630
|
-
resizeBy : function(dw, dh) {
|
631
|
-
var e = DOM.get(this.editor.id + '_ifr');
|
632
|
-
|
633
|
-
this.resizeTo(e.clientWidth + dw, e.clientHeight + dh);
|
634
|
-
},
|
635
|
-
|
636
|
-
resizeTo : function(w, h, store) {
|
637
|
-
var ed = this.editor, s = this.settings, e = DOM.get(ed.id + '_tbl'), ifr = DOM.get(ed.id + '_ifr');
|
638
|
-
|
639
|
-
// Boundery fix box
|
640
|
-
w = Math.max(s.theme_advanced_resizing_min_width || 100, w);
|
641
|
-
h = Math.max(s.theme_advanced_resizing_min_height || 100, h);
|
642
|
-
w = Math.min(s.theme_advanced_resizing_max_width || 0xFFFF, w);
|
643
|
-
h = Math.min(s.theme_advanced_resizing_max_height || 0xFFFF, h);
|
644
|
-
|
645
|
-
// Resize iframe and container
|
646
|
-
DOM.setStyle(e, 'height', '');
|
647
|
-
DOM.setStyle(ifr, 'height', h);
|
648
|
-
|
649
|
-
if (s.theme_advanced_resize_horizontal) {
|
650
|
-
DOM.setStyle(e, 'width', '');
|
651
|
-
DOM.setStyle(ifr, 'width', w);
|
652
|
-
|
653
|
-
// Make sure that the size is never smaller than the over all ui
|
654
|
-
if (w < e.clientWidth) {
|
655
|
-
w = e.clientWidth;
|
656
|
-
DOM.setStyle(ifr, 'width', e.clientWidth);
|
657
|
-
}
|
658
|
-
}
|
659
|
-
|
660
|
-
// Store away the size
|
661
|
-
if (store && s.theme_advanced_resizing_use_cookie) {
|
662
|
-
Cookie.setHash("TinyMCE_" + ed.id + "_size", {
|
663
|
-
cw : w,
|
664
|
-
ch : h
|
665
|
-
});
|
666
|
-
}
|
667
|
-
},
|
668
|
-
|
669
|
-
destroy : function() {
|
670
|
-
var id = this.editor.id;
|
671
|
-
|
672
|
-
Event.clear(id + '_resize');
|
673
|
-
Event.clear(id + '_path_row');
|
674
|
-
Event.clear(id + '_external_close');
|
675
|
-
},
|
676
|
-
|
677
|
-
// Internal functions
|
678
|
-
|
679
|
-
_simpleLayout : function(s, tb, o, p) {
|
680
|
-
var t = this, ed = t.editor, lo = s.theme_advanced_toolbar_location, sl = s.theme_advanced_statusbar_location, n, ic, etb, c;
|
681
|
-
|
682
|
-
if (s.readonly) {
|
683
|
-
n = DOM.add(tb, 'tr');
|
684
|
-
n = ic = DOM.add(n, 'td', {'class' : 'mceIframeContainer'});
|
685
|
-
return ic;
|
686
|
-
}
|
687
|
-
|
688
|
-
// Create toolbar container at top
|
689
|
-
if (lo == 'top')
|
690
|
-
t._addToolbars(tb, o);
|
691
|
-
|
692
|
-
// Create external toolbar
|
693
|
-
if (lo == 'external') {
|
694
|
-
n = c = DOM.create('div', {style : 'position:relative'});
|
695
|
-
n = DOM.add(n, 'div', {id : ed.id + '_external', 'class' : 'mceExternalToolbar'});
|
696
|
-
DOM.add(n, 'a', {id : ed.id + '_external_close', href : 'javascript:;', 'class' : 'mceExternalClose'});
|
697
|
-
n = DOM.add(n, 'table', {id : ed.id + '_tblext', cellSpacing : 0, cellPadding : 0});
|
698
|
-
etb = DOM.add(n, 'tbody');
|
699
|
-
|
700
|
-
if (p.firstChild.className == 'mceOldBoxModel')
|
701
|
-
p.firstChild.appendChild(c);
|
702
|
-
else
|
703
|
-
p.insertBefore(c, p.firstChild);
|
704
|
-
|
705
|
-
t._addToolbars(etb, o);
|
706
|
-
|
707
|
-
ed.onMouseUp.add(function() {
|
708
|
-
var e = DOM.get(ed.id + '_external');
|
709
|
-
DOM.show(e);
|
710
|
-
|
711
|
-
DOM.hide(lastExtID);
|
712
|
-
|
713
|
-
var f = Event.add(ed.id + '_external_close', 'click', function() {
|
714
|
-
DOM.hide(ed.id + '_external');
|
715
|
-
Event.remove(ed.id + '_external_close', 'click', f);
|
716
|
-
});
|
717
|
-
|
718
|
-
DOM.show(e);
|
719
|
-
DOM.setStyle(e, 'top', 0 - DOM.getRect(ed.id + '_tblext').h - 1);
|
720
|
-
|
721
|
-
// Fixes IE rendering bug
|
722
|
-
DOM.hide(e);
|
723
|
-
DOM.show(e);
|
724
|
-
e.style.filter = '';
|
725
|
-
|
726
|
-
lastExtID = ed.id + '_external';
|
727
|
-
|
728
|
-
e = null;
|
729
|
-
});
|
730
|
-
}
|
731
|
-
|
732
|
-
if (sl == 'top')
|
733
|
-
t._addStatusBar(tb, o);
|
734
|
-
|
735
|
-
// Create iframe container
|
736
|
-
if (!s.theme_advanced_toolbar_container) {
|
737
|
-
n = DOM.add(tb, 'tr');
|
738
|
-
n = ic = DOM.add(n, 'td', {'class' : 'mceIframeContainer'});
|
739
|
-
}
|
740
|
-
|
741
|
-
// Create toolbar container at bottom
|
742
|
-
if (lo == 'bottom')
|
743
|
-
t._addToolbars(tb, o);
|
744
|
-
|
745
|
-
if (sl == 'bottom')
|
746
|
-
t._addStatusBar(tb, o);
|
747
|
-
|
748
|
-
return ic;
|
749
|
-
},
|
750
|
-
|
751
|
-
_rowLayout : function(s, tb, o) {
|
752
|
-
var t = this, ed = t.editor, dc, da, cf = ed.controlManager, n, ic, to, a;
|
753
|
-
|
754
|
-
dc = s.theme_advanced_containers_default_class || '';
|
755
|
-
da = s.theme_advanced_containers_default_align || 'center';
|
756
|
-
|
757
|
-
each(explode(s.theme_advanced_containers || ''), function(c, i) {
|
758
|
-
var v = s['theme_advanced_container_' + c] || '';
|
759
|
-
|
760
|
-
switch (c.toLowerCase()) {
|
761
|
-
case 'mceeditor':
|
762
|
-
n = DOM.add(tb, 'tr');
|
763
|
-
n = ic = DOM.add(n, 'td', {'class' : 'mceIframeContainer'});
|
764
|
-
break;
|
765
|
-
|
766
|
-
case 'mceelementpath':
|
767
|
-
t._addStatusBar(tb, o);
|
768
|
-
break;
|
769
|
-
|
770
|
-
default:
|
771
|
-
a = (s['theme_advanced_container_' + c + '_align'] || da).toLowerCase();
|
772
|
-
a = 'mce' + t._ufirst(a);
|
773
|
-
|
774
|
-
n = DOM.add(DOM.add(tb, 'tr'), 'td', {
|
775
|
-
'class' : 'mceToolbar ' + (s['theme_advanced_container_' + c + '_class'] || dc) + ' ' + a || da
|
776
|
-
});
|
777
|
-
|
778
|
-
to = cf.createToolbar("toolbar" + i);
|
779
|
-
t._addControls(v, to);
|
780
|
-
DOM.setHTML(n, to.renderHTML());
|
781
|
-
o.deltaHeight -= s.theme_advanced_row_height;
|
782
|
-
}
|
783
|
-
});
|
784
|
-
|
785
|
-
return ic;
|
786
|
-
},
|
787
|
-
|
788
|
-
_addControls : function(v, tb) {
|
789
|
-
var t = this, s = t.settings, di, cf = t.editor.controlManager;
|
790
|
-
|
791
|
-
if (s.theme_advanced_disable && !t._disabled) {
|
792
|
-
di = {};
|
793
|
-
|
794
|
-
each(explode(s.theme_advanced_disable), function(v) {
|
795
|
-
di[v] = 1;
|
796
|
-
});
|
797
|
-
|
798
|
-
t._disabled = di;
|
799
|
-
} else
|
800
|
-
di = t._disabled;
|
801
|
-
|
802
|
-
each(explode(v), function(n) {
|
803
|
-
var c;
|
804
|
-
|
805
|
-
if (di && di[n])
|
806
|
-
return;
|
807
|
-
|
808
|
-
// Compatiblity with 2.x
|
809
|
-
if (n == 'tablecontrols') {
|
810
|
-
each(["table","|","row_props","cell_props","|","row_before","row_after","delete_row","|","col_before","col_after","delete_col","|","split_cells","merge_cells"], function(n) {
|
811
|
-
n = t.createControl(n, cf);
|
812
|
-
|
813
|
-
if (n)
|
814
|
-
tb.add(n);
|
815
|
-
});
|
816
|
-
|
817
|
-
return;
|
818
|
-
}
|
819
|
-
|
820
|
-
c = t.createControl(n, cf);
|
821
|
-
|
822
|
-
if (c)
|
823
|
-
tb.add(c);
|
824
|
-
});
|
825
|
-
},
|
826
|
-
|
827
|
-
_addToolbars : function(c, o) {
|
828
|
-
var t = this, i, tb, ed = t.editor, s = t.settings, v, cf = ed.controlManager, di, n, h = [], a, toolbarGroup;
|
829
|
-
|
830
|
-
toolbarGroup = cf.createToolbarGroup('toolbargroup', {
|
831
|
-
'name': ed.getLang('advanced.toolbar'),
|
832
|
-
'tab_focus_toolbar':ed.getParam('theme_advanced_tab_focus_toolbar')
|
833
|
-
});
|
834
|
-
|
835
|
-
t.toolbarGroup = toolbarGroup;
|
836
|
-
|
837
|
-
a = s.theme_advanced_toolbar_align.toLowerCase();
|
838
|
-
a = 'mce' + t._ufirst(a);
|
839
|
-
|
840
|
-
n = DOM.add(DOM.add(c, 'tr', {role: 'presentation'}), 'td', {'class' : 'mceToolbar ' + a, "role":"presentation"});
|
841
|
-
|
842
|
-
// Create toolbar and add the controls
|
843
|
-
for (i=1; (v = s['theme_advanced_buttons' + i]); i++) {
|
844
|
-
tb = cf.createToolbar("toolbar" + i, {'class' : 'mceToolbarRow' + i});
|
845
|
-
|
846
|
-
if (s['theme_advanced_buttons' + i + '_add'])
|
847
|
-
v += ',' + s['theme_advanced_buttons' + i + '_add'];
|
848
|
-
|
849
|
-
if (s['theme_advanced_buttons' + i + '_add_before'])
|
850
|
-
v = s['theme_advanced_buttons' + i + '_add_before'] + ',' + v;
|
851
|
-
|
852
|
-
t._addControls(v, tb);
|
853
|
-
toolbarGroup.add(tb);
|
854
|
-
|
855
|
-
o.deltaHeight -= s.theme_advanced_row_height;
|
856
|
-
}
|
857
|
-
h.push(toolbarGroup.renderHTML());
|
858
|
-
h.push(DOM.createHTML('a', {href : '#', accesskey : 'z', title : ed.getLang("advanced.toolbar_focus"), onfocus : 'tinyMCE.getInstanceById(\'' + ed.id + '\').focus();'}, '<!-- IE -->'));
|
859
|
-
DOM.setHTML(n, h.join(''));
|
860
|
-
},
|
861
|
-
|
862
|
-
_addStatusBar : function(tb, o) {
|
863
|
-
var n, t = this, ed = t.editor, s = t.settings, r, mf, me, td;
|
864
|
-
|
865
|
-
n = DOM.add(tb, 'tr');
|
866
|
-
n = td = DOM.add(n, 'td', {'class' : 'mceStatusbar'});
|
867
|
-
n = DOM.add(n, 'div', {id : ed.id + '_path_row', 'role': 'group', 'aria-labelledby': ed.id + '_path_voice'});
|
868
|
-
if (s.theme_advanced_path) {
|
869
|
-
DOM.add(n, 'span', {id: ed.id + '_path_voice'}, ed.translate('advanced.path'));
|
870
|
-
DOM.add(n, 'span', {}, ': ');
|
871
|
-
} else {
|
872
|
-
DOM.add(n, 'span', {}, ' ');
|
873
|
-
}
|
874
|
-
|
875
|
-
|
876
|
-
if (s.theme_advanced_resizing) {
|
877
|
-
DOM.add(td, 'a', {id : ed.id + '_resize', href : 'javascript:;', onclick : "return false;", 'class' : 'mceResize', tabIndex:"-1"});
|
878
|
-
|
879
|
-
if (s.theme_advanced_resizing_use_cookie) {
|
880
|
-
ed.onPostRender.add(function() {
|
881
|
-
var o = Cookie.getHash("TinyMCE_" + ed.id + "_size"), c = DOM.get(ed.id + '_tbl');
|
882
|
-
|
883
|
-
if (!o)
|
884
|
-
return;
|
885
|
-
|
886
|
-
t.resizeTo(o.cw, o.ch);
|
887
|
-
});
|
888
|
-
}
|
889
|
-
|
890
|
-
ed.onPostRender.add(function() {
|
891
|
-
Event.add(ed.id + '_resize', 'click', function(e) {
|
892
|
-
e.preventDefault();
|
893
|
-
});
|
894
|
-
|
895
|
-
Event.add(ed.id + '_resize', 'mousedown', function(e) {
|
896
|
-
var mouseMoveHandler1, mouseMoveHandler2,
|
897
|
-
mouseUpHandler1, mouseUpHandler2,
|
898
|
-
startX, startY, startWidth, startHeight, width, height, ifrElm;
|
899
|
-
|
900
|
-
function resizeOnMove(e) {
|
901
|
-
e.preventDefault();
|
902
|
-
|
903
|
-
width = startWidth + (e.screenX - startX);
|
904
|
-
height = startHeight + (e.screenY - startY);
|
905
|
-
|
906
|
-
t.resizeTo(width, height);
|
907
|
-
};
|
908
|
-
|
909
|
-
function endResize(e) {
|
910
|
-
// Stop listening
|
911
|
-
Event.remove(DOM.doc, 'mousemove', mouseMoveHandler1);
|
912
|
-
Event.remove(ed.getDoc(), 'mousemove', mouseMoveHandler2);
|
913
|
-
Event.remove(DOM.doc, 'mouseup', mouseUpHandler1);
|
914
|
-
Event.remove(ed.getDoc(), 'mouseup', mouseUpHandler2);
|
915
|
-
|
916
|
-
width = startWidth + (e.screenX - startX);
|
917
|
-
height = startHeight + (e.screenY - startY);
|
918
|
-
t.resizeTo(width, height, true);
|
919
|
-
};
|
920
|
-
|
921
|
-
e.preventDefault();
|
922
|
-
|
923
|
-
// Get the current rect size
|
924
|
-
startX = e.screenX;
|
925
|
-
startY = e.screenY;
|
926
|
-
ifrElm = DOM.get(t.editor.id + '_ifr');
|
927
|
-
startWidth = width = ifrElm.clientWidth;
|
928
|
-
startHeight = height = ifrElm.clientHeight;
|
929
|
-
|
930
|
-
// Register envent handlers
|
931
|
-
mouseMoveHandler1 = Event.add(DOM.doc, 'mousemove', resizeOnMove);
|
932
|
-
mouseMoveHandler2 = Event.add(ed.getDoc(), 'mousemove', resizeOnMove);
|
933
|
-
mouseUpHandler1 = Event.add(DOM.doc, 'mouseup', endResize);
|
934
|
-
mouseUpHandler2 = Event.add(ed.getDoc(), 'mouseup', endResize);
|
935
|
-
});
|
936
|
-
});
|
937
|
-
}
|
938
|
-
|
939
|
-
o.deltaHeight -= 21;
|
940
|
-
n = tb = null;
|
941
|
-
},
|
942
|
-
|
943
|
-
_updateUndoStatus : function(ed) {
|
944
|
-
var cm = ed.controlManager, um = ed.undoManager;
|
945
|
-
|
946
|
-
cm.setDisabled('undo', !um.hasUndo() && !um.typing);
|
947
|
-
cm.setDisabled('redo', !um.hasRedo());
|
948
|
-
},
|
949
|
-
|
950
|
-
_nodeChanged : function(ed, cm, n, co, ob) {
|
951
|
-
var t = this, p, de = 0, v, c, s = t.settings, cl, fz, fn, fc, bc, formatNames, matches;
|
952
|
-
|
953
|
-
tinymce.each(t.stateControls, function(c) {
|
954
|
-
cm.setActive(c, ed.queryCommandState(t.controls[c][1]));
|
955
|
-
});
|
956
|
-
|
957
|
-
function getParent(name) {
|
958
|
-
var i, parents = ob.parents, func = name;
|
959
|
-
|
960
|
-
if (typeof(name) == 'string') {
|
961
|
-
func = function(node) {
|
962
|
-
return node.nodeName == name;
|
963
|
-
};
|
964
|
-
}
|
965
|
-
|
966
|
-
for (i = 0; i < parents.length; i++) {
|
967
|
-
if (func(parents[i]))
|
968
|
-
return parents[i];
|
969
|
-
}
|
970
|
-
};
|
971
|
-
|
972
|
-
cm.setActive('visualaid', ed.hasVisual);
|
973
|
-
t._updateUndoStatus(ed);
|
974
|
-
cm.setDisabled('outdent', !ed.queryCommandState('Outdent'));
|
975
|
-
|
976
|
-
p = getParent('A');
|
977
|
-
if (c = cm.get('link')) {
|
978
|
-
if (!p || !p.name) {
|
979
|
-
c.setDisabled(!p && co);
|
980
|
-
c.setActive(!!p);
|
981
|
-
}
|
982
|
-
}
|
983
|
-
|
984
|
-
if (c = cm.get('unlink')) {
|
985
|
-
c.setDisabled(!p && co);
|
986
|
-
c.setActive(!!p && !p.name);
|
987
|
-
}
|
988
|
-
|
989
|
-
if (c = cm.get('anchor')) {
|
990
|
-
c.setActive(!co && !!p && p.name);
|
991
|
-
}
|
992
|
-
|
993
|
-
p = getParent('IMG');
|
994
|
-
if (c = cm.get('image'))
|
995
|
-
c.setActive(!co && !!p && n.className.indexOf('mceItem') == -1);
|
996
|
-
|
997
|
-
if (c = cm.get('styleselect')) {
|
998
|
-
t._importClasses();
|
999
|
-
|
1000
|
-
formatNames = [];
|
1001
|
-
each(c.items, function(item) {
|
1002
|
-
formatNames.push(item.value);
|
1003
|
-
});
|
1004
|
-
|
1005
|
-
matches = ed.formatter.matchAll(formatNames);
|
1006
|
-
c.select(matches[0]);
|
1007
|
-
}
|
1008
|
-
|
1009
|
-
if (c = cm.get('formatselect')) {
|
1010
|
-
p = getParent(DOM.isBlock);
|
1011
|
-
|
1012
|
-
if (p)
|
1013
|
-
c.select(p.nodeName.toLowerCase());
|
1014
|
-
}
|
1015
|
-
|
1016
|
-
// Find out current fontSize, fontFamily and fontClass
|
1017
|
-
getParent(function(n) {
|
1018
|
-
if (n.nodeName === 'SPAN') {
|
1019
|
-
if (!cl && n.className)
|
1020
|
-
cl = n.className;
|
1021
|
-
}
|
1022
|
-
|
1023
|
-
if (ed.dom.is(n, s.theme_advanced_font_selector)) {
|
1024
|
-
if (!fz && n.style.fontSize)
|
1025
|
-
fz = n.style.fontSize;
|
1026
|
-
|
1027
|
-
if (!fn && n.style.fontFamily)
|
1028
|
-
fn = n.style.fontFamily.replace(/[\"\']+/g, '').replace(/^([^,]+).*/, '$1').toLowerCase();
|
1029
|
-
|
1030
|
-
if (!fc && n.style.color)
|
1031
|
-
fc = n.style.color;
|
1032
|
-
|
1033
|
-
if (!bc && n.style.backgroundColor)
|
1034
|
-
bc = n.style.backgroundColor;
|
1035
|
-
}
|
1036
|
-
|
1037
|
-
return false;
|
1038
|
-
});
|
1039
|
-
|
1040
|
-
if (c = cm.get('fontselect')) {
|
1041
|
-
c.select(function(v) {
|
1042
|
-
return v.replace(/^([^,]+).*/, '$1').toLowerCase() == fn;
|
1043
|
-
});
|
1044
|
-
}
|
1045
|
-
|
1046
|
-
// Select font size
|
1047
|
-
if (c = cm.get('fontsizeselect')) {
|
1048
|
-
// Use computed style
|
1049
|
-
if (s.theme_advanced_runtime_fontsize && !fz && !cl)
|
1050
|
-
fz = ed.dom.getStyle(n, 'fontSize', true);
|
1051
|
-
|
1052
|
-
c.select(function(v) {
|
1053
|
-
if (v.fontSize && v.fontSize === fz)
|
1054
|
-
return true;
|
1055
|
-
|
1056
|
-
if (v['class'] && v['class'] === cl)
|
1057
|
-
return true;
|
1058
|
-
});
|
1059
|
-
}
|
1060
|
-
|
1061
|
-
if (s.theme_advanced_show_current_color) {
|
1062
|
-
function updateColor(controlId, color) {
|
1063
|
-
if (c = cm.get(controlId)) {
|
1064
|
-
if (!color)
|
1065
|
-
color = c.settings.default_color;
|
1066
|
-
if (color !== c.value) {
|
1067
|
-
c.displayColor(color);
|
1068
|
-
}
|
1069
|
-
}
|
1070
|
-
}
|
1071
|
-
updateColor('forecolor', fc);
|
1072
|
-
updateColor('backcolor', bc);
|
1073
|
-
}
|
1074
|
-
|
1075
|
-
if (s.theme_advanced_show_current_color) {
|
1076
|
-
function updateColor(controlId, color) {
|
1077
|
-
if (c = cm.get(controlId)) {
|
1078
|
-
if (!color)
|
1079
|
-
color = c.settings.default_color;
|
1080
|
-
if (color !== c.value) {
|
1081
|
-
c.displayColor(color);
|
1082
|
-
}
|
1083
|
-
}
|
1084
|
-
};
|
1085
|
-
|
1086
|
-
updateColor('forecolor', fc);
|
1087
|
-
updateColor('backcolor', bc);
|
1088
|
-
}
|
1089
|
-
|
1090
|
-
if (s.theme_advanced_path && s.theme_advanced_statusbar_location) {
|
1091
|
-
p = DOM.get(ed.id + '_path') || DOM.add(ed.id + '_path_row', 'span', {id : ed.id + '_path'});
|
1092
|
-
|
1093
|
-
if (t.statusKeyboardNavigation) {
|
1094
|
-
t.statusKeyboardNavigation.destroy();
|
1095
|
-
t.statusKeyboardNavigation = null;
|
1096
|
-
}
|
1097
|
-
|
1098
|
-
DOM.setHTML(p, '');
|
1099
|
-
|
1100
|
-
getParent(function(n) {
|
1101
|
-
var na = n.nodeName.toLowerCase(), u, pi, ti = '';
|
1102
|
-
|
1103
|
-
// Ignore non element and bogus/hidden elements
|
1104
|
-
if (n.nodeType != 1 || na === 'br' || n.getAttribute('data-mce-bogus') || DOM.hasClass(n, 'mceItemHidden') || DOM.hasClass(n, 'mceItemRemoved'))
|
1105
|
-
return;
|
1106
|
-
|
1107
|
-
// Handle prefix
|
1108
|
-
if (tinymce.isIE && n.scopeName !== 'HTML')
|
1109
|
-
na = n.scopeName + ':' + na;
|
1110
|
-
|
1111
|
-
// Remove internal prefix
|
1112
|
-
na = na.replace(/mce\:/g, '');
|
1113
|
-
|
1114
|
-
// Handle node name
|
1115
|
-
switch (na) {
|
1116
|
-
case 'b':
|
1117
|
-
na = 'strong';
|
1118
|
-
break;
|
1119
|
-
|
1120
|
-
case 'i':
|
1121
|
-
na = 'em';
|
1122
|
-
break;
|
1123
|
-
|
1124
|
-
case 'img':
|
1125
|
-
if (v = DOM.getAttrib(n, 'src'))
|
1126
|
-
ti += 'src: ' + v + ' ';
|
1127
|
-
|
1128
|
-
break;
|
1129
|
-
|
1130
|
-
case 'a':
|
1131
|
-
if (v = DOM.getAttrib(n, 'name')) {
|
1132
|
-
ti += 'name: ' + v + ' ';
|
1133
|
-
na += '#' + v;
|
1134
|
-
}
|
1135
|
-
|
1136
|
-
if (v = DOM.getAttrib(n, 'href'))
|
1137
|
-
ti += 'href: ' + v + ' ';
|
1138
|
-
|
1139
|
-
break;
|
1140
|
-
|
1141
|
-
case 'font':
|
1142
|
-
if (v = DOM.getAttrib(n, 'face'))
|
1143
|
-
ti += 'font: ' + v + ' ';
|
1144
|
-
|
1145
|
-
if (v = DOM.getAttrib(n, 'size'))
|
1146
|
-
ti += 'size: ' + v + ' ';
|
1147
|
-
|
1148
|
-
if (v = DOM.getAttrib(n, 'color'))
|
1149
|
-
ti += 'color: ' + v + ' ';
|
1150
|
-
|
1151
|
-
break;
|
1152
|
-
|
1153
|
-
case 'span':
|
1154
|
-
if (v = DOM.getAttrib(n, 'style'))
|
1155
|
-
ti += 'style: ' + v + ' ';
|
1156
|
-
|
1157
|
-
break;
|
1158
|
-
}
|
1159
|
-
|
1160
|
-
if (v = DOM.getAttrib(n, 'id'))
|
1161
|
-
ti += 'id: ' + v + ' ';
|
1162
|
-
|
1163
|
-
if (v = n.className) {
|
1164
|
-
v = v.replace(/\b\s*(webkit|mce|Apple-)\w+\s*\b/g, '')
|
1165
|
-
|
1166
|
-
if (v) {
|
1167
|
-
ti += 'class: ' + v + ' ';
|
1168
|
-
|
1169
|
-
if (DOM.isBlock(n) || na == 'img' || na == 'span')
|
1170
|
-
na += '.' + v;
|
1171
|
-
}
|
1172
|
-
}
|
1173
|
-
|
1174
|
-
na = na.replace(/(html:)/g, '');
|
1175
|
-
na = {name : na, node : n, title : ti};
|
1176
|
-
t.onResolveName.dispatch(t, na);
|
1177
|
-
ti = na.title;
|
1178
|
-
na = na.name;
|
1179
|
-
|
1180
|
-
//u = "javascript:tinymce.EditorManager.get('" + ed.id + "').theme._sel('" + (de++) + "');";
|
1181
|
-
pi = DOM.create('a', {'href' : "javascript:;", role: 'button', onmousedown : "return false;", title : ti, 'class' : 'mcePath_' + (de++)}, na);
|
1182
|
-
|
1183
|
-
if (p.hasChildNodes()) {
|
1184
|
-
p.insertBefore(DOM.create('span', {'aria-hidden': 'true'}, '\u00a0\u00bb '), p.firstChild);
|
1185
|
-
p.insertBefore(pi, p.firstChild);
|
1186
|
-
} else
|
1187
|
-
p.appendChild(pi);
|
1188
|
-
}, ed.getBody());
|
1189
|
-
|
1190
|
-
if (DOM.select('a', p).length > 0) {
|
1191
|
-
t.statusKeyboardNavigation = new tinymce.ui.KeyboardNavigation({
|
1192
|
-
root: ed.id + "_path_row",
|
1193
|
-
items: DOM.select('a', p),
|
1194
|
-
excludeFromTabOrder: true,
|
1195
|
-
onCancel: function() {
|
1196
|
-
ed.focus();
|
1197
|
-
}
|
1198
|
-
}, DOM);
|
1199
|
-
}
|
1200
|
-
}
|
1201
|
-
},
|
1202
|
-
|
1203
|
-
// Commands gets called by execCommand
|
1204
|
-
|
1205
|
-
_sel : function(v) {
|
1206
|
-
this.editor.execCommand('mceSelectNodeDepth', false, v);
|
1207
|
-
},
|
1208
|
-
|
1209
|
-
_mceInsertAnchor : function(ui, v) {
|
1210
|
-
var ed = this.editor;
|
1211
|
-
|
1212
|
-
ed.windowManager.open({
|
1213
|
-
url : this.url + '/anchor.htm',
|
1214
|
-
width : 320 + parseInt(ed.getLang('advanced.anchor_delta_width', 0)),
|
1215
|
-
height : 90 + parseInt(ed.getLang('advanced.anchor_delta_height', 0)),
|
1216
|
-
inline : true
|
1217
|
-
}, {
|
1218
|
-
theme_url : this.url
|
1219
|
-
});
|
1220
|
-
},
|
1221
|
-
|
1222
|
-
_mceCharMap : function() {
|
1223
|
-
var ed = this.editor;
|
1224
|
-
|
1225
|
-
ed.windowManager.open({
|
1226
|
-
url : this.url + '/charmap.htm',
|
1227
|
-
width : 550 + parseInt(ed.getLang('advanced.charmap_delta_width', 0)),
|
1228
|
-
height : 260 + parseInt(ed.getLang('advanced.charmap_delta_height', 0)),
|
1229
|
-
inline : true
|
1230
|
-
}, {
|
1231
|
-
theme_url : this.url
|
1232
|
-
});
|
1233
|
-
},
|
1234
|
-
|
1235
|
-
_mceHelp : function() {
|
1236
|
-
var ed = this.editor;
|
1237
|
-
|
1238
|
-
ed.windowManager.open({
|
1239
|
-
url : this.url + '/about.htm',
|
1240
|
-
width : 480,
|
1241
|
-
height : 380,
|
1242
|
-
inline : true
|
1243
|
-
}, {
|
1244
|
-
theme_url : this.url
|
1245
|
-
});
|
1246
|
-
},
|
1247
|
-
|
1248
|
-
_mceShortcuts : function() {
|
1249
|
-
var ed = this.editor;
|
1250
|
-
ed.windowManager.open({
|
1251
|
-
url: this.url + '/shortcuts.htm',
|
1252
|
-
width: 480,
|
1253
|
-
height: 380,
|
1254
|
-
inline: true
|
1255
|
-
}, {
|
1256
|
-
theme_url: this.url
|
1257
|
-
});
|
1258
|
-
},
|
1259
|
-
|
1260
|
-
_mceColorPicker : function(u, v) {
|
1261
|
-
var ed = this.editor;
|
1262
|
-
|
1263
|
-
v = v || {};
|
1264
|
-
|
1265
|
-
ed.windowManager.open({
|
1266
|
-
url : this.url + '/color_picker.htm',
|
1267
|
-
width : 375 + parseInt(ed.getLang('advanced.colorpicker_delta_width', 0)),
|
1268
|
-
height : 250 + parseInt(ed.getLang('advanced.colorpicker_delta_height', 0)),
|
1269
|
-
close_previous : false,
|
1270
|
-
inline : true
|
1271
|
-
}, {
|
1272
|
-
input_color : v.color,
|
1273
|
-
func : v.func,
|
1274
|
-
theme_url : this.url
|
1275
|
-
});
|
1276
|
-
},
|
1277
|
-
|
1278
|
-
_mceCodeEditor : function(ui, val) {
|
1279
|
-
var ed = this.editor;
|
1280
|
-
|
1281
|
-
ed.windowManager.open({
|
1282
|
-
url : this.url + '/source_editor.htm',
|
1283
|
-
width : parseInt(ed.getParam("theme_advanced_source_editor_width", 720)),
|
1284
|
-
height : parseInt(ed.getParam("theme_advanced_source_editor_height", 580)),
|
1285
|
-
inline : true,
|
1286
|
-
resizable : true,
|
1287
|
-
maximizable : true
|
1288
|
-
}, {
|
1289
|
-
theme_url : this.url
|
1290
|
-
});
|
1291
|
-
},
|
1292
|
-
|
1293
|
-
_mceImage : function(ui, val) {
|
1294
|
-
var ed = this.editor;
|
1295
|
-
|
1296
|
-
// Internal image object like a flash placeholder
|
1297
|
-
if (ed.dom.getAttrib(ed.selection.getNode(), 'class').indexOf('mceItem') != -1)
|
1298
|
-
return;
|
1299
|
-
|
1300
|
-
ed.windowManager.open({
|
1301
|
-
url : this.url + '/image.htm',
|
1302
|
-
width : 355 + parseInt(ed.getLang('advanced.image_delta_width', 0)),
|
1303
|
-
height : 275 + parseInt(ed.getLang('advanced.image_delta_height', 0)),
|
1304
|
-
inline : true
|
1305
|
-
}, {
|
1306
|
-
theme_url : this.url
|
1307
|
-
});
|
1308
|
-
},
|
1309
|
-
|
1310
|
-
_mceLink : function(ui, val) {
|
1311
|
-
var ed = this.editor;
|
1312
|
-
|
1313
|
-
ed.windowManager.open({
|
1314
|
-
url : this.url + '/link.htm',
|
1315
|
-
width : 310 + parseInt(ed.getLang('advanced.link_delta_width', 0)),
|
1316
|
-
height : 200 + parseInt(ed.getLang('advanced.link_delta_height', 0)),
|
1317
|
-
inline : true
|
1318
|
-
}, {
|
1319
|
-
theme_url : this.url
|
1320
|
-
});
|
1321
|
-
},
|
1322
|
-
|
1323
|
-
_mceNewDocument : function() {
|
1324
|
-
var ed = this.editor;
|
1325
|
-
|
1326
|
-
ed.windowManager.confirm('advanced.newdocument', function(s) {
|
1327
|
-
if (s)
|
1328
|
-
ed.execCommand('mceSetContent', false, '');
|
1329
|
-
});
|
1330
|
-
},
|
1331
|
-
|
1332
|
-
_mceForeColor : function() {
|
1333
|
-
var t = this;
|
1334
|
-
|
1335
|
-
this._mceColorPicker(0, {
|
1336
|
-
color: t.fgColor,
|
1337
|
-
func : function(co) {
|
1338
|
-
t.fgColor = co;
|
1339
|
-
t.editor.execCommand('ForeColor', false, co);
|
1340
|
-
}
|
1341
|
-
});
|
1342
|
-
},
|
1343
|
-
|
1344
|
-
_mceBackColor : function() {
|
1345
|
-
var t = this;
|
1346
|
-
|
1347
|
-
this._mceColorPicker(0, {
|
1348
|
-
color: t.bgColor,
|
1349
|
-
func : function(co) {
|
1350
|
-
t.bgColor = co;
|
1351
|
-
t.editor.execCommand('HiliteColor', false, co);
|
1352
|
-
}
|
1353
|
-
});
|
1354
|
-
},
|
1355
|
-
|
1356
|
-
_ufirst : function(s) {
|
1357
|
-
return s.substring(0, 1).toUpperCase() + s.substring(1);
|
1358
|
-
}
|
1359
|
-
});
|
1360
|
-
|
1361
|
-
tinymce.ThemeManager.add('advanced', tinymce.themes.AdvancedTheme);
|
1362
|
-
}(tinymce));
|