locomotive-tinymce-rails 3.4.7.5 → 3.5.8.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -21
- data/Rakefile +15 -16
- data/app/assets/javascripts/tinymce-jquery.js +1 -1
- data/lib/tinymce/rails/version.rb +2 -2
- data/vendor/assets/javascripts/tinymce/jquery.tinymce.js +1 -1
- data/vendor/assets/javascripts/tinymce/langs/de.js +1 -1
- data/vendor/assets/javascripts/tinymce/langs/en.js +1 -1
- data/vendor/assets/javascripts/tinymce/langs/es.js +1 -1
- data/vendor/assets/javascripts/tinymce/langs/et.js +0 -0
- data/vendor/assets/javascripts/tinymce/langs/fr.js +0 -0
- data/vendor/assets/javascripts/tinymce/langs/it.js +0 -0
- data/vendor/assets/javascripts/tinymce/langs/nb.js +1 -0
- data/vendor/assets/javascripts/tinymce/langs/nl.js +0 -0
- data/vendor/assets/javascripts/tinymce/langs/pl.js +0 -0
- data/vendor/assets/javascripts/tinymce/langs/pt.js +0 -0
- data/vendor/assets/javascripts/tinymce/langs/ru.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/advhr/langs/de_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/advhr/langs/es_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/advhr/langs/et_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/advhr/langs/fr_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/advhr/langs/it_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/advhr/langs/nb_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/advhr/langs/nl_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/advhr/langs/pl_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/advhr/langs/pt_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/advhr/langs/ru_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/advimage/js/image.js +5 -3
- data/vendor/assets/javascripts/tinymce/plugins/advimage/langs/de_dlg.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/advimage/langs/es_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/advimage/langs/et_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/advimage/langs/fr_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/advimage/langs/it_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/advimage/langs/nb_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/advimage/langs/nl_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/advimage/langs/pl_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/advimage/langs/pt_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/advimage/langs/ru_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/advlink/js/advlink.js +16 -5
- data/vendor/assets/javascripts/tinymce/plugins/advlink/langs/de_dlg.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/advlink/langs/es_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/advlink/langs/et_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/advlink/langs/fr_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/advlink/langs/it_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/advlink/langs/nb_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/advlink/langs/nl_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/advlink/langs/pl_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/advlink/langs/pt_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/advlink/langs/ru_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/autolink/editor_plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/autolink/editor_plugin_src.js +24 -12
- data/vendor/assets/javascripts/tinymce/plugins/autoresize/editor_plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/autoresize/editor_plugin_src.js +20 -38
- data/vendor/assets/javascripts/tinymce/plugins/autosave/editor_plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/autosave/editor_plugin_src.js +4 -2
- data/vendor/assets/javascripts/tinymce/plugins/contextmenu/editor_plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/contextmenu/editor_plugin_src.js +10 -7
- data/vendor/assets/javascripts/tinymce/plugins/directionality/editor_plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/directionality/editor_plugin_src.js +22 -19
- data/vendor/assets/javascripts/tinymce/plugins/emotions/emotions.htm +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/emotions/langs/de_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/langs/en_dlg.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/emotions/langs/es_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/langs/et_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/langs/fr_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/langs/it_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/langs/nb_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/langs/nl_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/langs/pl_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/langs/pt_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/emotions/langs/ru_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/fullpage/langs/de_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/fullpage/langs/es_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/fullpage/langs/et_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/fullpage/langs/fr_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/fullpage/langs/it_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/fullpage/langs/nb_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/fullpage/langs/nl_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/fullpage/langs/pl_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/fullpage/langs/pt_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/fullpage/langs/ru_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/fullscreen/editor_plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/fullscreen/editor_plugin_src.js +5 -5
- data/vendor/assets/javascripts/tinymce/plugins/legacyoutput/editor_plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/legacyoutput/editor_plugin_src.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/lists/editor_plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/lists/editor_plugin_src.js +98 -68
- data/vendor/assets/javascripts/tinymce/plugins/media/editor_plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/media/editor_plugin_src.js +23 -15
- data/vendor/assets/javascripts/tinymce/plugins/media/js/media.js +75 -26
- data/vendor/assets/javascripts/tinymce/plugins/media/langs/de_dlg.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/media/langs/en_dlg.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/media/langs/es_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/media/langs/et_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/media/langs/fr_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/media/langs/it_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/media/langs/nb_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/media/langs/nl_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/media/langs/pl_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/media/langs/pt_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/media/langs/ru_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/noneditable/editor_plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/noneditable/editor_plugin_src.js +499 -57
- data/vendor/assets/javascripts/tinymce/plugins/paste/editor_plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/paste/editor_plugin_src.js +17 -3
- data/vendor/assets/javascripts/tinymce/plugins/paste/langs/de_dlg.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/paste/langs/es_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/paste/langs/et_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/paste/langs/fr_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/paste/langs/it_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/paste/langs/nb_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/paste/langs/nl_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/paste/langs/pl_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/paste/langs/pt_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/paste/langs/ru_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/searchreplace/langs/de_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/searchreplace/langs/es_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/searchreplace/langs/et_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/searchreplace/langs/fr_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/searchreplace/langs/it_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/searchreplace/langs/nb_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/searchreplace/langs/nl_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/searchreplace/langs/pl_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/searchreplace/langs/pt_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/searchreplace/langs/ru_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/searchreplace/searchreplace.htm +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/spellchecker/editor_plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/spellchecker/editor_plugin_src.js +4 -4
- data/vendor/assets/javascripts/tinymce/plugins/style/css/props.css +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/style/editor_plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/style/editor_plugin_src.js +19 -3
- data/vendor/assets/javascripts/tinymce/plugins/style/js/props.js +77 -3
- data/vendor/assets/javascripts/tinymce/plugins/style/langs/de_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/style/langs/es_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/style/langs/et_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/style/langs/fr_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/style/langs/it_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/style/langs/nb_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/style/langs/nl_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/style/langs/pl_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/style/langs/pt_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/style/langs/ru_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/style/props.htm +6 -1
- data/vendor/assets/javascripts/tinymce/plugins/style/readme.txt +19 -0
- data/vendor/assets/javascripts/tinymce/plugins/tabfocus/editor_plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/tabfocus/editor_plugin_src.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/table/editor_plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/table/editor_plugin_src.js +88 -40
- data/vendor/assets/javascripts/tinymce/plugins/table/js/cell.js +2 -2
- data/vendor/assets/javascripts/tinymce/plugins/table/js/row.js +17 -0
- data/vendor/assets/javascripts/tinymce/plugins/table/js/table.js +20 -3
- data/vendor/assets/javascripts/tinymce/plugins/table/langs/de_dlg.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/table/langs/es_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/table/langs/et_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/table/langs/fr_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/table/langs/it_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/table/langs/nb_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/table/langs/nl_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/table/langs/pl_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/table/langs/pt_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/table/langs/ru_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/table/row.htm +15 -15
- data/vendor/assets/javascripts/tinymce/plugins/template/langs/de_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/template/langs/es_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/template/langs/et_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/template/langs/fr_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/template/langs/it_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/template/langs/nb_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/template/langs/nl_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/template/langs/pl_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/template/langs/pt_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/template/langs/ru_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/visualblocks/css/visualblocks.css +21 -0
- data/vendor/assets/javascripts/tinymce/plugins/visualblocks/editor_plugin.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/visualblocks/editor_plugin_src.js +63 -0
- data/vendor/assets/javascripts/tinymce/plugins/wordcount/editor_plugin.js +1 -1
- data/vendor/assets/javascripts/tinymce/plugins/wordcount/editor_plugin_src.js +14 -6
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/langs/de_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/langs/es_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/langs/et_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/langs/fr_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/langs/it_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/langs/nb_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/langs/nl_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/langs/pl_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/langs/pt_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/plugins/xhtmlxtras/langs/ru_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/color_picker.htm +2 -6
- data/vendor/assets/javascripts/tinymce/themes/advanced/editor_template.js +1 -1
- data/vendor/assets/javascripts/tinymce/themes/advanced/editor_template_src.js +176 -48
- data/vendor/assets/javascripts/tinymce/themes/advanced/img/icons.gif +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/js/anchor.js +19 -6
- data/vendor/assets/javascripts/tinymce/themes/advanced/js/color_picker.js +345 -329
- data/vendor/assets/javascripts/tinymce/themes/advanced/js/image.js +4 -2
- data/vendor/assets/javascripts/tinymce/themes/advanced/js/link.js +9 -3
- data/vendor/assets/javascripts/tinymce/themes/advanced/js/source_editor.js +27 -5
- data/vendor/assets/javascripts/tinymce/themes/advanced/langs/de.js +1 -1
- data/vendor/assets/javascripts/tinymce/themes/advanced/langs/de_dlg.js +1 -1
- data/vendor/assets/javascripts/tinymce/themes/advanced/langs/en.js +1 -1
- data/vendor/assets/javascripts/tinymce/themes/advanced/langs/en_dlg.js +1 -1
- data/vendor/assets/javascripts/tinymce/themes/advanced/langs/es.js +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/langs/es_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/langs/et.js +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/langs/et_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/langs/fr.js +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/langs/fr_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/langs/it.js +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/langs/it_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/langs/nb.js +1 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/langs/nb_dlg.js +1 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/langs/nl.js +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/langs/nl_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/langs/pl.js +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/langs/pl_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/langs/pt.js +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/langs/pt_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/langs/ru.js +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/langs/ru_dlg.js +0 -0
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/dialog.css +3 -2
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/default/ui.css +6 -1
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/highcontrast/dialog.css +4 -3
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/highcontrast/ui.css +5 -1
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/dialog.css +3 -2
- data/vendor/assets/javascripts/tinymce/themes/advanced/skins/o2k7/ui.css +6 -1
- data/vendor/assets/javascripts/tinymce/themes/advanced/source_editor.htm +1 -1
- data/vendor/assets/javascripts/tinymce/themes/simple/langs/de.js +1 -0
- data/vendor/assets/javascripts/tinymce/themes/simple/langs/es.js +1 -0
- data/vendor/assets/javascripts/tinymce/themes/simple/langs/et.js +1 -0
- data/vendor/assets/javascripts/tinymce/themes/simple/langs/fr.js +1 -0
- data/vendor/assets/javascripts/tinymce/themes/simple/langs/it.js +1 -0
- data/vendor/assets/javascripts/tinymce/themes/simple/langs/nb.js +1 -0
- data/vendor/assets/javascripts/tinymce/themes/simple/langs/nl.js +1 -0
- data/vendor/assets/javascripts/tinymce/themes/simple/langs/pl.js +0 -0
- data/vendor/assets/javascripts/tinymce/themes/simple/langs/pt.js +1 -0
- data/vendor/assets/javascripts/tinymce/themes/simple/langs/ru.js +1 -0
- data/vendor/assets/javascripts/tinymce/tiny_mce.js +1 -1
- data/vendor/assets/javascripts/tinymce/tiny_mce_popup.js +1 -1
- data/vendor/assets/javascripts/tinymce/tiny_mce_src.js +9799 -8716
- data/vendor/assets/javascripts_old/tinymce/jquery.tinymce.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/langs/de.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/langs/en.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/langs/es.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/langs/et.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/langs/fr.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/langs/it.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/langs/nl.js +1 -0
- data/vendor/assets/{javascripts → javascripts_old}/tinymce/langs/no.js +0 -0
- data/vendor/assets/javascripts_old/tinymce/langs/pl.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/langs/pt.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/langs/ru.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/license.txt +504 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advhr/css/advhr.css +5 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advhr/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advhr/editor_plugin_src.js +57 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advhr/js/rule.js +43 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advhr/langs/de_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advhr/langs/en_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advhr/langs/es_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advhr/langs/et_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advhr/langs/fr_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advhr/langs/it_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advhr/langs/nl_dlg.js +1 -0
- data/vendor/assets/{javascripts → javascripts_old}/tinymce/plugins/advhr/langs/no_dlg.js +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advhr/langs/pl_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advhr/langs/pt_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advhr/langs/ru_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advhr/rule.htm +58 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advimage/css/advimage.css +13 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advimage/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advimage/editor_plugin_src.js +50 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advimage/image.htm +235 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advimage/img/sample.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advimage/js/image.js +462 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advimage/langs/de_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advimage/langs/en_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advimage/langs/es_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advimage/langs/et_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advimage/langs/fr_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advimage/langs/it_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advimage/langs/nl_dlg.js +1 -0
- data/vendor/assets/{javascripts → javascripts_old}/tinymce/plugins/advimage/langs/no_dlg.js +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advimage/langs/pl_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advimage/langs/pt_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advimage/langs/ru_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advlink/css/advlink.css +8 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advlink/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advlink/editor_plugin_src.js +61 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advlink/js/advlink.js +532 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advlink/langs/de_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advlink/langs/en_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advlink/langs/es_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advlink/langs/et_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advlink/langs/fr_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advlink/langs/it_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advlink/langs/nl_dlg.js +1 -0
- data/vendor/assets/{javascripts → javascripts_old}/tinymce/plugins/advlink/langs/no_dlg.js +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advlink/langs/pl_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advlink/langs/pt_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advlink/langs/ru_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advlink/link.htm +338 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advlist/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/advlist/editor_plugin_src.js +176 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/autolink/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/autolink/editor_plugin_src.js +172 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/autoresize/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/autoresize/editor_plugin_src.js +137 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/autosave/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/autosave/editor_plugin_src.js +431 -0
- data/vendor/assets/{javascripts → javascripts_old}/tinymce/plugins/autosave/langs/en.js +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/bbcode/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/bbcode/editor_plugin_src.js +120 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/contextmenu/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/contextmenu/editor_plugin_src.js +160 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/directionality/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/directionality/editor_plugin_src.js +82 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/emotions/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/emotions/editor_plugin_src.js +43 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/emotions/emotions.htm +42 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-cool.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-cry.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-embarassed.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-foot-in-mouth.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-frown.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-innocent.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-kiss.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-laughing.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-money-mouth.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-sealed.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-smile.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-surprised.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-tongue-out.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-undecided.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-wink.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/emotions/img/smiley-yell.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/emotions/js/emotions.js +43 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/emotions/langs/en_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/emotions/langs/pl_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/example/dialog.htm +22 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/example/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/example/editor_plugin_src.js +84 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/example/img/example.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/example/js/dialog.js +19 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/example/langs/en.js +3 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/example/langs/en_dlg.js +3 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/example_dependency/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/example_dependency/editor_plugin_src.js +50 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/css/fullpage.css +143 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/editor_plugin_src.js +405 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/fullpage.htm +259 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/js/fullpage.js +232 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/langs/de_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/langs/en_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/langs/es_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/langs/et_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/langs/fr_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/langs/it_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/langs/nl_dlg.js +1 -0
- data/vendor/assets/{javascripts → javascripts_old}/tinymce/plugins/fullpage/langs/no_dlg.js +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/langs/pl_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/langs/pt_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/fullpage/langs/ru_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/fullscreen/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/fullscreen/editor_plugin_src.js +159 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/fullscreen/fullscreen.htm +110 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/iespell/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/iespell/editor_plugin_src.js +54 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/inlinepopups/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/inlinepopups/editor_plugin_src.js +699 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/inlinepopups/skins/clearlooks2/img/button.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/inlinepopups/skins/clearlooks2/window.css +90 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/inlinepopups/template.htm +387 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/insertdatetime/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/insertdatetime/editor_plugin_src.js +83 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/layer/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/layer/editor_plugin_src.js +262 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/legacyoutput/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/legacyoutput/editor_plugin_src.js +139 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/lists/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/lists/editor_plugin_src.js +925 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/media/css/media.css +17 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/media/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/media/editor_plugin_src.js +890 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/media/js/embed.js +73 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/media/js/media.js +464 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/media/langs/de_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/media/langs/en_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/media/langs/es_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/media/langs/et_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/media/langs/fr_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/media/langs/it_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/media/langs/nl_dlg.js +1 -0
- data/vendor/assets/{javascripts → javascripts_old}/tinymce/plugins/media/langs/no_dlg.js +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/media/langs/pl_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/media/langs/pt_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/media/langs/ru_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/media/media.htm +922 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/media/moxieplayer.swf +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/nonbreaking/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/nonbreaking/editor_plugin_src.js +54 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/noneditable/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/noneditable/editor_plugin_src.js +95 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/pagebreak/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/pagebreak/editor_plugin_src.js +74 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/paste/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/paste/editor_plugin_src.js +871 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/paste/js/pastetext.js +36 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/paste/js/pasteword.js +51 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/paste/langs/de_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/paste/langs/en_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/paste/langs/es_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/paste/langs/et_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/paste/langs/fr_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/paste/langs/it_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/paste/langs/nl_dlg.js +1 -0
- data/vendor/assets/{javascripts → javascripts_old}/tinymce/plugins/paste/langs/no_dlg.js +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/paste/langs/pl_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/paste/langs/pt_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/paste/langs/ru_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/paste/pastetext.htm +27 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/paste/pasteword.htm +21 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/preview/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/preview/editor_plugin_src.js +53 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/preview/example.html +28 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/preview/jscripts/embed.js +73 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/preview/preview.html +17 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/print/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/print/editor_plugin_src.js +34 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/save/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/save/editor_plugin_src.js +101 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/css/searchreplace.css +6 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/editor_plugin_src.js +61 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/js/searchreplace.js +142 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/langs/de_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/langs/en_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/langs/es_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/langs/et_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/langs/fr_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/langs/it_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/langs/nl_dlg.js +1 -0
- data/vendor/assets/{javascripts → javascripts_old}/tinymce/plugins/searchreplace/langs/no_dlg.js +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/langs/pl_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/langs/pt_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/langs/ru_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/searchreplace/searchreplace.htm +100 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/spellchecker/css/content.css +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/spellchecker/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/spellchecker/editor_plugin_src.js +436 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/spellchecker/img/wline.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/style/css/props.css +13 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/style/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/style/editor_plugin_src.js +55 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/style/js/props.js +635 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/style/langs/de_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/style/langs/en_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/style/langs/es_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/style/langs/et_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/style/langs/fr_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/style/langs/it_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/style/langs/nl_dlg.js +1 -0
- data/vendor/assets/{javascripts → javascripts_old}/tinymce/plugins/style/langs/no_dlg.js +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/style/langs/pl_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/style/langs/pt_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/style/langs/ru_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/style/props.htm +840 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/tabfocus/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/tabfocus/editor_plugin_src.js +122 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/table/cell.htm +180 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/table/css/cell.css +17 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/table/css/row.css +25 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/table/css/table.css +13 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/table/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/table/editor_plugin_src.js +1408 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/table/js/cell.js +319 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/table/js/merge_cells.js +27 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/table/js/row.js +237 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/table/js/table.js +484 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/table/langs/de_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/table/langs/en_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/table/langs/es_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/table/langs/et_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/table/langs/fr_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/table/langs/it_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/table/langs/nl_dlg.js +1 -0
- data/vendor/assets/{javascripts → javascripts_old}/tinymce/plugins/table/langs/no_dlg.js +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/table/langs/pl_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/table/langs/pt_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/table/langs/ru_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/table/merge_cells.htm +32 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/table/row.htm +158 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/table/table.htm +188 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/template/blank.htm +12 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/template/css/template.css +23 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/template/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/template/editor_plugin_src.js +159 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/template/js/template.js +106 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/template/langs/en_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/template/langs/pl_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/template/template.htm +31 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/visualchars/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/visualchars/editor_plugin_src.js +83 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/wordcount/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/wordcount/editor_plugin_src.js +114 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/abbr.htm +142 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/acronym.htm +142 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/attributes.htm +149 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/cite.htm +142 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/css/attributes.css +11 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/css/popup.css +9 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/del.htm +162 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/editor_plugin.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/editor_plugin_src.js +132 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/ins.htm +162 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/js/abbr.js +28 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/js/acronym.js +28 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/js/attributes.js +111 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/js/cite.js +28 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/js/del.js +53 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/js/element_common.js +229 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/js/ins.js +53 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/langs/de_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/langs/en_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/langs/es_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/langs/et_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/langs/fr_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/langs/it_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/langs/nl_dlg.js +1 -0
- data/vendor/assets/{javascripts → javascripts_old}/tinymce/plugins/xhtmlxtras/langs/no_dlg.js +0 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/langs/pl_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/langs/pt_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/plugins/xhtmlxtras/langs/ru_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/about.htm +52 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/anchor.htm +26 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/charmap.htm +55 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/color_picker.htm +74 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/editor_template.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/editor_template_src.js +1362 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/image.htm +80 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/img/colorpicker.jpg +0 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/img/flash.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/img/icons.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/img/iframe.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/img/pagebreak.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/img/quicktime.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/img/realmedia.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/img/shockwave.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/img/trans.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/img/video.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/img/windowsmedia.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/js/about.js +73 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/js/anchor.js +43 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/js/charmap.js +363 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/js/color_picker.js +329 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/js/image.js +251 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/js/link.js +153 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/js/source_editor.js +56 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/de.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/de_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/en.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/en_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/es.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/es_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/et.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/et_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/fr.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/fr_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/it.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/it_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/nl.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/nl_dlg.js +1 -0
- data/vendor/assets/{javascripts → javascripts_old}/tinymce/themes/advanced/langs/no.js +0 -0
- data/vendor/assets/{javascripts → javascripts_old}/tinymce/themes/advanced/langs/no_dlg.js +0 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/pl.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/pl_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/pt.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/pt_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/ru.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/langs/ru_dlg.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/link.htm +57 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/shortcuts.htm +47 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/default/content.css +50 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/default/dialog.css +117 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/default/img/buttons.png +0 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/default/img/items.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/default/img/menu_arrow.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/default/img/menu_check.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/default/img/progress.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/default/img/tabs.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/default/ui.css +214 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/highcontrast/content.css +24 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/highcontrast/dialog.css +105 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/highcontrast/ui.css +102 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/o2k7/content.css +48 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/o2k7/dialog.css +117 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/o2k7/img/button_bg.png +0 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/o2k7/img/button_bg_black.png +0 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/o2k7/img/button_bg_silver.png +0 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/o2k7/ui.css +217 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/o2k7/ui_black.css +8 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/skins/o2k7/ui_silver.css +5 -0
- data/vendor/assets/javascripts_old/tinymce/themes/advanced/source_editor.htm +25 -0
- data/vendor/assets/javascripts_old/tinymce/themes/simple/editor_template.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/themes/simple/editor_template_src.js +84 -0
- data/vendor/assets/javascripts_old/tinymce/themes/simple/img/icons.gif +0 -0
- data/vendor/assets/javascripts_old/tinymce/themes/simple/langs/en.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/themes/simple/langs/pl.js +1 -0
- data/vendor/assets/javascripts_old/tinymce/themes/simple/skins/default/content.css +25 -0
- data/vendor/assets/javascripts_old/tinymce/themes/simple/skins/default/ui.css +32 -0
- data/vendor/assets/javascripts_old/tinymce/themes/simple/skins/o2k7/content.css +17 -0
- data/vendor/assets/javascripts_old/tinymce/themes/simple/skins/o2k7/img/button_bg.png +0 -0
- data/vendor/assets/javascripts_old/tinymce/themes/simple/skins/o2k7/ui.css +35 -0
- data/vendor/assets/javascripts_old/tinymce/tiny_mce.js +1 -0
- data/vendor/assets/{javascripts → javascripts_old}/tinymce/tiny_mce_jquery.js +0 -0
- data/vendor/assets/{javascripts → javascripts_old}/tinymce/tiny_mce_jquery_src.js +0 -0
- data/vendor/assets/javascripts_old/tinymce/tiny_mce_popup.js +5 -0
- data/vendor/assets/javascripts_old/tinymce/tiny_mce_src.js +16728 -0
- data/vendor/assets/javascripts_old/tinymce/utils/editable_selects.js +70 -0
- data/vendor/assets/javascripts_old/tinymce/utils/form_utils.js +210 -0
- data/vendor/assets/javascripts_old/tinymce/utils/mctabs.js +162 -0
- data/vendor/assets/javascripts_old/tinymce/utils/validate.js +252 -0
- metadata +437 -20
@@ -1 +1 @@
|
|
1
|
-
(function(e){var c="autosave",g="restoredraft",b=true,f,d,a=e.util.Dispatcher;e.create("tinymce.plugins.AutoSave",{init:function(i,j){var h=this,l=i.settings;h.editor=i;function k(n){var m={s:1000,m:60000};n=/^(\d+)([ms]?)$/.exec(""+n);return(n[2]?m[n[2]]:1)*parseInt(n)}e.each({ask_before_unload:b,interval:"30s",retention:"20m",minlength:50},function(n,m){m=c+"_"+m;if(l[m]===f){l[m]=n}});l.autosave_interval=k(l.autosave_interval);l.autosave_retention=k(l.autosave_retention);i.addButton(g,{title:c+".restore_content",onclick:function(){if(i.getContent({draft:true}).replace(/\s| |<\/?p[^>]*>|<br[^>]*>/gi,"").length>0){i.windowManager.confirm(c+".warning_message",function(m){if(m){h.restoreDraft()}})}else{h.restoreDraft()}}});i.onNodeChange.add(function(){var m=i.controlManager;if(m.get(g)){m.setDisabled(g,!h.hasDraft())}});i.onInit.add(function(){if(i.controlManager.get(g)){h.setupStorage(i);setInterval(function(){h.storeDraft();i.nodeChanged()},l.autosave_interval)}});h.onStoreDraft=new a(h);h.onRestoreDraft=new a(h);h.onRemoveDraft=new a(h);if(!d){window.onbeforeunload=e.plugins.AutoSave._beforeUnloadHandler;d=b}},getInfo:function(){return{longname:"Auto save",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave",version:e.majorVersion+"."+e.minorVersion}},getExpDate:function(){return new Date(new Date().getTime()+this.editor.settings.autosave_retention).toUTCString()},setupStorage:function(i){var h=this,k=c+"_test",j="OK";h.key=c+i.id;e.each([function(){if(localStorage){localStorage.setItem(k,j);if(localStorage.getItem(k)===j){localStorage.removeItem(k);return localStorage}}},function(){if(sessionStorage){sessionStorage.setItem(k,j);if(sessionStorage.getItem(k)===j){sessionStorage.removeItem(k);return sessionStorage}}},function(){if(e.isIE){i.getElement().style.behavior="url('#default#userData')";return{autoExpires:b,setItem:function(l,n){var m=i.getElement();m.setAttribute(l,n);m.expires=h.getExpDate();try{m.save("TinyMCE")}catch(o){}},getItem:function(l){var m=i.getElement();try{m.load("TinyMCE");return m.getAttribute(l)}catch(n){return null}},removeItem:function(l){i.getElement().removeAttribute(l)}}}},],function(l){try{h.storage=l();if(h.storage){return false}}catch(m){}})},storeDraft:function(){var i=this,l=i.storage,j=i.editor,h,k;if(l){if(!l.getItem(i.key)&&!j.isDirty()){return}k=j.getContent({draft:true});if(k.length>j.settings.autosave_minlength){h=i.getExpDate();if(!i.storage.autoExpires){i.storage.setItem(i.key+"_expires",h)}i.storage.setItem(i.key,k);i.onStoreDraft.dispatch(i,{expires:h,content:k})}}},restoreDraft:function(){var h=this,j=h.storage,i;if(j){i=j.getItem(h.key);if(i){h.editor.setContent(i);h.onRestoreDraft.dispatch(h,{content:i})}}},hasDraft:function(){var h=this,k=h.storage,i,j;if(k){j=!!k.getItem(h.key);if(j){if(!h.storage.autoExpires){i=new Date(k.getItem(h.key+"_expires"));if(new Date().getTime()<i.getTime()){return b}h.removeDraft()}else{return b}}}return false},removeDraft:function(){var h=this,k=h.storage,i=h.key,j;if(k){j=k.getItem(i);k.removeItem(i);k.removeItem(i+"_expires");if(j){h.onRemoveDraft.dispatch(h,{content:j})}}},"static":{_beforeUnloadHandler:function(h){var i;e.each(tinyMCE.editors,function(j){if(j.plugins.autosave){j.plugins.autosave.storeDraft()}if(j.getParam("fullscreen_is_enabled")){return}if(!i&&j.isDirty()&&j.getParam("autosave_ask_before_unload")){i=j.getLang("autosave.unload_msg")}});return i}}});e.PluginManager.add("autosave",e.plugins.AutoSave)})(tinymce);
|
1
|
+
(function(e){var c="autosave",g="restoredraft",b=true,f,d,a=e.util.Dispatcher;e.create("tinymce.plugins.AutoSave",{init:function(i,j){var h=this,l=i.settings;h.editor=i;function k(n){var m={s:1000,m:60000};n=/^(\d+)([ms]?)$/.exec(""+n);return(n[2]?m[n[2]]:1)*parseInt(n)}e.each({ask_before_unload:b,interval:"30s",retention:"20m",minlength:50},function(n,m){m=c+"_"+m;if(l[m]===f){l[m]=n}});l.autosave_interval=k(l.autosave_interval);l.autosave_retention=k(l.autosave_retention);i.addButton(g,{title:c+".restore_content",onclick:function(){if(i.getContent({draft:true}).replace(/\s| |<\/?p[^>]*>|<br[^>]*>/gi,"").length>0){i.windowManager.confirm(c+".warning_message",function(m){if(m){h.restoreDraft()}})}else{h.restoreDraft()}}});i.onNodeChange.add(function(){var m=i.controlManager;if(m.get(g)){m.setDisabled(g,!h.hasDraft())}});i.onInit.add(function(){if(i.controlManager.get(g)){h.setupStorage(i);setInterval(function(){if(!i.removed){h.storeDraft();i.nodeChanged()}},l.autosave_interval)}});h.onStoreDraft=new a(h);h.onRestoreDraft=new a(h);h.onRemoveDraft=new a(h);if(!d){window.onbeforeunload=e.plugins.AutoSave._beforeUnloadHandler;d=b}},getInfo:function(){return{longname:"Auto save",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave",version:e.majorVersion+"."+e.minorVersion}},getExpDate:function(){return new Date(new Date().getTime()+this.editor.settings.autosave_retention).toUTCString()},setupStorage:function(i){var h=this,k=c+"_test",j="OK";h.key=c+i.id;e.each([function(){if(localStorage){localStorage.setItem(k,j);if(localStorage.getItem(k)===j){localStorage.removeItem(k);return localStorage}}},function(){if(sessionStorage){sessionStorage.setItem(k,j);if(sessionStorage.getItem(k)===j){sessionStorage.removeItem(k);return sessionStorage}}},function(){if(e.isIE){i.getElement().style.behavior="url('#default#userData')";return{autoExpires:b,setItem:function(l,n){var m=i.getElement();m.setAttribute(l,n);m.expires=h.getExpDate();try{m.save("TinyMCE")}catch(o){}},getItem:function(l){var m=i.getElement();try{m.load("TinyMCE");return m.getAttribute(l)}catch(n){return null}},removeItem:function(l){i.getElement().removeAttribute(l)}}}},],function(l){try{h.storage=l();if(h.storage){return false}}catch(m){}})},storeDraft:function(){var i=this,l=i.storage,j=i.editor,h,k;if(l){if(!l.getItem(i.key)&&!j.isDirty()){return}k=j.getContent({draft:true});if(k.length>j.settings.autosave_minlength){h=i.getExpDate();if(!i.storage.autoExpires){i.storage.setItem(i.key+"_expires",h)}i.storage.setItem(i.key,k);i.onStoreDraft.dispatch(i,{expires:h,content:k})}}},restoreDraft:function(){var h=this,j=h.storage,i;if(j){i=j.getItem(h.key);if(i){h.editor.setContent(i);h.onRestoreDraft.dispatch(h,{content:i})}}},hasDraft:function(){var h=this,k=h.storage,i,j;if(k){j=!!k.getItem(h.key);if(j){if(!h.storage.autoExpires){i=new Date(k.getItem(h.key+"_expires"));if(new Date().getTime()<i.getTime()){return b}h.removeDraft()}else{return b}}}return false},removeDraft:function(){var h=this,k=h.storage,i=h.key,j;if(k){j=k.getItem(i);k.removeItem(i);k.removeItem(i+"_expires");if(j){h.onRemoveDraft.dispatch(h,{content:j})}}},"static":{_beforeUnloadHandler:function(h){var i;e.each(tinyMCE.editors,function(j){if(j.plugins.autosave){j.plugins.autosave.storeDraft()}if(j.getParam("fullscreen_is_enabled")){return}if(!i&&j.isDirty()&&j.getParam("autosave_ask_before_unload")){i=j.getLang("autosave.unload_msg")}});return i}}});e.PluginManager.add("autosave",e.plugins.AutoSave)})(tinymce);
|
@@ -136,8 +136,10 @@
|
|
136
136
|
|
137
137
|
// Auto save contents each interval time
|
138
138
|
setInterval(function() {
|
139
|
-
|
140
|
-
|
139
|
+
if (!ed.removed) {
|
140
|
+
self.storeDraft();
|
141
|
+
ed.nodeChanged();
|
142
|
+
}
|
141
143
|
}, settings.autosave_interval);
|
142
144
|
}
|
143
145
|
});
|
@@ -1 +1 @@
|
|
1
|
-
(function(){var a=tinymce.dom.Event,c=tinymce.each,b=tinymce.DOM;tinymce.create("tinymce.plugins.ContextMenu",{init:function(
|
1
|
+
(function(){var a=tinymce.dom.Event,c=tinymce.each,b=tinymce.DOM;tinymce.create("tinymce.plugins.ContextMenu",{init:function(f){var i=this,g,d,j,e;i.editor=f;d=f.settings.contextmenu_never_use_native;i.onContextMenu=new tinymce.util.Dispatcher(this);e=function(k){h(f,k)};g=f.onContextMenu.add(function(k,l){if((j!==0?j:l.ctrlKey)&&!d){return}a.cancel(l);if(l.target.nodeName=="IMG"){k.selection.select(l.target)}i._getMenu(k).showMenu(l.clientX||l.pageX,l.clientY||l.pageY);a.add(k.getDoc(),"click",e);k.nodeChanged()});f.onRemove.add(function(){if(i._menu){i._menu.removeAll()}});function h(k,l){j=0;if(l&&l.button==2){j=l.ctrlKey;return}if(i._menu){i._menu.removeAll();i._menu.destroy();a.remove(k.getDoc(),"click",e);i._menu=null}}f.onMouseDown.add(h);f.onKeyDown.add(h);f.onKeyDown.add(function(k,l){if(l.shiftKey&&!l.ctrlKey&&!l.altKey&&l.keyCode===121){a.cancel(l);g(k,l)}})},getInfo:function(){return{longname:"Contextmenu",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_getMenu:function(e){var g=this,d=g._menu,j=e.selection,f=j.isCollapsed(),h=j.getNode()||e.getBody(),i,k;if(d){d.removeAll();d.destroy()}k=b.getPos(e.getContentAreaContainer());d=e.controlManager.createDropMenu("contextmenu",{offset_x:k.x+e.getParam("contextmenu_offset_x",0),offset_y:k.y+e.getParam("contextmenu_offset_y",0),constrain:1,keyboard_focus:true});g._menu=d;d.add({title:"advanced.cut_desc",icon:"cut",cmd:"Cut"}).setDisabled(f);d.add({title:"advanced.copy_desc",icon:"copy",cmd:"Copy"}).setDisabled(f);d.add({title:"advanced.paste_desc",icon:"paste",cmd:"Paste"});if((h.nodeName=="A"&&!e.dom.getAttrib(h,"name"))||!f){d.addSeparator();d.add({title:"advanced.link_desc",icon:"link",cmd:e.plugins.advlink?"mceAdvLink":"mceLink",ui:true});d.add({title:"advanced.unlink_desc",icon:"unlink",cmd:"UnLink"})}d.addSeparator();d.add({title:"advanced.image_desc",icon:"image",cmd:e.plugins.advimage?"mceAdvImage":"mceImage",ui:true});d.addSeparator();i=d.addMenu({title:"contextmenu.align"});i.add({title:"contextmenu.left",icon:"justifyleft",cmd:"JustifyLeft"});i.add({title:"contextmenu.center",icon:"justifycenter",cmd:"JustifyCenter"});i.add({title:"contextmenu.right",icon:"justifyright",cmd:"JustifyRight"});i.add({title:"contextmenu.full",icon:"justifyfull",cmd:"JustifyFull"});g.onContextMenu.dispatch(g,d,h,f);return d}});tinymce.PluginManager.add("contextmenu",tinymce.plugins.ContextMenu)})();
|
@@ -27,7 +27,7 @@
|
|
27
27
|
* @param {string} url Absolute URL to where the plugin is located.
|
28
28
|
*/
|
29
29
|
init : function(ed) {
|
30
|
-
var t = this, showMenu, contextmenuNeverUseNative, realCtrlKey;
|
30
|
+
var t = this, showMenu, contextmenuNeverUseNative, realCtrlKey, hideMenu;
|
31
31
|
|
32
32
|
t.editor = ed;
|
33
33
|
|
@@ -42,6 +42,10 @@
|
|
42
42
|
*/
|
43
43
|
t.onContextMenu = new tinymce.util.Dispatcher(this);
|
44
44
|
|
45
|
+
hideMenu = function(e) {
|
46
|
+
hide(ed, e);
|
47
|
+
};
|
48
|
+
|
45
49
|
showMenu = ed.onContextMenu.add(function(ed, e) {
|
46
50
|
// Block TinyMCE menu on ctrlKey and work around Safari issue
|
47
51
|
if ((realCtrlKey !== 0 ? realCtrlKey : e.ctrlKey) && !contextmenuNeverUseNative)
|
@@ -54,13 +58,11 @@
|
|
54
58
|
ed.selection.select(e.target);
|
55
59
|
|
56
60
|
t._getMenu(ed).showMenu(e.clientX || e.pageX, e.clientY || e.pageY);
|
57
|
-
Event.add(ed.getDoc(), 'click',
|
58
|
-
hide(ed, e);
|
59
|
-
});
|
61
|
+
Event.add(ed.getDoc(), 'click', hideMenu);
|
60
62
|
|
61
63
|
ed.nodeChanged();
|
62
64
|
});
|
63
|
-
|
65
|
+
|
64
66
|
ed.onRemove.add(function() {
|
65
67
|
if (t._menu)
|
66
68
|
t._menu.removeAll();
|
@@ -78,8 +80,9 @@
|
|
78
80
|
|
79
81
|
if (t._menu) {
|
80
82
|
t._menu.removeAll();
|
81
|
-
|
82
|
-
Event.remove(ed.getDoc(), 'click',
|
83
|
+
t._menu.destroy();
|
84
|
+
Event.remove(ed.getDoc(), 'click', hideMenu);
|
85
|
+
t._menu = null;
|
83
86
|
}
|
84
87
|
};
|
85
88
|
|
@@ -1 +1 @@
|
|
1
|
-
(function(){tinymce.create("tinymce.plugins.Directionality",{init:function(
|
1
|
+
(function(){tinymce.create("tinymce.plugins.Directionality",{init:function(b,c){var d=this;d.editor=b;function a(e){var h=b.dom,g,f=b.selection.getSelectedBlocks();if(f.length){g=h.getAttrib(f[0],"dir");tinymce.each(f,function(i){if(!h.getParent(i.parentNode,"*[dir='"+e+"']",h.getRoot())){if(g!=e){h.setAttrib(i,"dir",e)}else{h.setAttrib(i,"dir",null)}}});b.nodeChanged()}}b.addCommand("mceDirectionLTR",function(){a("ltr")});b.addCommand("mceDirectionRTL",function(){a("rtl")});b.addButton("ltr",{title:"directionality.ltr_desc",cmd:"mceDirectionLTR"});b.addButton("rtl",{title:"directionality.rtl_desc",cmd:"mceDirectionRTL"});b.onNodeChange.add(d._nodeChange,d)},getInfo:function(){return{longname:"Directionality",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,e){var d=b.dom,c;e=d.getParent(e,d.isBlock);if(!e){a.setDisabled("ltr",1);a.setDisabled("rtl",1);return}c=d.getAttrib(e,"dir");a.setActive("ltr",c=="ltr");a.setDisabled("ltr",0);a.setActive("rtl",c=="rtl");a.setDisabled("rtl",0)}});tinymce.PluginManager.add("directionality",tinymce.plugins.Directionality)})();
|
@@ -15,30 +15,33 @@
|
|
15
15
|
|
16
16
|
t.editor = ed;
|
17
17
|
|
18
|
-
|
19
|
-
var
|
20
|
-
|
21
|
-
if (
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
18
|
+
function setDir(dir) {
|
19
|
+
var dom = ed.dom, curDir, blocks = ed.selection.getSelectedBlocks();
|
20
|
+
|
21
|
+
if (blocks.length) {
|
22
|
+
curDir = dom.getAttrib(blocks[0], "dir");
|
23
|
+
|
24
|
+
tinymce.each(blocks, function(block) {
|
25
|
+
// Add dir to block if the parent block doesn't already have that dir
|
26
|
+
if (!dom.getParent(block.parentNode, "*[dir='" + dir + "']", dom.getRoot())) {
|
27
|
+
if (curDir != dir) {
|
28
|
+
dom.setAttrib(block, "dir", dir);
|
29
|
+
} else {
|
30
|
+
dom.setAttrib(block, "dir", null);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
});
|
34
|
+
|
35
|
+
ed.nodeChanged();
|
26
36
|
}
|
37
|
+
}
|
27
38
|
|
28
|
-
|
39
|
+
ed.addCommand('mceDirectionLTR', function() {
|
40
|
+
setDir("ltr");
|
29
41
|
});
|
30
42
|
|
31
43
|
ed.addCommand('mceDirectionRTL', function() {
|
32
|
-
|
33
|
-
|
34
|
-
if (e) {
|
35
|
-
if (ed.dom.getAttrib(e, "dir") != "rtl")
|
36
|
-
ed.dom.setAttrib(e, "dir", "rtl");
|
37
|
-
else
|
38
|
-
ed.dom.setAttrib(e, "dir", "");
|
39
|
-
}
|
40
|
-
|
41
|
-
ed.nodeChanged();
|
44
|
+
setDir("rtl");
|
42
45
|
});
|
43
46
|
|
44
47
|
ed.addButton('ltr', {title : 'directionality.ltr_desc', cmd : 'mceDirectionLTR'});
|
@@ -30,7 +30,7 @@
|
|
30
30
|
<td><a class="emoticon_link" role="button" title="{#emotions_dlg.surprised}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-surprised.gif','emotions_dlg.surprised');"><img src="img/smiley-surprised.gif" width="18" height="18" border="0" alt="{#emotions_dlg.surprised}. {#emotions_dlg.usage}" /></a></td>
|
31
31
|
</tr>
|
32
32
|
<tr>
|
33
|
-
<td><a class="emoticon_link" role="button" title="{#emotions_dlg.
|
33
|
+
<td><a class="emoticon_link" role="button" title="{#emotions_dlg.tongue_out}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-tongue-out.gif','emotions_dlg.tongue_out');"><img src="img/smiley-tongue-out.gif" width="18" height="18" border="0" alt="{#emotions_dlg.tongue-out}. {#emotions_dlg.usage}" /></a></td>
|
34
34
|
<td><a class="emoticon_link" role="button" title="{#emotions_dlg.undecided}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-undecided.gif','emotions_dlg.undecided');"><img src="img/smiley-undecided.gif" width="18" height="18" border="0" alt="{#emotions_dlg.undecided}. {#emotions_dlg.usage}" /></a></td>
|
35
35
|
<td><a class="emoticon_link" role="button" title="{#emotions_dlg.wink}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-wink.gif','emotions_dlg.wink');"><img src="img/smiley-wink.gif" width="18" height="18" border="0" alt="{#emotions_dlg.wink}. {#emotions_dlg.usage}" /></a></td>
|
36
36
|
<td><a class="emoticon_link" role="button" title="{#emotions_dlg.yell}. {#emotions_dlg.usage}" href="javascript:EmotionsDialog.insert('smiley-yell.gif','emotions_dlg.yell');"><img src="img/smiley-yell.gif" width="18" height="18" border="0" alt="{#emotions_dlg.yell}. {#emotions_dlg.usage}" /></a></td>
|
@@ -0,0 +1 @@
|
|
1
|
+
tinyMCE.addI18n('de.emotions_dlg',{cry:"Weinend",cool:"Cool",desc:"Smileys",title:"Smiley einf\u00fcgen",yell:"Br\u00fcllend",wink:"Zwinkernd",undecided:"Unentschlossen","tongue_out":"Zunge raus",surprised:"\u00dcberrascht",smile:"L\u00e4chelnd",sealed:"Verschlossen","money_mouth":"Geld",laughing:"Lachend",kiss:"K\u00fcssend",innocent:"Unschuldig",frown:"Stirnrunzelnd","foot_in_mouth":"Reingefallen",embarassed:"Verlegen",usage:"Navigation mit linken und rechten Pfeilen."});
|
@@ -1 +1 @@
|
|
1
|
-
tinyMCE.addI18n('en.emotions_dlg',{cry:"Cry",cool:"Cool",desc:"Emotions",title:"Insert Emotion",
|
1
|
+
tinyMCE.addI18n('en.emotions_dlg',{cry:"Cry",cool:"Cool",desc:"Emotions",title:"Insert Emotion",yell:"Yell",wink:"Wink",undecided:"Undecided","tongue_out":"Tongue Out",surprised:"Surprised",smile:"Smile",sealed:"Sealed","money_mouth":"Money Mouth",laughing:"Laughing",kiss:"Kiss",innocent:"Innocent",frown:"Frown","foot_in_mouth":"Foot in Mouth",embarassed:"Embarassed",usage:"Use left and right arrows to navigate."});
|
@@ -0,0 +1 @@
|
|
1
|
+
tinyMCE.addI18n('es.emotions_dlg',{cry:"Llora",cool:"Todo bien",desc:"Emoticones",title:"Insertar emoticon",yell:"Enfadado",wink:"Gui\u00f1o",undecided:"Indeciso","tongue_out":"Lengua fuera",surprised:"Sorprendido",smile:"Sonrisa",sealed:"Sellado","money_mouth":"Dinero boca",laughing:"Risa",kiss:"Beso",innocent:"Inocente",frown:"Triste","foot_in_mouth":"Pie en la boca",embarassed:"Verg\u00fcenza",usage:"Use las flechas para navegar"});
|
@@ -0,0 +1 @@
|
|
1
|
+
tinyMCE.addI18n('et.emotions_dlg',{cry:"Nutt",cool:"Lahe",desc:"Emotsioonid",title:"Sisesta emotsioon",yell:"Karje",wink:"Silmapilgutus",undecided:"K\u00f5hklev","tongue_out":"Keel v\u00e4ljas",surprised:"\u00dcllatunud",smile:"Naeratus",sealed:"Suletud","money_mouth":"Rahasuu",laughing:"Naermine",kiss:"Suudlus",innocent:"S\u00fc\u00fctu",frown:"Kulmu kortsutamine","foot_in_mouth":"Jalg suus",embarassed:"H\u00e4bitunne",usage:"Kasuta navigeerimiseks vasak ja parem nooli."});
|
@@ -0,0 +1 @@
|
|
1
|
+
tinyMCE.addI18n('fr.emotions_dlg',{cry:"En pleurs",cool:"Cool",desc:"\u00c9motic\u00f4nes",title:"Ins\u00e9rer une \u00e9motic\u00f4ne",yell:"Criant",wink:"Clin d\'\u0153il",undecided:"Incertain","tongue_out":"Langue tir\u00e9e",surprised:"Surpris",smile:"Sourire",sealed:"Bouche cousue","money_mouth":"Avare",laughing:"Rigolant",kiss:"Bisou",innocent:"Innocent",frown:"D\u00e9\u00e7u","foot_in_mouth":"Pied de nez",embarassed:"Embarrass\u00e9",usage:"Utilisez les fl\u00e8ches gauche et droite pour naviguer."});
|
@@ -0,0 +1 @@
|
|
1
|
+
tinyMCE.addI18n('it.emotions_dlg',{cry:"Piango",cool:"Fico",desc:"Faccina",title:"Inserisci faccina",yell:"Arrabbiato",wink:"Occhiolino",undecided:"Indeciso","tongue_out":"Linguaccia",surprised:"Sorpreso",smile:"Sorridente",sealed:"Bocca sigillata","money_mouth":"Bocca danarosa",laughing:"Risatona",kiss:"Bacio",innocent:"Santarellino",frown:"Triste","foot_in_mouth":"Piede in bocca",embarassed:"Imbarazzato",usage:"Utilizza le freccie sinistra e destra per navigare."});
|
@@ -0,0 +1 @@
|
|
1
|
+
tinyMCE.addI18n('nb.emotions_dlg',{cry:"Gr\u00e5ter",cool:"Kul",desc:"Hum\u00f8rfjes",title:"Sett inn hum\u00f8rfjes",yell:"Rope",wink:"Blunke",undecided:"Skeptisk","tongue_out":"Rekke tunge",surprised:"Overrasket",smile:"Smile",sealed:"Hemmelig","money_mouth":"Penger i munnen",laughing:"Ler",kiss:"Kyss",innocent:"Uskyldig",frown:"Skuffet","foot_in_mouth":"Fot i munnen",embarassed:"Flau",usage:"Bruk venstre og h\u00f8yre piltast for \u00e5 navigere."});
|
@@ -0,0 +1 @@
|
|
1
|
+
tinyMCE.addI18n('nl.emotions_dlg',{cry:"Huilen",cool:"Stoer",desc:"Emoties",title:"Emotie invoegen",yell:"Roepen",wink:"Knipogen",undecided:"Onbeslist","tongue_out":"Tong uitsteken",surprised:"Verrast",smile:"Lachen",sealed:"Afgesloten","money_mouth":"Hebberig",laughing:"Lachen",kiss:"Zoenen",innocent:"Onschuldig",frown:"Wenkbrauw ophalen","foot_in_mouth":"Verstomd",embarassed:"Schamen",usage:"Gebruik linker en rechter pijltjestoetsen om te navigeren."});
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
tinyMCE.addI18n('pt.emotions_dlg',{cry:"Chor\u00e3o",cool:"Fixe",desc:"Emoticons",title:"Inserir emoticon",yell:"Irado",wink:"Piscadela",undecided:"Indeciso","tongue_out":"L\u00edngua de fora",surprised:"Surpresa",smile:"Sorriso",sealed:"Boca Fechada","money_mouth":"Avarez",laughing:"Riso",kiss:"Beijo",innocent:"Inocente",frown:"Decep\u00e7\u00e3o","foot_in_mouth":"Disse asneira",embarassed:"Embara\u00e7ado",usage:"Use as setas esquerda e direita para navegar."});
|
@@ -0,0 +1 @@
|
|
1
|
+
tinyMCE.addI18n('ru.emotions_dlg',{cry:"\u041f\u043b\u0430\u0447\u0443",cool:"\u041a\u0440\u0443\u0442\u043e\u0439",desc:"\u0421\u043c\u0430\u0439\u043b\u044b",title:"\u0412\u044b\u0431\u043e\u0440 \u0441\u043c\u0430\u0439\u043b\u0430",yell:"\u041a\u0440\u0438\u0447\u0443",wink:"\u041f\u043e\u0434\u043c\u0438\u0433\u0438\u0432\u0430\u044e",undecided:"\u0412 \u043d\u0435\u0440\u0435\u0448\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438","tongue_out":"\u0414\u0440\u0430\u0437\u043d\u044e\u0441\u044c",surprised:"\u0423\u0434\u0438\u0432\u043b\u044f\u044e\u0441\u044c",smile:"\u0423\u043b\u044b\u0431\u0430\u044e\u0441\u044c",sealed:"\u041d\u0435\u043c \u043a\u0430\u043a \u0440\u044b\u0431\u0430","money_mouth":"\u0414\u0435\u043d\u044c\u0433\u0438",laughing:"\u0421\u043c\u0435\u044e\u0441\u044c",kiss:"\u041f\u043e\u0446\u0435\u043b\u0443\u0439",innocent:"\u0410\u043d\u0433\u0435\u043b",frown:"\u0425\u043c\u0443\u0440\u044e\u0441\u044c","foot_in_mouth":"\u0412 \u0440\u043e\u0442 \u043c\u043d\u0435 \u043d\u043e\u0433\u0438",embarassed:"\u041a\u0440\u0430\u0441\u043d\u0435\u044e",usage:"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 \"\u0412\u043b\u0435\u0432\u043e\" \u0438 \"\u0412\u043f\u0440\u0430\u0432\u043e\" \u0434\u043b\u044f \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438."});
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
tinyMCE.addI18n('nb.fullpage_dlg',{title:"Dokumentegenskaper","meta_tab":"Generelt","appearance_tab":"Utseende","advanced_tab":"Avansert","meta_props":"Metainformasjon",langprops:"Spr\u00e5k og koding","meta_title":"Tittel","meta_keywords":"N\u00f8kkelord","meta_description":"Beskrivelse","meta_robots":"Roboter",doctypes:"Doctype",langcode:"Spr\u00e5kkode",langdir:"Skriftretning",ltr:"Venstre mot h\u00f8yre",rtl:"H\u00f8yre mot venstre","xml_pi":"XML-deklarasjon",encoding:"Tegnkonvertering","appearance_bgprops":"Bakgrunnsegenskaper","appearance_marginprops":"Body-marg","appearance_linkprops":"Lenkefarger","appearance_textprops":"Tekstegenskaper",bgcolor:"Bakgrunn",bgimage:"Bakgrunnsbilde","left_margin":"Venstre marg","right_margin":"H\u00f8yre marg","top_margin":"Toppmarg","bottom_margin":"Bunnmarg","text_color":"Farge","font_size":"Skriftst\u00f8rrelse","font_face":"Skrifttype","link_color":"Lenkefarge","hover_color":"Mus over-farge","visited_color":"Bes\u00f8kt-farge","active_color":"Aktive farge",textcolor:"Farge",fontsize:"Skriftst\u00f8rrelse",fontface:"Skrifttype","meta_index_follow":"Indekser, og f\u00f8lg lenkene","meta_index_nofollow":"Indekser, men ikke f\u00f8lg lenkene","meta_noindex_follow":"Ikke indekser, men f\u00f8lg lenkene","meta_noindex_nofollow":"Ikke indekser, og ikke f\u00f8lg lenkene","appearance_style":"Stilark og stilegenskaper",stylesheet:"Stilark",style:"Stil",author:"Forfatter",copyright:"Copyright",add:"Legg til nytt element",remove:"Fjern",moveup:"Flytt markert element opp",movedown:"Flytt markert element ned","head_elements":"Overskriftselementer",info:"Informasjon","add_title":"Tittelelement","add_meta":"Metaelement","add_script":"Skriptelement","add_style":"Stilelement","add_link":"Lenkeelement","add_base":"Basiselement","add_comment":"Kommentarnode","title_element":"Tittelelement","script_element":"Skriptelement","style_element":"Stilelement","base_element":"Basiselement","link_element":"Lenkeelement","meta_element":"Metaelement","comment_element":"Kommentar",src:"Skjerm",language:"Spr\u00e5k",href:"Href",target:"M\u00e5l",type:"Type",charset:"Tegnsett",defer:"Defer",media:"Objekt",properties:"Egenskaper",name:"Navn",value:"Verdi",content:"Innhold",rel:"Sidens forhold til m\u00e5let",rev:"M\u00e5lets forhold til siden",hreflang:"Href lang","general_props":"Generelt","advanced_props":"Avasert"});
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1 +1 @@
|
|
1
|
-
(function(){var a=tinymce.DOM;tinymce.create("tinymce.plugins.FullScreenPlugin",{init:function(d,e){var f=this,g={},c,b;f.editor=d;d.addCommand("mceFullScreen",function(){var i,j=a.doc.documentElement;if(d.getParam("fullscreen_is_enabled")){if(d.getParam("fullscreen_new_window")){closeFullscreen()}else{a.win.setTimeout(function(){tinymce.dom.Event.remove(a.win,"resize",f.resizeFunc);tinyMCE.get(d.getParam("fullscreen_editor_id")).setContent(d.getContent());tinyMCE.remove(d);a.remove("mce_fullscreen_container");j.style.overflow=d.getParam("fullscreen_html_overflow");a.setStyle(a.doc.body,"overflow",d.getParam("fullscreen_overflow"));a.win.scrollTo(d.getParam("fullscreen_scrollx"),d.getParam("fullscreen_scrolly"));tinyMCE.settings=tinyMCE.oldSettings},10)}return}if(d.getParam("fullscreen_new_window")){i=a.win.open(e+"/fullscreen.htm","mceFullScreenPopup","fullscreen=yes,menubar=no,toolbar=no,scrollbars=no,resizable=yes,left=0,top=0,width="+screen.availWidth+",height="+screen.availHeight);try{i.resizeTo(screen.availWidth,screen.availHeight)}catch(h){}}else{tinyMCE.oldSettings=tinyMCE.settings;g.fullscreen_overflow=a.getStyle(a.doc.body,"overflow",1)||"auto";g.fullscreen_html_overflow=a.getStyle(j,"overflow",1);c=a.getViewPort();g.fullscreen_scrollx=c.x;g.fullscreen_scrolly=c.y;if(tinymce.isOpera&&g.fullscreen_overflow=="visible"){g.fullscreen_overflow="auto"}if(tinymce.isIE&&g.fullscreen_overflow=="scroll"){g.fullscreen_overflow="auto"}if(tinymce.isIE&&(g.fullscreen_html_overflow=="visible"||g.fullscreen_html_overflow=="scroll")){g.fullscreen_html_overflow="auto"}if(g.fullscreen_overflow=="0px"){g.fullscreen_overflow=""}a.setStyle(a.doc.body,"overflow","hidden");j.style.overflow="hidden";c=a.getViewPort();a.win.scrollTo(0,0);if(tinymce.isIE){c.h-=1}if(tinymce.isIE6){b="absolute;top:"+c.y}else{b="fixed;top:0"}n=a.add(a.doc.body,"div",{id:"mce_fullscreen_container",style:"position:"+b+";left:0;width:"+c.w+"px;height:"+c.h+"px;z-index:200000;"});a.add(n,"div",{id:"mce_fullscreen"});tinymce.each(d.settings,function(k,l){g[l]=k});g.id="mce_fullscreen";g.width=n.clientWidth;g.height=n.clientHeight-15;g.fullscreen_is_enabled=true;g.fullscreen_editor_id=d.id;g.theme_advanced_resizing=false;g.save_onsavecallback=function(){d.setContent(tinyMCE.get(g.id).getContent());d.execCommand("mceSave")};tinymce.each(d.getParam("fullscreen_settings"),function(m,l){g[l]=m});if(g.theme_advanced_toolbar_location==="external"){g.theme_advanced_toolbar_location="top"}f.fullscreenEditor=new tinymce.Editor("mce_fullscreen",g);f.fullscreenEditor.onInit.add(function(){f.fullscreenEditor.setContent(d.getContent());f.fullscreenEditor.focus()});f.fullscreenEditor.render();f.fullscreenElement=new tinymce.dom.Element("mce_fullscreen_container");f.fullscreenElement.update();f.resizeFunc=tinymce.dom.Event.add(a.win,"resize",function(){var o=tinymce.DOM.getViewPort(),l=f.fullscreenEditor,k,m;k=l.dom.getSize(l.getContainer().
|
1
|
+
(function(){var a=tinymce.DOM;tinymce.create("tinymce.plugins.FullScreenPlugin",{init:function(d,e){var f=this,g={},c,b;f.editor=d;d.addCommand("mceFullScreen",function(){var i,j=a.doc.documentElement;if(d.getParam("fullscreen_is_enabled")){if(d.getParam("fullscreen_new_window")){closeFullscreen()}else{a.win.setTimeout(function(){tinymce.dom.Event.remove(a.win,"resize",f.resizeFunc);tinyMCE.get(d.getParam("fullscreen_editor_id")).setContent(d.getContent());tinyMCE.remove(d);a.remove("mce_fullscreen_container");j.style.overflow=d.getParam("fullscreen_html_overflow");a.setStyle(a.doc.body,"overflow",d.getParam("fullscreen_overflow"));a.win.scrollTo(d.getParam("fullscreen_scrollx"),d.getParam("fullscreen_scrolly"));tinyMCE.settings=tinyMCE.oldSettings},10)}return}if(d.getParam("fullscreen_new_window")){i=a.win.open(e+"/fullscreen.htm","mceFullScreenPopup","fullscreen=yes,menubar=no,toolbar=no,scrollbars=no,resizable=yes,left=0,top=0,width="+screen.availWidth+",height="+screen.availHeight);try{i.resizeTo(screen.availWidth,screen.availHeight)}catch(h){}}else{tinyMCE.oldSettings=tinyMCE.settings;g.fullscreen_overflow=a.getStyle(a.doc.body,"overflow",1)||"auto";g.fullscreen_html_overflow=a.getStyle(j,"overflow",1);c=a.getViewPort();g.fullscreen_scrollx=c.x;g.fullscreen_scrolly=c.y;if(tinymce.isOpera&&g.fullscreen_overflow=="visible"){g.fullscreen_overflow="auto"}if(tinymce.isIE&&g.fullscreen_overflow=="scroll"){g.fullscreen_overflow="auto"}if(tinymce.isIE&&(g.fullscreen_html_overflow=="visible"||g.fullscreen_html_overflow=="scroll")){g.fullscreen_html_overflow="auto"}if(g.fullscreen_overflow=="0px"){g.fullscreen_overflow=""}a.setStyle(a.doc.body,"overflow","hidden");j.style.overflow="hidden";c=a.getViewPort();a.win.scrollTo(0,0);if(tinymce.isIE){c.h-=1}if(tinymce.isIE6||document.compatMode=="BackCompat"){b="absolute;top:"+c.y}else{b="fixed;top:0"}n=a.add(a.doc.body,"div",{id:"mce_fullscreen_container",style:"position:"+b+";left:0;width:"+c.w+"px;height:"+c.h+"px;z-index:200000;"});a.add(n,"div",{id:"mce_fullscreen"});tinymce.each(d.settings,function(k,l){g[l]=k});g.id="mce_fullscreen";g.width=n.clientWidth;g.height=n.clientHeight-15;g.fullscreen_is_enabled=true;g.fullscreen_editor_id=d.id;g.theme_advanced_resizing=false;g.save_onsavecallback=function(){d.setContent(tinyMCE.get(g.id).getContent());d.execCommand("mceSave")};tinymce.each(d.getParam("fullscreen_settings"),function(m,l){g[l]=m});if(g.theme_advanced_toolbar_location==="external"){g.theme_advanced_toolbar_location="top"}f.fullscreenEditor=new tinymce.Editor("mce_fullscreen",g);f.fullscreenEditor.onInit.add(function(){f.fullscreenEditor.setContent(d.getContent());f.fullscreenEditor.focus()});f.fullscreenEditor.render();f.fullscreenElement=new tinymce.dom.Element("mce_fullscreen_container");f.fullscreenElement.update();f.resizeFunc=tinymce.dom.Event.add(a.win,"resize",function(){var o=tinymce.DOM.getViewPort(),l=f.fullscreenEditor,k,m;k=l.dom.getSize(l.getContainer().getElementsByTagName("table")[0]);m=l.dom.getSize(l.getContainer().getElementsByTagName("iframe")[0]);l.theme.resizeTo(o.w-k.w+m.w,o.h-k.h+m.h)})}});d.addButton("fullscreen",{title:"fullscreen.desc",cmd:"mceFullScreen"});d.onNodeChange.add(function(i,h){h.setActive("fullscreen",i.getParam("fullscreen_is_enabled"))})},getInfo:function(){return{longname:"Fullscreen",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullscreen",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("fullscreen",tinymce.plugins.FullScreenPlugin)})();
|
@@ -65,7 +65,7 @@
|
|
65
65
|
|
66
66
|
// Fixes an IE bug where the scrollbars doesn't reappear
|
67
67
|
if (tinymce.isIE && (s.fullscreen_html_overflow == 'visible' || s.fullscreen_html_overflow == 'scroll'))
|
68
|
-
s.fullscreen_html_overflow = 'auto';
|
68
|
+
s.fullscreen_html_overflow = 'auto';
|
69
69
|
|
70
70
|
if (s.fullscreen_overflow == '0px')
|
71
71
|
s.fullscreen_overflow = '';
|
@@ -79,13 +79,13 @@
|
|
79
79
|
vp.h -= 1;
|
80
80
|
|
81
81
|
// Use fixed position if it exists
|
82
|
-
if (tinymce.isIE6)
|
82
|
+
if (tinymce.isIE6 || document.compatMode == 'BackCompat')
|
83
83
|
posCss = 'absolute;top:' + vp.y;
|
84
84
|
else
|
85
85
|
posCss = 'fixed;top:0';
|
86
86
|
|
87
87
|
n = DOM.add(DOM.doc.body, 'div', {
|
88
|
-
id : 'mce_fullscreen_container',
|
88
|
+
id : 'mce_fullscreen_container',
|
89
89
|
style : 'position:' + posCss + ';left:0;width:' + vp.w + 'px;height:' + vp.h + 'px;z-index:200000;'});
|
90
90
|
DOM.add(n, 'div', {id : 'mce_fullscreen'});
|
91
91
|
|
@@ -127,7 +127,7 @@
|
|
127
127
|
var vp = tinymce.DOM.getViewPort(), fed = t.fullscreenEditor, outerSize, innerSize;
|
128
128
|
|
129
129
|
// Get outer/inner size to get a delta size that can be used to calc the new iframe size
|
130
|
-
outerSize = fed.dom.getSize(fed.getContainer().
|
130
|
+
outerSize = fed.dom.getSize(fed.getContainer().getElementsByTagName('table')[0]);
|
131
131
|
innerSize = fed.dom.getSize(fed.getContainer().getElementsByTagName('iframe')[0]);
|
132
132
|
|
133
133
|
fed.theme.resizeTo(vp.w - outerSize.w + innerSize.w, vp.h - outerSize.h + innerSize.h);
|
@@ -156,4 +156,4 @@
|
|
156
156
|
|
157
157
|
// Register plugin
|
158
158
|
tinymce.PluginManager.add('fullscreen', tinymce.plugins.FullScreenPlugin);
|
159
|
-
})();
|
159
|
+
})();
|
@@ -1 +1 @@
|
|
1
|
-
(function(a){a.onAddEditor.addToTop(function(c,b){b.settings.inline_styles=false});a.create("tinymce.plugins.LegacyOutput",{init:function(b){b.onInit.add(function(){var c="p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",e=a.explode(b.settings.font_size_style_values),d=b.schema;b.formatter.register({alignleft:{selector:c,attributes:{align:"left"}},aligncenter:{selector:c,attributes:{align:"center"}},alignright:{selector:c,attributes:{align:"right"}},alignfull:{selector:c,attributes:{align:"justify"}},bold:[{inline:"b",remove:"all"},{inline:"strong",remove:"all"},{inline:"span",styles:{fontWeight:"bold"}}],italic:[{inline:"i",remove:"all"},{inline:"em",remove:"all"},{inline:"span",styles:{fontStyle:"italic"}}],underline:[{inline:"u",remove:"all"},{inline:"span",styles:{textDecoration:"underline"},exact:true}],strikethrough:[{inline:"strike",remove:"all"},{inline:"span",styles:{textDecoration:"line-through"},exact:true}],fontname:{inline:"font",attributes:{face:"%value"}},fontsize:{inline:"font",attributes:{size:function(f){return a.inArray(e,f.value)+1}}},forecolor:{inline:"font",
|
1
|
+
(function(a){a.onAddEditor.addToTop(function(c,b){b.settings.inline_styles=false});a.create("tinymce.plugins.LegacyOutput",{init:function(b){b.onInit.add(function(){var c="p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",e=a.explode(b.settings.font_size_style_values),d=b.schema;b.formatter.register({alignleft:{selector:c,attributes:{align:"left"}},aligncenter:{selector:c,attributes:{align:"center"}},alignright:{selector:c,attributes:{align:"right"}},alignfull:{selector:c,attributes:{align:"justify"}},bold:[{inline:"b",remove:"all"},{inline:"strong",remove:"all"},{inline:"span",styles:{fontWeight:"bold"}}],italic:[{inline:"i",remove:"all"},{inline:"em",remove:"all"},{inline:"span",styles:{fontStyle:"italic"}}],underline:[{inline:"u",remove:"all"},{inline:"span",styles:{textDecoration:"underline"},exact:true}],strikethrough:[{inline:"strike",remove:"all"},{inline:"span",styles:{textDecoration:"line-through"},exact:true}],fontname:{inline:"font",attributes:{face:"%value"}},fontsize:{inline:"font",attributes:{size:function(f){return a.inArray(e,f.value)+1}}},forecolor:{inline:"font",attributes:{color:"%value"}},hilitecolor:{inline:"font",styles:{backgroundColor:"%value"}}});a.each("b,i,u,strike".split(","),function(f){d.addValidElements(f+"[*]")});if(!d.getElementRule("font")){d.addValidElements("font[face|size|color|style]")}a.each(c.split(","),function(f){var h=d.getElementRule(f),g;if(h){if(!h.attributes.align){h.attributes.align={};h.attributesOrder.push("align")}}});b.onNodeChange.add(function(g,k){var j,f,h,i;f=g.dom.getParent(g.selection.getNode(),"font");if(f){h=f.face;i=f.size}if(j=k.get("fontselect")){j.select(function(l){return l==h})}if(j=k.get("fontsizeselect")){j.select(function(m){var l=a.inArray(e,m.fontSize);return l+1==i})}})})},getInfo:function(){return{longname:"LegacyOutput",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/legacyoutput",version:a.majorVersion+"."+a.minorVersion}}});a.PluginManager.add("legacyoutput",a.plugins.LegacyOutput)})(tinymce);
|
@@ -68,7 +68,7 @@
|
|
68
68
|
},
|
69
69
|
|
70
70
|
// Setup font elements for colors as well
|
71
|
-
forecolor : {inline : 'font',
|
71
|
+
forecolor : {inline : 'font', attributes : {color : '%value'}},
|
72
72
|
hilitecolor : {inline : 'font', styles : {backgroundColor : '%value'}}
|
73
73
|
});
|
74
74
|
|
@@ -1 +1 @@
|
|
1
|
-
(function(){var e=tinymce.each,r=tinymce.dom.Event,g;function p(t,s){while(t&&(t.nodeType===8||(t.nodeType===3&&/^[ \t\n\r]*$/.test(t.nodeValue)))){t=s(t)}return t}function b(s){return p(s,function(t){return t.previousSibling})}function i(s){return p(s,function(t){return t.nextSibling})}function d(s,u,t){return s.dom.getParent(u,function(v){return tinymce.inArray(t,v)!==-1})}function n(s){return s&&(s.tagName==="OL"||s.tagName==="UL")}function c(u,v){var t,w,s;t=b(u.lastChild);while(n(t)){w=t;t=b(w.previousSibling)}if(w){s=v.create("li",{style:"list-style-type: none;"});v.split(u,w);v.insertAfter(s,w);s.appendChild(w);s.appendChild(w);u=s.previousSibling}return u}function m(t,s,u){t=a(t,s,u);return o(t,s,u)}function a(u,s,v){var t=b(u.previousSibling);if(t){return h(t,u,s?t:false,v)}else{return u}}function o(u,t,v){var s=i(u.nextSibling);if(s){return h(u,s,t?s:false,v)}else{return u}}function h(u,s,t,v){if(l(u,s,!!t,v)){return f(u,s,t)}else{if(u&&u.tagName==="LI"&&n(s)){u.appendChild(s)}}return s}function l(u,t,s,v){if(!u||!t){return false}else{if(u.tagName==="LI"&&t.tagName==="LI"){return t.style.listStyleType==="none"||j(t)}else{if(n(u)){return(u.tagName===t.tagName&&(s||u.style.listStyleType===t.style.listStyleType))||q(t)}else{return v&&u.tagName==="P"&&t.tagName==="P"}}}}function q(t){var s=i(t.firstChild),u=b(t.lastChild);return s&&u&&n(t)&&s===u&&(n(s)||s.style.listStyleType==="none"||j(s))}function j(u){var t=i(u.firstChild),s=b(u.lastChild);return t&&s&&t===s&&n(t)}function f(w,v,s){var u=b(w.lastChild),t=i(v.firstChild);if(w.tagName==="P"){w.appendChild(w.ownerDocument.createElement("br"))}while(v.firstChild){w.appendChild(v.firstChild)}if(s){w.style.listStyleType=s.style.listStyleType}v.parentNode.removeChild(v);h(u,t,false);return w}function k(t,u){var s;if(!u.is(t,"li,ol,ul")){s=u.getParent(t,"li");if(s){t=s}}return t}tinymce.create("tinymce.plugins.Lists",{init:function(y){var v="TABBING";var s="EMPTY";var I="ESCAPE";var z="PARAGRAPH";var M="UNKNOWN";var x=M;function E(T){return T.keyCode===tinymce.VK.TAB&&!(T.altKey||T.ctrlKey)&&(y.queryCommandState("InsertUnorderedList")||y.queryCommandState("InsertOrderedList"))}function D(){var T=y.selection.getRng();var U=T.startContainer;if(U.nodeType==3){return(T.endOffset==U.nodeValue.length)}else{if(U.nodeType==1){return T.endOffset==U.childNodes.length}}return false}function N(){var U=y.selection.getNode();var T=U.tagName==="P"&&U.parentNode.tagName==="LI"&&U.parentNode.lastChild===U;return y.selection.isCollapsed()&&T&&D()}function w(){var T=B();var V=T.parentNode.parentNode;var U=T.parentNode.lastChild===T;return U&&!t(V)&&O(T)}function t(T){if(n(T)){return T.parentNode&&T.parentNode.tagName==="LI"}else{return T.tagName==="LI"}}function F(){return y.selection.isCollapsed()&&O(B())}function B(){var T=y.selection.getStart();return((T.tagName=="BR"||T.tagName=="")&&T.parentNode.tagName=="LI")?T.parentNode:T}function O(T){var U=T.childNodes.length;if(T.tagName==="LI"){return U==0?true:U==1&&(T.firstChild.tagName==""||T.firstChild.tagName=="BR"||H(T))}return false}function H(T){var U=tinymce.grep(T.parentNode.childNodes,function(X){return X.tagName=="LI"});var V=T==U[U.length-1];var W=T.firstChild;return tinymce.isIE9&&V&&(W.nodeValue==String.fromCharCode(160)||W.nodeValue==String.fromCharCode(32))}function S(T){return T.keyCode===tinymce.VK.ENTER}function A(T){return S(T)&&!T.shiftKey}function L(T){if(E(T)){return v}else{if(A(T)&&w()){return I}else{if(A(T)&&F()){return s}else{if(A(T)&&N()){return z}else{return M}}}}}function C(T,U){if(x==v||x==s||tinymce.isGecko&&x==I){r.cancel(U)}}function J(V,X){if(x==z){var W=V.selection.getNode();var U=V.dom.create("li");var T=V.dom.getParent(W,"li");V.dom.insertAfter(U,T);if(tinyMCE.isIE8){U.appendChild(V.dom.create(" "));V.selection.setCursorLocation(U,1)}else{if(tinyMCE.isGecko){setTimeout(function(){var Y=V.getDoc().createTextNode("\uFEFF");U.appendChild(Y);V.selection.setCursorLocation(U,0)},0)}else{V.selection.setCursorLocation(U,0)}}r.cancel(X)}}function u(W,Y){var ab;if(!tinymce.isGecko){return}var U=W.selection.getStart();if(Y.keyCode!=tinymce.VK.BACKSPACE||U.tagName!=="IMG"){return}function V(af){var ag=af.firstChild;var ae=null;do{if(!ag){break}if(ag.tagName==="LI"){ae=ag}}while(ag=ag.nextSibling);return ae}function ad(af,ae){while(af.childNodes.length>0){ae.appendChild(af.childNodes[0])}}ab=U.parentNode.previousSibling;if(!ab){return}var Z;if(ab.tagName==="UL"||ab.tagName==="OL"){Z=ab}else{if(ab.previousSibling&&(ab.previousSibling.tagName==="UL"||ab.previousSibling.tagName==="OL")){Z=ab.previousSibling}else{return}}var ac=V(Z);var T=W.dom.createRng();T.setStart(ac,1);T.setEnd(ac,1);W.selection.setRng(T);W.selection.collapse(true);var X=W.selection.getBookmark();var aa=U.parentNode.cloneNode(true);if(aa.tagName==="P"||aa.tagName==="DIV"){ad(aa,ac)}else{ac.appendChild(aa)}U.parentNode.parentNode.removeChild(U.parentNode);W.selection.moveToBookmark(X)}function G(T){var U=y.dom.getParent(T,"ol,ul");if(U!=null){var V=U.lastChild;V.appendChild(y.getDoc().createElement(""));y.selection.setCursorLocation(V,0)}}this.ed=y;y.addCommand("Indent",this.indent,this);y.addCommand("Outdent",this.outdent,this);y.addCommand("InsertUnorderedList",function(){this.applyList("UL","OL")},this);y.addCommand("InsertOrderedList",function(){this.applyList("OL","UL")},this);y.onInit.add(function(){y.editorCommands.addCommands({outdent:function(){var U=y.selection,V=y.dom;function T(W){W=V.getParent(W,V.isBlock);return W&&(parseInt(y.dom.getStyle(W,"margin-left")||0,10)+parseInt(y.dom.getStyle(W,"padding-left")||0,10))>0}return T(U.getStart())||T(U.getEnd())||y.queryCommandState("InsertOrderedList")||y.queryCommandState("InsertUnorderedList")}},"state")});y.onKeyUp.add(function(U,V){if(x==v){U.execCommand(V.shiftKey?"Outdent":"Indent",true,null);x=M;return r.cancel(V)}else{if(x==s){var T=B();var X=U.settings.list_outdent_on_enter===true||V.shiftKey;U.execCommand(X?"Outdent":"Indent",true,null);if(tinymce.isIE){G(T)}return r.cancel(V)}else{if(x==I){if(tinymce.isIE8){var W=U.getDoc().createTextNode("\uFEFF");U.selection.getNode().appendChild(W)}else{if(tinymce.isIE9||tinymce.isGecko){U.execCommand("Outdent");return r.cancel(V)}}}}}});function K(U,T){var V=y.getDoc().createTextNode("\uFEFF");U.insertBefore(V,T);y.selection.setCursorLocation(V,0);y.execCommand("mceRepaint")}function Q(U,W){if(S(W)){var T=B();if(T){var V=T.parentNode;var X=V&&V.parentNode;if(X&&X.nodeName=="LI"&&X.firstChild==V&&T==V.firstChild){K(X,V)}}}}function R(U,W){if(S(W)){var T=B();if(U.dom.select("ul li",T).length===1){var V=T.firstChild;K(T,V)}}}function P(U,Y){function V(ac,Z){var ab=[];var ad=new tinymce.dom.TreeWalker(Z,ac);for(var aa=ad.current();aa;aa=ad.next()){if(U.dom.is(aa,"ol,ul,li")){ab.push(aa)}}return ab}if(Y.keyCode==tinymce.VK.BACKSPACE){var T=B();if(T){var X=U.dom.getParent(T,"ol,ul");if(X&&X.firstChild===T){var W=V(X,T);U.execCommand("Outdent",false,W);U.undoManager.add();return r.cancel(Y)}}}}y.onKeyDown.add(function(T,U){x=L(U)});y.onKeyDown.add(C);y.onKeyDown.add(u);y.onKeyDown.add(J);if(tinymce.isGecko){y.onKeyUp.add(Q)}if(tinymce.isIE8){y.onKeyUp.add(R)}if(tinymce.isGecko||tinymce.isWebKit){y.onKeyDown.add(P)}},applyList:function(y,v){var C=this,z=C.ed,I=z.dom,s=[],H=false,u=false,w=false,B,G=z.selection.getSelectedBlocks();function E(t){if(t&&t.tagName==="BR"){I.remove(t)}}function F(M){var N=I.create(y),t;function L(O){if(O.style.marginLeft||O.style.paddingLeft){C.adjustPaddingFunction(false)(O)}}if(M.tagName==="LI"){}else{if(M.tagName==="P"||M.tagName==="DIV"||M.tagName==="BODY"){K(M,function(P,O){J(P,O,M.tagName==="BODY"?null:P.parentNode);t=P.parentNode;L(t);E(O)});if(t){if(t.tagName==="LI"&&(M.tagName==="P"||G.length>1)){I.split(t.parentNode.parentNode,t.parentNode)}m(t.parentNode,true)}return}else{t=I.create("li");I.insertAfter(t,M);t.appendChild(M);L(M);M=t}}I.insertAfter(N,M);N.appendChild(M);m(N,true);s.push(M)}function J(P,L,N){var t,O=P,M;while(!I.isBlock(P.parentNode)&&P.parentNode!==I.getRoot()){P=I.split(P.parentNode,P.previousSibling);P=P.nextSibling;O=P}if(N){t=N.cloneNode(true);P.parentNode.insertBefore(t,P);while(t.firstChild){I.remove(t.firstChild)}t=I.rename(t,"li")}else{t=I.create("li");P.parentNode.insertBefore(t,P)}while(O&&O!=L){M=O.nextSibling;t.appendChild(O);O=M}if(t.childNodes.length===0){t.innerHTML='<br _mce_bogus="1" />'}F(t)}function K(Q,T){var N,R,O=3,L=1,t="br,ul,ol,p,div,h1,h2,h3,h4,h5,h6,table,blockquote,address,pre,form,center,dl";function P(X,U){var V=I.createRng(),W;g.keep=true;z.selection.moveToBookmark(g);g.keep=false;W=z.selection.getRng(true);if(!U){U=X.parentNode.lastChild}V.setStartBefore(X);V.setEndAfter(U);return !(V.compareBoundaryPoints(O,W)>0||V.compareBoundaryPoints(L,W)<=0)}function S(U){if(U.nextSibling){return U.nextSibling}if(!I.isBlock(U.parentNode)&&U.parentNode!==I.getRoot()){return S(U.parentNode)}}N=Q.firstChild;var M=false;e(I.select(t,Q),function(U){if(U.hasAttribute&&U.hasAttribute("_mce_bogus")){return true}if(P(N,U)){I.addClass(U,"_mce_tagged_br");N=S(U)}});M=(N&&P(N,undefined));N=Q.firstChild;e(I.select(t,Q),function(V){var U=S(V);if(V.hasAttribute&&V.hasAttribute("_mce_bogus")){return true}if(I.hasClass(V,"_mce_tagged_br")){T(N,V,R);R=null}else{R=V}N=U});if(M){T(N,undefined,R)}}function D(t){K(t,function(M,L,N){J(M,L);E(L);E(N)})}function A(t){if(tinymce.inArray(s,t)!==-1){return}if(t.parentNode.tagName===v){I.split(t.parentNode,t);F(t);o(t.parentNode,false)}s.push(t)}function x(M){var O,N,L,t;if(tinymce.inArray(s,M)!==-1){return}M=c(M,I);while(I.is(M.parentNode,"ol,ul,li")){I.split(M.parentNode,M)}s.push(M);M=I.rename(M,"p");L=m(M,false,z.settings.force_br_newlines);if(L===M){O=M.firstChild;while(O){if(I.isBlock(O)){O=I.split(O.parentNode,O);t=true;N=O.nextSibling&&O.nextSibling.firstChild}else{N=O.nextSibling;if(t&&O.tagName==="BR"){I.remove(O)}t=false}O=N}}}e(G,function(t){t=k(t,I);if(t.tagName===v||(t.tagName==="LI"&&t.parentNode.tagName===v)){u=true}else{if(t.tagName===y||(t.tagName==="LI"&&t.parentNode.tagName===y)){H=true}else{w=true}}});if(w&&!H||u||G.length===0){B={LI:A,H1:F,H2:F,H3:F,H4:F,H5:F,H6:F,P:F,BODY:F,DIV:G.length>1?F:D,defaultAction:D,elements:this.selectedBlocks()}}else{B={defaultAction:x,elements:this.selectedBlocks()}}this.process(B)},indent:function(){var u=this.ed,w=u.dom,x=[];function s(z){var y=w.create("li",{style:"list-style-type: none;"});w.insertAfter(y,z);return y}function t(B){var y=s(B),D=w.getParent(B,"ol,ul"),C=D.tagName,E=w.getStyle(D,"list-style-type"),A={},z;if(E!==""){A.style="list-style-type: "+E+";"}z=w.create(C,A);y.appendChild(z);return z}function v(z){if(!d(u,z,x)){z=c(z,w);var y=t(z);y.appendChild(z);m(y.parentNode,false);m(y,false);x.push(z)}}this.process({LI:v,defaultAction:this.adjustPaddingFunction(true),elements:this.selectedBlocks()})},outdent:function(y,x){var w=this,u=w.ed,z=u.dom,s=[];function A(t){var C,B,D;if(!d(u,t,s)){if(z.getStyle(t,"margin-left")!==""||z.getStyle(t,"padding-left")!==""){return w.adjustPaddingFunction(false)(t)}D=z.getStyle(t,"text-align",true);if(D==="center"||D==="right"){z.setStyle(t,"text-align","left");return}t=c(t,z);C=t.parentNode;B=t.parentNode.parentNode;if(B.tagName==="P"){z.split(B,t.parentNode)}else{z.split(C,t);if(B.tagName==="LI"){z.split(B,t)}else{if(!z.is(B,"ol,ul")){z.rename(t,"p")}}}s.push(t)}}var v=x&&tinymce.is(x,"array")?x:this.selectedBlocks();this.process({LI:A,defaultAction:this.adjustPaddingFunction(false),elements:v});e(s,m)},process:function(y){var F=this,w=F.ed.selection,z=F.ed.dom,E,u;function B(t){var s=tinymce.grep(t.childNodes,function(H){return !(H.nodeName==="BR"||H.nodeName==="SPAN"&&z.getAttrib(H,"data-mce-type")=="bookmark"||H.nodeType==3&&(H.nodeValue==String.fromCharCode(160)||H.nodeValue==""))});return s.length===0}function x(s){z.removeClass(s,"_mce_act_on");if(!s||s.nodeType!==1||E.length>1&&B(s)){return}s=k(s,z);var t=y[s.tagName];if(!t){t=y.defaultAction}t(s)}function v(s){F.splitSafeEach(s.childNodes,x)}function C(s,t){return t>=0&&s.hasChildNodes()&&t<s.childNodes.length&&s.childNodes[t].tagName==="BR"}function D(){var t=w.getNode();var s=z.getParent(t,"td");return s!==null}E=y.elements;u=w.getRng(true);if(!u.collapsed){if(C(u.endContainer,u.endOffset-1)){u.setEnd(u.endContainer,u.endOffset-1);w.setRng(u)}if(C(u.startContainer,u.startOffset)){u.setStart(u.startContainer,u.startOffset+1);w.setRng(u)}}if(tinymce.isIE8){var G=F.ed.selection.getNode();if(G.tagName==="LI"&&!(G.parentNode.lastChild===G)){var A=F.ed.getDoc().createTextNode("\uFEFF");G.appendChild(A)}}g=w.getBookmark();y.OL=y.UL=v;F.splitSafeEach(E,x);w.moveToBookmark(g);g=null;if(!D()){F.ed.execCommand("mceRepaint")}},splitSafeEach:function(t,s){if(tinymce.isGecko&&(/Firefox\/[12]\.[0-9]/.test(navigator.userAgent)||/Firefox\/3\.[0-4]/.test(navigator.userAgent))){this.classBasedEach(t,s)}else{e(t,s)}},classBasedEach:function(v,u){var w=this.ed.dom,s,t;e(v,function(x){w.addClass(x,"_mce_act_on")});s=w.select("._mce_act_on");while(s.length>0){t=s.shift();w.removeClass(t,"_mce_act_on");u(t);s=w.select("._mce_act_on")}},adjustPaddingFunction:function(u){var s,v,t=this.ed;s=t.settings.indentation;v=/[a-z%]+/i.exec(s);s=parseInt(s,10);return function(w){var y,x;y=parseInt(t.dom.getStyle(w,"margin-left")||0,10)+parseInt(t.dom.getStyle(w,"padding-left")||0,10);if(u){x=y+s}else{x=y-s}t.dom.setStyle(w,"padding-left","");t.dom.setStyle(w,"margin-left",x>0?x+v:"")}},selectedBlocks:function(){var s=this.ed;var t=s.selection.getSelectedBlocks();return t.length==0?[s.dom.getRoot()]:t},getInfo:function(){return{longname:"Lists",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/lists",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("lists",tinymce.plugins.Lists)}());
|
1
|
+
(function(){var e=tinymce.each,r=tinymce.dom.Event,g;function p(t,s){while(t&&(t.nodeType===8||(t.nodeType===3&&/^[ \t\n\r]*$/.test(t.nodeValue)))){t=s(t)}return t}function b(s){return p(s,function(t){return t.previousSibling})}function i(s){return p(s,function(t){return t.nextSibling})}function d(s,u,t){return s.dom.getParent(u,function(v){return tinymce.inArray(t,v)!==-1})}function n(s){return s&&(s.tagName==="OL"||s.tagName==="UL")}function c(u,v){var t,w,s;t=b(u.lastChild);while(n(t)){w=t;t=b(w.previousSibling)}if(w){s=v.create("li",{style:"list-style-type: none;"});v.split(u,w);v.insertAfter(s,w);s.appendChild(w);s.appendChild(w);u=s.previousSibling}return u}function m(t,s,u){t=a(t,s,u);return o(t,s,u)}function a(u,s,v){var t=b(u.previousSibling);if(t){return h(t,u,s?t:false,v)}else{return u}}function o(u,t,v){var s=i(u.nextSibling);if(s){return h(u,s,t?s:false,v)}else{return u}}function h(u,s,t,v){if(l(u,s,!!t,v)){return f(u,s,t)}else{if(u&&u.tagName==="LI"&&n(s)){u.appendChild(s)}}return s}function l(u,t,s,v){if(!u||!t){return false}else{if(u.tagName==="LI"&&t.tagName==="LI"){return t.style.listStyleType==="none"||j(t)}else{if(n(u)){return(u.tagName===t.tagName&&(s||u.style.listStyleType===t.style.listStyleType))||q(t)}else{return v&&u.tagName==="P"&&t.tagName==="P"}}}}function q(t){var s=i(t.firstChild),u=b(t.lastChild);return s&&u&&n(t)&&s===u&&(n(s)||s.style.listStyleType==="none"||j(s))}function j(u){var t=i(u.firstChild),s=b(u.lastChild);return t&&s&&t===s&&n(t)}function f(w,v,s){var u=b(w.lastChild),t=i(v.firstChild);if(w.tagName==="P"){w.appendChild(w.ownerDocument.createElement("br"))}while(v.firstChild){w.appendChild(v.firstChild)}if(s){w.style.listStyleType=s.style.listStyleType}v.parentNode.removeChild(v);h(u,t,false);return w}function k(t,u){var s;if(!u.is(t,"li,ol,ul")){s=u.getParent(t,"li");if(s){t=s}}return t}tinymce.create("tinymce.plugins.Lists",{init:function(y){var v="TABBING";var s="EMPTY";var J="ESCAPE";var z="PARAGRAPH";var N="UNKNOWN";var x=N;function E(U){return U.keyCode===tinymce.VK.TAB&&!(U.altKey||U.ctrlKey)&&(y.queryCommandState("InsertUnorderedList")||y.queryCommandState("InsertOrderedList"))}function w(){var U=B();var W=U.parentNode.parentNode;var V=U.parentNode.lastChild===U;return V&&!t(W)&&P(U)}function t(U){if(n(U)){return U.parentNode&&U.parentNode.tagName==="LI"}else{return U.tagName==="LI"}}function F(){return y.selection.isCollapsed()&&P(B())}function B(){var U=y.selection.getStart();return((U.tagName=="BR"||U.tagName=="")&&U.parentNode.tagName=="LI")?U.parentNode:U}function P(U){var V=U.childNodes.length;if(U.tagName==="LI"){return V==0?true:V==1&&(U.firstChild.tagName==""||U.firstChild.tagName=="BR"||H(U))}return false}function H(U){var V=tinymce.grep(U.parentNode.childNodes,function(Y){return Y.tagName=="LI"});var W=U==V[V.length-1];var X=U.firstChild;return tinymce.isIE9&&W&&(X.nodeValue==String.fromCharCode(160)||X.nodeValue==String.fromCharCode(32))}function T(U){return U.keyCode===tinymce.VK.ENTER}function A(U){return T(U)&&!U.shiftKey}function M(U){if(E(U)){return v}else{if(A(U)&&w()){return N}else{if(A(U)&&F()){return s}else{return N}}}}function D(U,V){if(x==v||x==s||tinymce.isGecko&&x==J){r.cancel(V)}}function C(){var U=y.selection.getRng(true);var V=U.startContainer;if(V.nodeType==3){var W=V.nodeValue;if(tinymce.isIE9&&W.length>1&&W.charCodeAt(W.length-1)==32){return(U.endOffset==W.length-1)}else{return(U.endOffset==W.length)}}else{if(V.nodeType==1){return U.endOffset==V.childNodes.length}}return false}function I(){var W=y.selection.getNode();var V="h1,h2,h3,h4,h5,h6,p,div";var U=y.dom.is(W,V)&&W.parentNode.tagName==="LI"&&W.parentNode.lastChild===W;return y.selection.isCollapsed()&&U&&C()}function K(W,Y){if(A(Y)&&I()){var X=W.selection.getNode();var V=W.dom.create("li");var U=W.dom.getParent(X,"li");W.dom.insertAfter(V,U);if(tinymce.isIE6||tinymce.isIE7||tinyMCE.isIE8){W.selection.setCursorLocation(V,1)}else{W.selection.setCursorLocation(V,0)}Y.preventDefault()}}function u(X,Z){var ac;if(!tinymce.isGecko){return}var V=X.selection.getStart();if(Z.keyCode!=tinymce.VK.BACKSPACE||V.tagName!=="IMG"){return}function W(ag){var ah=ag.firstChild;var af=null;do{if(!ah){break}if(ah.tagName==="LI"){af=ah}}while(ah=ah.nextSibling);return af}function ae(ag,af){while(ag.childNodes.length>0){af.appendChild(ag.childNodes[0])}}ac=V.parentNode.previousSibling;if(!ac){return}var aa;if(ac.tagName==="UL"||ac.tagName==="OL"){aa=ac}else{if(ac.previousSibling&&(ac.previousSibling.tagName==="UL"||ac.previousSibling.tagName==="OL")){aa=ac.previousSibling}else{return}}var ad=W(aa);var U=X.dom.createRng();U.setStart(ad,1);U.setEnd(ad,1);X.selection.setRng(U);X.selection.collapse(true);var Y=X.selection.getBookmark();var ab=V.parentNode.cloneNode(true);if(ab.tagName==="P"||ab.tagName==="DIV"){ae(ab,ad)}else{ad.appendChild(ab)}V.parentNode.parentNode.removeChild(V.parentNode);X.selection.moveToBookmark(Y)}function G(U){var V=y.dom.getParent(U,"ol,ul");if(V!=null){var W=V.lastChild;y.selection.setCursorLocation(W,0)}}this.ed=y;y.addCommand("Indent",this.indent,this);y.addCommand("Outdent",this.outdent,this);y.addCommand("InsertUnorderedList",function(){this.applyList("UL","OL")},this);y.addCommand("InsertOrderedList",function(){this.applyList("OL","UL")},this);y.onInit.add(function(){y.editorCommands.addCommands({outdent:function(){var V=y.selection,W=y.dom;function U(X){X=W.getParent(X,W.isBlock);return X&&(parseInt(y.dom.getStyle(X,"margin-left")||0,10)+parseInt(y.dom.getStyle(X,"padding-left")||0,10))>0}return U(V.getStart())||U(V.getEnd())||y.queryCommandState("InsertOrderedList")||y.queryCommandState("InsertUnorderedList")}},"state")});y.onKeyUp.add(function(V,W){if(x==v){V.execCommand(W.shiftKey?"Outdent":"Indent",true,null);x=N;return r.cancel(W)}else{if(x==s){var U=B();var Y=V.settings.list_outdent_on_enter===true||W.shiftKey;V.execCommand(Y?"Outdent":"Indent",true,null);if(tinymce.isIE){G(U)}return r.cancel(W)}else{if(x==J){if(tinymce.isIE6||tinymce.isIE7||tinymce.isIE8){var X=V.getDoc().createTextNode("\uFEFF");V.selection.getNode().appendChild(X)}else{if(tinymce.isIE9||tinymce.isGecko){V.execCommand("Outdent");return r.cancel(W)}}}}}});function L(V,U){var W=y.getDoc().createTextNode("\uFEFF");V.insertBefore(W,U);y.selection.setCursorLocation(W,0);y.execCommand("mceRepaint")}function R(V,X){if(T(X)){var U=B();if(U){var W=U.parentNode;var Y=W&&W.parentNode;if(Y&&Y.nodeName=="LI"&&Y.firstChild==W&&U==W.firstChild){L(Y,W)}}}}function S(V,X){if(T(X)){var U=B();if(V.dom.select("ul li",U).length===1){var W=U.firstChild;L(U,W)}}}function Q(W,aa){function X(ab){var ad=[];var ae=new tinymce.dom.TreeWalker(ab.firstChild,ab);for(var ac=ae.current();ac;ac=ae.next()){if(W.dom.is(ac,"ol,ul,li")){ad.push(ac)}}return ad}if(aa.keyCode==tinymce.VK.BACKSPACE){var U=B();if(U){var Z=W.dom.getParent(U,"ol,ul"),V=W.selection.getRng();if(Z&&Z.firstChild===U&&V.startOffset==0){var Y=X(U);Y.unshift(U);W.execCommand("Outdent",false,Y);W.undoManager.add();return r.cancel(aa)}}}}function O(V,X){var U=B();if(X.keyCode===tinymce.VK.BACKSPACE&&V.dom.is(U,"li")&&U.parentNode.firstChild!==U){if(V.dom.select("ul,ol",U).length===1){var Z=U.previousSibling;V.dom.remove(V.dom.select("br",U));V.dom.remove(U,true);var W=tinymce.grep(Z.childNodes,function(aa){return aa.nodeType===3});if(W.length===1){var Y=W[0];V.selection.setCursorLocation(Y,Y.length)}V.undoManager.add();return r.cancel(X)}}}y.onKeyDown.add(function(U,V){x=M(V)});y.onKeyDown.add(D);y.onKeyDown.add(u);y.onKeyDown.add(K);if(tinymce.isGecko){y.onKeyUp.add(R)}if(tinymce.isIE8){y.onKeyUp.add(S)}if(tinymce.isGecko||tinymce.isWebKit){y.onKeyDown.add(Q)}if(tinymce.isWebKit){y.onKeyDown.add(O)}},applyList:function(y,v){var C=this,z=C.ed,I=z.dom,s=[],H=false,u=false,w=false,B,G=z.selection.getSelectedBlocks();function E(t){if(t&&t.tagName==="BR"){I.remove(t)}}function F(M){var N=I.create(y),t;function L(O){if(O.style.marginLeft||O.style.paddingLeft){C.adjustPaddingFunction(false)(O)}}if(M.tagName==="LI"){}else{if(M.tagName==="P"||M.tagName==="DIV"||M.tagName==="BODY"){K(M,function(P,O){J(P,O,M.tagName==="BODY"?null:P.parentNode);t=P.parentNode;L(t);E(O)});if(t){if(t.tagName==="LI"&&(M.tagName==="P"||G.length>1)){I.split(t.parentNode.parentNode,t.parentNode)}m(t.parentNode,true)}return}else{t=I.create("li");I.insertAfter(t,M);t.appendChild(M);L(M);M=t}}I.insertAfter(N,M);N.appendChild(M);m(N,true);s.push(M)}function J(P,L,N){var t,O=P,M;while(!I.isBlock(P.parentNode)&&P.parentNode!==I.getRoot()){P=I.split(P.parentNode,P.previousSibling);P=P.nextSibling;O=P}if(N){t=N.cloneNode(true);P.parentNode.insertBefore(t,P);while(t.firstChild){I.remove(t.firstChild)}t=I.rename(t,"li")}else{t=I.create("li");P.parentNode.insertBefore(t,P)}while(O&&O!=L){M=O.nextSibling;t.appendChild(O);O=M}if(t.childNodes.length===0){t.innerHTML='<br _mce_bogus="1" />'}F(t)}function K(Q,T){var N,R,O=3,L=1,t="br,ul,ol,p,div,h1,h2,h3,h4,h5,h6,table,blockquote,address,pre,form,center,dl";function P(X,U){var V=I.createRng(),W;g.keep=true;z.selection.moveToBookmark(g);g.keep=false;W=z.selection.getRng(true);if(!U){U=X.parentNode.lastChild}V.setStartBefore(X);V.setEndAfter(U);return !(V.compareBoundaryPoints(O,W)>0||V.compareBoundaryPoints(L,W)<=0)}function S(U){if(U.nextSibling){return U.nextSibling}if(!I.isBlock(U.parentNode)&&U.parentNode!==I.getRoot()){return S(U.parentNode)}}N=Q.firstChild;var M=false;e(I.select(t,Q),function(U){if(U.hasAttribute&&U.hasAttribute("_mce_bogus")){return true}if(P(N,U)){I.addClass(U,"_mce_tagged_br");N=S(U)}});M=(N&&P(N,undefined));N=Q.firstChild;e(I.select(t,Q),function(V){var U=S(V);if(V.hasAttribute&&V.hasAttribute("_mce_bogus")){return true}if(I.hasClass(V,"_mce_tagged_br")){T(N,V,R);R=null}else{R=V}N=U});if(M){T(N,undefined,R)}}function D(t){K(t,function(M,L,N){J(M,L);E(L);E(N)})}function A(t){if(tinymce.inArray(s,t)!==-1){return}if(t.parentNode.tagName===v){I.split(t.parentNode,t);F(t);o(t.parentNode,false)}s.push(t)}function x(M){var O,N,L,t;if(tinymce.inArray(s,M)!==-1){return}M=c(M,I);while(I.is(M.parentNode,"ol,ul,li")){I.split(M.parentNode,M)}s.push(M);M=I.rename(M,"p");L=m(M,false,z.settings.force_br_newlines);if(L===M){O=M.firstChild;while(O){if(I.isBlock(O)){O=I.split(O.parentNode,O);t=true;N=O.nextSibling&&O.nextSibling.firstChild}else{N=O.nextSibling;if(t&&O.tagName==="BR"){I.remove(O)}t=false}O=N}}}e(G,function(t){t=k(t,I);if(t.tagName===v||(t.tagName==="LI"&&t.parentNode.tagName===v)){u=true}else{if(t.tagName===y||(t.tagName==="LI"&&t.parentNode.tagName===y)){H=true}else{w=true}}});if(w&&!H||u||G.length===0){B={LI:A,H1:F,H2:F,H3:F,H4:F,H5:F,H6:F,P:F,BODY:F,DIV:G.length>1?F:D,defaultAction:D,elements:this.selectedBlocks()}}else{B={defaultAction:x,elements:this.selectedBlocks(),processEvenIfEmpty:true}}this.process(B)},indent:function(){var u=this.ed,w=u.dom,x=[];function s(z){var y=w.create("li",{style:"list-style-type: none;"});w.insertAfter(y,z);return y}function t(B){var y=s(B),D=w.getParent(B,"ol,ul"),C=D.tagName,E=w.getStyle(D,"list-style-type"),A={},z;if(E!==""){A.style="list-style-type: "+E+";"}z=w.create(C,A);y.appendChild(z);return z}function v(z){if(!d(u,z,x)){z=c(z,w);var y=t(z);y.appendChild(z);m(y.parentNode,false);m(y,false);x.push(z)}}this.process({LI:v,defaultAction:this.adjustPaddingFunction(true),elements:this.selectedBlocks()})},outdent:function(y,x){var w=this,u=w.ed,z=u.dom,s=[];function A(t){var C,B,D;if(!d(u,t,s)){if(z.getStyle(t,"margin-left")!==""||z.getStyle(t,"padding-left")!==""){return w.adjustPaddingFunction(false)(t)}D=z.getStyle(t,"text-align",true);if(D==="center"||D==="right"){z.setStyle(t,"text-align","left");return}t=c(t,z);C=t.parentNode;B=t.parentNode.parentNode;if(B.tagName==="P"){z.split(B,t.parentNode)}else{z.split(C,t);if(B.tagName==="LI"){z.split(B,t)}else{if(!z.is(B,"ol,ul")){z.rename(t,"p")}}}s.push(t)}}var v=x&&tinymce.is(x,"array")?x:this.selectedBlocks();this.process({LI:A,defaultAction:this.adjustPaddingFunction(false),elements:v});e(s,m)},process:function(y){var F=this,w=F.ed.selection,z=F.ed.dom,E,u;function B(t){var s=tinymce.grep(t.childNodes,function(H){return !(H.nodeName==="BR"||H.nodeName==="SPAN"&&z.getAttrib(H,"data-mce-type")=="bookmark"||H.nodeType==3&&(H.nodeValue==String.fromCharCode(160)||H.nodeValue==""))});return s.length===0}function x(s){z.removeClass(s,"_mce_act_on");if(!s||s.nodeType!==1||!y.processEvenIfEmpty&&E.length>1&&B(s)){return}s=k(s,z);var t=y[s.tagName];if(!t){t=y.defaultAction}t(s)}function v(s){F.splitSafeEach(s.childNodes,x,true)}function C(s,t){return t>=0&&s.hasChildNodes()&&t<s.childNodes.length&&s.childNodes[t].tagName==="BR"}function D(){var t=w.getNode();var s=z.getParent(t,"td");return s!==null}E=y.elements;u=w.getRng(true);if(!u.collapsed){if(C(u.endContainer,u.endOffset-1)){u.setEnd(u.endContainer,u.endOffset-1);w.setRng(u)}if(C(u.startContainer,u.startOffset)){u.setStart(u.startContainer,u.startOffset+1);w.setRng(u)}}if(tinymce.isIE8){var G=F.ed.selection.getNode();if(G.tagName==="LI"&&!(G.parentNode.lastChild===G)){var A=F.ed.getDoc().createTextNode("\uFEFF");G.appendChild(A)}}g=w.getBookmark();y.OL=y.UL=v;F.splitSafeEach(E,x);w.moveToBookmark(g);g=null;if(!D()){F.ed.execCommand("mceRepaint")}},splitSafeEach:function(u,t,s){if(s||(tinymce.isGecko&&(/Firefox\/[12]\.[0-9]/.test(navigator.userAgent)||/Firefox\/3\.[0-4]/.test(navigator.userAgent)))){this.classBasedEach(u,t)}else{e(u,t)}},classBasedEach:function(v,u){var w=this.ed.dom,s,t;e(v,function(x){w.addClass(x,"_mce_act_on")});s=w.select("._mce_act_on");while(s.length>0){t=s.shift();w.removeClass(t,"_mce_act_on");u(t);s=w.select("._mce_act_on")}},adjustPaddingFunction:function(u){var s,v,t=this.ed;s=t.settings.indentation;v=/[a-z%]+/i.exec(s);s=parseInt(s,10);return function(w){var y,x;y=parseInt(t.dom.getStyle(w,"margin-left")||0,10)+parseInt(t.dom.getStyle(w,"padding-left")||0,10);if(u){x=y+s}else{x=y-s}t.dom.setStyle(w,"padding-left","");t.dom.setStyle(w,"margin-left",x>0?x+v:"")}},selectedBlocks:function(){var s=this.ed,t=s.selection.getSelectedBlocks();return t.length==0?[s.dom.getRoot()]:t},getInfo:function(){return{longname:"Lists",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/lists",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("lists",tinymce.plugins.Lists)}());
|
@@ -149,29 +149,11 @@
|
|
149
149
|
var state = LIST_UNKNOWN;
|
150
150
|
|
151
151
|
function isTabInList(e) {
|
152
|
-
|
152
|
+
// Don't indent on Ctrl+Tab or Alt+Tab
|
153
153
|
return e.keyCode === tinymce.VK.TAB && !(e.altKey || e.ctrlKey) &&
|
154
154
|
(ed.queryCommandState('InsertUnorderedList') || ed.queryCommandState('InsertOrderedList'));
|
155
155
|
}
|
156
156
|
|
157
|
-
function isCursorAtEndOfContainer() {
|
158
|
-
var range = ed.selection.getRng();
|
159
|
-
var startContainer = range.startContainer;
|
160
|
-
if (startContainer.nodeType == 3) {
|
161
|
-
return (range.endOffset == startContainer.nodeValue.length);
|
162
|
-
} else if (startContainer.nodeType == 1) {
|
163
|
-
return range.endOffset == startContainer.childNodes.length;
|
164
|
-
}
|
165
|
-
return false;
|
166
|
-
}
|
167
|
-
|
168
|
-
// If we are at the end of a paragraph in a list item, pressing enter should create a new list item instead of a new paragraph.
|
169
|
-
function isEndOfParagraph() {
|
170
|
-
var node = ed.selection.getNode();
|
171
|
-
var isLastParagraphOfLi = node.tagName === 'P' && node.parentNode.tagName === 'LI' && node.parentNode.lastChild === node;
|
172
|
-
return ed.selection.isCollapsed() && isLastParagraphOfLi && isCursorAtEndOfContainer();
|
173
|
-
}
|
174
|
-
|
175
157
|
function isOnLastListItem() {
|
176
158
|
var li = getLi();
|
177
159
|
var grandParent = li.parentNode.parentNode;
|
@@ -215,22 +197,22 @@
|
|
215
197
|
|
216
198
|
function isEnter(e) {
|
217
199
|
return e.keyCode === tinymce.VK.ENTER;
|
218
|
-
|
200
|
+
}
|
219
201
|
|
220
|
-
|
221
|
-
|
222
|
-
|
202
|
+
function isEnterWithoutShift(e) {
|
203
|
+
return isEnter(e) && !e.shiftKey;
|
204
|
+
}
|
223
205
|
|
224
206
|
function getListKeyState(e) {
|
225
207
|
if (isTabInList(e)) {
|
226
208
|
return LIST_TABBING;
|
227
209
|
} else if (isEnterWithoutShift(e) && isOnLastListItem()) {
|
228
|
-
|
210
|
+
// Returns LIST_UNKNOWN since breaking out of lists is handled by the EnterKey.js logic now
|
211
|
+
//return LIST_ESCAPE;
|
212
|
+
return LIST_UNKNOWN;
|
229
213
|
} else if (isEnterWithoutShift(e) && isInEmptyListItem()) {
|
230
214
|
return LIST_EMPTY_ITEM;
|
231
|
-
} else
|
232
|
-
return LIST_PARAGRAPH;
|
233
|
-
} else {
|
215
|
+
} else {
|
234
216
|
return LIST_UNKNOWN;
|
235
217
|
}
|
236
218
|
}
|
@@ -241,32 +223,54 @@
|
|
241
223
|
Event.cancel(e);
|
242
224
|
}
|
243
225
|
}
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
226
|
+
|
227
|
+
function isCursorAtEndOfContainer() {
|
228
|
+
var range = ed.selection.getRng(true);
|
229
|
+
var startContainer = range.startContainer;
|
230
|
+
if (startContainer.nodeType == 3) {
|
231
|
+
var value = startContainer.nodeValue;
|
232
|
+
if (tinymce.isIE9 && value.length > 1 && value.charCodeAt(value.length-1) == 32) {
|
233
|
+
// IE9 places a space on the end of the text in some cases so ignore last char
|
234
|
+
return (range.endOffset == value.length-1);
|
235
|
+
} else {
|
236
|
+
return (range.endOffset == value.length);
|
237
|
+
}
|
238
|
+
} else if (startContainer.nodeType == 1) {
|
239
|
+
return range.endOffset == startContainer.childNodes.length;
|
240
|
+
}
|
241
|
+
return false;
|
242
|
+
}
|
243
|
+
|
244
|
+
/*
|
245
|
+
If we are at the end of a list item surrounded with an element, pressing enter should create a
|
246
|
+
new list item instead without splitting the element e.g. don't want to create new P or H1 tag
|
247
|
+
*/
|
248
|
+
function isEndOfListItem() {
|
249
|
+
var node = ed.selection.getNode();
|
250
|
+
var validElements = 'h1,h2,h3,h4,h5,h6,p,div';
|
251
|
+
var isLastParagraphOfLi = ed.dom.is(node, validElements) && node.parentNode.tagName === 'LI' && node.parentNode.lastChild === node;
|
252
|
+
return ed.selection.isCollapsed() && isLastParagraphOfLi && isCursorAtEndOfContainer();
|
253
|
+
}
|
254
|
+
|
255
|
+
// Creates a new list item after the current selection's list item parent
|
256
|
+
function createNewLi(ed, e) {
|
257
|
+
if (isEnterWithoutShift(e) && isEndOfListItem()) {
|
248
258
|
var node = ed.selection.getNode();
|
249
259
|
var li = ed.dom.create("li");
|
250
260
|
var parentLi = ed.dom.getParent(node, 'li');
|
251
261
|
ed.dom.insertAfter(li, parentLi);
|
252
262
|
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
ed.selection.setCursorLocation(li, 0);
|
263
|
-
}, 0);
|
264
|
-
} else {
|
265
|
-
ed.selection.setCursorLocation(li, 0);
|
266
|
-
}
|
267
|
-
Event.cancel(e);
|
263
|
+
// Move caret to new list element.
|
264
|
+
if (tinymce.isIE6 || tinymce.isIE7 || tinyMCE.isIE8) {
|
265
|
+
// Removed this line since it would create an odd < > tag and placing the caret inside an empty LI is handled and should be handled by the selection logic
|
266
|
+
//li.appendChild(ed.dom.create(" ")); // IE needs an element within the bullet point
|
267
|
+
ed.selection.setCursorLocation(li, 1);
|
268
|
+
} else {
|
269
|
+
ed.selection.setCursorLocation(li, 0);
|
270
|
+
}
|
271
|
+
e.preventDefault();
|
268
272
|
}
|
269
|
-
|
273
|
+
}
|
270
274
|
|
271
275
|
function imageJoiningListItem(ed, e) {
|
272
276
|
var prevSibling;
|
@@ -341,7 +345,8 @@
|
|
341
345
|
var list = ed.dom.getParent(li, 'ol,ul');
|
342
346
|
if (list != null) {
|
343
347
|
var lastLi = list.lastChild;
|
344
|
-
|
348
|
+
// Removed this line since IE9 would report an DOM character error and placing the caret inside an empty LI is handled and should be handled by the selection logic
|
349
|
+
//lastLi.appendChild(ed.getDoc().createElement(''));
|
345
350
|
ed.selection.setCursorLocation(lastLi, 0);
|
346
351
|
}
|
347
352
|
}
|
@@ -374,8 +379,8 @@
|
|
374
379
|
ed.onKeyUp.add(function(ed, e) {
|
375
380
|
if (state == LIST_TABBING) {
|
376
381
|
ed.execCommand(e.shiftKey ? 'Outdent' : 'Indent', true, null);
|
377
|
-
|
378
|
-
|
382
|
+
state = LIST_UNKNOWN;
|
383
|
+
return Event.cancel(e);
|
379
384
|
} else if (state == LIST_EMPTY_ITEM) {
|
380
385
|
var li = getLi();
|
381
386
|
var shouldOutdent = ed.settings.list_outdent_on_enter === true || e.shiftKey;
|
@@ -386,8 +391,8 @@
|
|
386
391
|
|
387
392
|
return Event.cancel(e);
|
388
393
|
} else if (state == LIST_ESCAPE) {
|
389
|
-
if (tinymce.isIE8) {
|
390
|
-
// append a zero sized nbsp so that caret is positioned correctly in
|
394
|
+
if (tinymce.isIE6 || tinymce.isIE7 || tinymce.isIE8) {
|
395
|
+
// append a zero sized nbsp so that caret is positioned correctly in IE after escaping and applying formatting.
|
391
396
|
// if there is no text then applying formatting for e.g a H1 to the P tag immediately following list after
|
392
397
|
// escaping from it will cause the caret to be positioned on the last li instead of staying the in P tag.
|
393
398
|
var n = ed.getDoc().createTextNode('\uFEFF');
|
@@ -397,7 +402,7 @@
|
|
397
402
|
// Gecko does not create a paragraph outdenting inside a TD so default behaviour is cancelled and we outdent ourselves
|
398
403
|
ed.execCommand('Outdent');
|
399
404
|
return Event.cancel(e);
|
400
|
-
|
405
|
+
}
|
401
406
|
}
|
402
407
|
});
|
403
408
|
|
@@ -435,9 +440,9 @@
|
|
435
440
|
}
|
436
441
|
|
437
442
|
function fixDeletingFirstCharOfList(ed, e) {
|
438
|
-
function listElements(
|
443
|
+
function listElements(li) {
|
439
444
|
var elements = [];
|
440
|
-
var walker = new tinymce.dom.TreeWalker(li,
|
445
|
+
var walker = new tinymce.dom.TreeWalker(li.firstChild, li);
|
441
446
|
for (var node = walker.current(); node; node = walker.next()) {
|
442
447
|
if (ed.dom.is(node, 'ol,ul,li')) {
|
443
448
|
elements.push(node);
|
@@ -449,9 +454,11 @@
|
|
449
454
|
if (e.keyCode == tinymce.VK.BACKSPACE) {
|
450
455
|
var li = getLi();
|
451
456
|
if (li) {
|
452
|
-
var list = ed.dom.getParent(li, 'ol,ul')
|
453
|
-
|
454
|
-
|
457
|
+
var list = ed.dom.getParent(li, 'ol,ul'),
|
458
|
+
rng = ed.selection.getRng();
|
459
|
+
if (list && list.firstChild === li && rng.startOffset == 0) {
|
460
|
+
var elements = listElements(li);
|
461
|
+
elements.unshift(li);
|
455
462
|
ed.execCommand("Outdent", false, elements);
|
456
463
|
ed.undoManager.add();
|
457
464
|
return Event.cancel(e);
|
@@ -460,10 +467,28 @@
|
|
460
467
|
}
|
461
468
|
}
|
462
469
|
|
470
|
+
function fixDeletingEmptyLiInWebkit(ed, e) {
|
471
|
+
var li = getLi();
|
472
|
+
if (e.keyCode === tinymce.VK.BACKSPACE && ed.dom.is(li, 'li') && li.parentNode.firstChild!==li) {
|
473
|
+
if (ed.dom.select('ul,ol', li).length === 1) {
|
474
|
+
var prevLi = li.previousSibling;
|
475
|
+
ed.dom.remove(ed.dom.select('br', li));
|
476
|
+
ed.dom.remove(li, true);
|
477
|
+
var textNodes = tinymce.grep(prevLi.childNodes, function(n){ return n.nodeType === 3 });
|
478
|
+
if (textNodes.length === 1) {
|
479
|
+
var textNode = textNodes[0];
|
480
|
+
ed.selection.setCursorLocation(textNode, textNode.length);
|
481
|
+
}
|
482
|
+
ed.undoManager.add();
|
483
|
+
return Event.cancel(e);
|
484
|
+
}
|
485
|
+
}
|
486
|
+
}
|
487
|
+
|
463
488
|
ed.onKeyDown.add(function(_, e) { state = getListKeyState(e); });
|
464
489
|
ed.onKeyDown.add(cancelDefaultEvents);
|
465
490
|
ed.onKeyDown.add(imageJoiningListItem);
|
466
|
-
|
491
|
+
ed.onKeyDown.add(createNewLi);
|
467
492
|
|
468
493
|
if (tinymce.isGecko) {
|
469
494
|
ed.onKeyUp.add(fixIndentedListItemForGecko);
|
@@ -474,6 +499,9 @@
|
|
474
499
|
if (tinymce.isGecko || tinymce.isWebKit) {
|
475
500
|
ed.onKeyDown.add(fixDeletingFirstCharOfList);
|
476
501
|
}
|
502
|
+
if (tinymce.isWebKit) {
|
503
|
+
ed.onKeyDown.add(fixDeletingEmptyLiInWebkit);
|
504
|
+
}
|
477
505
|
},
|
478
506
|
|
479
507
|
applyList: function(targetListType, oppositeListType) {
|
@@ -542,7 +570,7 @@
|
|
542
570
|
li = dom.create('li');
|
543
571
|
start.parentNode.insertBefore(li, start);
|
544
572
|
}
|
545
|
-
|
573
|
+
while (n && n != end) {
|
546
574
|
tmp = n.nextSibling;
|
547
575
|
li.appendChild(n);
|
548
576
|
n = tmp;
|
@@ -696,7 +724,8 @@
|
|
696
724
|
} else {
|
697
725
|
actions = {
|
698
726
|
defaultAction: convertListItemToParagraph,
|
699
|
-
elements: this.selectedBlocks()
|
727
|
+
elements: this.selectedBlocks(),
|
728
|
+
processEvenIfEmpty: true
|
700
729
|
};
|
701
730
|
}
|
702
731
|
this.process(actions);
|
@@ -800,7 +829,7 @@
|
|
800
829
|
|
801
830
|
function processElement(element) {
|
802
831
|
dom.removeClass(element, '_mce_act_on');
|
803
|
-
if (!element || element.nodeType !== 1 || selectedBlocks.length > 1 && isEmptyElement(element)) {
|
832
|
+
if (!element || element.nodeType !== 1 || ! actions.processEvenIfEmpty && selectedBlocks.length > 1 && isEmptyElement(element)) {
|
804
833
|
return;
|
805
834
|
}
|
806
835
|
element = findItemToOperateOn(element, dom);
|
@@ -812,7 +841,7 @@
|
|
812
841
|
}
|
813
842
|
|
814
843
|
function recurse(element) {
|
815
|
-
t.splitSafeEach(element.childNodes, processElement);
|
844
|
+
t.splitSafeEach(element.childNodes, processElement, true);
|
816
845
|
}
|
817
846
|
|
818
847
|
function brAtEdgeOfSelection(container, offset) {
|
@@ -863,9 +892,11 @@
|
|
863
892
|
}
|
864
893
|
},
|
865
894
|
|
866
|
-
splitSafeEach: function(elements, f) {
|
867
|
-
if (
|
868
|
-
|
895
|
+
splitSafeEach: function(elements, f, forceClassBase) {
|
896
|
+
if (forceClassBase ||
|
897
|
+
(tinymce.isGecko &&
|
898
|
+
(/Firefox\/[12]\.[0-9]/.test(navigator.userAgent) ||
|
899
|
+
/Firefox\/3\.[0-4]/.test(navigator.userAgent)))) {
|
869
900
|
this.classBasedEach(elements, f);
|
870
901
|
} else {
|
871
902
|
each(elements, f);
|
@@ -906,8 +937,7 @@
|
|
906
937
|
},
|
907
938
|
|
908
939
|
selectedBlocks: function() {
|
909
|
-
var ed = this.ed
|
910
|
-
var selectedBlocks = ed.selection.getSelectedBlocks();
|
940
|
+
var ed = this.ed, selectedBlocks = ed.selection.getSelectedBlocks();
|
911
941
|
return selectedBlocks.length == 0 ? [ ed.dom.getRoot() ] : selectedBlocks;
|
912
942
|
},
|
913
943
|
|