commit 87d90e59d91ad2a0f4f76d15bcb597d3195fc825
parent 1bc98edba499ef178501ba92746c7aa725a4aeb3
Author: Dan Stillman <dstillman@zotero.org>
Date: Tue, 30 Oct 2012 03:10:26 -0400
Update TinyMCE to 3.5.7
Diffstat:
185 files changed, 13785 insertions(+), 23369 deletions(-)
diff --git a/chrome/content/zotero/tinymce/langs/ar.js b/chrome/content/zotero/tinymce/langs/ar.js
@@ -1,153 +0,0 @@
-tinyMCE.addI18n({ar:{
-common:{
-edit_confirm:"\u0647\u0644 \u062A\u0631\u064A\u062F \u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0627\u0644\u0645\u062D\u0631\u0631 \u0644\u0645\u0631\u0628\u0639 \u0627\u0644\u0646\u0635 \u0647\u0630\u0627?",
-apply:"\u062A\u0637\u0628\u064A\u0642",
-insert:"\u0627\u062F\u0631\u0627\u062C",
-update:"\u062A\u062D\u062F\u064A\u062B",
-cancel:"\u0627\u0644\u063A\u0627\u0621 \u0627\u0644\u0623\u0645\u0631",
-close:"\u0627\u063A\u0644\u0627\u0642",
-browse:"\u0627\u0633\u062A\u0639\u0631\u0627\u0636",
-class_name:"\u0643\u0644\u0627\u0633",
-not_set:"-- \u0628\u062F\u0648\u0646 \u062A\u062D\u062F\u064A\u062F --",
-clipboard_msg:"\u0646\u0633\u062E/\u0642\u0635/\u0644\u0635\u0642 \u063A\u064A\u0631 \u0645\u062A\u0648\u0641\u0631\u0629 \u0644\u0645\u062A\u0635\u0641\u062D Mozilla \u0648 Firefox.\n\u0647\u0644 \u062A\u0631\u064A\u062F \u0645\u0639\u0631\u0641\u0629 \u0627\u0644\u0645\u0632\u064A\u062F \u0645\u0646 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062A \u062D\u0648\u0644 \u0647\u0630\u0627 \u0627\u0644\u0645\u0648\u0636\u0648\u0639?",
-popup_blocked:"Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.",
-invalid_data:"\u062E\u0637\u0623: \u0627\u0644\u0642\u064A\u0645\u0629 \u0627\u0644\u0645\u062F\u062E\u0644\u0629 \u062E\u0627\u0637\u0626\u0629, \u062A\u0645 \u062A\u062D\u062F\u064A\u062F\u0647\u0627 \u0628\u0627\u0644\u0644\u0648\u0646 \u0627\u0644\u0623\u062D\u0645\u0631.",
-more_colors:"\u0645\u0632\u064A\u062F \u0645\u0646 \u0627\u0644\u0623\u0644\u0648\u0627\u0646"
-},
-contextmenu:{
-align:"\u0645\u062D\u0627\u0630\u0627\u0629",
-left:"\u064A\u0633\u0627\u0631",
-center:"\u0648\u0633\u0637",
-right:"\u064A\u0645\u064A\u0646",
-full:"\u0636\u0628\u0637"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"\u0625\u062F\u0631\u0627\u062C \u0627\u0644\u062A\u0627\u0631\u064A\u062E",
-inserttime_desc:"\u0625\u062F\u0631\u0627\u062C \u0627\u0644\u0648\u0642\u062A",
-months_long:"\u064A\u0646\u0627\u064A\u0631,\u0641\u0628\u0631\u0627\u064A\u0631,\u0645\u0627\u0631\u0633,\u0627\u0628\u0631\u064A\u0644,\u0645\u0627\u064A\u0648,\u064A\u0648\u0646\u064A\u0648,\u064A\u0648\u0644\u064A\u0648,\u0627\u063A\u0633\u0637\u0633,\u0633\u0628\u062A\u0645\u0628\u0631,\u0627\u0643\u062A\u0648\u0628\u0631,\u0646\u0648\u0641\u0645\u0628\u0631,\u062F\u064A\u0633\u0645\u0628\u0631",
-months_short:"\u064A\u0646\u0627\u064A\u0631,\u0641\u0628\u0631\u0627\u064A\u0631,\u0645\u0627\u0631\u0633,\u0627\u0628\u0631\u064A\u0644,\u0645\u0627\u064A\u0648,\u064A\u0648\u0646\u064A\u0648,\u064A\u0648\u0644\u064A\u0648,\u0627\u063A\u0633\u0637\u0633,\u0633\u0628\u062A\u0645\u0628\u0631,\u0627\u0643\u062A\u0648\u0628\u0631,\u0646\u0648\u0641\u0645\u0628\u0631,\u062F\u064A\u0633\u0645\u0628\u0631",
-day_long:"\u0627\u0644\u0623\u062D\u062F,\u0627\u0644\u0625\u062B\u0646\u064A\u0646,\u0627\u0644\u062B\u0644\u0627\u062B\u0627\u0621,\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621,\u0627\u0644\u062E\u0645\u064A\u0633,\u0627\u0644\u062C\u0645\u0639\u0629,\u0627\u0644\u0633\u0628\u062A,\u0627\u0644\u0623\u062D\u062F",
-day_short:"\u0627\u0644\u0623\u062D\u062F,\u0627\u0644\u0625\u062B\u0646\u064A\u0646,\u0627\u0644\u062B\u0644\u0627\u062B\u0627\u0621,\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621,\u0627\u0644\u062E\u0645\u064A\u0633,\u0627\u0644\u062C\u0645\u0639\u0629,\u0627\u0644\u0633\u0628\u062A,\u0627\u0644\u0623\u062D\u062F"
-},
-print:{
-print_desc:"\u0637\u0628\u0627\u0639\u0629"
-},
-preview:{
-preview_desc:"\u0645\u0639\u0627\u064A\u0646\u0629"
-},
-directionality:{
-ltr_desc:"\u0645\u0646 \u0627\u0644\u064A\u0633\u0627\u0631 \u0627\u0644\u0649 \u0627\u0644\u064A\u0645\u064A\u0646",
-rtl_desc:"\u0645\u0646 \u0627\u0644\u064A\u0645\u064A\u0646 \u0627\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631"
-},
-layer:{
-insertlayer_desc:"\u0625\u062F\u0631\u0627\u062C \u0637\u0628\u0642\u0629 \u062C\u062F\u064A\u062F\u0629",
-forward_desc:"\u062A\u062D\u0631\u064A\u0643 \u0644\u0644\u0645\u0642\u062F\u0645\u0629",
-backward_desc:"\u062A\u062D\u0631\u064A\u0643 \u0644\u0644\u0645\u0624\u062E\u0631\u0629",
-absolute_desc:"Toggle absolute positioning",
-content:"\u0637\u0628\u0642\u0629 \u062C\u062F\u064A\u062F\u0629..."
-},
-save:{
-save_desc:"\u062D\u0641\u0638",
-cancel_desc:"\u0627\u0644\u063A\u0627\u0621 \u062C\u0645\u064A\u0639 \u0627\u0644\u062A\u0639\u062F\u064A\u0644\u0627\u062A"
-},
-nonbreaking:{
-nonbreaking_desc:"\u0625\u062F\u0631\u0627\u062C non-breaking space character"
-},
-iespell:{
-iespell_desc:"Run spell checking",
-download:"ieSpell not detected. Do you want to install it now?"
-},
-advhr:{
-advhr_desc:"\u062E\u0637 \u0627\u0641\u0642\u064A"
-},
-emotions:{
-emotions_desc:"\u0627\u0644\u0625\u0628\u062A\u0633\u0627\u0645\u0627\u062A"
-},
-searchreplace:{
-search_desc:"\u0628\u062D\u062B",
-replace_desc:"\u0628\u062D\u062B/\u0627\u0633\u062A\u0628\u062F\u0627\u0644"
-},
-advimage:{
-image_desc:"\u0625\u062F\u0631\u0627\u062C/\u062A\u062D\u0631\u064A\u0631 \u0635\u0648\u0631\u0629"
-},
-advlink:{
-link_desc:"\u0625\u062F\u0631\u0627\u062C/\u062A\u062D\u0631\u064A\u0631 \u0631\u0627\u0628\u0637"
-},
-xhtmlxtras:{
-cite_desc:"Citation",
-abbr_desc:"Abbreviation",
-acronym_desc:"Acronym",
-del_desc:"Deletion",
-ins_desc:"\u0625\u062F\u0631\u0627\u062Cion",
-attribs_desc:"\u0625\u062F\u0631\u0627\u062C/\u062A\u062D\u0631\u064A\u0631 Attributes"
-},
-style:{
-desc:"Edit CSS Style"
-},
-paste:{
-paste_text_desc:"\u0644\u0635\u0642 \u0643\u0646\u0635 \u0639\u0627\u062F\u064A",
-paste_word_desc:"\u0644\u0635\u0642 \u0645\u0646 \u0645\u0633\u062A\u0646\u062F \u0648\u0648\u0631\u062F",
-selectall_desc:"\u062A\u062D\u062F\u064A\u062F \u0627\u0644\u0643\u0644"
-},
-paste_dlg:{
-text_title:"\u0627\u0633\u062A\u062E\u062F\u0645 CTRL+V \u0641\u064A \u0644\u0648\u062D\u0629 \u0627\u0644\u0645\u0641\u0627\u062A\u064A\u062D \u0644\u0644\u0635\u0642 \u0627\u0644\u0646\u0635\u0641 \u0641\u064A \u0627\u0644\u0646\u0627\u0641\u0630\u0629.",
-text_linebreaks:"\u0627\u0628\u0642\u064A \u0641\u0648\u0627\u0635\u0644 \u0627\u0644\u0623\u0633\u0637\u0631",
-word_title:"\u0633\u062A\u062E\u062F\u0645 CTRL+V \u0641\u064A \u0644\u0648\u062D\u0629 \u0627\u0644\u0645\u0641\u0627\u062A\u064A\u062D \u0644\u0644\u0635\u0642 \u0627\u0644\u0646\u0635\u0641 \u0641\u064A \u0627\u0644\u0646\u0627\u0641\u0630\u0629."
-},
-table:{
-desc:"\u0625\u062F\u0631\u0627\u062C \u062C\u062F\u0648\u0644 \u062C\u062F\u064A\u062F",
-row_before_desc:"\u0627\u062F\u0631\u0627\u062C \u0635\u0641 \u0642\u0628\u0644",
-row_after_desc:"\u0627\u062F\u0631\u0627\u062C \u0635\u0641 \u0628\u0639\u062F",
-delete_row_desc:"\u062D\u0630\u0641 \u0635\u0641",
-col_before_desc:"\u0625\u062F\u0631\u0627\u062C \u0639\u0645\u0648\u062F \u0642\u0628\u0644",
-col_after_desc:"\u0625\u062F\u0631\u0627\u062C \u0639\u0645\u0648\u062F \u0628\u0639\u062F",
-delete_col_desc:"\u062D\u0630\u0641 \u0639\u0645\u0648\u062F",
-split_cells_desc:"\u062A\u0642\u0633\u064A\u0645 \u0627\u0644\u062E\u0644\u0627\u064A\u0627 \u0627\u0644\u0645\u062F\u0645\u0648\u062C\u0629",
-merge_cells_desc:"\u062F\u0645\u062C \u062E\u0644\u0627\u064A\u0627 \u0627\u0644\u062C\u062F\u0648\u0644",
-row_desc:"\u062E\u0635\u0627\u0626\u0635 \u0635\u0641 \u0627\u0644\u062C\u062F\u0648\u0644",
-cell_desc:"\u062E\u0635\u0627\u0626\u0635 \u062E\u0644\u064A\u0629 \u0627\u0644\u062C\u062F\u0648\u0644",
-props_desc:"\u062E\u0635\u0627\u0626\u0635 \u0627\u0644\u062C\u062F\u0648\u0644",
-paste_row_before_desc:"\u0644\u0635\u0642 table row before",
-paste_row_after_desc:"\u0644\u0635\u0642 table row after",
-cut_row_desc:"\u0642\u0635 \u0635\u0641",
-copy_row_desc:"\u0646\u0633\u062E \u0635\u0641",
-del:"\u062D\u0630\u0641 \u062C\u062F\u0648\u0644",
-row:"\u0635\u0641",
-col:"\u0639\u0645\u0648\u062F",
-cell:"\u062E\u0644\u064A\u0629"
-},
-autosave:{
-unload_msg:"The changes you made will be lost if you navigate away from this page."
-},
-fullscreen:{
-desc:"Toggle fullscreen mode"
-},
-media:{
-desc:"\u0625\u062F\u0631\u0627\u062C / edit embedded media",
-edit:"Edit embedded media"
-},
-fullpage:{
-desc:"\u062E\u0635\u0627\u0626\u0635 \u0627\u0644\u0645\u0633\u062A\u0646\u062F"
-},
-template:{
-desc:"\u0625\u062F\u0631\u0627\u062C predefined template content"
-},
-visualchars:{
-desc:"Visual control characters \u062A\u0634\u063A\u064A\u0644/\u0627\u064A\u0642\u0627\u0641."
-},
-spellchecker:{
-desc:"\u0627\u0644\u0645\u062F\u0642\u0642 \u0627\u0644\u0625\u0645\u0644\u0627\u0626\u064A",
-menu:"\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u0645\u062F\u0642\u0642 \u0627\u0644\u0625\u0645\u0644\u0627\u0626\u064A",
-ignore_word:"\u062A\u062C\u0627\u0647\u0644 \u0627\u0644\u0643\u0644\u0645\u0629",
-ignore_words:"\u062A\u062C\u0627\u0647\u0644 \u0627\u0644\u0643\u0644",
-langs:"\u0627\u0644\u0644\u063A\u0627\u062A",
-wait:"\u0627\u0644\u0631\u062C\u0627\u0621 \u0627\u0644\u0625\u0646\u062A\u0638\u0627\u0631...",
-sug:"\u0627\u0644\u0625\u0642\u062A\u0631\u0627\u062D\u0627\u062A",
-no_sug:"\u0644\u0627 \u064A\u0648\u062C\u062F \u0627\u0642\u062A\u0631\u0627\u062D\u0627\u062A",
-no_mpell:"\u0644\u0645 \u064A\u062A\u0645 \u0627\u0644\u0639\u062B\u0648\u0631 \u0639\u0644\u0649 \u0623\u062E\u0637\u0627\u0621 \u0625\u0645\u0644\u0627\u0626\u064A\u0629."
-},
-pagebreak:{
-desc:"\u0625\u062F\u0631\u0627\u062C \u0641\u0627\u0635\u0644 \u0627\u0644\u0635\u0641\u062D\u0627\u062A"
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/bg.js b/chrome/content/zotero/tinymce/langs/bg.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({bg:{
-common:{
-edit_confirm:"\u0418\u0441\u043A\u0430\u0442\u0435 \u043B\u0438 \u0434\u0430 \u0438\u0437\u043F\u043E\u043B\u0437\u0432\u0430\u0442\u0435 WYSIWYG \u0440\u0435\u0436\u0438\u043C \u0437\u0430 \u0442\u043E\u0432\u0430 \u0442\u0435\u043A\u0441\u0442\u043E\u0432\u043E \u043F\u043E\u043B\u0435?",
-apply:"\u041F\u043E\u044A\u0432\u044A\u0440\u0434\u0438",
-insert:"\u0412\u043C\u044A\u043A\u043D\u0438",
-update:"\u041E\u0431\u043D\u043E\u0432\u0438",
-cancel:"\u041E\u0442\u043A\u0430\u0436\u0438",
-close:"\u0417\u0430\u0442\u0432\u043E\u0440\u0438",
-browse:"Browse",
-class_name:"\u041A\u043B\u0430\u0441",
-not_set:"-- \u041D\u0435\u0443\u0441\u0442\u0430\u043D\u043E\u0432\u0435\u043D\u043E --",
-clipboard_msg:"\u041A\u043E\u043F\u0438\u0440\u0430\u043D\u0435/\u041E\u0442\u0440\u044F\u0437\u0432\u0430\u043D\u0435/\u041F\u043E\u0441\u0442\u0430\u0432\u044F\u043D\u0435 \u043D\u0435 \u0435 \u0434\u043E\u0441\u0442\u044A\u043F\u043D\u043E \u043F\u043E\u0434 Mozilla \u0438 Firefox.\n\u0416\u0435\u043B\u0430\u0435\u0442\u0435 \u043B\u0438 \u043F\u043E\u0432\u0435\u0447\u0435 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F \u0437\u0430 \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0430?",
-clipboard_no_support:"\u041D\u0435 \u0441\u0435 \u043F\u043E\u0434\u0434\u044A\u0440\u0436\u0430 \u043E\u0442 \u0432\u0430\u0448\u0438\u044F\u0442 \u0431\u0440\u0430\u0443\u0437\u044A\u0440, \u0438\u0437\u043F\u043E\u043B\u0437\u0432\u0430\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u043D\u0438 \u043A\u043E\u043C\u0430\u043D\u0434\u0438.",
-popup_blocked:"\u0421\u044A\u0436\u0430\u043B\u044F\u0432\u0430\u043C\u0435, \u043D\u043E \u0437\u0430\u0431\u0435\u043B\u044F\u0437\u0430\u0445\u043C\u0435, \u0447\u0435 \u0432\u0430\u0448\u0438\u044F\u0442 popup-blocker \u0435 \u0441\u043F\u0440\u044F\u043B \u043F\u0440\u043E\u0437\u043E\u0440\u0435\u0446 \u043A\u043E\u0439\u0442\u043E \u0441\u0435 \u0438\u0437\u043F\u043E\u043B\u0437\u0432\u0430 \u043E\u0442 \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u0430\u0442\u0430. \u0429\u0435 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0438\u0437\u043A\u043B\u044E\u0447\u0438\u0442\u0435 \u0431\u043B\u043E\u043A\u0438\u0440\u0430\u043D\u0435\u0442\u043E \u043D\u0430 \u043F\u043E\u043F\u044A\u043F\u0438 \u0437\u0430 \u0442\u043E\u0437\u0438 \u0441\u0430\u0439\u0442 \u0437\u0430 \u0434\u0430 \u0438\u0437\u043F\u043E\u043B\u0437\u0432\u0430\u0442\u0435 \u043F\u044A\u043B\u043D\u0430\u0442\u0430 \u0444\u0443\u043D\u043A\u0446\u0438\u043E\u043D\u0430\u043B\u043D\u043E\u0441\u0442.",
-invalid_data:"\u0413\u0440\u0435\u0448\u043A\u0430: \u0412\u044A\u0432\u0435\u0434\u0435\u043D\u0438 \u0441\u0430 \u043D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0438 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0438, \u0442\u0435 \u0441\u0430 \u043C\u0430\u0440\u043A\u0438\u0440\u0430\u043D\u0438 \u0432 \u0447\u0435\u0440\u0432\u0435\u043D\u043E.",
-more_colors:"\u041E\u0449\u0435 \u0446\u0432\u0435\u0442\u043E\u0432\u0435"
-},
-contextmenu:{
-align:"\u041F\u043E\u0434\u0440\u0430\u0432\u043D\u044F\u0432\u0430\u043D\u0435",
-left:"\u041B\u044F\u0432\u043E",
-center:"\u0426\u0435\u043D\u0442\u044A\u0440",
-right:"\u0414\u044F\u0441\u043D\u043E",
-full:"\u0414\u0432\u0443\u0441\u0442\u0440\u0430\u043D\u043D\u043E"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"\u0412\u043C\u044A\u043A\u043D\u0438 \u0434\u0430\u0442\u0430",
-inserttime_desc:"\u0412\u043C\u044A\u043A\u043D\u0438 \u0432\u0440\u0435\u043C\u0435",
-months_long:"\u042F\u043D\u0443\u0430\u0440\u0438,\u0424\u0435\u0432\u0440\u0443\u0430\u0440\u0438,\u041C\u0430\u0440\u0442,\u0410\u043F\u0440\u0438\u043B,\u041C\u0430\u0439,\u042E\u043D\u0438,\u042E\u043B\u0438,\u0410\u0432\u0433\u0443\u0441\u0442,\u0421\u0435\u043F\u0442\u0435\u043C\u0432\u0440\u0438,\u041E\u043A\u0442\u043E\u043C\u0432\u0440\u0438,\u041D\u043E\u0435\u043C\u0432\u0440\u0438,\u0414\u0435\u043A\u0435\u043C\u0432\u0440\u0438",
-months_short:"\u042F\u043D\u0443,\u0424\u0435\u0432,\u041C\u0430\u0440,\u0410\u043F\u0440,\u041C\u0430\u0439,\u042E\u043D\u0438,\u042E\u043B\u0438,\u0410\u0432\u0433,\u0421\u0435\u043F,\u041E\u043A\u0442,\u041D\u043E\u0435,\u0414\u0435\u043A",
-day_long:"\u041D\u0435\u0434\u0435\u043B\u044F,\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u043D\u0438\u043A,\u0412\u0442\u043E\u0440\u043D\u0438\u043A,\u0421\u0440\u044F\u0434\u0430,\u0427\u0435\u0442\u0432\u044A\u0440\u0442\u044A\u043A,\u041F\u0435\u0442\u044A\u043A,\u0421\u044A\u0431\u043E\u0442\u0430,\u041D\u0435\u0434\u0435\u043B\u044F",
-day_short:"\u041D\u0434,\u041F\u043D,\u0412\u0442,\u0421\u0440,\u0427\u0442,\u041F\u0442,\u0421\u0431,\u041D\u0434"
-},
-print:{
-print_desc:"\u041E\u0442\u043F\u0435\u0447\u0430\u0442\u0430\u0439"
-},
-preview:{
-preview_desc:"\u041F\u0440\u0435\u0433\u043B\u0435\u0434"
-},
-directionality:{
-ltr_desc:"\u041F\u043E\u0441\u043E\u043A\u0430 \u043E\u0442\u043B\u044F\u0432\u043E \u043D\u0430 \u0434\u044F\u0441\u043D\u043E",
-rtl_desc:"\u041F\u043E\u0441\u043E\u043A\u0430 \u043E\u0442\u0434\u044F\u0441\u043D\u043E \u043D\u0430 \u043B\u044F\u0432\u043E"
-},
-layer:{
-insertlayer_desc:"\u0412\u043C\u044A\u043A\u043D\u0438 \u043D\u043E\u0432 \u0441\u043B\u043E\u0439",
-forward_desc:"\u041F\u043E\u043A\u0430\u0436\u0438 \u043E\u0442\u043F\u0440\u0435\u0434",
-backward_desc:"\u041F\u043E\u043A\u0430\u0436\u0438 \u043E\u0442\u0437\u0430\u0434",
-absolute_desc:"\u0412\u043A\u043B\u044E\u0447\u0438 \u0430\u0431\u0441\u043E\u043B\u044E\u0442\u043D\u043E \u043F\u043E\u0437\u0438\u0446\u0438\u043E\u043D\u0438\u0440\u0430\u043D\u0435",
-content:"\u041D\u043E\u0432 \u0441\u043B\u043E\u0439..."
-},
-save:{
-save_desc:"\u0417\u0430\u043F\u0438\u0448\u0438",
-cancel_desc:"\u041E\u0442\u043A\u0430\u0436\u0438 \u0432\u0441\u0438\u0447\u043A\u0438 \u043F\u0440\u043E\u043C\u0435\u043D\u0438"
-},
-nonbreaking:{
-nonbreaking_desc:"\u0412\u043C\u044A\u043A\u043D\u0438 \u043D\u0435\u043F\u0440\u0435\u043A\u044A\u0441\u0432\u0430\u0435\u043C \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B"
-},
-iespell:{
-iespell_desc:"\u041F\u0440\u043E\u0432\u0435\u0440\u0438 \u043F\u0440\u0430\u0432\u043E\u043F\u0438\u0441\u0430",
-download:"ieSpell \u043D\u0435 \u0435 \u043E\u0442\u043A\u0440\u0438\u0442. \u0416\u0435\u043B\u0430\u0435\u0442\u0435 \u043B\u0438 \u0434\u0430 \u0433\u043E \u0438\u043D\u0441\u0442\u0430\u043B\u0438\u0440\u0430\u0442\u0435 \u0441\u0435\u0433\u0430?"
-},
-advhr:{
-advhr_desc:"\u0425\u043E\u0440\u0438\u0437\u043E\u043D\u0442\u0430\u043B\u043D\u0430 \u043B\u0438\u043D\u0438\u044F"
-},
-emotions:{
-emotions_desc:"\u0415\u043C\u043E\u0442\u0438\u043A\u043E\u043D\u0438"
-},
-searchreplace:{
-search_desc:"\u0422\u044A\u0440\u0441\u0438",
-replace_desc:"\u0422\u044A\u0440\u0441\u0438/\u0417\u0430\u043C\u0435\u0441\u0442\u0438"
-},
-advimage:{
-image_desc:"\u0412\u043C\u044A\u043A\u043D\u0438/\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u0430\u0439 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430"
-},
-advlink:{
-link_desc:"\u0412\u043C\u044A\u043A\u043D\u0438/\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u0430\u0439 \u0445\u0438\u043F\u0435\u0440\u0432\u0440\u044A\u0437\u043A\u0430"
-},
-xhtmlxtras:{
-cite_desc:"\u0426\u0438\u0442\u0430\u0442",
-abbr_desc:"\u0421\u044A\u043A\u0440\u0430\u0449\u0435\u043D\u0438\u0435",
-acronym_desc:"\u0410\u043A\u0440\u043E\u043D\u0438\u043C",
-del_desc:"\u0418\u0437\u0442\u0440\u0438\u0432\u0430\u043D\u0435",
-ins_desc:"\u0412\u043C\u044A\u043A\u0432\u0430\u043D\u0435",
-attribs_desc:"\u0412\u043C\u044A\u043A\u043D\u0438/\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u0430\u0439 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0438"
-},
-style:{
-desc:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u0430\u0439 CSS \u0441\u0442\u0438\u043B"
-},
-paste:{
-paste_text_desc:"\u041F\u043E\u0441\u0442\u0430\u0432\u0438 \u043A\u0430\u0442\u043E \u0442\u0435\u043A\u0441\u0442",
-paste_word_desc:"\u041F\u043E\u0441\u0442\u0430\u0432\u0438 \u043E\u0442 Word",
-selectall_desc:"\u0418\u0437\u0431\u0435\u0440\u0438 \u0432\u0441\u0438\u0447\u043A\u0438"
-},
-paste_dlg:{
-text_title:"\u0418\u0437\u043F\u043E\u043B\u0437\u0432\u0430\u0439\u0442\u0435 CTRL+V \u043D\u0430 \u043A\u043B\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0430\u0442\u0430 \u0437\u0430 \u0434\u0430 \u043F\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u0435 \u0442\u0435\u043A\u0441\u0442\u0430 \u0432 \u043F\u0440\u043E\u0437\u043E\u0440\u0435\u0446\u0430.",
-text_linebreaks:"\u0417\u0430\u043F\u0430\u0437\u0438 \u043D\u043E\u0432\u0438\u0442\u0435 \u0440\u0435\u0434\u043E\u0432\u0435",
-word_title:"\u0418\u0437\u043F\u043E\u043B\u0437\u0432\u0430\u0439\u0442\u0435 CTRL+V \u043D\u0430 \u043A\u043B\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0430\u0442\u0430 \u0437\u0430 \u0434\u0430 \u043F\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u0435 \u0442\u0435\u043A\u0441\u0442\u0430 \u0432 \u043F\u0440\u043E\u0437\u043E\u0440\u0435\u0446\u0430."
-},
-table:{
-desc:"\u0412\u043C\u044A\u043A\u043D\u0438 \u043D\u043E\u0432\u0430 \u0442\u0430\u0431\u043B\u0438\u0446\u0430",
-row_before_desc:"\u0412\u043C\u044A\u043A\u043D\u0438 \u0440\u0435\u0434 \u043F\u0440\u0435\u0434\u0438",
-row_after_desc:"\u0412\u043C\u044A\u043A\u043D\u0438 \u0440\u0435\u0434 \u0441\u043B\u0435\u0434",
-delete_row_desc:"\u0418\u0437\u0442\u0440\u0438\u0439 \u0440\u0435\u0434",
-col_before_desc:"\u0412\u043C\u044A\u043A\u043D\u0438 \u043A\u043E\u043B\u043E\u043D\u0430 \u043F\u0440\u0435\u0434\u0438",
-col_after_desc:"\u0412\u043C\u044A\u043A\u043D\u0438 \u043A\u043E\u043B\u043E\u043D\u0430 \u0441\u043B\u0435\u0434",
-delete_col_desc:"\u0418\u0437\u0442\u0440\u0438\u0439 \u043A\u043E\u043B\u043E\u043D\u0430",
-split_cells_desc:"\u0420\u0430\u0437\u0434\u0435\u043B\u0438 \u0441\u043B\u0435\u0442\u0438 \u043A\u043B\u0435\u0442\u043A\u0438",
-merge_cells_desc:"\u0421\u043B\u0435\u0439 \u043A\u043B\u0435\u0442\u043A\u0438",
-row_desc:"\u0421\u0432\u043E\u0439\u0441\u0442\u0432\u0430 \u043D\u0430 \u0440\u0435\u0434\u0430",
-cell_desc:"\u0421\u0432\u043E\u0439\u0441\u0442\u0432\u0430 \u043D\u0430 \u043A\u043B\u0435\u0442\u043A\u0430\u0442\u0430",
-props_desc:"\u0421\u0432\u043E\u0439\u0441\u0442\u0432\u0430 \u043D\u0430 \u0442\u0430\u0431\u043B\u0438\u0446\u0430\u0442\u0430",
-paste_row_before_desc:"\u041F\u043E\u0441\u0442\u0430\u0432\u0438 \u0440\u0435\u0434 \u043F\u0440\u0435\u0434\u0438",
-paste_row_after_desc:"\u041F\u043E\u0441\u0442\u0430\u0432\u0438 \u0440\u0435\u0434 \u0441\u043B\u0435\u0434",
-cut_row_desc:"\u041E\u0442\u0440\u0435\u0436\u0438 \u0440\u0435\u0434",
-copy_row_desc:"\u041A\u043E\u043F\u0438\u0440\u0430\u0439 \u0440\u0435\u0434",
-del:"\u0418\u0437\u0442\u0440\u0438\u0439 \u0442\u0430\u0431\u043B\u0438\u0446\u0430",
-row:"\u0420\u0435\u0434",
-col:"\u041A\u043E\u043B\u043E\u043D\u0430",
-cell:"\u041A\u043B\u0435\u0442\u043A\u0430"
-},
-autosave:{
-unload_msg:"\u041F\u0440\u043E\u043C\u0435\u043D\u0438\u0442\u0435 \u043A\u043E\u0438\u0442\u043E \u043D\u0430\u043F\u0440\u0430\u0432\u0438\u0445\u0442\u0435 \u0449\u0435 \u0441\u0435 \u0437\u0430\u0433\u0443\u0431\u044F\u0442 \u0430\u043A\u043E \u043E\u0442\u0438\u0434\u0435\u0442\u0435 \u043D\u0430 \u0434\u0440\u0443\u0433\u0430 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430."
-},
-fullscreen:{
-desc:"\u0412\u043A\u043B./\u0418\u0437\u043A\u043B. \u0446\u044F\u043B \u0435\u043A\u0440\u0430\u043D"
-},
-media:{
-desc:"\u0412\u043C\u044A\u043A\u043D\u0438/\u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u0430\u0439 \u043C\u0435\u0434\u0438\u0430\u0442\u0430",
-edit:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u0430\u043A \u043C\u0435\u0434\u0438\u0430"
-},
-fullpage:{
-desc:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043D\u0430 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430"
-},
-template:{
-desc:"\u0412\u043C\u044A\u043A\u043D\u0438 \u0441\u044A\u0434\u044A\u0440\u0436\u0430\u043D\u0438\u0435\u0442\u043E \u043D\u0430 \u0442\u0435\u043C\u043F\u043B\u0435\u0439\u0442"
-},
-visualchars:{
-desc:"\u0412\u043A\u043B./\u0418\u0437\u043A\u043B. \u043D\u0430 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u043D\u0438\u0442\u0435 \u0441\u0438\u043C\u0432\u043E\u043B\u0438."
-},
-spellchecker:{
-desc:"\u0412\u043A\u043B./\u0418\u0437\u043A\u043B. \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u043D\u0430 \u043F\u0440\u0430\u0432\u043E\u043F\u0438\u0441\u0430",
-menu:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043D\u0430 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0430\u0442\u0430 \u043D\u0430 \u043F\u0440\u0430\u0432\u043E\u043F\u0438\u0441",
-ignore_word:"\u0418\u0433\u043D\u043E\u0440\u0438\u0440\u0430\u0439 \u0434\u0443\u043C\u0430",
-ignore_words:"\u0418\u0433\u043D\u043E\u0440\u0438\u0440\u0430\u0439 \u0432\u0441\u0438\u0447\u043A\u0438",
-langs:"\u0415\u0437\u0438\u0446\u0438",
-wait:"\u041C\u043E\u043B\u044F \u0438\u0437\u0447\u0430\u043A\u0430\u0439\u0442\u0435...",
-sug:"\u041F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F",
-no_sug:"\u041D\u044F\u043C\u0430 \u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F",
-no_mpell:"\u041D\u044F\u043C\u0430 \u0433\u0440\u0435\u0448\u043D\u043E \u043D\u0430\u043F\u0438\u0441\u0430\u043D\u0438 \u0434\u0443\u043C\u0438."
-},
-pagebreak:{
-desc:"\u0412\u043C\u044A\u043A\u043D\u0438 \u043D\u043E\u0432\u0430 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/bs.js b/chrome/content/zotero/tinymce/langs/bs.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({bs:{
-common:{
-edit_confirm:"\u017Delite li koristiti WYSIWYG na\u010Din rada za ovo tekstualno polje?",
-apply:"Primjeni",
-insert:"Umetni",
-update:"Obnovi",
-cancel:"Odustani",
-close:"Zatvori",
-browse:"Pregled",
-class_name:"Klasa",
-not_set:"-- Nije postavljeno --",
-clipboard_msg:"Kopiraj/Izre\u017Ei/Zalijepi nije dostupno Mozilla i Firefox preglednicima.\nVi\u0161e informacija?",
-clipboard_no_support:"Trenuta\u010Dno va\u0161 preglednik ne podr\u017Eava ovu opciju, poku\u0161ajte koristiti tipkovni\u010Dku kraticu.",
-popup_blocked:"Oprostite, izgleda da je va\u0161 popup-blocker onemogu\u0107io prozor u sklopu ovog programa. Morate onemogu\u0107iti blokiranje popup prozora da bi u potpunosti iskoristili ovaj alat.",
-invalid_data:"Gre\u0161ka: Une\u0161ene su nevaljane vrijednosti, ozna\u010Dene su crvenom bojom.",
-more_colors:"Vi\u0161e boja"
-},
-contextmenu:{
-align:"Poravnavanje",
-left:"Lijevo",
-center:"Sredina",
-right:"Desno",
-full:"Puno"
-},
-insertdatetime:{
-date_fmt:"%d.%m.%Y.",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Umetni datum",
-inserttime_desc:"Umetni vrijeme",
-months_long:"sije\u010Danj,velja\u010Da,o\u017Eujak,travanj,svibanj,lipanj,srpanj,kolovoz,rujan,listopad,studeni,prosinac",
-months_short:"sij,velj,o\u017Eu,tra,svi,lip,srp,kol,ruj,lis,stu,pro",
-day_long:"nedjelja,ponedjeljak,utorak,srijeda,\u010Detvrtak,petak,subota,nedjelja",
-day_short:"ned,pon,uto,sri,\u010Det,pet,sub,ned"
-},
-print:{
-print_desc:"Ispis"
-},
-preview:{
-preview_desc:"Prikaz"
-},
-directionality:{
-ltr_desc:"S lijeva na desno",
-rtl_desc:"S desna na lijevo"
-},
-layer:{
-insertlayer_desc:"Umetni novi sloj",
-forward_desc:"Pomakni naprijed",
-backward_desc:"Pomakni natrag",
-absolute_desc:"Uklju\u010Di/isklju\u010Di apsolutno pozicioniranje",
-content:"Novi sloj..."
-},
-save:{
-save_desc:"Spremi",
-cancel_desc:"Odustani od svih promjena"
-},
-nonbreaking:{
-nonbreaking_desc:"Umetni razmak"
-},
-iespell:{
-iespell_desc:"Pokreni provjeru pravopisa",
-download:"Provjera pravopisa nije postaljena. Postaviti sada?"
-},
-advhr:{
-advhr_desc:"Vodoravna crta"
-},
-emotions:{
-emotions_desc:"Emocije"
-},
-searchreplace:{
-search_desc:"Prona\u0111i",
-replace_desc:"Prona\u0111i/Zamijeni"
-},
-advimage:{
-image_desc:"Umetni/uredi sliku"
-},
-advlink:{
-link_desc:"Insert/edit link"
-},
-xhtmlxtras:{
-cite_desc:"Citat",
-abbr_desc:"Kratica",
-acronym_desc:"Akronim",
-del_desc:"Brisanje",
-ins_desc:"Unos",
-attribs_desc:"Umetni/uredi atribute"
-},
-style:{
-desc:"Uredi CSS"
-},
-paste:{
-paste_text_desc:"Zalijepi kao obi\u010Dni tekst",
-paste_word_desc:"Zalijepi iz Worda",
-selectall_desc:"Odaberi sve"
-},
-paste_dlg:{
-text_title:"Koristite CTRL+V na tipkovnici da zalijepite tekst u prozor.",
-text_linebreaks:"Zadr\u017Ei prijelome",
-word_title:"Koristite CTRL+V na tipkovnici da zalijepite tekst u prozor."
-},
-table:{
-desc:"Nova tablica",
-row_before_desc:"Umetni redak iznad",
-row_after_desc:"Umetni redak ispod",
-delete_row_desc:"Izbri\u0161i redak",
-col_before_desc:"Umetni stupac lijevo",
-col_after_desc:"Umetni stupac desno",
-delete_col_desc:"Ukloni stupac",
-split_cells_desc:"Razdvoji spojene \u0107elije",
-merge_cells_desc:"Spoji \u0107elije",
-row_desc:"Svojstva retka",
-cell_desc:"Svojstva \u0107elije",
-props_desc:"Svojstva tablice",
-paste_row_before_desc:"Zalijepi redak iznad",
-paste_row_after_desc:"Zalijepi redak ispod",
-cut_row_desc:"Izre\u017Ei redak",
-copy_row_desc:"Kopiraj redak",
-del:"Izbri\u0161i tablicu",
-row:"Redak",
-col:"Stupac",
-cell:"\u0106elija"
-},
-autosave:{
-unload_msg:"Promjene u dokumentu \u0107e biti izgubljene ako iza\u0111ete s ove stranice."
-},
-fullscreen:{
-desc:"Uklju\u010Di/isklju\u010Di prikaz preko cijelog ekrana"
-},
-media:{
-desc:"Insert / edit embedded media",
-edit:"Edit embedded media"
-},
-fullpage:{
-desc:"Svojstva dokumenta"
-},
-template:{
-desc:"Umetni sadr\u017Eaj iz predlo\u017Eak"
-},
-visualchars:{
-desc:"Vizualni kontrolni znakovi uklju\u010Deni/isklju\u010Deni."
-},
-spellchecker:{
-desc:"Uklju\u010Di/isklju\u010Di provjeru pravopisa",
-menu:"Postavke provjere pravopisa",
-ignore_word:"Zanemari rije\u010D",
-ignore_words:"Zanemari sver",
-langs:"Jezici",
-wait:"Pri\u010Dekajte...",
-sug:"Prijedlozi",
-no_sug:"Nema prijedloga",
-no_mpell:"Nije prona\u0111ena nijedna pravopisna gre\u0161ke."
-},
-pagebreak:{
-desc:"Umetni prijelom."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/ca.js b/chrome/content/zotero/tinymce/langs/ca.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({ca:{
-common:{
-edit_confirm:"Vols utilitzar el mode visible (WYSIWYG) per a aquesta \u00E0rea de text?",
-apply:"Aplica",
-insert:"Insereix",
-update:"Actualitza",
-cancel:"Cancel\u00B7la",
-close:"Tanca",
-browse:"Explora",
-class_name:"Classe",
-not_set:"-- Sense establir --",
-clipboard_msg:"Copia/Retalla/Enganxa no est\u00E0 disponible en Mozilla/Firefox.\nVols m\u00E9s informaci\u00F3 sobre aquest tema?",
-clipboard_no_support:"Actualment no est\u00E0 suportat pel teu navegador, utilitza les dreceres de teclat en lloc seu.",
-popup_blocked:"Ho sentim, per\u00F2 ens hem adonat que el teu bloquejador de finestres emergents ha desactivat una finestra que proporciona funcionalitat a l'aplicaci\u00F3. Haur\u00E0s de desactivar el blocatge de finestres emergents en aquest lloc per tal d'utilitzar plenament aquesta eina.",
-invalid_data:"Error: Has introdu\u00EFt valors incorrectes, te'ls marquem en vermell.",
-more_colors:"M\u00E9s colors"
-},
-contextmenu:{
-align:"Alineaci\u00F3",
-left:"Esquerra",
-center:"Centrat",
-right:"Dreta",
-full:"Justificat"
-},
-insertdatetime:{
-date_fmt:"%d-%m-%Y",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Insereix la data",
-inserttime_desc:"Insereix l'hora",
-months_long:"Gener,Febrer,Mar\u00E7,Abril,Maig,Juny,Juliol,Agost,Setembre,Octubre,Novembre,Desembre",
-months_short:"Gen,Feb,Mar,Abr,Mai,Jun,Jul,Ago,Set,Oct,Nov,Des",
-day_long:"Diumenge,Dilluns,Dimarts,Dimecres,Dijous,Divendres,Dissabte,Diumenge",
-day_short:"Dmg,Dll,Dmt,Dmc,Djs,Dvs,Dss,Dmg"
-},
-print:{
-print_desc:"Imprimeix"
-},
-preview:{
-preview_desc:"Vista pr\u00E8via"
-},
-directionality:{
-ltr_desc:"Direcci\u00F3 d'esquerra a dreta",
-rtl_desc:"Direcci\u00F3 de dreta a esquerra"
-},
-layer:{
-insertlayer_desc:"Insereix capa nova",
-forward_desc:"Despla\u00E7a endavant",
-backward_desc:"Despla\u00E7a endarrere",
-absolute_desc:"Canvia el posicionament absolut",
-content:"Nova capa..."
-},
-save:{
-save_desc:"Desa",
-cancel_desc:"Cancel\u00B7la tots els canvis"
-},
-nonbreaking:{
-nonbreaking_desc:"Insereix espai no separable"
-},
-iespell:{
-iespell_desc:"Comprovaci\u00F3 ortogr\u00E0fica",
-download:"No s'ha detectat ieSpell. Vols instal\u00B7lar-lo ara?"
-},
-advhr:{
-advhr_desc:"Regle horitzontal"
-},
-emotions:{
-emotions_desc:"Emoticones"
-},
-searchreplace:{
-search_desc:"Busca",
-replace_desc:"Busca/Substitueix"
-},
-advimage:{
-image_desc:"Insereix/edita imatge"
-},
-advlink:{
-link_desc:"Insereix/edita enlla\u00E7"
-},
-xhtmlxtras:{
-cite_desc:"Citaci\u00F3",
-abbr_desc:"Abreujament",
-acronym_desc:"Acr\u00F2nim",
-del_desc:"Supressi\u00F3",
-ins_desc:"Inserci\u00F3",
-attribs_desc:"Insereix/Edita Atributs"
-},
-style:{
-desc:"Edita l'Estil CSS"
-},
-paste:{
-paste_text_desc:"Enganxa com a Text Planer",
-paste_word_desc:"Enganxa des de Word",
-selectall_desc:"Selecciona-ho Tot"
-},
-paste_dlg:{
-text_title:"Utilitza CTRL+V al teclat per enganxar el text a la finestra.",
-text_linebreaks:"Mantingues els salts de l\u00EDnia",
-word_title:"Utilitza CTRL+V al teclat per enganxar el text a la finestra."
-},
-table:{
-desc:"Insereix una nova taula",
-row_before_desc:"Insereix fila abans",
-row_after_desc:"Insereix fila despr\u00E9s",
-delete_row_desc:"Suprimeix fila",
-col_before_desc:"Insereix columna abans",
-col_after_desc:"Insereix columna despr\u00E9s",
-delete_col_desc:"Elimina columna",
-split_cells_desc:"Parteix les cel\u00B7les refoses de la taula",
-merge_cells_desc:"Refon les cel\u00B7les de la taula",
-row_desc:"Propietats de la fila de la taula",
-cell_desc:"Propietats de la cel\u00B7la de la taula",
-props_desc:"Propietats de la taula",
-paste_row_before_desc:"Enganxa la fila de la taula abans",
-paste_row_after_desc:"Enganxa la fila de la taula despr\u00E9s",
-cut_row_desc:"Retalla la fila de la taula",
-copy_row_desc:"Copia la fila de la taula",
-del:"Suprimeix la taula",
-row:"Fila",
-col:"Columna",
-cell:"Cel\u00B7la"
-},
-autosave:{
-unload_msg:"Els canvis que has fet es perdran si surts d'aquesta p\u00E0gina."
-},
-fullscreen:{
-desc:"Mode de pantalla completa"
-},
-media:{
-desc:"Insereix / edita mitj\u00E0 encastat",
-edit:"Edita mitj\u00E0 encastat"
-},
-fullpage:{
-desc:"Propietats del document"
-},
-template:{
-desc:"Insereix contingut predefinit de plantilla"
-},
-visualchars:{
-desc:"Car\u00E0cters de control visual des/activats."
-},
-spellchecker:{
-desc:"Des/activa el corrector ortogr\u00E0fic",
-menu:"Configuraci\u00F3 del corrector",
-ignore_word:"Ignora",
-ignore_words:"Ignora-les totes",
-langs:"Idiomes",
-wait:"Espera, si et plau...",
-sug:"Suggeriments",
-no_sug:"No hi ha cap suggeriment",
-no_mpell:"No s'ha trobat cap incorrecci\u00F3."
-},
-pagebreak:{
-desc:"Insereix salt de p\u00E0gina."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/ch.js b/chrome/content/zotero/tinymce/langs/ch.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({ch:{
-common:{
-edit_confirm:"\u4F60\u8981\u5728\u6B64\u6587\u5B57\u7F16\u8F91\u533A\u542F\u7528\u6240\u89C1\u5373\u6240\u5F97\u6A21\u5F0F\uFF1F ",
-apply:"\u5E94\u7528",
-insert:"\u63D2\u5165",
-update:"\u66F4\u65B0",
-cancel:"\u53D6\u6D88",
-close:"\u5173\u95ED",
-browse:"\u9884\u89C8",
-class_name:"\u7C7B\u522B",
-not_set:"--\u672A\u8BBE\u5B9A--",
-clipboard_msg:"\u590D\u5236\u3001\u526A\u4E0B\u548C\u8D34\u4E0A\u529F\u80FD\u5728Mozilla\u548CFirefox\u4E2D\u65E0\u6CD5\u4F7F\u7528\u3002 \n\u60F3\u66F4\u6DF1\u5165\u4E86\u89E3\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F ",
-clipboard_no_support:"\u76EE\u524D\u8FD9\u4E2A\u6D4F\u89C8\u5668\u65E0\u6CD5\u652F\u6301\uFF0C\u8BF7\u7528\u952E\u76D8\u5FEB\u6377\u952E\u3002 ",
-popup_blocked:"\u62B1\u6B49\uFF0C\u5FEB\u6377\u529F\u80FD\u5728\u4F60\u7684\u7CFB\u7EDF\u4E0A\u88AB\u5C01\u9501\uFF0C\u4F7F\u7A0B\u5E8F\u65E0\u6CD5\u6B63\u5E38\u4F7F\u7528\uFF0C\u4F60\u9700\u8981\u6682\u65F6\u89E3\u9664\u5FEB\u6377\u5C01\u9501\uFF0C\u4F7F\u5DE5\u5177\u80FD\u6B63\u5E38\u4F7F\u7528\u3002 ",
-invalid_data:"\u9519\u8BEF\uFF1A\u8F93\u5165\u65E0\u6548\u7684\u503C\uFF0C\u4EE5\u7EA2\u8272\u5B57\u8868\u793A\u3002 ",
-more_colors:"\u66F4\u591A\u989C\u8272"
-},
-contextmenu:{
-align:"\u5BF9\u9F50\u65B9\u5F0F",
-left:"\u9760\u5DE6\u5BF9\u9F50",
-center:"\u7F6E\u4E2D",
-right:"\u9760\u53F3\u5BF9\u9F50",
-full:"\u5DE6\u53F3\u5BF9\u9F50"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"\u63D2\u5165\u4ECA\u5929\u65E5\u671F",
-inserttime_desc:"\u63D2\u5165\u73B0\u5728\u65F6\u95F4",
-months_long:"\u4E00\u6708,\u4E8C\u6708,\u4E09\u6708,\u56DB\u6708,\u4E94\u6708,\u516D\u6708,\u4E03\u6708,\u516B\u6708,\u4E5D\u6708,\u5341\u6708,\u5341\u4E00\u6708,\u5341\u4E8C\u6708",
-months_short:"1\u6708,2\u6708,3\u6708,4\u6708,5\u6708,6\u6708,7\u6708,8\u6708,9\u6708,10\u6708,11\u6708,12\u6708",
-day_long:"\u661F\u671F\u65E5,\u661F\u671F\u4E00,\u661F\u671F\u4E8C,\u661F\u671F\u4E09,\u661F\u671F\u56DB,\u661F\u671F\u4E94,\u661F\u671F\u516D,\u661F\u671F\u65E5",
-day_short:"\u5468\u65E5,\u5468\u4E00,\u5468\u4E8C,\u5468\u4E09,\u5468\u56DB,\u5468\u4E94,\u5468\u516D,\u5468\u65E5"
-},
-print:{
-print_desc:"\u5217\u5370"
-},
-preview:{
-preview_desc:"\u9884\u89C8"
-},
-directionality:{
-ltr_desc:"\u6587\u5B57\u4ECE\u5DE6\u5230\u53F3",
-rtl_desc:"\u6587\u5B57\u4ECE\u53F3\u5230\u5DE6"
-},
-layer:{
-insertlayer_desc:"\u63D2\u5165\u56FE\u5C42",
-forward_desc:"\u524D\u79FB",
-backward_desc:"\u540E\u79FB",
-absolute_desc:"\u5207\u6362\u7EDD\u5BF9\u5BFB\u5740",
-content:"\u65B0\u589E\u56FE\u5C42..."
-},
-save:{
-save_desc:"\u50A8\u5B58",
-cancel_desc:"\u53D6\u6D88\u6240\u6709\u53D8\u66F4"
-},
-nonbreaking:{
-nonbreaking_desc:"\u63D2\u5165\u975E\u622A\u65AD\u7684\u7A7A\u683C\u7B26"
-},
-iespell:{
-iespell_desc:"\u6267\u884C\u62FC\u5B57\u68C0\u67E5",
-download:"\u4FA6\u6D4B\u4E0D\u5230ieSpell\u5957\u4EF6\uFF0C\u662F\u5426\u7ACB\u5373\u5B89\u88C5\uFF1F "
-},
-advhr:{
-advhr_desc:"\u6C34\u5E73\u5206\u9694\u7EBF"
-},
-emotions:{
-emotions_desc:"\u8868\u60C5"
-},
-searchreplace:{
-search_desc:"\u641C\u5BFB",
-replace_desc:"\u641C\u5BFB/\u53D6\u4EE3"
-},
-advimage:{
-image_desc:"\u63D2\u5165/\u7F16\u8F91\u56FE\u7247"
-},
-advlink:{
-link_desc:"\u63D2\u5165/\u7F16\u8F91\u94FE\u63A5"
-},
-xhtmlxtras:{
-cite_desc:"\u5F15\u7528",
-abbr_desc:"\u7F29\u5199",
-acronym_desc:"\u9996\u5B57\u6BCD\u7F29\u5199",
-del_desc:"\u5220\u9664",
-ins_desc:"\u63D2\u5165",
-attribs_desc:"\u63D2\u5165/\u7F16\u8F91\u5C5E\u6027"
-},
-style:{
-desc:"\u7F16\u8F91CSS\u6837\u5F0F\u8868\u5355\u5355"
-},
-paste:{
-paste_text_desc:"\u4EE5\u7EAF\u6587\u5B57\u8D34\u4E0A",
-paste_word_desc:"\u4EE5Word\u683C\u5F0F\u8D34\u4E0A",
-selectall_desc:"\u5168\u9009"
-},
-paste_dlg:{
-text_title:"\u7528Ctrl+V\u6309\u952E\u7EC4\u5408\u5C06\u6587\u5B57\u8D34\u5165\u89C6\u7A97\u4E2D\u3002 ",
-text_linebreaks:"\u4FDD\u7559\u6362\u884C\u7B26\u53F7",
-word_title:"\u7528Ctrl+V\u6309\u952E\u7EC4\u5408\u5C06\u6587\u5B57\u8D34\u5165\u89C6\u7A97\u4E2D\u3002 "
-},
-table:{
-desc:"\u63D2\u5165\u65B0\u8868\u683C",
-row_before_desc:"\u63D2\u5165\u5217\u4E8E\u524D",
-row_after_desc:"\u63D2\u5165\u5217\u4E8E\u540E",
-delete_row_desc:"\u5220\u9664\u672C\u5217",
-col_before_desc:"\u63D2\u5165\u680F\u4E8E\u524D",
-col_after_desc:"\u63D2\u5165\u680F\u4E8E\u540E",
-delete_col_desc:"\u5220\u9664\u672C\u680F",
-split_cells_desc:"\u5206\u5272\u5355\u5143\u683C",
-merge_cells_desc:"\u5408\u5E76\u5355\u5143\u683C",
-row_desc:"\u8868\u683C\u5217\u5C5E\u6027",
-cell_desc:"\u5355\u5143\u683C\u5C5E\u6027",
-props_desc:"\u8868\u683C\u5C5E\u6027",
-paste_row_before_desc:"\u8D34\u5165\u5217\u4E8E\u524D",
-paste_row_after_desc:"\u8D34\u5165\u5217\u4E8E\u540E",
-cut_row_desc:"\u526A\u4E0B\u6B64\u5217",
-copy_row_desc:"\u590D\u5236\u6B64\u5217",
-del:"\u5220\u9664\u8868\u683C",
-row:"\u5217",
-col:"\u680F",
-cell:"\u5355\u5143\u683C"
-},
-autosave:{
-unload_msg:"\u5982\u679C\u79BB\u5F00\u8BE5\u9875\uFF0C\u5C06\u5BFC\u81F4\u6240\u6709\u4FEE\u6539\u5168\u90E8\u4E22\u5931\u3002 "
-},
-fullscreen:{
-desc:"\u5207\u6362\u5168\u5C4F\u5E55\u6A21\u5F0F"
-},
-media:{
-desc:"\u63D2\u5165/\u7F16\u8F91\u5F71\u7247",
-edit:"\u7F16\u8F91\u5F71\u7247"
-},
-fullpage:{
-desc:"\u6587\u6863\u5C5E\u6027"
-},
-template:{
-desc:"\u63D2\u5165\u9884\u5148\u5B9A\u4E49\u7684\u6A21\u677F\u5185\u5BB9"
-},
-visualchars:{
-desc:"\u53EF\u89C1\u63A7\u5236\u5B57\u7B26\u5F00/\u5173\u3002 "
-},
-spellchecker:{
-desc:"\u5207\u6362\u62FC\u5199\u68C0\u67E5",
-menu:"\u62FC\u5199\u68C0\u67E5\u8BBE\u5B9A",
-ignore_word:"\u5FFD\u7565\u5B57",
-ignore_words:"\u5168\u90E8\u5FFD\u7565",
-langs:"\u8BED\u8A00",
-wait:"\u8BF7\u7A0D\u540E...",
-sug:"\u5EFA\u8BAE",
-no_sug:"\u65E0\u5EFA\u8BAE",
-no_mpell:"\u65E0\u62FC\u5199\u9519\u8BEF\u3002 "
-},
-pagebreak:{
-desc:"\u63D2\u5165\u5206\u9875\u7B26\u3002 "
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/cs.js b/chrome/content/zotero/tinymce/langs/cs.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({cs:{
-common:{
-edit_confirm:"Chcete pou\u017E\u00EDt pro tento text WYSIWYG editaci?",
-apply:"Pou\u017E\u00EDt",
-insert:"Vlo\u017Eit",
-update:"Aktualizovat",
-cancel:"Zru\u0161it",
-close:"Zav\u0159\u00EDt",
-browse:"Proch\u00E1zet",
-class_name:"T\u0159\u00EDda",
-not_set:"- Nenastaveno -",
-clipboard_msg:"Funkce kop\u00EDrovat/vyjmout/vlo\u017Eit nejsou pou\u017Eiteln\u00E9 v Mozille a Firefoxu.\nChcete v\u00EDce informac\u00ED?",
-clipboard_no_support:"Tato funkce nen\u00ED va\u0161\u00EDm prohl\u00ED\u017Ee\u010Dem podporov\u00E1na. Pou\u017Eijte kl\u00E1vesov\u00E9 zkratky.",
-popup_blocked:"Blokov\u00E1n\u00ED vyskakovac\u00EDch oken neumo\u017Enilo otev\u0159\u00EDt okno, nutn\u00E9 pro funkci aplikace. Pro pln\u00E9 vyu\u017Eit\u00ED mo\u017Enost\u00ED vypn\u00C4\u009Bte blokov\u00E1n\u00ED vyskakovac\u00EDch oken pro tento web.",
-invalid_data:"Chyba: Vlo\u017Een\u00E1 chybn\u00E1 data jsou ozna\u010Dena \u010Derven\u011B.",
-more_colors:"V\u00EDce barev"
-},
-contextmenu:{
-align:"Zarovn\u00E1n\u00ED",
-left:"Doleva",
-center:"Na st\u0159ed",
-right:"Doprava",
-full:"Do bloku"
-},
-insertdatetime:{
-date_fmt:"%d.%m.%Y",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Vlo\u017Eit datum",
-inserttime_desc:"Vlo\u017Eit \u010Das",
-months_long:"Leden,\u00DAnor,B\u0159ezen,Duben,Kv\u011Bten,\u010Cerven,\u010Cervenec,Srpen,Z\u00E1\u0159\u00ED,\u0158\u00EDjen,Listopad,Prosinec",
-months_short:"Led,\u00DAno,B\u0159e,Dub,Kv\u011B,\u010Cer,\u010Cvc,Srp,Z\u00E1\u0159,\u0158\u00EDj,Lis,Pro",
-day_long:"Ned\u011Ble,Pond\u011Bl\u00ED,\u00DAter\u00FD,St\u0159eda,\u010Ctvrtek,P\u00E1tek,Sobota,Ned\u011Ble",
-day_short:"Ne,Po,\u00DAt,St,\u010Ct,P\u00E1,So,Ne"
-},
-print:{
-print_desc:"Tisknout"
-},
-preview:{
-preview_desc:"N\u00E1hled"
-},
-directionality:{
-ltr_desc:"Sm\u011Br zleva doprava",
-rtl_desc:"Sm\u011Br zprava doleva"
-},
-layer:{
-insertlayer_desc:"Vlo\u017Eit novou vrstvu",
-forward_desc:"P\u0159esunout doP\u0159edu",
-backward_desc:"P\u0159esunout dozadu",
-absolute_desc:"P\u0159epnout absolutn\u00ED pozici",
-content:"Nov\u00E1 vrstva..."
-},
-save:{
-save_desc:"Ulo\u017Eit",
-cancel_desc:"Zru\u0161it v\u0161echny zm\u011Bny"
-},
-nonbreaking:{
-nonbreaking_desc:"Vlo\u017Eit pevnou mezeru"
-},
-iespell:{
-iespell_desc:"Kontrolovat pravopis",
-download:"ieSpell nebyl detekov\u00E1n. Chcete ho nainstalovat?"
-},
-advhr:{
-advhr_desc:"Vodorovn\u00FD odd\u011Blova\u010D"
-},
-emotions:{
-emotions_desc:"Emotikony"
-},
-searchreplace:{
-search_desc:"Hledat",
-replace_desc:"Naj\u00EDt/nahradit"
-},
-advimage:{
-image_desc:"Vlo\u017Eit/upravit obr\u00E1zek"
-},
-advlink:{
-link_desc:"Vlo\u017Eit/upravit odkaz"
-},
-xhtmlxtras:{
-cite_desc:"Citace",
-abbr_desc:"Zkratka",
-acronym_desc:"Akronym",
-del_desc:"Vymaz\u00E1n\u00ED",
-ins_desc:"Vlo\u017Een\u00ED",
-attribs_desc:"Vlo\u017Eit/upravit atributy"
-},
-style:{
-desc:"Upravit CSS styl"
-},
-paste:{
-paste_text_desc:"Vlo\u017Eit prost\u00FD text",
-paste_word_desc:"Vlo\u017Eit z Wordu",
-selectall_desc:"Vybrat v\u0161e"
-},
-paste_dlg:{
-text_title:"Pou\u017Eijte CTRL+V pro vlo\u017Een\u00ED textu do okna.",
-text_linebreaks:"Zachovat \u0159\u00E1dkov\u00E1n\u00ED",
-word_title:"Pou\u017Eijte CTRL+V pro vlo\u017Een\u00ED textu do okna."
-},
-table:{
-desc:"Vlo\u017Eit novou tabulku",
-row_before_desc:"Vlo\u017Eit \u0159\u00E1dek P\u0159ed",
-row_after_desc:"Vlo\u017Eit \u0159\u00E1dek za",
-delete_row_desc:"Vymazat \u0159\u00E1dek",
-col_before_desc:"Vlo\u017Eit sloupec P\u0159ed",
-col_after_desc:"Vlo\u017Eit sloupec za",
-delete_col_desc:"Vymazat sloupec",
-split_cells_desc:"Rozd\u011Blit bu\u0148ky",
-merge_cells_desc:"Slou\u010Dit bu\u0148ky",
-row_desc:"Vlastnosti \u0159\u00E1dku",
-cell_desc:"Vlastnosti bu\u0148ky",
-props_desc:"Vlastnosti tabulky",
-paste_row_before_desc:"Vlo\u017Eit \u0159\u00E1dek P\u0159ed",
-paste_row_after_desc:"Vlo\u017Eit \u0159\u00E1dek za",
-cut_row_desc:"Vyjmout \u0159\u00E1dek",
-copy_row_desc:"Kop\u00EDrovat \u0159\u00E1dek",
-del:"Vymazat tabulku",
-row:"\u0158\u00E1dek",
-col:"Sloupec",
-cell:"Bu\u0148ka"
-},
-autosave:{
-unload_msg:"Proveden\u00E9 zm\u011Bny mohou b\u00FDt ztraceny, jestli\u017Ee opust\u00EDte tuto str\u00E1nku."
-},
-fullscreen:{
-desc:"P\u0159epnout na celostr\u00E1nkov\u00E9 zobrazen\u00ED"
-},
-media:{
-desc:"Vlo\u017Eit/editovat m\u00E9dia",
-edit:"Editovat m\u00E9dia"
-},
-fullpage:{
-desc:"Vlastnosti dokumentu"
-},
-template:{
-desc:"Vlo\u017Eit P\u0159eddefinovan\u00FD obsah ze \u0161ablony"
-},
-visualchars:{
-desc:"Zobrazen\u00ED skryt\u00FDch znak\u016F zap/vyp"
-},
-spellchecker:{
-desc:"Zapnout kontrolu textu",
-menu:"Nastaven\u00ED kontroly textu",
-ignore_word:"Ignorovat slovo",
-ignore_words:"Ignorovat v\u0161e",
-langs:"Jazyky",
-wait:"\u010Cekejte pros\u00EDm...",
-sug:"N\u00E1pov\u011Bda",
-no_sug:"\u0139\u02DD\u00E1dn\u00E1 n\u00E1pov\u011Bda",
-no_mpell:"Nebyly nalezeny \u017E\u00E1dn\u00E9 chyby."
-},
-pagebreak:{
-desc:"Vlo\u017Eit konec str\u00E1nky"
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/da.js b/chrome/content/zotero/tinymce/langs/da.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({da:{
-common:{
-edit_confirm:"Vil du bruge den avancerede tekst redigering?",
-apply:"Anvend",
-insert:"Inds\u00E6t",
-update:"Opdater",
-cancel:"Annuller",
-close:"Luk",
-browse:"Gennemse",
-class_name:"Klasse",
-not_set:"-- Ikke sat --",
-clipboard_msg:"Kopier/Klip/inds\u00E6t er ikke muligt i Mozilla eller Firefox.\nVil du have mere information om dette emne?",
-clipboard_no_support:"P\u00E5 nuv\u00E6rende tidspunkt ikke supporteret af din browser. Anvend istedet genvejene p\u00E5 tastaturet.",
-popup_blocked:"Undskyld, men vi har noteret os at din popup-blocker har forhindret et vindue, der giver programmet funktionalitet, at \u00E5bne op. Hvis du vil have den fulde funktionalitet m\u00E5 du sl\u00E5 popup-blockeren fra for dette websted.",
-invalid_data:"Fejl: Forkerte v\u00E6rdier indtastet i felter markeret med r\u00F8d.",
-more_colors:"Flere farver"
-},
-contextmenu:{
-align:"Justering",
-left:"Venstre",
-center:"Centreret",
-right:"H\u00F8jre",
-full:"Lige marginer"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Inds\u00E6t dato",
-inserttime_desc:"Inds\u00E6t klokkeslet",
-months_long:"Januar,Februar,Marts,April,Maj,Juni,Juli,August,September,Oktober,November,December",
-months_short:"Jan,Feb,Mar,Apr,Maj,Jun,Jul,Aug,Sep,Okt,Nov,Dec",
-day_long:"S\u00F8ndag,Mandag,Tirsdag,Onsdag,Torsdag,Fredag,L\u00F8rdag,S\u00F8ndag",
-day_short:"S\u00F8n,Man,Tir,Ons,Tors,Fre,L\u00F8r,S\u00F8n"
-},
-print:{
-print_desc:"Udskriv"
-},
-preview:{
-preview_desc:"Vis udskrift"
-},
-directionality:{
-ltr_desc:"Retning venstre mod h\u00F8jre",
-rtl_desc:"Retning h\u00F8jre mod venstre"
-},
-layer:{
-insertlayer_desc:"Inds\u00E6t ny lag",
-forward_desc:"Flyt fremad",
-backward_desc:"Flyt bagud",
-absolute_desc:"Sl\u00E5 absolut positionering til/fra",
-content:"Nyt lag..."
-},
-save:{
-save_desc:"Gem",
-cancel_desc:"Annuller alle \u00E6ndringer"
-},
-nonbreaking:{
-nonbreaking_desc:"Inds\u00E6t et blanktegn"
-},
-iespell:{
-iespell_desc:"Udf\u00F8r stavekontrol",
-download:"ieSpell blev ikke fundet. Vil du installere det nu?"
-},
-advhr:{
-advhr_desc:"Horisontal linie"
-},
-emotions:{
-emotions_desc:"Hum\u00F8rikoner"
-},
-searchreplace:{
-search_desc:"S\u00F8g",
-replace_desc:"S\u00F8g/Erstat"
-},
-advimage:{
-image_desc:"Inds\u00E6t/rediger billede"
-},
-advlink:{
-link_desc:"Inds\u00E6t/rediger link"
-},
-xhtmlxtras:{
-cite_desc:"Citat",
-abbr_desc:"Forkortelse",
-acronym_desc:"Akronym",
-del_desc:"Sletning",
-ins_desc:"Inds\u00E6ttelse",
-attribs_desc:"Inds\u00E6t/rediger attributter"
-},
-style:{
-desc:"Rediger CSS stil"
-},
-paste:{
-paste_text_desc:"Inds\u00E6t ikke-formatteret tekst",
-paste_word_desc:"Inds\u00E6t fra Word",
-selectall_desc:"V\u00E6lg alle"
-},
-paste_dlg:{
-text_title:"Anvend CTRL+V p\u00E5 tastaturet for at inds\u00E6tte teksten.",
-text_linebreaks:"Bevar linieskift",
-word_title:"Anvend CTRL+V p\u00E5 tastaturet for at inds\u00E6tte teksten."
-},
-table:{
-desc:"Inds\u00E6t tabel",
-row_before_desc:"Inds\u00E6t r\u00E6kke f\u00F8r",
-row_after_desc:"Inds\u00E6t r\u00E6kke efter",
-delete_row_desc:"Slet r\u00E6kke",
-col_before_desc:"Inds\u00E6t kolonne f\u00F8r",
-col_after_desc:"Inds\u00E6t kolonne efter",
-delete_col_desc:"Slet kolonne",
-split_cells_desc:"Opdel flettede celler",
-merge_cells_desc:"Flet celler",
-row_desc:"R\u00E6kkeegenskaber",
-cell_desc:"Celleegenskaber",
-props_desc:"Tabelegenskaber",
-paste_row_before_desc:"Inds\u00E6t r\u00E6kke f\u00F8r",
-paste_row_after_desc:"Inds\u00E6t r\u00E6kke efter",
-cut_row_desc:"Klip r\u00E6kke",
-copy_row_desc:"Kopier r\u00E6kke",
-del:"Slet tabel",
-row:"R\u00E6kke",
-col:"Kolonne",
-cell:"Celle"
-},
-autosave:{
-unload_msg:"Har du foretaget nogle \u00E6ndringer vil de g\u00E5 tabt hvis du navigerer v\u00E6k fra denne side."
-},
-fullscreen:{
-desc:"Vis/skjul fuldsk\u00E6rmstilstand"
-},
-media:{
-desc:"Inds\u00E6t/rediger indlejret mediefil",
-edit:"Rediger indlejret mediefil"
-},
-fullpage:{
-desc:"Dokument egenskaber"
-},
-template:{
-desc:"Inds\u00E6t pr\u00E6defineret skabelonindhold"
-},
-visualchars:{
-desc:"Vis/Skjul visuelle kontroltegn."
-},
-spellchecker:{
-desc:"Vis/skjul stavekontrol",
-menu:"Indstillinger for stavekontrol",
-ignore_word:"Ignorer ord",
-ignore_words:"Ignorer alle",
-langs:"Sprog",
-wait:"Vent venligst...",
-sug:"Forslag",
-no_sug:"Ingen forslag",
-no_mpell:"Ingen stavefejl fundet."
-},
-pagebreak:{
-desc:"Inds\u00E6t sideskift."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/de.js b/chrome/content/zotero/tinymce/langs/de.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({de:{
-common:{
-edit_confirm:"Wollen Sie diesen Textbereich mit WYSIWYG bearbeiten?",
-apply:"\u00DCbernehmen",
-insert:"Einf\u00FCgen",
-update:"Aktualisieren",
-cancel:"Abbrechen",
-close:"Schlie\u00DFen",
-browse:"Durchsuchen",
-class_name:"Klasse",
-not_set:"-- Nicht gesetzt --",
-clipboard_msg:"Kopieren, Ausschneiden und Einf\u00FCgen sind im Mozilla Firefox nicht m\u00F6glich.\nM\u00F6chten Sie mehr \u00FCber dieses Problem erfahren?",
-clipboard_no_support:"Wird derzeit in Ihrem Browser nicht unterst\u00FCtzt. Bitte benutzen Sie stattdessen die Tastenk\u00FCrzel.",
-popup_blocked:"Leider hat Ihr Popup-Blocker ein Fenster unterbunden, das f\u00FCr den Betrieb dieses Programms n\u00F6tig ist. Bitte deaktivieren Sie den Popup-Blocker, um die volle Funktionalit\u00E4t zu erlangen.",
-invalid_data:"Fehler: Sie haben ung\u00FCltige Werte eingegeben (rot markiert).",
-more_colors:"Weitere Farben"
-},
-contextmenu:{
-align:"Ausrichtung",
-left:"Links",
-center:"Mittig",
-right:"Rechts",
-full:"Blocksatz"
-},
-insertdatetime:{
-date_fmt:"%d.%m.%Y",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Datum einf\u00FCgen",
-inserttime_desc:"Zeit einf\u00FCgen",
-months_long:"Januar,Februar,M\u00E4rz,April,Mai,Juni,Juli,August,September,Oktober,November,Dezember",
-months_short:"Jan,Feb,M\u00E4rz,Apr,Mai,Juni,Juli,Aug,Sept,Okt,Nov,Dez",
-day_long:"Sonntag,Montag,Dienstag,Mittwoch,Donnerstag,Freitag,Samstag,Sonntag",
-day_short:"So,Mo,Di,Mi,Do,Fr,Sa,So"
-},
-print:{
-print_desc:"Drucken"
-},
-preview:{
-preview_desc:"Vorschau"
-},
-directionality:{
-ltr_desc:"Schrift von links nach rechts",
-rtl_desc:"Schrift von rechts nach links"
-},
-layer:{
-insertlayer_desc:"Neue Ebene einf\u00FCgen",
-forward_desc:"Vor verschieben",
-backward_desc:"Zur\u00FCck verschieben",
-absolute_desc:"Absolute Positionierung",
-content:"Neue Ebene..."
-},
-save:{
-save_desc:"Speichern",
-cancel_desc:"Alle \u00C4nderungen verwerfen"
-},
-nonbreaking:{
-nonbreaking_desc:"Gesch\u00FCtztes Leerzeichen einf\u00FCgen"
-},
-iespell:{
-iespell_desc:"Rechtschreibpr\u00FCfung",
-download:"ieSpell konnte nicht gefunden werden. Wollen Sie es installieren?"
-},
-advhr:{
-advhr_desc:"Trennlinie"
-},
-emotions:{
-emotions_desc:"Smilies"
-},
-searchreplace:{
-search_desc:"Suchen",
-replace_desc:"Suchen/Ersetzen"
-},
-advimage:{
-image_desc:"Bild einf\u00FCgen/ersetzen"
-},
-advlink:{
-link_desc:"Link einf\u00FCgen/bearbeiten"
-},
-xhtmlxtras:{
-cite_desc:"Quellenangabe",
-abbr_desc:"Abk\u00FCrzung",
-acronym_desc:"Akronym",
-del_desc:"Entfernter Text",
-ins_desc:"Eingef\u00FCgter Text",
-attribs_desc:"Attribute einf\u00FCgen/bearbeiten"
-},
-style:{
-desc:"CSS-Styles bearbeiten"
-},
-paste:{
-paste_text_desc:"Als normalen Text einf\u00FCgen",
-paste_word_desc:"Mit Formatierungen (aus Word) einf\u00FCgen",
-selectall_desc:"Alles ausw\u00E4hlen"
-},
-paste_dlg:{
-text_title:"Dr\u00FCcken Sie auf Ihrer Tastatur Strg+V, um den Text einzuf\u00FCgen.",
-text_linebreaks:"Zeilenumbr\u00FCche beibehalten",
-word_title:"Dr\u00FCcken Sie auf Ihrer Tastatur Strg+V, um den Text einzuf\u00FCgen."
-},
-table:{
-desc:"Tabelle erstellen",
-row_before_desc:"Zeile oberhalb einf\u00FCgen",
-row_after_desc:"Zeile unterhalb einf\u00FCgen",
-delete_row_desc:"Zeile entfernen",
-col_before_desc:"Spalte links einf\u00FCgen",
-col_after_desc:"Spalte rechts einf\u00FCgen",
-delete_col_desc:"Spalte l\u00F6schen",
-split_cells_desc:"Vereinte Zellen trennen",
-merge_cells_desc:"Zellen vereinen",
-row_desc:"Eigenschaften der Zeile",
-cell_desc:"Eigenschaften der Zelle",
-props_desc:"Eigenschaften der Tabelle",
-paste_row_before_desc:"Zeile oberhalb aus der Zwischenablage einf\u00FCgen",
-paste_row_after_desc:"Zeile unterhalb aus der Zwischenablage einf\u00FCgen",
-cut_row_desc:"Zeile ausschneiden",
-copy_row_desc:"Zeile kopieren",
-del:"Tabelle entfernen",
-row:"Zeile",
-col:"Spalte",
-cell:"Zelle"
-},
-autosave:{
-unload_msg:"Ihre \u00C4nderungen werden verloren gehen, wenn Sie die Seite verlassen."
-},
-fullscreen:{
-desc:"Vollbildschirm"
-},
-media:{
-desc:"Multimedia einbetten/bearbeiten",
-edit:"Multimediaeinbettung bearbeiten"
-},
-fullpage:{
-desc:"Dokument-Eigenschaften"
-},
-template:{
-desc:"Vorgefertigten Vorlageninhalt einf\u00FCgen"
-},
-visualchars:{
-desc:"Sichtbarkeit der Steuerzeichen an/aus."
-},
-spellchecker:{
-desc:"Rechtschreibpr\u00FCfung an/aus",
-menu:"Einstellungen der Rechtschreibpr\u00FCfung",
-ignore_word:"Wort ignorieren",
-ignore_words:"Alle ignorieren",
-langs:"Sprachen",
-wait:"Bitte warten...",
-sug:"Vorschl\u00E4ge",
-no_sug:"Keine Vorschl\u00E4ge",
-no_mpell:"Keine Rechtschreibfehler gefunden."
-},
-pagebreak:{
-desc:"Seitenumbruch Einf\u00FCgen."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/el.js b/chrome/content/zotero/tinymce/langs/el.js
@@ -1,158 +0,0 @@
-tinyMCE.addI18n({el:{
-common:{
-edit_confirm:"\u0398\u03AD\u03BB\u03B5\u03C4\u03B5 \u03BD\u03B1 \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03BB\u03B5\u03B9\u03C4\u03BF\u03C5\u03C1\u03B3\u03AF\u03B1 WYSIWYG ;",
-apply:"\u0395\u03C6\u03B1\u03C1\u03BC\u03BF\u03B3\u03AE",
-insert:"\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE",
-update:"\u0395\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03B7",
-cancel:"\u0386\u03BA\u03C5\u03C1\u03BF",
-close:"\u039A\u03BB\u03B5\u03AF\u03C3\u03B9\u03BC\u03BF",
-browse:"\u0395\u03CD\u03C1\u03B5\u03C3\u03B7",
-class_name:"\u039A\u03BB\u03AC\u03C3\u03B7",
-not_set:"-- \u039C\u03B7 \u03BF\u03C1\u03B9\u03C3\u03BC\u03AD\u03BD\u03BF --",
-clipboard_msg:"\u039F\u03B9 \u03BB\u03B5\u03B9\u03C4\u03BF\u03C5\u03C1\u03B3\u03AF\u03B5\u03C2 \u0391\u03BD\u03C4\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE/\u0391\u03C0\u03BF\u03BA\u03BF\u03C0\u03AE/\u0395\u03C0\u03B9\u03BA\u03CC\u03BB\u03BB\u03B7\u03C3\u03B7 \u03B4\u03B5\u03BD \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B5\u03C2 \u03C3\u03B5 Mozilla \u03BA\u03B1\u03B9 Firefox.\n\u0398\u03AD\u03BB\u03B5\u03C4\u03B5 \u03C0\u03B5\u03C1\u03B9\u03C3\u03C3\u03CC\u03C4\u03B5\u03C1\u03B5\u03C2 \u03C0\u03BB\u03B7\u03C1\u03BF\u03C6\u03BF\u03C1\u03AF\u03B5\u03C2 ;",
-clipboard_no_support:"\u0394\u03B5\u03BD \u03C5\u03C0\u03BF\u03C3\u03C4\u03B7\u03C1\u03AF\u03B6\u03B5\u03C4\u03B1\u03B9 \u03B1\u03C0\u03CC \u03C4\u03BF\u03BD \u03C6\u03C5\u03BB\u03BB\u03BF\u03BC\u03B5\u03C4\u03C1\u03B7\u03C4\u03AE \u03C3\u03B1\u03C2, \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03C4\u03B5 \u03C4\u03B9\u03C2 \u03C3\u03C5\u03BD\u03C4\u03BF\u03BC\u03B5\u03CD\u03C3\u03B5\u03B9\u03C2 \u03C0\u03BB\u03B7\u03BA\u03C4\u03C1\u03BF\u03BB\u03BF\u03B3\u03AF\u03BF\u03C5.",
-popup_blocked:"\u0388\u03BD\u03B1 popup-blocker \u03C0\u03C1\u03CC\u03B3\u03C1\u03B1\u03BC\u03BC\u03B1 \u03AD\u03C7\u03B5\u03B9 \u03B1\u03C0\u03B5\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03B5\u03B9 \u03AD\u03BD\u03B1 \u03C0\u03B1\u03C1\u03AC\u03B8\u03C5\u03C1\u03BF \u03B1\u03C0\u03B1\u03C1\u03B1\u03AF\u03C4\u03B7\u03C4\u03BF \u03B3\u03B9\u03B1 \u03C4\u03B7\u03BD \u03B5\u03C6\u03B1\u03C1\u03BC\u03BF\u03B3\u03AE. \u03A0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03BF \u03B1\u03C0\u03B5\u03BD\u03B5\u03C1\u03B3\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03B5\u03C4\u03B5 \u03B3\u03B9\u03B1 \u03C4\u03B7\u03BD \u03B9\u03C3\u03C4\u03BF\u03C3\u03B5\u03BB\u03AF\u03B4\u03B1 \u03B1\u03C5\u03C4\u03AE \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03C7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03B5\u03C4\u03B5 \u03C0\u03BB\u03AE\u03C1\u03C9\u03C2 \u03C4\u03B7\u03BD \u03B5\u03C6\u03B1\u03C1\u03BC\u03BF\u03B3\u03AE.",
-invalid_data:"Error: Invalid values entered, these are marked in red.",
-more_colors:"\u03A0\u03B5\u03C1\u03B9\u03C3\u03C3\u03CC\u03C4\u03B5\u03C1\u03B1 \u03C7\u03C1\u03CE\u03BC\u03B1\u03C4\u03B1"
-},
-contextmenu:{
-align:"\u03A3\u03C4\u03BF\u03AF\u03C7\u03B9\u03C3\u03B7",
-left:"\u0391\u03C1\u03B9\u03C3\u03C4\u03B5\u03C1\u03AC",
-center:"\u039A\u03AD\u03BD\u03C4\u03C1\u03BF",
-right:"\u0394\u03B5\u03BE\u03B9\u03AC",
-full:"\u03A0\u03BB\u03AE\u03C1\u03B7\u03C2"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03B7\u03BC\u03AD\u03C1\u03B1\u03C2",
-inserttime_desc:"\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03CE\u03C1\u03B1\u03C2",
-months_long:"\u0399\u03B1\u03BD\u03BF\u03C5\u03AC\u03C1\u03B9\u03BF\u03C2,\u03A6\u03B5\u03B2\u03C1\u03BF\u03C5\u03AC\u03C1\u03B9\u03BF\u03C2,\u039C\u03AC\u03C1\u03C4\u03B9\u03BF\u03C2,\u0391\u03C0\u03C1\u03AF\u03BB\u03B9\u03BF\u03C2,\u039C\u03AC\u03B9\u03BF\u03C2,\u0399\u03BF\u03CD\u03BD\u03B9\u03BF\u03C2,\u0399\u03BF\u03CD\u03BB\u03B9\u03BF\u03C2,\u0391\u03CD\u03B3\u03BF\u03C5\u03C3\u03C4\u03BF\u03C2,\u03A3\u03B5\u03C0\u03C4\u03AD\u03BC\u03B2\u03C1\u03B9\u03BF\u03C2,\u039F\u03BA\u03C4\u03CE\u03B2\u03C1\u03B9\u03BF\u03C2,\u039D\u03BF\u03AD\u03BC\u03B2\u03C1\u03B9\u03BF\u03C2,\u0394\u03B5\u03BA\u03AD\u03BC\u03B2\u03C1\u03B9\u03BF\u03C2",
-months_short:"\u0399\u03B1\u03BD,\u03A6\u03B5\u03B2,\u039C\u03AC\u03C1,\u0391\u03C0\u03C1,\u039C\u03AC\u03B9,\u0399\u03BF\u03CD\u03BD,\u0399\u03BF\u03CD\u03BB,\u0391\u03CD\u03B3,\u03A3\u03B5\u03C0,\u039F\u03BA\u03C4,\u039D\u03BF\u03AD,\u0394\u03B5\u03BA",
-day_long:"\u039A\u03C5\u03C1\u03B9\u03B1\u03BA\u03AE,\u0394\u03B5\u03C5\u03C4\u03AD\u03C1\u03B1,\u03A4\u03C1\u03AF\u03C4\u03B7,\u03A4\u03B5\u03C4\u03AC\u03C1\u03C4\u03B7,\u03A0\u03AD\u03BC\u03C0\u03C4\u03B7,\u03A0\u03B1\u03C1\u03B1\u03C3\u03BA\u03B5\u03C5\u03AE,\u03A3\u03AC\u03B2\u03B2\u03B1\u03C4\u03BF",
-day_short:"\u039A\u03C5,\u0394\u03B5,\u03A4\u03C1,\u03A4\u03B5\u03C4,\u03A0\u03AD\u03BC,\u03A0\u03B1\u03C1,\u03A3\u03B1\u03B2"
-},
-print:{
-print_desc:"\u0395\u03BA\u03C4\u03CD\u03C0\u03C9\u03C3\u03B7"
-},
-preview:{
-preview_desc:"\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03C3\u03BA\u03CC\u03C0\u03B7\u03C3\u03B7"
-},
-directionality:{
-ltr_desc:"\u039A\u03B1\u03C4\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 \u03B1\u03C1\u03B9\u03C3\u03C4\u03B5\u03C1\u03AC \u03C0\u03C1\u03BF\u03C2 \u03B4\u03B5\u03BE\u03B9\u03AC",
-rtl_desc:"\u039A\u03B1\u03C4\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 \u03B4\u03B5\u03BE\u03B9\u03AC \u03C0\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03C3\u03C4\u03B5\u03C1\u03AC"
-},
-layer:{
-insertlayer_desc:"\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03BD\u03AD\u03BF\u03C5 layer",
-forward_desc:"\u039C\u03B5\u03C4\u03B1\u03BA\u03AF\u03BD\u03B7\u03C3\u03B7 \u03C3\u03C4\u03BF \u03C0\u03C1\u03BF\u03C3\u03BA\u03AE\u03BD\u03B9\u03BF",
-backward_desc:"\u039C\u03B5\u03C4\u03B1\u03BA\u03AF\u03BD\u03B7\u03C3\u03B7 \u03C3\u03C4\u03BF \u03C0\u03B1\u03C1\u03B1\u03C3\u03BA\u03AE\u03BD\u03B9\u03BF",
-absolute_desc:"\u0391\u03C0\u03CC\u03BB\u03C5\u03C4\u03B7/\u03A3\u03C7\u03B5\u03C4\u03B9\u03BA\u03AE \u03C4\u03BF\u03C0\u03BF\u03B8\u03AD\u03C4\u03B7\u03C3\u03B7",
-content:"\u039D\u03AD\u03BF layer..."
-},
-save:{
-save_desc:"\u0391\u03C0\u03BF\u03B8\u03AE\u03BA\u03B5\u03C5\u03C3\u03B7",
-cancel_desc:"\u0391\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7 \u03CC\u03BB\u03C9\u03BD \u03C4\u03C9\u03BD \u03B1\u03BB\u03BB\u03B1\u03B3\u03CE\u03BD"
-},
-nonbreaking:{
-nonbreaking_desc:"\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE non-breaking \u03BA\u03B5\u03BD\u03BF\u03CD \u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B1"
-},
-iespell:{
-iespell_desc:"\u0395\u03BA\u03C4\u03AD\u03BB\u03B5\u03C3\u03B7 \u03B5\u03BB\u03AD\u03B3\u03C7\u03BF\u03C5 \u03BF\u03C1\u03B8\u03BF\u03B3\u03C1\u03B1\u03C6\u03AF\u03B1\u03C2",
-download:"\u03A4\u03BF ieSpell \u03B4\u03B5\u03BD \u03B2\u03C1\u03AD\u03B8\u03B7\u03BA\u03B5. \u039D\u03B1 \u03BA\u03B1\u03C4\u03AD\u03B2\u03B5\u03B9 \u03C4\u03CE\u03C1\u03B1 ;"
-},
-advhr:{
-advhr_desc:"\u039F\u03C1\u03B9\u03B6\u03CC\u03BD\u03C4\u03B9\u03B1 \u03B3\u03C1\u03B1\u03BC\u03BC\u03AE"
-},
-emotions:{
-emotions_desc:"\u03A3\u03C5\u03BD\u03B1\u03B9\u03C3\u03B8\u03AE\u03BC\u03B1\u03C4\u03B1"
-},
-searchreplace:{
-search_desc:"\u0395\u03CD\u03C1\u03B5\u03C3\u03B7",
-replace_desc:"\u0395\u03CD\u03C1\u03B5\u03C3\u03B7/\u0391\u03BD\u03C4\u03B9\u03BA\u03B1\u03C4\u03AC\u03C3\u03C4\u03B1\u03C3\u03B7"
-},
-advimage:{
-image_desc:"\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE/\u03B5\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 \u03B5\u03B9\u03BA\u03CC\u03BD\u03B1\u03C2"
-},
-advlink:{
-link_desc:"\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE/\u03B5\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 \u03C3\u03C5\u03BD\u03B4\u03AD\u03C3\u03BC\u03BF\u03C5",
-delta_width:"50"
-},
-xhtmlxtras:{
-cite_desc:"Citation",
-abbr_desc:"\u03A3\u03C5\u03BD\u03C4\u03BF\u03BC\u03BF\u03B3\u03C1\u03B1\u03C6\u03AF\u03B1",
-acronym_desc:"\u0391\u03BA\u03C1\u03BF\u03BD\u03CD\u03BC\u03B9\u03BF",
-del_desc:"\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE",
-ins_desc:"\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE",
-attribs_desc:"\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE/\u03B5\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 \u03B9\u03B4\u03B9\u03BF\u03C4\u03AE\u03C4\u03C9\u03BD"
-},
-style:{
-desc:"\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 \u03A3\u03C4\u03C5\u03BB CSS"
-},
-paste:{
-paste_text_desc:"\u0395\u03C0\u03B9\u03BA\u03CC\u03BB\u03BB\u03B7\u03C3\u03B7 \u03C9\u03C2 \u03B1\u03C0\u03BB\u03CC \u03BA\u03B5\u03AF\u03BC\u03B5\u03BD\u03BF",
-paste_word_desc:"\u0395\u03C0\u03B9\u03BA\u03CC\u03BB\u03BB\u03B7\u03C3\u03B7 \u03B1\u03C0\u03CC \u03C4\u03BF Word",
-selectall_desc:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03CC\u03BB\u03C9\u03BD"
-},
-paste_dlg:{
-text_title:"\u03A7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03C4\u03B5 CTRL+V \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BA\u03AC\u03BD\u03B5\u03C4\u03B5 \u03B5\u03C0\u03B9\u03BA\u03CC\u03BB\u03BB\u03B7\u03C3\u03B7 \u03BA\u03B5\u03B9\u03BC\u03AD\u03BD\u03BF\u03C5 \u03C3\u03C4\u03BF \u03C0\u03B1\u03C1\u03AC\u03B8\u03C5\u03C1\u03BF.",
-text_linebreaks:"\u039D\u03B1 \u03BA\u03C1\u03B1\u03C4\u03B7\u03B8\u03BF\u03CD\u03BD \u03C4\u03B1 linebreaks",
-word_title:"\u03A7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03AE\u03C3\u03C4\u03B5 CTRL+V \u03B3\u03B9\u03B1 \u03BD\u03B1 \u03BA\u03AC\u03BD\u03B5\u03C4\u03B5 \u03B5\u03C0\u03B9\u03BA\u03CC\u03BB\u03BB\u03B7\u03C3\u03B7 \u03BA\u03B5\u03B9\u03BC\u03AD\u03BD\u03BF\u03C5 \u03C3\u03C4\u03BF \u03C0\u03B1\u03C1\u03AC\u03B8\u03C5\u03C1\u03BF."
-},
-table:{
-desc:"\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03BD\u03AD\u03BF\u03C5 \u03C0\u03AF\u03BD\u03B1\u03BA\u03B1",
-row_before_desc:"\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03B3\u03C1\u03B1\u03BC\u03BC\u03AE\u03C2 \u03C0\u03C1\u03B9\u03BD",
-row_after_desc:"\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03B3\u03C1\u03B1\u03BC\u03BC\u03AE\u03C2 \u03BC\u03B5\u03C4\u03AC",
-delete_row_desc:"\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u03B3\u03C1\u03B1\u03BC\u03BC\u03AE\u03C2",
-col_before_desc:"\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03C3\u03C4\u03AE\u03BB\u03B7\u03C2 \u03C0\u03C1\u03B9\u03BD",
-col_after_desc:"\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03C3\u03C4\u03AE\u03BB\u03B7\u03C2 \u03BC\u03B5\u03C4\u03AC",
-delete_col_desc:"\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u03C3\u03C4\u03AE\u03BB\u03B7\u03C2",
-split_cells_desc:"\u0394\u03B9\u03B1\u03C7\u03C9\u03C1\u03B9\u03C3\u03BC\u03CC\u03C2 \u03C3\u03C5\u03B3\u03C7\u03C9\u03BD\u03B5\u03C5\u03BC\u03AD\u03BD\u03C9\u03BD \u03BA\u03B5\u03BB\u03B9\u03CE\u03BD \u03C0\u03AF\u03BD\u03B1\u03BA\u03B1",
-merge_cells_desc:"\u03A3\u03C5\u03B3\u03C7\u03CE\u03BD\u03B5\u03C5\u03C3\u03B7 \u03BA\u03B5\u03BB\u03B9\u03CE\u03BD \u03C0\u03AF\u03BD\u03B1\u03BA\u03B1",
-row_desc:"\u0399\u03B4\u03B9\u03CC\u03C4\u03B7\u03C4\u03B5\u03C2 \u03B3\u03C1\u03B1\u03BC\u03BC\u03AE\u03C2 \u03C0\u03AF\u03BD\u03B1\u03BA\u03B1",
-cell_desc:"\u0399\u03B4\u03B9\u03CC\u03C4\u03B7\u03C4\u03B5\u03C2 \u03BA\u03B5\u03BB\u03B9\u03BF\u03CD \u03C0\u03AF\u03BD\u03B1\u03BA\u03B1",
-props_desc:"\u0399\u03B4\u03B9\u03CC\u03C4\u03B7\u03C4\u03B5\u03C2 \u03C0\u03AF\u03BD\u03B1\u03BA\u03B1",
-paste_row_before_desc:"\u0395\u03C0\u03B9\u03BA\u03CC\u03BB\u03BB\u03B7\u03C3\u03B7 \u03B3\u03C1\u03B1\u03BC\u03BC\u03AE\u03C2 \u03C0\u03AF\u03BD\u03B1\u03BA\u03B1 \u03C0\u03C1\u03B9\u03BD",
-paste_row_after_desc:"\u0395\u03C0\u03B9\u03BA\u03CC\u03BB\u03BB\u03B7\u03C3\u03B7 \u03B3\u03C1\u03B1\u03BC\u03BC\u03AE\u03C2 \u03C0\u03AF\u03BD\u03B1\u03BA\u03B1 \u03BC\u03B5\u03C4\u03AC",
-cut_row_desc:"\u0391\u03C0\u03BF\u03BA\u03BF\u03C0\u03AE \u03B3\u03C1\u03B1\u03BC\u03BC\u03AE\u03C2 \u03C0\u03AF\u03BD\u03B1\u03BA\u03B1",
-copy_row_desc:"\u0391\u03BD\u03C4\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE \u03B3\u03C1\u03B1\u03BC\u03BC\u03AE\u03C2 \u03C0\u03AF\u03BD\u03B1\u03BA\u03B1",
-del:"\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE \u03C0\u03AF\u03BD\u03B1\u03BA\u03B1",
-row:"\u0393\u03C1\u03B1\u03BC\u03BC\u03AE",
-col:"\u03A3\u03C4\u03AE\u03BB\u03B7",
-cell:"\u039A\u03B5\u03BB\u03AF",
-cellprops_delta_width:"60"
-},
-autosave:{
-unload_msg:"\u039F\u03B9 \u03B1\u03BB\u03BB\u03B1\u03B3\u03AD\u03C2 \u03C0\u03BF\u03C5 \u03BA\u03AC\u03BD\u03B1\u03C4\u03B5 \u03B8\u03B1 \u03C7\u03B1\u03B8\u03BF\u03CD\u03BD \u03B1\u03BD \u03C6\u03CD\u03B3\u03B5\u03C4\u03B5 \u03C3\u03B5 \u03AC\u03BB\u03BB\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1."
-},
-fullscreen:{
-desc:"\u0395\u03BD\u03B1\u03BB\u03BB\u03B1\u03B3\u03AE \u03C0\u03BB\u03AE\u03C1\u03BF\u03C5\u03C2 \u03BF\u03B8\u03CC\u03BD\u03B7\u03C2"
-},
-media:{
-desc:"\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE/\u03B5\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 \u03B5\u03BD\u03C3\u03C9\u03BC\u03B1\u03C4\u03C9\u03BC\u03AD\u03BD\u03C9\u03BD media",
-edit:"\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 \u03B5\u03BD\u03C3\u03C9\u03BC\u03B1\u03C4\u03C9\u03BC\u03AD\u03BD\u03C9\u03BD media",
-delta_width:"50"
-},
-fullpage:{
-desc:"\u0399\u03B4\u03B9\u03CC\u03C4\u03B7\u03C4\u03B5\u03C2 \u03B5\u03B3\u03B3\u03C1\u03AC\u03C6\u03BF\u03C5",
-delta_width:"140"
-},
-template:{
-desc:"\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03C0\u03B5\u03C1\u03B9\u03B5\u03C7\u03BF\u03BC\u03AD\u03BD\u03BF\u03C5 \u03B3\u03B9\u03B1 \u03C0\u03C1\u03BF\u03BA\u03B1\u03B8\u03BF\u03C1\u03B9\u03C3\u03BC\u03AD\u03BD\u03BF \u03C0\u03C1\u03CC\u03C4\u03C5\u03C0\u03BF"
-},
-visualchars:{
-desc:"\u039F\u03C0\u03C4\u03B9\u03BA\u03BF\u03AF \u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2 \u03B5\u03BB\u03AD\u03B3\u03C7\u03BF\u03C5 \u03BD\u03B1\u03B9/\u03CC\u03C7\u03B9."
-},
-spellchecker:{
-desc:"\u0395\u03BD\u03B1\u03BB\u03BB\u03B1\u03B3\u03AE \u03BF\u03C1\u03B8\u03BF\u03B3\u03C1\u03B1\u03C6\u03B9\u03BA\u03BF\u03CD \u03B5\u03BB\u03AD\u03B3\u03C7\u03BF\u03C5",
-menu:"\u03A1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03B9\u03C2 \u03BF\u03C1\u03B8\u03BF\u03B3\u03C1\u03B1\u03C6\u03B9\u03BA\u03BF\u03CD \u03B5\u03BB\u03AD\u03B3\u03C7\u03BF\u03C5",
-ignore_word:"\u03A0\u03B1\u03C1\u03AC\u03B2\u03BB\u03B5\u03C8\u03B7 \u03BB\u03AD\u03BE\u03B7\u03C2",
-ignore_words:"\u03A0\u03B1\u03C1\u03AC\u03B2\u03BB\u03B5\u03C8\u03B7 \u03CC\u03BB\u03C9\u03BD",
-langs:"\u0393\u03BB\u03CE\u03C3\u03C3\u03B5\u03C2",
-wait:"\u03A0\u03B1\u03C1\u03B1\u03BA\u03B1\u03BB\u03CE \u03C0\u03B5\u03C1\u03B9\u03BC\u03AD\u03BD\u03B5\u03C4\u03B5...",
-sug:"\u03A0\u03C1\u03BF\u03C4\u03AC\u03C3\u03B5\u03B9\u03C2",
-no_sug:"\u03A7\u03C9\u03C1\u03AF\u03C2 \u03C0\u03C1\u03BF\u03C4\u03AC\u03C3\u03B5\u03B9\u03C2",
-no_mpell:"\u03A3\u03C9\u03C3\u03C4\u03AE \u03BF\u03C1\u03B8\u03BF\u03B3\u03C1\u03C6\u03AF\u03B1."
-},
-pagebreak:{
-desc:"\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03B1\u03BB\u03BB\u03B1\u03B3\u03AE\u03C2 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1\u03C2."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/en.js b/chrome/content/zotero/tinymce/langs/en.js
@@ -1,154 +1 @@
-tinyMCE.addI18n({en:{
-common:{
-edit_confirm:"Do you want to use the WYSIWYG mode for this textarea?",
-apply:"Apply",
-insert:"Insert",
-update:"Update",
-cancel:"Cancel",
-close:"Close",
-browse:"Browse",
-class_name:"Class",
-not_set:"-- Not set --",
-clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?",
-clipboard_no_support:"Currently not supported by your browser, use keyboard shortcuts instead.",
-popup_blocked:"Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.",
-invalid_data:"Error: Invalid values entered, these are marked in red.",
-more_colors:"More colors"
-},
-contextmenu:{
-align:"Alignment",
-left:"Left",
-center:"Center",
-right:"Right",
-full:"Full"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Insert date",
-inserttime_desc:"Insert time",
-months_long:"January,February,March,April,May,June,July,August,September,October,November,December",
-months_short:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",
-day_long:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday",
-day_short:"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun"
-},
-print:{
-print_desc:"Print"
-},
-preview:{
-preview_desc:"Preview"
-},
-directionality:{
-ltr_desc:"Direction left to right",
-rtl_desc:"Direction right to left"
-},
-layer:{
-insertlayer_desc:"Insert new layer",
-forward_desc:"Move forward",
-backward_desc:"Move backward",
-absolute_desc:"Toggle absolute positioning",
-content:"New layer..."
-},
-save:{
-save_desc:"Save",
-cancel_desc:"Cancel all changes"
-},
-nonbreaking:{
-nonbreaking_desc:"Insert non-breaking space character"
-},
-iespell:{
-iespell_desc:"Run spell checking",
-download:"ieSpell not detected. Do you want to install it now?"
-},
-advhr:{
-advhr_desc:"Horizontal rule"
-},
-emotions:{
-emotions_desc:"Emotions"
-},
-searchreplace:{
-search_desc:"Find",
-replace_desc:"Find/Replace"
-},
-advimage:{
-image_desc:"Insert/edit image"
-},
-advlink:{
-link_desc:"Insert/edit link"
-},
-xhtmlxtras:{
-cite_desc:"Citation",
-abbr_desc:"Abbreviation",
-acronym_desc:"Acronym",
-del_desc:"Deletion",
-ins_desc:"Insertion",
-attribs_desc:"Insert/Edit Attributes"
-},
-style:{
-desc:"Edit CSS Style"
-},
-paste:{
-paste_text_desc:"Paste as Plain Text",
-paste_word_desc:"Paste from Word",
-selectall_desc:"Select All"
-},
-paste_dlg:{
-text_title:"Use CTRL+V on your keyboard to paste the text into the window.",
-text_linebreaks:"Keep linebreaks",
-word_title:"Use CTRL+V on your keyboard to paste the text into the window."
-},
-table:{
-desc:"Inserts a new table",
-row_before_desc:"Insert row before",
-row_after_desc:"Insert row after",
-delete_row_desc:"Delete row",
-col_before_desc:"Insert column before",
-col_after_desc:"Insert column after",
-delete_col_desc:"Remove column",
-split_cells_desc:"Split merged table cells",
-merge_cells_desc:"Merge table cells",
-row_desc:"Table row properties",
-cell_desc:"Table cell properties",
-props_desc:"Table properties",
-paste_row_before_desc:"Paste table row before",
-paste_row_after_desc:"Paste table row after",
-cut_row_desc:"Cut table row",
-copy_row_desc:"Copy table row",
-del:"Delete table",
-row:"Row",
-col:"Column",
-cell:"Cell"
-},
-autosave:{
-unload_msg:"The changes you made will be lost if you navigate away from this page."
-},
-fullscreen:{
-desc:"Toggle fullscreen mode"
-},
-media:{
-desc:"Insert / edit embedded media",
-edit:"Edit embedded media"
-},
-fullpage:{
-desc:"Document properties"
-},
-template:{
-desc:"Insert predefined template content"
-},
-visualchars:{
-desc:"Visual control characters on/off."
-},
-spellchecker:{
-desc:"Toggle spellchecker",
-menu:"Spellchecker settings",
-ignore_word:"Ignore word",
-ignore_words:"Ignore all",
-langs:"Languages",
-wait:"Please wait...",
-sug:"Suggestions",
-no_sug:"No suggestions",
-no_mpell:"No misspellings found."
-},
-pagebreak:{
-desc:"Insert page break."
-}}});
-\ No newline at end of file
+tinyMCE.addI18n({en:{common:{"more_colors":"More Colors...","invalid_data":"Error: Invalid values entered, these are marked in red.","popup_blocked":"Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.","clipboard_no_support":"Currently not supported by your browser, use keyboard shortcuts instead.","clipboard_msg":"Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?","not_set":"-- Not Set --","class_name":"Class",browse:"Browse",close:"Close",cancel:"Cancel",update:"Update",insert:"Insert",apply:"Apply","edit_confirm":"Do you want to use the WYSIWYG mode for this textarea?","invalid_data_number":"{#field} must be a number","invalid_data_min":"{#field} must be a number greater than {#min}","invalid_data_size":"{#field} must be a number or percentage",value:"(value)"},contextmenu:{full:"Full",right:"Right",center:"Center",left:"Left",align:"Alignment"},insertdatetime:{"day_short":"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun","day_long":"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday","months_short":"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec","months_long":"January,February,March,April,May,June,July,August,September,October,November,December","inserttime_desc":"Insert Time","insertdate_desc":"Insert Date","time_fmt":"%H:%M:%S","date_fmt":"%Y-%m-%d"},print:{"print_desc":"Print"},preview:{"preview_desc":"Preview"},directionality:{"rtl_desc":"Direction Right to Left","ltr_desc":"Direction Left to Right"},layer:{content:"New layer...","absolute_desc":"Toggle Absolute Positioning","backward_desc":"Move Backward","forward_desc":"Move Forward","insertlayer_desc":"Insert New Layer"},save:{"save_desc":"Save","cancel_desc":"Cancel All Changes"},nonbreaking:{"nonbreaking_desc":"Insert Non-Breaking Space Character"},iespell:{download:"ieSpell not detected. Do you want to install it now?","iespell_desc":"Check Spelling"},advhr:{"delta_height":"","delta_width":"","advhr_desc":"Insert Horizontal Line"},emotions:{"delta_height":"","delta_width":"","emotions_desc":"Emotions"},searchreplace:{"replace_desc":"Find/Replace","delta_width":"","delta_height":"","search_desc":"Find"},advimage:{"delta_width":"","image_desc":"Insert/Edit Image","delta_height":""},advlink:{"delta_height":"","delta_width":"","link_desc":"Insert/Edit Link"},xhtmlxtras:{"attribs_delta_height":"","attribs_delta_width":"","ins_delta_height":"","ins_delta_width":"","del_delta_height":"","del_delta_width":"","acronym_delta_height":"","acronym_delta_width":"","abbr_delta_height":"","abbr_delta_width":"","cite_delta_height":"","cite_delta_width":"","attribs_desc":"Insert/Edit Attributes","ins_desc":"Insertion","del_desc":"Deletion","acronym_desc":"Acronym","abbr_desc":"Abbreviation","cite_desc":"Citation"},style:{"delta_height":"","delta_width":"",desc:"Edit CSS Style"},paste:{"plaintext_mode_stick":"Paste is now in plain text mode. Click again to toggle back to regular paste mode.","plaintext_mode":"Paste is now in plain text mode. Click again to toggle back to regular paste mode. After you paste something you will be returned to regular paste mode.","selectall_desc":"Select All","paste_word_desc":"Paste from Word","paste_text_desc":"Paste as Plain Text"},"paste_dlg":{"word_title":"Use Ctrl+V on your keyboard to paste the text into the window.","text_linebreaks":"Keep Linebreaks","text_title":"Use Ctrl+V on your keyboard to paste the text into the window."},table:{"merge_cells_delta_height":"","merge_cells_delta_width":"","table_delta_height":"","table_delta_width":"","cellprops_delta_height":"","cellprops_delta_width":"","rowprops_delta_height":"","rowprops_delta_width":"",cell:"Cell",col:"Column",row:"Row",del:"Delete Table","copy_row_desc":"Copy Table Row","cut_row_desc":"Cut Table Row","paste_row_after_desc":"Paste Table Row After","paste_row_before_desc":"Paste Table Row Before","props_desc":"Table Properties","cell_desc":"Table Cell Properties","row_desc":"Table Row Properties","merge_cells_desc":"Merge Table Cells","split_cells_desc":"Split Merged Table Cells","delete_col_desc":"Delete Column","col_after_desc":"Insert Column After","col_before_desc":"Insert Column Before","delete_row_desc":"Delete Row","row_after_desc":"Insert Row After","row_before_desc":"Insert Row Before",desc:"Insert/Edit Table"},autosave:{"warning_message":"If you restore the saved content, you will lose all the content that is currently in the editor.\n\nAre you sure you want to restore the saved content?","restore_content":"Restore auto-saved content.","unload_msg":"The changes you made will be lost if you navigate away from this page."},fullscreen:{desc:"Toggle Full Screen Mode"},media:{"delta_height":"","delta_width":"",edit:"Edit Embedded Media",desc:"Insert/Edit Embedded Media"},fullpage:{desc:"Document Properties","delta_width":"","delta_height":""},template:{desc:"Insert Predefined Template Content"},visualchars:{desc:"Show/Hide Visual Control Characters"},spellchecker:{desc:"Toggle Spell Checker",menu:"Spell Checker Settings","ignore_word":"Ignore Word","ignore_words":"Ignore All",langs:"Languages",wait:"Please wait...",sug:"Suggestions","no_sug":"No Suggestions","no_mpell":"No misspellings found.","learn_word":"Learn word"},pagebreak:{desc:"Insert Page Break for Printing"},advlist:{types:"Types",def:"Default","lower_alpha":"Lower Alpha","lower_greek":"Lower Greek","lower_roman":"Lower Roman","upper_alpha":"Upper Alpha","upper_roman":"Upper Roman",circle:"Circle",disc:"Disc",square:"Square"},colors:{"333300":"Dark olive","993300":"Burnt orange","000000":"Black","003300":"Dark green","003366":"Dark azure","000080":"Navy Blue","333399":"Indigo","333333":"Very dark gray","800000":"Maroon",FF6600:"Orange","808000":"Olive","008000":"Green","008080":"Teal","0000FF":"Blue","666699":"Grayish blue","808080":"Gray",FF0000:"Red",FF9900:"Amber","99CC00":"Yellow green","339966":"Sea green","33CCCC":"Turquoise","3366FF":"Royal blue","800080":"Purple","999999":"Medium gray",FF00FF:"Magenta",FFCC00:"Gold",FFFF00:"Yellow","00FF00":"Lime","00FFFF":"Aqua","00CCFF":"Sky blue","993366":"Brown",C0C0C0:"Silver",FF99CC:"Pink",FFCC99:"Peach",FFFF99:"Light yellow",CCFFCC:"Pale green",CCFFFF:"Pale cyan","99CCFF":"Light sky blue",CC99FF:"Plum",FFFFFF:"White"},aria:{"rich_text_area":"Rich Text Area"},wordcount:{words:"Words:"},visualblocks:{desc:'Show/hide block elements'}}});
+\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/es.js b/chrome/content/zotero/tinymce/langs/es.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({es:{
-common:{
-edit_confirm:"\u00BFDesea utilizar el modo WYSIWYG para esta caja de texto?",
-apply:"Aplicar",
-insert:"Insertar",
-update:"Actualizar",
-cancel:"Cancelar",
-close:"Cerrar",
-browse:"Examinar",
-class_name:"Clase",
-not_set:"-- Ninguno --",
-clipboard_msg:"Copiar/Cortar/Pegar no se encuentra disponible en Mozilla y Firefox.\n\u00BFDesea obtener m\u00E1s informaci\u00F3n acerca de este tema?",
-clipboard_no_support:"Su navegador no soporta las funciones de cortapapeles, use los accesos por teclado.",
-popup_blocked:"Lo sentimos, su bloqueo de ventanas emergentes ha deshabilitado una ventana que provee funcionalidades a la aplicaci\u00F3n. Necesita deshabilitar este bloqueo en este sitio para poder utilizar todas las funciones.",
-invalid_data:"Error: Introdujo un valor no v\u00E1lido, est\u00E1n marcados en rojo.",
-more_colors:"M\u00E1s colores"
-},
-contextmenu:{
-align:"Alineaci\u00F3n",
-left:"Izquierda",
-center:"Centrado",
-right:"Derecha",
-full:"Justificado"
-},
-insertdatetime:{
-date_fmt:"%d-%m-%Y",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Insertar fecha",
-inserttime_desc:"Insertar hora",
-months_long:"Enero,Febrero,Marzo,Abril,Mayo,Junio,Julio,Agosto,Septiembre,Octubre,Noviembre,Diciembre",
-months_short:"Ene,Feb,Mar,Abr,May,Jun,Jul,Ago,Sep,Oct,Nov,Dic",
-day_long:"Domingo,Lunes,Martes,Mi\u00E9rcoles,Jueves,Viernes,S\u00E1bado,Domingo",
-day_short:"Dom,Lun,Mar,Mie,Jue,Vie,Sab,Dom"
-},
-print:{
-print_desc:"Imprimir"
-},
-preview:{
-preview_desc:"Vista previa"
-},
-directionality:{
-ltr_desc:"Direcci\u00F3n izquierda a derecha",
-rtl_desc:"Direcci\u00F3n derecha a izquierda"
-},
-layer:{
-insertlayer_desc:"Insertar nueva capa",
-forward_desc:"Avanzar",
-backward_desc:"Retroceder",
-absolute_desc:"Cambiar a posici\u00F3n absoluta",
-content:"Nueva capa..."
-},
-save:{
-save_desc:"Guardar",
-cancel_desc:"Cancelar todos los cambios"
-},
-nonbreaking:{
-nonbreaking_desc:"Insertar caracter de espacio 'non-breaking'"
-},
-iespell:{
-iespell_desc:"Corrector ortogr\u00E1fico",
-download:"No se detect\u00F3 'ieSpell'. \u00BFDesea instalarlo ahora?"
-},
-advhr:{
-advhr_desc:"Regla horizontal"
-},
-emotions:{
-emotions_desc:"Emoticones"
-},
-searchreplace:{
-search_desc:"Buscar",
-replace_desc:"Buscar/Reemplazar"
-},
-advimage:{
-image_desc:"Insertar/editar imagen"
-},
-advlink:{
-link_desc:"Insertar/editar hiperv\u00EDnculo"
-},
-xhtmlxtras:{
-cite_desc:"Cita",
-abbr_desc:"Abreviatura",
-acronym_desc:"Acr\u00F3nimo",
-del_desc:"Borrado",
-ins_desc:"Inserci\u00F3n",
-attribs_desc:"Insertar/Editar atributos"
-},
-style:{
-desc:"Editar Estilo CSS"
-},
-paste:{
-paste_text_desc:"Pegar como texto plano",
-paste_word_desc:"Pegar desde Word",
-selectall_desc:"Seleccionar todo"
-},
-paste_dlg:{
-text_title:"Use CTRL+V en su teclado para pegar el texto en la ventana.",
-text_linebreaks:"Keep linebreaks",
-word_title:"Use CTRL+V en su teclado para pegar el texto en la ventana."
-},
-table:{
-desc:"Inserta una nueva tabla",
-row_before_desc:"Insertar fila (antes)",
-row_after_desc:"Insertar fila (despu\u00E9s)",
-delete_row_desc:"Suprimir fila",
-col_before_desc:"Insertar columna (antes)",
-col_after_desc:"Insertar columna (despu\u00E9s)",
-delete_col_desc:"Suprimir columna",
-split_cells_desc:"Dividir celdas",
-merge_cells_desc:"Vincular celdas",
-row_desc:"Propiedades de la fila",
-cell_desc:"Propiedades de la celda",
-props_desc:"Propiedades de la tabla",
-paste_row_before_desc:"Pegar filas (antes)",
-paste_row_after_desc:"Pegar filas (despu\u00E9s)",
-cut_row_desc:"Cortar fila",
-copy_row_desc:"Copiar fila",
-del:"Eliminar tabla",
-row:"Fila",
-col:"Columna",
-cell:"Celda"
-},
-autosave:{
-unload_msg:"Los cambios realizados se perder\u00E1n si sale de esta p\u00E1gina."
-},
-fullscreen:{
-desc:"Cambiar a modo Pantalla Completa"
-},
-media:{
-desc:"Insertar/editar medio embebido",
-edit:"Editar medio embebido"
-},
-fullpage:{
-desc:"Propiedades del documento"
-},
-template:{
-desc:"Insertar contenido de plantilla predefinida"
-},
-visualchars:{
-desc:"Caracteres de control ON/OFF."
-},
-spellchecker:{
-desc:"Cambiar a corrector ortogr\u00E1fico",
-menu:"Configuraci\u00F3n de corrector ortogr\u00E1fico",
-ignore_word:"Ignorar",
-ignore_words:"Ignorar todo",
-langs:"Idiomas",
-wait:"Espere...",
-sug:"Sugerencias",
-no_sug:"Sin sugerencias",
-no_mpell:"No se encontraron errores."
-},
-pagebreak:{
-desc:"Insertar fin de p\u00E1gina"
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/et.js b/chrome/content/zotero/tinymce/langs/et.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({et:{
-common:{
-edit_confirm:"Kas soovite kasutada WYSIWYG re\u017Eiimi sellel tekstialal?",
-apply:"Rakenda",
-insert:"Sisesta",
-update:"Uuenda",
-cancel:"T\u00FChista",
-close:"Sule",
-browse:"Sirvi",
-class_name:"Klass",
-not_set:"-- Seadmata --",
-clipboard_msg:"Kopeeri/L\u00F5ika/Kleebi ei ole saadaval Mozillas ja Firefoxis.\nKas soovite rohkem infot selle probleemi kohta?",
-clipboard_no_support:"Hetkel ei ole toetatud Teie lehitseja poolt, kasutage klaviatuuri otseteid selle asemel.",
-popup_blocked:"Vabandust, aga Teie h\u00FCpikakna t\u00F5kestaja on blokeerinud akna, mis varustab rakenduse funktsionaalsust. Palun lubage h\u00FCpikaknad sellel kodulehel, et t\u00E4ielikult kasutada seda vahendit.",
-invalid_data:"Viga: Kehtetud v\u00E4\u00E4rtused sisestatud, need on m\u00E4rgitud punasega.",
-more_colors:"Rohkem v\u00E4rve"
-},
-contextmenu:{
-align:"Joondus",
-left:"Vasak",
-center:"Kesk",
-right:"Parem",
-full:"T\u00E4is"
-},
-insertdatetime:{
-date_fmt:"%A-%k-%p",
-time_fmt:"%T:%M:%S",
-insertdate_desc:"Sisesta kuup\u00E4ev",
-inserttime_desc:"Sisesta aeg",
-months_long:"Jaanuar,Veebruar,M\u00E4rts,Aprill,Mai,Juuni,Juuli,August,September,Oktoober,November,Detsember",
-months_short:"Jaan,Veeb,M\u00E4rts,Apr,Mai,Juuni,Juuli,Aug,Sept,Okt,Nov,Dets",
-day_long:"P\u00FChap\u00E4ev,Esmasp\u00E4ev,Teisip\u00E4ev,Kolmap\u00E4ev,Neljap\u00E4ev,Reede,Laup\u00E4ev,P\u00FChap\u00E4ev",
-day_short:"P,E,T,K,N,R,L,P"
-},
-print:{
-print_desc:"Print"
-},
-preview:{
-preview_desc:"Eelvaade"
-},
-directionality:{
-ltr_desc:"Suund vasakult paremale",
-rtl_desc:"Suund paremalt vasakule"
-},
-layer:{
-insertlayer_desc:"Sisesta uus kiht",
-forward_desc:"Liiguta edasi",
-backward_desc:"Liiguta tagasi",
-absolute_desc:"L\u00FClita \u00FCmber absoluutne positsioneerimine",
-content:"Uus kiht..."
-},
-save:{
-save_desc:"Salvesta",
-cancel_desc:"T\u00FChista k\u00F5ik muudatused"
-},
-nonbreaking:{
-nonbreaking_desc:"Sisesta mittekatkestav t\u00FChik"
-},
-iespell:{
-iespell_desc:"\u00D5igekirja kontroll",
-download:"ie\u00D5igekiri tuvastamata. Kas soovite paigaldada n\u00FC\u00FCd?"
-},
-advhr:{
-advhr_desc:"Horisontaalne joonlaud"
-},
-emotions:{
-emotions_desc:"Emotsioonid"
-},
-searchreplace:{
-search_desc:"Otsi",
-replace_desc:"Otsi/Asenda"
-},
-advimage:{
-image_desc:"Sisesta/redigeeri pilt"
-},
-advlink:{
-link_desc:"Sisesta/redigeeri link"
-},
-xhtmlxtras:{
-cite_desc:"Citation",
-abbr_desc:"Abbreviation",
-acronym_desc:"Acronym",
-del_desc:"Deletion",
-ins_desc:"Insertion",
-attribs_desc:"Insert/Edit Attributes"
-},
-style:{
-desc:"Redigeeri CSS stiili"
-},
-paste:{
-paste_text_desc:"Kleebi tavalise tekstina",
-paste_word_desc:"Kleebi Wordist",
-selectall_desc:"Vali k\u00F5ik"
-},
-paste_dlg:{
-text_title:"Vajuta CTRL+V oma klaviatuuril teksti aknasse kleepimiseks.",
-text_linebreaks:"J\u00E4ta reavahetused",
-word_title:"Vajuta CTRL+V oma klaviatuuril teksti aknasse kleepimiseks."
-},
-table:{
-desc:"Sisestab uue tabeli",
-row_before_desc:"Sisesta rida ette",
-row_after_desc:"Sisesta rida j\u00E4rgi",
-delete_row_desc:"Kustuta rida",
-col_before_desc:"Sisesta veerg ette",
-col_after_desc:"Sisesta veerg j\u00E4rgi",
-delete_col_desc:"Kustuta veerg",
-split_cells_desc:"Eralda \u00FChendatud tabeli lahtrid",
-merge_cells_desc:"\u00DChenda tabeli lahtrid",
-row_desc:"Tabeli rea omadused",
-cell_desc:"Tabeli lahtri omadused",
-props_desc:"Tabeli omadused",
-paste_row_before_desc:"Kleebi tabeli rida ette",
-paste_row_after_desc:"Kleebi tabeli rida j\u00E4rgi",
-cut_row_desc:"L\u00F5ika tabeli rida",
-copy_row_desc:"Kopeeri tabeli rida",
-del:"Kustuta tabel",
-row:"Rida",
-col:"Veerg",
-cell:"Lahter"
-},
-autosave:{
-unload_msg:"Tehtud muudatused kaovad, kui lahkute siit lehelt."
-},
-fullscreen:{
-desc:"L\u00FClita \u00FCmber t\u00E4isekraani re\u017Eiim"
-},
-media:{
-desc:"Sisesta / redigeeri manustatud meedia",
-edit:"Redigeeri manustatud meedia"
-},
-fullpage:{
-desc:"Dokumendi omadused"
-},
-template:{
-desc:"Sisesta eeldefineeritud \u0161ablooni sisu"
-},
-visualchars:{
-desc:"Visuaalsed kontrollt\u00E4hem\u00E4rgid sisse/v\u00E4lja"
-},
-spellchecker:{
-desc:"L\u00FClita \u00FCmber \u00F5igekirja kontroll",
-menu:"\u00D5igekirja kontrolli seaded",
-ignore_word:"J\u00E4ta s\u00F5na vahele",
-ignore_words:"J\u00E4ra k\u00F5ik vahele",
-langs:"Keeled",
-wait:"Palun oota...",
-sug:"Soovitused",
-no_sug:"Soovitusi pole",
-no_mpell:"Valesti kirjutamisi ei leitud."
-},
-pagebreak:{
-desc:"Sisesta lehevahetus."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/fa.js b/chrome/content/zotero/tinymce/langs/fa.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({fa:{
-common:{
-edit_confirm:"\u0622\u06CC\u0627 \u0645\u0627\u06CC\u0644\u06CC\u062F \u0627\u0632 \u062D\u0627\u0644\u062A \u0628\u0635\u0631\u06CC \u0628\u0631\u0627\u06CC \u0627\u06CC\u0646 \u062C\u0639\u0628\u0647 \u0645\u062A\u0646 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u06A9\u0646\u06CC\u062F\u061F",
-apply:"Apply",
-insert:"\u062F\u0631\u062C",
-update:"\u0628\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06CC",
-cancel:"\u0627\u0646\u0635\u0631\u0627\u0641",
-close:"\u0628\u0633\u062A\u0646",
-browse:"Browse",
-class_name:"\u062F\u0633\u062A\u0647",
-not_set:"-- \u062A\u0646\u0638\u064A\u0645 \u0646\u0634\u062F\u0647 --",
-clipboard_msg:"\u0631\u0648\u0646\u0648\u0634\u062A/\u0628\u0631\u0634/\u062C\u0627\u06CC\u06AF\u0630\u0627\u0631\u06CC \u062F\u0631 \u0645\u0631\u0648\u0631\u06AF\u0631\u0647\u0627\u06CC \u0645\u0648\u0632\u06CC\u0644\u0627 \u0648 \u0641\u0627\u06CC\u0631\u0641\u0627\u06A9\u0633 \u0648\u062C\u0648\u062F \u0646\u062F\u0627\u0631\u0646\u062F.\n\u0622\u06CC\u0627 \u0628\u0647 \u0627\u0637\u0644\u0627\u0639\u0627\u062A \u0628\u06CC\u0634\u062A\u0631\u06CC \u062F\u0631 \u0627\u06CC\u0646 \u0632\u0645\u06CC\u0646\u0647 \u0646\u06CC\u0627\u0632 \u062F\u0627\u0631\u06CC\u062F\u061F",
-clipboard_no_support:"\u062F\u0631 \u062D\u0627\u0644 \u062D\u0627\u0636\u0631 \u062A\u0648\u0633\u0637 \u0645\u0631\u0648\u0631\u06AF\u0631 \u0634\u0645\u0627 \u067E\u0634\u062A\u06CC\u0628\u0627\u0646\u06CC \u0646\u0645\u06CC\u200C\u0634\u0648\u062F\u060C \u062F\u0631 \u0639\u0648\u0634 \u0627\u0632 \u0645\u0627\u0646\u0628\u0631\u0647\u0627\u06CC \u0635\u0641\u062D\u0647 \u06A9\u0644\u06CC\u062F \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u06A9\u0646\u06CC\u062F.",
-popup_blocked:"Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.",
-invalid_data:"\u062E\u0637\u0627: \u0645\u0642\u0627\u062F\u06CC\u0631 \u0646\u0627\u062F\u0631\u0633\u062A \u0648\u0627\u0631\u062F \u0634\u062F\u0647 \u0627\u0633\u062A, \u06A9\u0647 \u0628\u0627 \u0631\u0646\u06AF \u0642\u0631\u0645\u0632 \u0645\u0634\u062E\u0635 \u0634\u062F\u0647 \u0627\u0646\u062F.",
-more_colors:"\u0631\u0646\u06AF\u200C\u0647\u0627\u06CC \u0628\u06CC\u0634\u062A\u0631"
-},
-contextmenu:{
-align:"\u062A\u0631\u0627\u0632",
-left:"\u0686\u067E",
-center:"\u0645\u0631\u06A9\u0632",
-right:"\u0631\u0627\u0633\u062A",
-full:"\u06A9\u0627\u0645\u0644"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"\u062F\u0631\u062C \u062A\u0627\u0631\u06CC\u062E",
-inserttime_desc:"\u062F\u0631\u062C \u0633\u0627\u0639\u062A",
-months_long:"\u0698\u0627\u0646\u0648\u06CC\u0647,\u0641\u0648\u0631\u06CC\u0647,\u0645\u0627\u0631\u0633,\u0622\u0648\u0631\u06CC\u0644,\u0645\u06CC,\u0698\u0648\u0626\u0646,\u062C\u0648\u0644\u0627\u06CC,\u0622\u06AF\u0648\u0633\u062A,\u0633\u067E\u062A\u0627\u0645\u0628\u0631,\u0627\u06A9\u062A\u0628\u0631,\u0646\u0648\u0627\u0645\u0628\u0631,\u062F\u0633\u0627\u0645\u0628\u0631",
-months_short:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",
-day_long:"\u06CC\u06A9\u200C\u0634\u0646\u0628\u0647,\u062F\u0648\u0634\u0646\u0628\u0647,\u0633\u0647\u200C\u0634\u0646\u0628\u0647,\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647,\u067E\u0646\u062C\u200C\u0634\u0646\u0628\u0647,\u062C\u0645\u0639\u0647,\u0634\u0646\u0628\u0647,\u06CC\u06A9\u200C\u0634\u0646\u0628\u0647",
-day_short:"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun"
-},
-print:{
-print_desc:"\u0686\u0627\u067E"
-},
-preview:{
-preview_desc:"\u067E\u06CC\u0634 \u0646\u0645\u0627\u06CC\u0634"
-},
-directionality:{
-ltr_desc:"\u062C\u0647\u062A \u0686\u067E \u0628\u0647 \u0631\u0627\u0633\u062A",
-rtl_desc:"\u062C\u0647\u062A \u0631\u0627\u0633\u062A \u0628\u0647 \u0686\u067E"
-},
-layer:{
-insertlayer_desc:"\u062F\u0631\u062C \u0644\u0627\u06CC\u0647 \u062C\u062F\u06CC\u062F",
-forward_desc:"\u062D\u0631\u06A9\u062A \u0628\u0647 \u062C\u0644\u0648",
-backward_desc:"\u062D\u0631\u06A9\u062A \u0628\u0647 \u0639\u0642\u0628",
-absolute_desc:"\u062A\u063A\u06CC\u06CC\u0631 \u0648\u0636\u0639\u06CC\u062A \u0645\u06A9\u0627\u0646 \u062F\u0642\u06CC\u0642",
-content:"...\u0644\u0627\u06CC\u0647 \u062C\u062F\u06CC\u062F"
-},
-save:{
-save_desc:"\u0630\u062E\u06CC\u0631\u0647",
-cancel_desc:"Cancel all changes"
-},
-nonbreaking:{
-nonbreaking_desc:"\u062F\u0631\u062C \u06A9\u0627\u0631\u0627\u06A9\u062A\u0631 non-breaking \u0641\u0627\u0635\u0644\u0647"
-},
-iespell:{
-iespell_desc:"\u0627\u062C\u0631\u0627\u06CC \u063A\u0644\u0637 \u06AF\u06CC\u0631 \u0627\u0645\u0644\u0627\u06CC\u06CC",
-download:"ieSpell not detected. Do you want to install it now?"
-},
-advhr:{
-advhr_desc:"\u062E\u0637 \u0627\u0641\u0642\u06CC"
-},
-emotions:{
-emotions_desc:"\u0634\u06A9\u0644\u06A9\u200C\u0647\u0627"
-},
-searchreplace:{
-search_desc:"\u06CC\u0627\u0641\u062A\u0646",
-replace_desc:"\u06CC\u0627\u0641\u062A\u0646/\u062C\u0627\u06CC\u06AF\u0632\u06CC\u0646 \u06A9\u0631\u062F\u0646"
-},
-advimage:{
-image_desc:"\u062F\u0631\u062C/\u0648\u06CC\u0631\u0627\u06CC\u0634 \u062A\u0635\u0648\u06CC\u0631"
-},
-advlink:{
-link_desc:"\u062F\u0631\u062C/\u0648\u06CC\u0631\u0627\u06CC\u0634 \u0644\u06CC\u0646\u06A9"
-},
-xhtmlxtras:{
-cite_desc:"Citation",
-abbr_desc:"\u0627\u062E\u062A\u0635\u0627\u0631",
-acronym_desc:"\u0645\u062E\u0641\u0641",
-del_desc:"\u062D\u0630\u0641",
-ins_desc:"\u062F\u0631\u062C",
-attribs_desc:"\u062F\u0631\u062C/\u0648\u06CC\u0631\u0627\u06CC\u0634 \u0645\u0634\u062E\u0635\u0647"
-},
-style:{
-desc:"\u0648\u06CC\u0631\u0627\u06CC\u0634 CSS \u0633\u0628\u06A9"
-},
-paste:{
-paste_text_desc:"\u0686\u0633\u0628\u0627\u0646\u062F\u0646 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062A\u0646 \u0633\u0627\u062F\u0647",
-paste_word_desc:"Word \u0686\u0633\u0628\u0627\u0646\u062F\u0646 \u0627\u0632 ",
-selectall_desc:"\u0627\u0646\u062A\u062E\u0627\u0628 \u0647\u0645\u0647"
-},
-paste_dlg:{
-text_title:"\u0627\u0632 \u062A\u0631\u06A9\u06CC\u0628 CTRL+V \u0631\u0648\u06CC \u06A9\u06CC\u200C\u0628\u0631\u062F \u0628\u0631\u0627\u06CC \u0686\u0633\u0628\u0627\u0646\u062F\u0646 \u0645\u062A\u0646 \u062F\u0631 \u067E\u0646\u0686\u0631\u0647 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u06A9\u0646\u06CC\u062F.",
-text_linebreaks:"Keep linebreaks",
-word_title:"\u0627\u0632 \u062A\u0631\u06A9\u06CC\u0628 CTRL+V \u0631\u0648\u06CC \u06A9\u06CC\u200C\u0628\u0631\u062F \u0628\u0631\u0627\u06CC \u0686\u0633\u0628\u0627\u0646\u062F\u0646 \u0645\u062A\u0646 \u062F\u0631 \u067E\u0646\u0686\u0631\u0647 \u0627\u0633\u062A\u0641\u0627\u062F\u0647 \u06A9\u0646\u06CC\u062F."
-},
-table:{
-desc:"\u062F\u0631\u062C \u062C\u062F\u0648\u0644 \u062C\u062F\u06CC\u062F",
-row_before_desc:"\u062F\u0631\u062C \u0633\u0637\u0631 \u0628\u0639\u062F \u0627\u0632",
-row_after_desc:"\u062F\u0631\u062C \u0633\u0637\u0631 \u0642\u0628\u0644 \u0627\u0632",
-delete_row_desc:"\u062D\u0630\u0641 \u0633\u0637\u0631",
-col_before_desc:"\u062F\u0631\u062C \u0633\u062A\u0648\u0646 \u0642\u0628\u0644 \u0627\u0632",
-col_after_desc:"\u062F\u0631\u062C \u0633\u062A\u0648\u0646 \u0628\u0639\u062F \u0627\u0632",
-delete_col_desc:"\u062D\u0630\u0641 \u0633\u062A\u0648\u0646",
-split_cells_desc:"Split merged table cells",
-merge_cells_desc:"\u0627\u062F\u063A\u0627\u0645 \u0633\u0644\u0648\u0644\u200C\u0647\u0627\u06CC \u062C\u062F\u0648\u0644",
-row_desc:"\u0645\u0634\u062E\u0635\u0627\u062A \u0633\u0637\u0631 \u062C\u062F\u0648\u0644",
-cell_desc:"\u0645\u0634\u062E\u0635\u0627\u062A \u0633\u0644\u0648\u0644 \u062C\u062F\u0648\u0644",
-props_desc:"\u0645\u0634\u062E\u0635\u0627\u062A \u062C\u062F\u0648\u0644",
-paste_row_before_desc:"\u0686\u0633\u0628\u0627\u0646\u062F\u0646 \u0631\u062F\u06CC\u0641 \u062C\u062F\u0648\u0644 \u0642\u0628\u0644 \u0627\u0632",
-paste_row_after_desc:"\u0686\u0633\u0628\u0627\u0646\u062F\u0646 \u0631\u062F\u06CC\u0641 \u062C\u062F\u0648\u0644 \u0628\u0639\u062F \u0627\u0632",
-cut_row_desc:"\u0628\u0631\u06CC\u062F\u0646 \u0633\u0637\u0631 \u062C\u062F\u0648\u0644",
-copy_row_desc:"\u0631\u0648\u0646\u0648\u0634\u062A \u06A9\u0631\u062F\u0646 \u0633\u0637\u0631 \u062C\u062F\u0648\u0644",
-del:"\u062D\u0630\u0641 \u062C\u062F\u0648\u0644",
-row:"\u0633\u0637\u0631",
-col:"\u0633\u062A\u0648\u0646",
-cell:"\u0633\u0644\u0648\u0644"
-},
-autosave:{
-unload_msg:"The changes you made will be lost if you navigate away from this page."
-},
-fullscreen:{
-desc:"\u062A\u063A\u06CC\u06CC\u0631 \u0648\u0636\u0639\u06CC\u062A \u062D\u0627\u0644\u062A \u062A\u0645\u0627\u0645 \u0635\u0641\u062D\u0647"
-},
-media:{
-desc:"embedded media \u062F\u0631\u062C / \u0648\u06CC\u0631\u0627\u06CC\u0634",
-edit:"embedded media \u0648\u06CC\u0631\u0627\u06CC\u0634"
-},
-fullpage:{
-desc:"\u0645\u0634\u062E\u0635\u0627\u062A \u0633\u0646\u062F"
-},
-template:{
-desc:"Insert predefined template content"
-},
-visualchars:{
-desc:"Visual control characters on/off."
-},
-spellchecker:{
-desc:"\u062A\u063A\u06CC\u06CC\u0631 \u0648\u0636\u0639\u06CC\u062A \u063A\u0644\u0637 \u06CC\u0627\u0628 \u0627\u0645\u0644\u0627\u06CC\u06CC",
-menu:"\u062A\u0646\u0638\u06CC\u0645\u0627\u062A \u063A\u0644\u0637 \u06CC\u0627\u0628 \u0627\u0645\u0644\u0627\u06CC\u06CC",
-ignore_word:"\u0646\u0627\u062F\u06CC\u062F\u0647 \u06AF\u0631\u0641\u062A\u0646 \u06A9\u0644\u0645\u0647",
-ignore_words:"\u0646\u0627\u062F\u06CC\u062F\u0647 \u06AF\u0631\u0641\u062A\u0646 \u0647\u0645\u0647",
-langs:"\u0632\u0628\u0627\u0646\u200C\u0647\u0627",
-wait:"...\u0644\u0637\u0641\u0627 \u0635\u0628\u0631 \u06A9\u0646\u06CC\u062F",
-sug:"\u067E\u06CC\u0634\u0646\u0647\u0627\u062F\u0627\u062A",
-no_sug:"No suggestions",
-no_mpell:"No misspellings found."
-},
-pagebreak:{
-desc:".\u062F\u0631\u062C \u062C\u062F\u0627\u06A9\u0646\u0646\u062F\u0647 \u0635\u0641\u062D\u0647"
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/fi.js b/chrome/content/zotero/tinymce/langs/fi.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({fi:{
-common:{
-edit_confirm:"Haluatko k\u00E4ytt\u00E4\u00E4 WYSIWYG tilaa t\u00E4ss\u00E4 tekstikent\u00E4ss\u00E4?",
-apply:"K\u00E4yt\u00E4",
-insert:"Lis\u00E4\u00E4",
-update:"P\u00E4ivit\u00E4",
-cancel:"Peruuta",
-close:"Sulje",
-browse:"Selaa",
-class_name:"Luokka",
-not_set:"-- Ei m\u00E4\u00E4ritetty --",
-clipboard_msg:"Kopioi/Leikkaa/Liit\u00E4 ei ole k\u00E4ytett\u00E4viss\u00E4 Mozilla ja Firefox selaimilla.\nHaluatko lis\u00E4tietoa t\u00E4st\u00E4 ongelmasta?",
-clipboard_no_support:"Selaimesi ei ole tuettu, k\u00E4yt\u00E4 sen sijaan n\u00E4pp\u00E4in oikoteit\u00E4.",
-popup_blocked:"Sinulla on k\u00E4yt\u00F6ss\u00E4si ohjelma, joka est\u00E4\u00E4 ponnahdusikkunoiden n\u00E4yt\u00F6n. Sinun t\u00E4ytyy kytke\u00E4 ponnahdusikkunoiden esto pois p\u00E4\u00E4lt\u00E4 voidaksesi hy\u00F6dynt\u00E4\u00E4 t\u00E4ysin t\u00E4t\u00E4 ty\u00F6kalua.",
-invalid_data:"Virhe: Sy\u00F6tit virheellisi\u00E4 arvoja, ne n\u00E4kyv\u00E4t punaisina.",
-more_colors:"Enemm\u00E4n v\u00E4rej\u00E4"
-},
-contextmenu:{
-align:"Tasaus",
-left:"Vasemmalle",
-center:"Keskelle",
-right:"Oikealle",
-full:"Molemmille puolille"
-},
-insertdatetime:{
-date_fmt:"%d.%m.%Y",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Lis\u00E4\u00E4 p\u00E4iv\u00E4m\u00E4\u00E4r\u00E4",
-inserttime_desc:"Lis\u00E4\u00E4 kellonaika",
-months_long:"Tammikuu,Helmikuu,Maaliskuu,Huhtikuu,Toukokuu,Kes\u00E4kuu,Hein\u00E4kuu,Elokuu,Syyskuu,Lokakuu,Marraskuu,Joulukuu",
-months_short:"Tammi,Helmi,Maalis,Huhti,Touko,Kes\u00E4,Hein\u00E4,Elo,Syys,Loka,Marras,Joulu",
-day_long:"sunnuntai,maanantai,tiistai,keskiviikko,torstai,perjantai,lauantai,sunnuntai",
-day_short:"su,ma,ti,ke,to,pe,la,su"
-},
-print:{
-print_desc:"Tulosta"
-},
-preview:{
-preview_desc:"Esikatselu"
-},
-directionality:{
-ltr_desc:"Suunta vasemmalta oikealle",
-rtl_desc:"Suunta oikealta vasemmalle"
-},
-layer:{
-insertlayer_desc:"Lis\u00E4\u00E4 uusi taso",
-forward_desc:"Siirr\u00E4 eteenp\u00E4in",
-backward_desc:"Siirr\u00E4 taaksep\u00E4in",
-absolute_desc:"Absoluuttinen sijainti",
-content:"Uusi taso..."
-},
-save:{
-save_desc:"Tallenna",
-cancel_desc:"Peruuta kaikki muutokset"
-},
-nonbreaking:{
-nonbreaking_desc:"Lis\u00E4\u00E4 tyhj\u00E4 merkki (nbsp)"
-},
-iespell:{
-iespell_desc:"Oikeinkirjoituksetn tarkistus",
-download:"ieSpell ohjelmaa ei havaittu. Haluatko asentaa sen nyt?"
-},
-advhr:{
-advhr_desc:"Vaakataso viivain"
-},
-emotions:{
-emotions_desc:"Hymi\u00F6t"
-},
-searchreplace:{
-search_desc:"Etsi",
-replace_desc:"Etsi ja korvaa"
-},
-advimage:{
-image_desc:"Lis\u00E4\u00E4/muokkaa kuvaa"
-},
-advlink:{
-link_desc:"Lis\u00E4\u00E4/muokkaa linkki\u00E4"
-},
-xhtmlxtras:{
-cite_desc:"Sitaatti",
-abbr_desc:"Lyhenne",
-acronym_desc:"Kirjainlyhenne",
-del_desc:"Poisto",
-ins_desc:"Lis\u00E4ys",
-attribs_desc:"Lis\u00E4\u00E4/muokkaa attribuutteja"
-},
-style:{
-desc:"Muokkaa CSS tyylej\u00E4"
-},
-paste:{
-paste_text_desc:"Liit\u00E4 pelkk\u00E4n\u00E4 tekstin\u00E4",
-paste_word_desc:"Liit\u00E4 Wordist\u00E4",
-selectall_desc:"Valitse kaikki"
-},
-paste_dlg:{
-text_title:"Paina CTRL+V liitt\u00E4\u00E4ksesi teksti ikkunaan.",
-text_linebreaks:"S\u00E4ilyt\u00E4 rivinvaihdot",
-word_title:"Paina CTRL+V liitt\u00E4\u00E4ksesi teksti ikkunaan."
-},
-table:{
-desc:"Lis\u00E4\u00E4 uusi taulukko",
-row_before_desc:"Lis\u00E4\u00E4 rivi ennen",
-row_after_desc:"Lis\u00E4\u00E4 rivi j\u00E4lkeen",
-delete_row_desc:"Poista rivi",
-col_before_desc:"Lis\u00E4\u00E4 sarake ennen",
-col_after_desc:"Lis\u00E4\u00E4 sarake j\u00E4lkeen",
-delete_col_desc:"Poista sarake",
-split_cells_desc:"Jaa yhdistetyt taulukon solut",
-merge_cells_desc:"Yhdist\u00E4 taulukon solut",
-row_desc:"Taulukon rivin asetukset",
-cell_desc:"Taulukon solun asetukset",
-props_desc:"Taulukon asetukset",
-paste_row_before_desc:"Liit\u00E4 taulukon rivi ennen",
-paste_row_after_desc:"Liit\u00E4 taulukon rivi j\u00E4lkeen",
-cut_row_desc:"Leikkaa taulukon rivi",
-copy_row_desc:"Kopioi taulukon rivi",
-del:"Poista taulukko",
-row:"Rivi",
-col:"Sarake",
-cell:"Solu"
-},
-autosave:{
-unload_msg:"Tekem\u00E4si muutokset menetet\u00E4\u00E4n jos poistut t\u00E4lt\u00E4 sivulta."
-},
-fullscreen:{
-desc:"Kokoruututila"
-},
-media:{
-desc:"Lis\u00E4\u00E4/muokkaa upotettua mediaa",
-edit:"Muokkaa upotettua mediaa"
-},
-fullpage:{
-desc:"Tiedoston asetukset"
-},
-template:{
-desc:"Lis\u00E4\u00E4 esim\u00E4\u00E4ritetty\u00E4 sivupohja sis\u00E4lt\u00F6\u00E4"
-},
-visualchars:{
-desc:"Visual control characters on/off."
-},
-spellchecker:{
-desc:"Oikeinkirjoituksen tarkistus",
-menu:"Oikeinkirjoituksen asetukset",
-ignore_word:"Ohita sana",
-ignore_words:"Ohita kaikki",
-langs:"Kielet",
-wait:"Odota ole hyv\u00E4...",
-sug:"Ehdotukset",
-no_sug:"Ei ehdotuksia",
-no_mpell:"Virheit\u00E4 ei l\u00F6ytynyt."
-},
-pagebreak:{
-desc:"Lis\u00E4\u00E4 sivunvaihto."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/fr.js b/chrome/content/zotero/tinymce/langs/fr.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({fr:{
-common:{
-edit_confirm:"Voulez-vous utiliser le mode WYSIWYG pour cette zone de texte\u00A0?",
-apply:"Appliquer",
-insert:"Ins\u00E9rer",
-update:"Mettre \u00E0 jour",
-cancel:"Annuler",
-close:"Fermer",
-browse:"Naviguer",
-class_name:"Classe",
-not_set:"-- Non init. --",
-clipboard_msg:"Copier/Couper/Coller n'est pas disponible sous Mozilla et sous Firefox.\nVoulez-vous plus d'information sur ce probl\u00E8me\u00A0?",
-clipboard_no_support:"Actuellement non support\u00E9 par votre navigateur, utilisez les raccourcis clavier \u00E0 ma place.",
-popup_blocked:"D\u00E9sol\u00E9, nous avons d\u00E9tect\u00E9 que votre bloqueur de popup a bloqu\u00E9 une fen\u00EAtre dont l'application a besoin. Vous devez d\u00E9sactiver votre bloqueur de popup pour pouvoir utiliser cet outil.",
-invalid_data:"Erreur : Valeurs incorrectes entr\u00E9es, elles sont marqu\u00E9es en rouge.",
-more_colors:"Plus de couleurs"
-},
-contextmenu:{
-align:"Alignement",
-left:"Gauche",
-center:"Centr\u00E9",
-right:"Droite",
-full:"Justifi\u00E9"
-},
-insertdatetime:{
-date_fmt:"%d-%m-%Y",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Ins\u00E9rer date",
-inserttime_desc:"Ins\u00E9rer heure",
-months_long:"Janvier,F\u00E9vrier,Mars,Avril,Mai,Juin,Juillet,Ao\u00FBt,Septembre,Octobre,Novembre,D\u00E9cembre",
-months_short:"Jan,F\u00E9v,Mar,Avr,Mai,Juin,Juil,Ao\u00FBt,Sep,Oct,Nov,D\u00E9c",
-day_long:"Dimanche,Lundi,Mardi,Mercredi,Jeudi,Vendredi,Samedi,Dimanche",
-day_short:"Dim,Lun,Mar,Mer,Jeu,Ven,Sam,Dim"
-},
-print:{
-print_desc:"Imprimer"
-},
-preview:{
-preview_desc:"Pr\u00E9visualiser"
-},
-directionality:{
-ltr_desc:"\u00C9criture de gauche \u00E0 droite",
-rtl_desc:"\u00C9criture de droite \u00E0 gauche"
-},
-layer:{
-insertlayer_desc:"Ins\u00E9rer une nouvelle couche",
-forward_desc:"D\u00E9placer vers l'avant",
-backward_desc:"D\u00E9placer vers l'arri\u00E8re",
-absolute_desc:"Activer le positionnement absolu",
-content:"Nouvelle couche..."
-},
-save:{
-save_desc:"Sauver",
-cancel_desc:"Annuler tous les changements"
-},
-nonbreaking:{
-nonbreaking_desc:"Ins\u00E9rer un espace ins\u00E9cable"
-},
-iespell:{
-iespell_desc:"Lancer le v\u00E9rificateur d'orthographe",
-download:"ieSpell non install\u00E9, voulez-vous l'installer maintenant\u00A0?"
-},
-advhr:{
-advhr_desc:"Ins\u00E9rer trait horizontal"
-},
-emotions:{
-emotions_desc:"\u00C9motions"
-},
-searchreplace:{
-search_desc:"Chercher",
-replace_desc:"Chercher/Remplacer"
-},
-advimage:{
-image_desc:"Ins\u00E9rer/\u00C9diter image"
-},
-advlink:{
-link_desc:"Ins\u00E9rer/\u00C9diter lien"
-},
-xhtmlxtras:{
-cite_desc:"Citation",
-abbr_desc:"Abr\u00E9viation",
-acronym_desc:"Acronyme",
-del_desc:"Effacement",
-ins_desc:"Insertion",
-attribs_desc:"Ins\u00E9rer/\u00C9diter les attributs"
-},
-style:{
-desc:"\u00C9diter la feuille de style CSS"
-},
-paste:{
-paste_text_desc:"Coller en tant que texte brut",
-paste_word_desc:"Coller au d\u00E9part d'un texte cr\u00E9\u00E9 sous Word",
-selectall_desc:"Selectioner tout"
-},
-paste_dlg:{
-text_title:"Utilisez CTRL+V sur votre clavier pour coller le texte dans la fen\u00EAtre.",
-text_linebreaks:"Conserver les sauts de ligne",
-word_title:"Utilisez CTRL+V sur votre clavier pour coller le texte dans la fen\u00EAtre."
-},
-table:{
-desc:"Ins\u00E9rer un nouveau tableau",
-row_before_desc:"Ins\u00E9rer ligne avant",
-row_after_desc:"Ins\u00E9rer ligne apr\u00E8s",
-delete_row_desc:"Effacer ligne",
-col_before_desc:"Ins\u00E9rer colonne avant",
-col_after_desc:"Ins\u00E9rer colonne apr\u00E8s",
-delete_col_desc:"Effacer colonne",
-split_cells_desc:"Scinder les cellules fusionn\u00E9es",
-merge_cells_desc:"Fusionner les cellules",
-row_desc:"Propri\u00E9t\u00E9s de la ligne",
-cell_desc:"Propri\u00E9t\u00E9s de la cellule",
-props_desc:"Propri\u00E9t\u00E9s du tableau",
-paste_row_before_desc:"Coller la ligne avant",
-paste_row_after_desc:"Coller la ligne apr\u00E8s",
-cut_row_desc:"Couper la ligne",
-copy_row_desc:"Copier la ligne",
-del:"Effacer tableau",
-row:"Ligne",
-col:"Colonne",
-cell:"Cellule"
-},
-autosave:{
-unload_msg:"Les changements que vous avez faits seront perdus si vous changez de page."
-},
-fullscreen:{
-desc:"Passer en mode plein \u00E9cran"
-},
-media:{
-desc:"Ins\u00E9rer/\u00C9diter un fichier m\u00E9dia",
-edit:"\u00C9diter un fichier m\u00E9dia"
-},
-fullpage:{
-desc:"Propri\u00E9t\u00E9s du document"
-},
-template:{
-desc:"Ins\u00E9rer un mod\u00E8le pr\u00E9d\u00E9fini."
-},
-visualchars:{
-desc:"Activer les caract\u00E8res de mise en page."
-},
-spellchecker:{
-desc:"Activer le v\u00E9rificateur d'orthographe",
-menu:"Param\u00E8tres du v\u00E9rificateur d'orthographe",
-ignore_word:"Ignorer mot",
-ignore_words:"Ignorer tout",
-langs:"Langues",
-wait:"Patientez svp...",
-sug:"Suggestions",
-no_sug:"Aucune suggestions",
-no_mpell:"Aucune erreur trouv\u00E9e."
-},
-pagebreak:{
-desc:"Ins\u00E9rer saut de page."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/gl.js b/chrome/content/zotero/tinymce/langs/gl.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({gl:{
-common:{
-edit_confirm:"\u00BFDesexa utiliza-lo modo WYSIWYG pra esta caixa de texto?",
-apply:"Apricar",
-insert:"Insertar",
-update:"Actualizar",
-cancel:"Cancelar",
-close:"Cerrar",
-browse:"Examinar",
-class_name:"Clase",
-not_set:"-- Ning\u00FAn --",
-clipboard_msg:"Copiar/Cortar/Pegar non est\u00E1 disponible en Mozilla e Firefox.\n\u00BFDesexa obter mais informaci\u00F3n sobre de este asunto?",
-clipboard_no_support:"O seu navegador non soporta estas funci\u00F3ns, use os atallos de teclado.",
-popup_blocked:"O seu bloqueador de vent\u00E1s emerxentes deshabilitou unha vent\u00E1 que precisa pra o funcionamento da aplicaci\u00F3n. Precisa deshabilita-lo bloqueo de `popups` neste sitio pra utilizar \u00F3 m\u00E1ximo esta ferramenta.",
-invalid_data:"Error: Introducidos valores non v\u00E1lidos, est\u00E1n marcados en vermello.",
-more_colors:"Mais cores"
-},
-contextmenu:{
-align:"Ali\u00F1amento",
-left:"Esquerda",
-center:"Centrado",
-right:"Dereita",
-full:"Xustificado"
-},
-insertdatetime:{
-date_fmt:"%d-%m-%Y",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Insertar data",
-inserttime_desc:"Insertar hora",
-months_long:"Xaneito,Febreiro,Marzo,Abril,Maio,Xu\u00F1o,Xullo,Agosto,Setembro,Outubro,Novembro,Decembro",
-months_short:"Xan,Feb,Mar,Abr,Mai,Xu\u00F1,Xul,Ago,Set,Out,Nov,Dec",
-day_long:"Domingo,Luns,Martes,M\u00E9rcores,Xoves,Venres,S\u00E1bado,Domingo",
-day_short:"Dom,Lun,Mar,M\u00E9r,Xov,Ver,S\u00E1b,Dom"
-},
-print:{
-print_desc:"Imprimir"
-},
-preview:{
-preview_desc:"Vista previa"
-},
-directionality:{
-ltr_desc:"Direcci\u00F3n esquerda a dereita",
-rtl_desc:"Direcci\u00F3n dereita a esquerda"
-},
-layer:{
-insertlayer_desc:"Insertar nova capa",
-forward_desc:"Avanzar",
-backward_desc:"Recuar",
-absolute_desc:"Posici\u00F3n absoluta",
-content:"Nova capa..."
-},
-save:{
-save_desc:"Gardar",
-cancel_desc:"Cancelar todo-los cambios"
-},
-nonbreaking:{
-nonbreaking_desc:"Insertar espacio non colapsable"
-},
-iespell:{
-iespell_desc:"Corrector ortogr\u00E1fico",
-download:"Non se detectou 'ieSpell'. \u00BFDesexa instala-lo agora?"
-},
-advhr:{
-advhr_desc:"Regra horizontal"
-},
-emotions:{
-emotions_desc:"Emoticones"
-},
-searchreplace:{
-search_desc:"Buscar",
-replace_desc:"Buscar/Reemplazar"
-},
-advimage:{
-image_desc:"Insertar/editar imaxe"
-},
-advlink:{
-link_desc:"Insertar/editar hiperv\u00EDnculo"
-},
-xhtmlxtras:{
-cite_desc:"Cita",
-abbr_desc:"Abreviatura",
-acronym_desc:"Acr\u00F3nimo",
-del_desc:"Borrado",
-ins_desc:"Inserci\u00F3n",
-attribs_desc:"Insertar/Editar atributos"
-},
-style:{
-desc:"Editar Estilo CSS"
-},
-paste:{
-paste_text_desc:"Pegar como texto simple",
-paste_word_desc:"Pegar desde Word",
-selectall_desc:"Seleccionar todo"
-},
-paste_dlg:{
-text_title:"Use CTRL+V no teclado pra pega-lo texto na vent\u00E1.",
-text_linebreaks:"Manter salto de li\u00F1as",
-word_title:"Use CTRL+V no teclado pra pega-lo texto na vent\u00E1."
-},
-table:{
-desc:"Inserta unha nova t\u00E1boa",
-row_before_desc:"Insertar fila (antes)",
-row_after_desc:"Insertar fila (desp\u00F3is)",
-delete_row_desc:"Suprimir fila",
-col_before_desc:"Insertar columna (antes)",
-col_after_desc:"Insertar columna (desp\u00F3is)",
-delete_col_desc:"Suprimir columna",
-split_cells_desc:"Dividir celdas",
-merge_cells_desc:"Vincular celdas",
-row_desc:"Propiedades da fila",
-cell_desc:"Propiedades da celda",
-props_desc:"Propiedades da t\u00E1boa",
-paste_row_before_desc:"Pegar filas (antes)",
-paste_row_after_desc:"Pegar filas (desp\u00F3is)",
-cut_row_desc:"Cortar fila",
-copy_row_desc:"Copiar fila",
-del:"Eliminar t\u00E1boa",
-row:"Fila",
-col:"Columna",
-cell:"Celda"
-},
-autosave:{
-unload_msg:"Os cambios realizados perderanse se sae desta p\u00E1xina."
-},
-fullscreen:{
-desc:"Cambiar a modo Pantalla Completa"
-},
-media:{
-desc:"Insertar/editar medio embebido",
-edit:"Editar medio embebido"
-},
-fullpage:{
-desc:"Propiedades do documento"
-},
-template:{
-desc:"Insertar contido de plantilla predefinida"
-},
-visualchars:{
-desc:"Caracteres de control ON/OFF."
-},
-spellchecker:{
-desc:"Conmutar corrector ortogr\u00E1fico",
-menu:"Configuraci\u00F3n de corrector ortogr\u00E1fico",
-ignore_word:"Ignorar verba",
-ignore_words:"Ignorar todo",
-langs:"Idiomas",
-wait:"Agarde...",
-sug:"Suxerencias",
-no_sug:"Sen suxerencias",
-no_mpell:"Non se atoparon erros."
-},
-pagebreak:{
-desc:"Insertar fin de p\u00E1xina"
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/he.js b/chrome/content/zotero/tinymce/langs/he.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({he:{
-common:{
-edit_confirm:"\u05D1\u05E8\u05E6\u05D5\u05E0\u05DA \u05DC\u05D4\u05E9\u05EA\u05DE\u05E9 \u05D1\u05E2\u05D5\u05E8\u05DA \u05D4\u05DE\u05EA\u05E7\u05D3\u05DD?",
-apply:"\u05D0\u05D9\u05E9\u05D5\u05E8",
-insert:"\u05D4\u05D5\u05E1\u05E4\u05D4",
-update:"\u05E2\u05D3\u05DB\u05D5\u05DF",
-cancel:"\u05D1\u05D9\u05D8\u05D5\u05DC",
-close:"\u05E1\u05D2\u05D9\u05E8\u05D4",
-browse:"\u05E2\u05D9\u05D5\u05DF",
-class_name:"\u05DE\u05D7\u05DC\u05E7\u05D4",
-not_set:"-- \u05DC\u05D0 \u05D4\u05D5\u05D2\u05D3\u05E8 --",
-clipboard_msg:"\r\n \u05D4\u05E2\u05EA\u05E7\u05D4/\u05D2\u05D6\u05D9\u05E8\u05D4 \u05D5\u05D4\u05D3\u05D1\u05E7\u05D4 \u05D0\u05D9\u05E0\u05DD \u05D6\u05DE\u05D9\u05E0\u05D9\u05DD \u05D1 Mozilla \u05D5\u05D1-Firefox.\r\n \u05D4\u05D0\u05DD \u05D1\u05E8\u05E6\u05D5\u05E0\u05DA \u05DC\u05E7\u05D1\u05DC \u05DE\u05D9\u05D3\u05E2 \u05E0\u05D5\u05E1\u05E3 \u05E2\u05DC \u05D4\u05E0\u05D5\u05E9\u05D0?\r\n ",
-clipboard_no_support:"\u05DB\u05E8\u05D2\u05E2 \u05DC\u05D0 \u05E0\u05EA\u05DE\u05DA \u05E2\u05DC \u05D9\u05D3\u05D9 \u05D4\u05D3\u05E4\u05D3\u05E4\u05DF \u05E9\u05DC\u05DA. \u05D4\u05E9\u05EA\u05DE\u05E9 \u05D1\u05E7\u05D9\u05E6\u05D5\u05E8\u05D9 \u05D4\u05DE\u05E7\u05DC\u05D3\u05EA.",
-popup_blocked:"\u05D7\u05D5\u05E1\u05DD \u05E4\u05E8\u05D9\u05D8\u05D9\u05DD \u05DE\u05D5\u05E7\u05E4\u05E6\u05D9\u05DD \u05DE\u05E0\u05E2 \u05DE\u05D7\u05DC\u05D5\u05DF \u05D7\u05E9\u05D5\u05D1 \u05DE\u05DC\u05D4\u05E4\u05EA\u05D7,\u05D0\u05DD \u05D1\u05E8\u05E6\u05D5\u05E0\u05DA \u05DC\u05D4\u05E9\u05EA\u05DE\u05E9 \u05D1\u05DB\u05DC\u05D9 \u05D6\u05D4 \u05E2\u05DC\u05D9\u05DA \u05DC\u05D1\u05D8\u05DC \u05D0\u05EA \u05D7\u05D5\u05E1\u05DD \u05D4\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",
-invalid_data:"Error: Invalid values entered, these are marked in red.",
-more_colors:"\u05E2\u05D5\u05D3 \u05E6\u05D1\u05E2\u05D9\u05DD"
-},
-contextmenu:{
-align:"\u05D9\u05D9\u05E9\u05D5\u05E8",
-left:"\u05E9\u05DE\u05D0\u05DC",
-center:"\u05D0\u05DE\u05E6\u05E2",
-right:"\u05D9\u05DE\u05D9\u05DF",
-full:"\u05E9\u05E0\u05D9 \u05D4\u05E6\u05D3\u05D3\u05D9\u05DD"
-},
-insertdatetime:{
-date_fmt:"%d-%m-%Y",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"\u05D4\u05D5\u05E1\u05E4\u05EA \u05EA\u05D0\u05E8\u05D9\u05DA",
-inserttime_desc:"\u05D4\u05D5\u05E1\u05E4\u05EA \u05D6\u05DE\u05DF",
-months_long:"\u05D9\u05E0\u05D5\u05D0\u05E8,\u05E4\u05D1\u05E8\u05D5\u05D0\u05E8,\u05DE\u05E8\u05E5,\u05D0\u05E4\u05E8\u05D9\u05DC,\u05DE\u05D0\u05D9,\u05D9\u05D5\u05E0\u05E2,\u05D9\u05D5\u05DC\u05D9,\u05D0\u05D5\u05D2\u05D5\u05E1\u05D8,\u05E1\u05E4\u05D8\u05DE\u05D1\u05E8,\u05D0\u05D5\u05E7\u05D8\u05D5\u05D1\u05E8,\u05E0\u05D5\u05D1\u05DE\u05D1\u05E8,\u05D3\u05E6\u05DE\u05D1\u05E8",
-months_short:"\u05D9\u05E0\u05D5\u05D0\u05E8,\u05E4\u05D1\u05E8\u05D5\u05D0\u05E8,\u05DE\u05E8\u05E5,\u05D0\u05E4\u05E8\u05D9\u05DC,\u05DE\u05D0\u05D9,\u05D9\u05D5\u05E0\u05E2,\u05D9\u05D5\u05DC\u05D9,\u05D0\u05D5\u05D2\u05D5\u05E1\u05D8,\u05E1\u05E4\u05D8\u05DE\u05D1\u05E8,\u05D0\u05D5\u05E7\u05D8\u05D5\u05D1\u05E8,\u05E0\u05D5\u05D1\u05DE\u05D1\u05E8,\u05D3\u05E6\u05DE\u05D1\u05E8",
-day_long:"\u05D9\u05D5\u05DD \u05E8\u05D0\u05E9\u05D5\u05DF,\u05D9\u05D5\u05DD \u05E9\u05E0\u05D9,\u05D9\u05D5\u05DD \u05E9\u05DC\u05D9\u05E9\u05D9,\u05D9\u05D5\u05DD \u05E8\u05D1\u05D9\u05E2\u05D9,\u05D9\u05D5\u05DD \u05D7\u05DE\u05D9\u05E9\u05D9,\u05D9\u05D5\u05DD \u05E9\u05D9\u05E9,\u05D9\u05D5\u05DD \u05E9\u05D1\u05EA,\u05D9\u05D5\u05DD \u05E8\u05D0\u05E9\u05D5\u05DF",
-day_short:"\u05D9\u05D5\u05DD \u05D0',\u05D9\u05D5\u05DD \u05D1',\u05D9\u05D5\u05DD \u05D2',\u05D9\u05D5\u05DD \u05D3',\u05D9\u05D5\u05DD \u05D4',\u05D9\u05D5\u05DD \u05D5',\u05E9\u05D1\u05EA,\u05D9\u05D5\u05DD \u05D0'"
-},
-print:{
-print_desc:"\u05D4\u05D3\u05E4\u05E1\u05D4"
-},
-preview:{
-preview_desc:"\u05EA\u05E6\u05D5\u05D2\u05D4 \u05DE\u05E7\u05D3\u05D9\u05DE\u05D4"
-},
-directionality:{
-ltr_desc:"\u05DB\u05D9\u05D5\u05D5\u05DF \u05D8\u05E7\u05E1\u05D8 \u05DE\u05E9\u05DE\u05D0\u05DC \u05DC\u05D9\u05DE\u05D9\u05DF",
-rtl_desc:"\u05DB\u05D9\u05D5\u05D5\u05DF \u05D8\u05E7\u05E1\u05D8 \u05DE\u05D9\u05DE\u05D9\u05DF \u05DC\u05E9\u05DE\u05D0\u05DC"
-},
-layer:{
-insertlayer_desc:"\u05D4\u05D5\u05E1\u05E4\u05EA \u05E9\u05DB\u05D1\u05D4 \u05D7\u05D3\u05E9\u05D4",
-forward_desc:"\u05D4\u05E2\u05D1\u05E8\u05D4 \u05E7\u05D3\u05D9\u05DE\u05D4",
-backward_desc:"\u05D4\u05E2\u05D1\u05E8\u05D4 \u05D0\u05D7\u05D5\u05E8\u05D4",
-absolute_desc:"\u05D1\u05D7\u05D9\u05E8\u05EA \u05DE\u05D9\u05E7\u05D5\u05DD \u05DE\u05D5\u05D7\u05DC\u05D8",
-content:"\u05E9\u05DB\u05D1\u05D4 \u05D7\u05D3\u05E9\u05D4..."
-},
-save:{
-save_desc:"\u05E9\u05DE\u05D9\u05E8\u05D4",
-cancel_desc:"\u05D1\u05D9\u05D8\u05D5\u05DC \u05DB\u05DC \u05D4\u05E9\u05D9\u05E0\u05D5\u05D9\u05DD"
-},
-nonbreaking:{
-nonbreaking_desc:"\u05D4\u05D5\u05E1\u05E4\u05EA \u05E8\u05D5\u05D5\u05D7"
-},
-iespell:{
-iespell_desc:"\u05D1\u05D3\u05D9\u05E7\u05EA \u05D0\u05D9\u05D5\u05EA",
-download:" \u05DC\u05D0 \u05E0\u05DE\u05E6\u05D0 ieSpell. \u05D4\u05D0\u05DD \u05D1\u05E8\u05E6\u05D5\u05E0\u05DA \u05DC\u05D4\u05EA\u05E7\u05D9\u05DF?"
-},
-advhr:{
-advhr_desc:"\u05E7\u05D5 \u05D0\u05D5\u05E4\u05E7\u05D9"
-},
-emotions:{
-emotions_desc:"\u05E1\u05DE\u05D9\u05D9\u05DC\u05D9\u05DD"
-},
-searchreplace:{
-search_desc:"\u05D7\u05D9\u05E4\u05D5\u05E9",
-replace_desc:"\u05D4\u05D7\u05DC\u05E4\u05D4"
-},
-advimage:{
-image_desc:"\u05D4\u05D5\u05E1\u05E4\u05D4/\u05E2\u05E8\u05D9\u05DB\u05EA \u05EA\u05DE\u05D5\u05E0\u05D4"
-},
-advlink:{
-link_desc:"\u05D4\u05D5\u05E1\u05E4\u05D4/\u05E2\u05E8\u05D9\u05DB\u05EA \u05D4\u05D9\u05E4\u05E8-\u05E7\u05D9\u05E9\u05D5\u05E8"
-},
-xhtmlxtras:{
-cite_desc:"Citation",
-abbr_desc:"Abbreviation",
-acronym_desc:"Acronym",
-del_desc:"Deletion",
-ins_desc:"Insertion",
-attribs_desc:"Insert/Edit Attributes"
-},
-style:{
-desc:"\u05E2\u05D3\u05DB\u05D5\u05DF \u05D4\u05D2\u05D3\u05E8\u05D5\u05EA CSS"
-},
-paste:{
-paste_text_desc:"Paste as Plain Text",
-paste_word_desc:"Paste from Word",
-selectall_desc:"Select All"
-},
-paste_dlg:{
-text_title:"Use CTRL+V on your keyboard to paste the text into the window.",
-text_linebreaks:"Keep linebreaks",
-word_title:"Use CTRL+V on your keyboard to paste the text into the window."
-},
-table:{
-desc:"\u05D4\u05DB\u05E0\u05E1\u05EA \u05D8\u05D1\u05DC\u05D4 \u05D7\u05D3\u05E9\u05D4",
-row_before_desc:"\u05D4\u05DB\u05E0\u05E1\u05EA \u05E9\u05D5\u05E8\u05D4 \u05DC\u05E4\u05E0\u05D9",
-row_after_desc:"\u05D4\u05DB\u05E0\u05E1\u05EA \u05E9\u05D5\u05E8\u05D4 \u05D0\u05D7\u05E8\u05D9",
-delete_row_desc:"\u05DE\u05D7\u05E7/\u05D9 \u05E9\u05D5\u05E8\u05D4",
-col_before_desc:"\u05D4\u05DB\u05E0\u05E1\u05EA \u05E2\u05DE\u05D5\u05D3\u05D4 \u05DC\u05E4\u05E0\u05D9",
-col_after_desc:"\u05D4\u05DB\u05E0\u05E1\u05EA \u05E2\u05DE\u05D5\u05D3\u05D4 \u05D0\u05D7\u05E8\u05D9",
-delete_col_desc:"\u05D4\u05E1\u05E8\u05EA \u05E2\u05DE\u05D5\u05D3\u05D4",
-split_cells_desc:"\u05E4\u05D9\u05E6\u05D5\u05DC \u05EA\u05D0\u05D9\u05DD \u05D1\u05D8\u05D1\u05DC\u05D4",
-merge_cells_desc:"\u05D0\u05D9\u05D7\u05D5\u05D3 \u05EA\u05D0\u05D9\u05DD \u05D1\u05D8\u05D1\u05DC\u05D4",
-row_desc:"\u05EA\u05DB\u05D5\u05E0\u05D5\u05EA \u05E9\u05D5\u05E8\u05D4 \u05D1\u05D8\u05D1\u05DC\u05D4",
-cell_desc:"\u05EA\u05DB\u05D5\u05E0\u05D5\u05EA \u05EA\u05D0 \u05D1\u05D8\u05D1\u05DC\u05D4",
-props_desc:"\u05EA\u05DB\u05D5\u05E0\u05D5\u05EA \u05D4\u05D8\u05D1\u05DC\u05D4",
-paste_row_before_desc:"\u05D4\u05D3\u05D1\u05E7\u05EA \u05E9\u05D5\u05E8\u05D4 \u05D1\u05D8\u05D1\u05DC\u05D4 \u05DC\u05E4\u05E0\u05D9",
-paste_row_after_desc:"\u05D4\u05D3\u05D1\u05E7\u05EA \u05E9\u05D5\u05E8\u05D4 \u05D1\u05D8\u05D1\u05DC\u05D4 \u05D0\u05D7\u05E8\u05D9",
-cut_row_desc:"\u05D2\u05D6\u05D9\u05E8\u05EA \u05E9\u05D5\u05E8\u05D4 \u05D1\u05D8\u05D1\u05DC\u05D4",
-copy_row_desc:"\u05D4\u05E2\u05EA\u05E7\u05EA \u05E9\u05D5\u05E8\u05D4 \u05D1\u05D8\u05D1\u05DC\u05D4",
-del:"\u05DE\u05D7\u05D9\u05E7\u05EA \u05D8\u05D1\u05DC\u05D4",
-row:"\u05E9\u05D5\u05E8\u05D4",
-col:"\u05E2\u05DE\u05D5\u05D3\u05D4",
-cell:"\u05EA\u05D0"
-},
-autosave:{
-unload_msg:"\u05D4\u05E9\u05D9\u05E0\u05D5\u05D9\u05D9\u05DD \u05E9\u05D1\u05D9\u05E6\u05E2\u05EA \u05DC\u05D0 \u05D9\u05E9\u05DE\u05E8\u05D5 \u05D0\u05DD \u05EA\u05E2\u05D1\u05D5\u05E8 \u05DE\u05D3\u05E3 \u05D6\u05D4"
-},
-fullscreen:{
-desc:"Toggle fullscreen mode"
-},
-media:{
-desc:"Insert / edit embedded media",
-edit:"Edit embedded media"
-},
-fullpage:{
-desc:"Document properties"
-},
-template:{
-desc:"Insert predefined template content"
-},
-visualchars:{
-desc:"Visual control characters on/off."
-},
-spellchecker:{
-desc:"Toggle spellchecker",
-menu:"Spellchecker settings",
-ignore_word:"Ignore word",
-ignore_words:"Ignore all",
-langs:"\u05E9\u05E4\u05D5\u05EA",
-wait:"Please wait...",
-sug:"Suggestions",
-no_sug:"No suggestions",
-no_mpell:"No misspellings found."
-},
-pagebreak:{
-desc:"Insert page break."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/hr.js b/chrome/content/zotero/tinymce/langs/hr.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({hr:{
-common:{
-edit_confirm:"\u017Delite li koristiti WYSIWYG na\u010Din rada za ovo tekstualno polje?",
-apply:"Primjeni",
-insert:"Umetni",
-update:"Obnovi",
-cancel:"Odustani",
-close:"Zatvori",
-browse:"Pregled",
-class_name:"Klasa",
-not_set:"-- Nije postavljeno --",
-clipboard_msg:"Kopiraj/Izre\u017Ei/Zalijepi nije dostupno Mozilla i Firefox preglednicima.\nVi\u0161e informacija?",
-clipboard_no_support:"Trenuta\u010Dno va\u0161 preglednik ne podr\u017Eava ovu opciju, poku\u0161ajte koristiti tipkovni\u010Dku kraticu.",
-popup_blocked:"Oprostite, izgleda da je va\u0161 popup-blocker onemogu\u0107io prozor u sklopu ovog programa. Morate onemogu\u0107iti blokiranje popup prozora da bi u potpunosti iskoristili ovaj alat.",
-invalid_data:"Gre\u0161ka: Une\u0161ene su nevaljane vrijednosti, ozna\u010Dene su crvenom bojom.",
-more_colors:"Vi\u0161e boja"
-},
-contextmenu:{
-align:"Poravnavanje",
-left:"Lijevo",
-center:"Sredina",
-right:"Desno",
-full:"Puno"
-},
-insertdatetime:{
-date_fmt:"%d.%m.%Y.",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Umetni datum",
-inserttime_desc:"Umetni vrijeme",
-months_long:"sije\u010Danj,velja\u010Da,o\u017Eujak,travanj,svibanj,lipanj,srpanj,kolovoz,rujan,listopad,studeni,prosinac",
-months_short:"sij,velj,o\u017Eu,tra,svi,lip,srp,kol,ruj,lis,stu,pro",
-day_long:"nedjelja,ponedjeljak,utorak,srijeda,\u010Detvrtak,petak,subota,nedjelja",
-day_short:"ned,pon,uto,sri,\u010Det,pet,sub,ned"
-},
-print:{
-print_desc:"Ispis"
-},
-preview:{
-preview_desc:"Prikaz"
-},
-directionality:{
-ltr_desc:"S lijeva na desno",
-rtl_desc:"S desna na lijevo"
-},
-layer:{
-insertlayer_desc:"Umetni novi sloj",
-forward_desc:"Pomakni naprijed",
-backward_desc:"Pomakni natrag",
-absolute_desc:"Uklju\u010Di/isklju\u010Di apsolutno pozicioniranje",
-content:"Novi sloj..."
-},
-save:{
-save_desc:"Spremi",
-cancel_desc:"Odustani od svih promjena"
-},
-nonbreaking:{
-nonbreaking_desc:"Umetni razmak"
-},
-iespell:{
-iespell_desc:"Pokreni provjeru pravopisa",
-download:"Provjera pravopisa nije postaljena. Postaviti sada?"
-},
-advhr:{
-advhr_desc:"Vodoravna crta"
-},
-emotions:{
-emotions_desc:"Emocije"
-},
-searchreplace:{
-search_desc:"Prona\u0111i",
-replace_desc:"Prona\u0111i/Zamijeni"
-},
-advimage:{
-image_desc:"Umetni/uredi sliku"
-},
-advlink:{
-link_desc:"Insert/edit link"
-},
-xhtmlxtras:{
-cite_desc:"Citat",
-abbr_desc:"Kratica",
-acronym_desc:"Akronim",
-del_desc:"Brisanje",
-ins_desc:"Unos",
-attribs_desc:"Umetni/uredi atribute"
-},
-style:{
-desc:"Uredi CSS"
-},
-paste:{
-paste_text_desc:"Zalijepi kao obi\u010Dni tekst",
-paste_word_desc:"Zalijepi iz Worda",
-selectall_desc:"Odaberi sve"
-},
-paste_dlg:{
-text_title:"Koristite CTRL+V na tipkovnici da zalijepite tekst u prozor.",
-text_linebreaks:"Zadr\u017Ei prijelome",
-word_title:"Koristite CTRL+V na tipkovnici da zalijepite tekst u prozor."
-},
-table:{
-desc:"Nova tablica",
-row_before_desc:"Umetni redak iznad",
-row_after_desc:"Umetni redak ispod",
-delete_row_desc:"Izbri\u0161i redak",
-col_before_desc:"Umetni stupac lijevo",
-col_after_desc:"Umetni stupac desno",
-delete_col_desc:"Ukloni stupac",
-split_cells_desc:"Razdvoji spojene \u0107elije",
-merge_cells_desc:"Spoji \u0107elije",
-row_desc:"Svojstva retka",
-cell_desc:"Svojstva \u0107elije",
-props_desc:"Svojstva tablice",
-paste_row_before_desc:"Zalijepi redak iznad",
-paste_row_after_desc:"Zalijepi redak ispod",
-cut_row_desc:"Izre\u017Ei redak",
-copy_row_desc:"Kopiraj redak",
-del:"Izbri\u0161i tablicu",
-row:"Redak",
-col:"Stupac",
-cell:"\u0106elija"
-},
-autosave:{
-unload_msg:"Promjene u dokumentu \u0107e biti izgubljene ako iza\u0111ete s ove stranice."
-},
-fullscreen:{
-desc:"Uklju\u010Di/isklju\u010Di prikaz preko cijelog ekrana"
-},
-media:{
-desc:"Insert / edit embedded media",
-edit:"Edit embedded media"
-},
-fullpage:{
-desc:"Svojstva dokumenta"
-},
-template:{
-desc:"Umetni sadr\u017Eaj iz predlo\u017Eak"
-},
-visualchars:{
-desc:"Vizualni kontrolni znakovi uklju\u010Deni/isklju\u010Deni."
-},
-spellchecker:{
-desc:"Uklju\u010Di/isklju\u010Di provjeru pravopisa",
-menu:"Postavke provjere pravopisa",
-ignore_word:"Zanemari rije\u010D",
-ignore_words:"Zanemari sver",
-langs:"Jezici",
-wait:"Pri\u010Dekajte...",
-sug:"Prijedlozi",
-no_sug:"Nema prijedloga",
-no_mpell:"Nije prona\u0111ena nijedna pravopisna gre\u0161ke."
-},
-pagebreak:{
-desc:"Umetni prijelom."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/hu.js b/chrome/content/zotero/tinymce/langs/hu.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({hu:{
-common:{
-edit_confirm:"Haszn\u00E1lni akarja a WYSIWYG m\u00F3dot ebben a sz\u00F6vegdobozban?",
-apply:"Alkalmaz",
-insert:"Besz\u00FAr",
-update:"Friss\u00EDt",
-cancel:"M\u00E9gse",
-close:"Bez\u00E1r",
-browse:"Tall\u00F3z",
-class_name:"Oszt\u00E1ly",
-not_set:"-- Nincs megadva --",
-clipboard_msg:"A M\u00E1sol\u00E1s/Kiv\u00E1g\u00E1s/Besz\u00FAr\u00E1s funkci\u00F3k nem el\u00E9rhet\u0151k Mozilla \u00E9s Firefox alatt.\nK\u00EDv\u00E1n t\u00F6bbet tudni err\u0151l a t\u00E9m\u00E1r\u00F3l?",
-clipboard_no_support:"Jelenleg nem t\u00E1mogatja a b\u00F6ng\u00E9sz\u0151je, haszn\u00E1lja a billenty\u0171kombin\u00E1ci\u00F3kat helyette.",
-popup_blocked:"A felugr\u00F3 ablakok tilt\u00E1sa miatt nem tudtunk megjelen\u00EDteni egy, az alkalmaz\u00E1shoz sz\u00FCks\u00E9ges ablakot. Enged\u00E9lyezze a b\u00F6ng\u00E9sz\u0151j\u00E9ben a felugr\u00F3 ablakokat, hogy minden funkci\u00F3t haszn\u00E1lhasson.",
-invalid_data:"Hiba: \u00C9rv\u00E9nytelen adatok, pirossal jel\u00F6lve.",
-more_colors:"T\u00F6bb sz\u00EDn"
-},
-contextmenu:{
-align:"Igaz\u00EDt\u00E1s",
-left:"Balra",
-center:"K\u00F6z\u00E9pre",
-right:"Jobbra",
-full:"Sorkiz\u00E1r\u00E1s"
-},
-insertdatetime:{
-date_fmt:"%Y.%m.%d.",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"D\u00E1tum besz\u00FAr\u00E1sa",
-inserttime_desc:"Id\u0151 besz\u00FAr\u00E1sa",
-months_long:"janu\u00E1r,febru\u00E1r,m\u00E1rcius,\u00E1prilis,m\u00E1jus,j\u00FAnius,j\u00FAlius,augusztus,szeptember,okt\u00F3ber,november,december",
-months_short:"jan,feb,m\u00E1r,\u00E1pr,m\u00E1j,j\u00FAn,j\u00FAl,aug,szep,okt,nov,dec",
-day_long:"vas\u00E1rnap,h\u00E9tf\u0151,kedd,szerda,cs\u00FCt\u00F6rt\u00F6k,p\u00E9ntek,szombat,vas\u00E1rnap",
-day_short:"V,H,K,Sze,Cs,P,Szo,V"
-},
-print:{
-print_desc:"Nyomtat\u00E1s"
-},
-preview:{
-preview_desc:"El\u0151n\u00E9zet"
-},
-directionality:{
-ltr_desc:"Balr\u00F3l jobbra",
-rtl_desc:"Jobbr\u00F3l balra"
-},
-layer:{
-insertlayer_desc:"\u00DAj r\u00E9teg besz\u00FAr\u00E1sa",
-forward_desc:"Mozgat\u00E1s el\u0151re",
-backward_desc:"Mozgat\u00E1s h\u00E1tra",
-absolute_desc:"Abszol\u00FAt poz\u00EDci\u00F3 ki-/bekapcsol\u00E1sa",
-content:"\u00DAj r\u00E9teg..."
-},
-save:{
-save_desc:"Ment\u00E9s",
-cancel_desc:"\u00D6sszes v\u00E1ltoz\u00E1s visszavon\u00E1sa"
-},
-nonbreaking:{
-nonbreaking_desc:"Nemsort\u00F6r\u0151 sz\u00F3k\u00F6z besz\u00FAr\u00E1sa"
-},
-iespell:{
-iespell_desc:"Helyes\u00EDr\u00E1s-ellen\u0151rz\u00E9s futtat\u00E1sa",
-download:"ieSpell nem tal\u00E1lhat\u00F3. Telep\u00EDti most?"
-},
-advhr:{
-advhr_desc:"V\u00EDzszintes vonal"
-},
-emotions:{
-emotions_desc:"Hangulatjelek"
-},
-searchreplace:{
-search_desc:"Keres\u00E9s",
-replace_desc:"Keres\u00E9s/Csere"
-},
-advimage:{
-image_desc:"K\u00E9p besz\u00FAr\u00E1sa/szerkeszt\u00E9se"
-},
-advlink:{
-link_desc:"Link besz\u00FAr\u00E1sa/szerkeszt\u00E9s"
-},
-xhtmlxtras:{
-cite_desc:"Id\u00E9zet",
-abbr_desc:"R\u00F6vid\u00EDt\u00E9s",
-acronym_desc:"Bet\u0171sz\u00F3",
-del_desc:"T\u00F6r\u00F6lt",
-ins_desc:"Besz\u00FArt",
-attribs_desc:"Tulajdons\u00E1gok besz\u00FAr\u00E1sa/szerkeszt\u00E9se"
-},
-style:{
-desc:"CSS st\u00EDlus szerkeszt\u00E9se"
-},
-paste:{
-paste_text_desc:"Besz\u00FAr\u00E1s sz\u00F6vegk\u00E9nt",
-paste_word_desc:"Besz\u00FAr\u00E1s Wordb\u0151l",
-selectall_desc:"Mindent kijel\u00F6l"
-},
-paste_dlg:{
-text_title:"Haszn\u00E1lja a Ctrl+V-t a billenty\u0171zet\u00E9n a beilleszt\u00E9shez.",
-text_linebreaks:"Sort\u00F6r\u00E9sek megtart\u00E1sa",
-word_title:"Haszn\u00E1lja a Ctrl+V-t a billenty\u0171zet\u00E9n a beilleszt\u00E9shez."
-},
-table:{
-desc:"T\u00E1bl\u00E1zat besz\u00FAr\u00E1sa/szerkeszt\u00E9se",
-row_before_desc:"Sor besz\u00FAr\u00E1sa el\u00E9",
-row_after_desc:"Sor besz\u00FAr\u00E1sa ut\u00E1na",
-delete_row_desc:"Sor t\u00F6rl\u00E9se",
-col_before_desc:"Oszlop besz\u00FAr\u00E1sa el\u00E9",
-col_after_desc:"Oszlop besz\u00FAr\u00E1sa ut\u00E1na",
-delete_col_desc:"Oszlop t\u00F6rl\u00E9se",
-split_cells_desc:"Cell\u00E1k feloszt\u00E1sa",
-merge_cells_desc:"Cell\u00E1k \u00F6sszevon\u00E1sa",
-row_desc:"Sor tulajdons\u00E1gai",
-cell_desc:"Cella tulajdons\u00E1gai",
-props_desc:"T\u00E1bl\u00E1zat tulajdons\u00E1gai",
-paste_row_before_desc:"Sor bem\u00E1sol\u00E1sa el\u00E9",
-paste_row_after_desc:"Sor bem\u00E1sol\u00E1sa ut\u00E1na",
-cut_row_desc:"Sor kiv\u00E1g\u00E1sa",
-copy_row_desc:"Sor m\u00E1sol\u00E1sa",
-del:"T\u00E1bl\u00E1zat t\u00F6rl\u00E9se",
-row:"Sor",
-col:"Oszlop",
-cell:"Cella"
-},
-autosave:{
-unload_msg:"A m\u00F3dos\u00EDt\u00E1sok nem lesznek mentve, ha elhagyja az oldalt."
-},
-fullscreen:{
-desc:"Teljesk\u00E9perny\u0151s m\u00F3d ki-/bekapcsol\u00E1sa"
-},
-media:{
-desc:"Be\u00E1gyazott m\u00E9dia besz\u00FAr\u00E1sa/szerkeszt\u00E9se",
-edit:"Be\u00E1gyazott m\u00E9dia szerkeszt\u00E9se"
-},
-fullpage:{
-desc:"Dokumentum tulajdons\u00E1gai"
-},
-template:{
-desc:"Sablon beilleszt\u00E9se"
-},
-visualchars:{
-desc:"Vizu\u00E1lis vez\u00E9rl\u0151karakterek be/ki."
-},
-spellchecker:{
-desc:"Helyes\u00EDr\u00E1s-ellen\u0151rz\u0151 ki-/bekapcsol\u00E1sa",
-menu:"Helyes\u00EDr\u00E1s-ellen\u0151rz\u0151 tulajdons\u00E1gai",
-ignore_word:"Sz\u00F3 kihagy\u00E1sa",
-ignore_words:"Mindet kihagy",
-langs:"Nyelvek",
-wait:"K\u00E9rem, v\u00E1rjon...",
-sug:"Aj\u00E1nl\u00E1sok",
-no_sug:"Nincs aj\u00E1nl\u00E1s",
-no_mpell:"Nem tal\u00E1ltam helyes\u00EDr\u00E1si hib\u00E1t."
-},
-pagebreak:{
-desc:"Oldalt\u00F6r\u00E9s besz\u00FAr\u00E1sa."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/ia.js b/chrome/content/zotero/tinymce/langs/ia.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({ia:{
-common:{
-edit_confirm:"\u662F\u5426\u5728\u8BE5text area\u5185\u542F\u7528\u6240\u89C1\u5373\u6240\u5F97\u6A21\u5F0F\uFF1F",
-apply:"\u5E94\u7528",
-insert:"\u63D2\u5165",
-update:"\u66F4\u65B0",
-cancel:"\u53D6\u6D88",
-close:"\u5173\u95ED",
-browse:"\u6D4F\u89C8",
-class_name:"\u6837\u5F0F\u7C7B\u540D",
-not_set:"-- \u672A\u8BBE\u7F6E --",
-clipboard_msg:"\u590D\u5236\u3001\u526A\u5207\u548C\u7C98\u8D34\u529F\u80FD\u5728Mozilla \u548C Firefox\u4E2D\u65E0\u6CD5\u4F7F\u7528",
-clipboard_no_support:"\u5C1A\u4E0D\u652F\u6301\u60A8\u6240\u4F7F\u7528\u7684\u6D4F\u89C8\u5668\uFF0C\u8BF7\u4F7F\u7528\u952E\u76D8\u65B9\u5F0F\u64CD\u4F5C",
-popup_blocked:"\u5BF9\u4E0D\u8D77\uFF0C\u60A8\u7684\u5FEB\u663E\u7A97\u53E3\u963B\u6B62\u7A0B\u5E8F\u5DF2\u7ECF\u963B\u6B62\u4E86\u672C\u5FEB\u663E\u7A97\u53E3\uFF0C\u8BF7\u8C03\u6574\u4F60\u7684\u6D4F\u89C8\u5668\u8BBE\u7F6E\uFF0C\u5141\u8BB8\u672C\u7F51\u7AD9\u5F39\u51FA\u65B0\u7A97\u53E3\uFF0C\u4EE5\u4FBF\u4F7F\u7528\u6B64\u529F\u80FD",
-invalid_data:"\u9519\u8BEF\uFF1A\u8F93\u5165\u4E86\u65E0\u6548\u7684\u503C\uFF0C\u5DF2\u6807\u8BB0\u4E3A\u7EA2\u8272\u3002",
-more_colors:"\u66F4\u591A\u989C\u8272"
-},
-contextmenu:{
-align:"\u5BF9\u9F50\u65B9\u5F0F",
-left:"\u5DE6\u5BF9\u9F50",
-center:"\u5C45\u4E2D",
-right:"\u53F3\u5BF9\u9F50",
-full:"\u4E24\u7AEF\u5BF9\u9F50"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"\u63D2\u5165\u4ECA\u5929\u65E5\u671F",
-inserttime_desc:"\u63D2\u5165\u73B0\u5728\u65F6\u95F4",
-months_long:"\u4E00\u6708,\u4E8C\u6708,\u4E09\u6708,\u56DB\u6708,\u4E94\u6708,\u516D\u6708,\u4E03\u6708,\u516B\u6708,\u4E5D\u6708,\u5341\u6708,\u5341\u4E00\u6708,\u5341\u4E8C\u6708",
-months_short:"1\u6708,2\u6708,3\u6708,4\u6708,5\u6708,6\u6708,7\u6708,8\u6708,9\u6708,10\u6708,11\u6708,12\u6708",
-day_long:"\u661F\u671F\u65E5,\u661F\u671F\u4E00,\u661F\u671F\u4E8C,\u661F\u671F\u4E09,\u661F\u671F\u56DB,\u661F\u671F\u4E94,\u661F\u671F\u516D,\u661F\u671F\u65E5",
-day_short:"\u5468\u65E5,\u5468\u4E00,\u5468\u4E8C,\u5468\u4E09,\u5468\u56DB,\u5468\u4E94,\u5468\u516D,\u5468\u65E5"
-},
-print:{
-print_desc:"\u6253\u5370"
-},
-preview:{
-preview_desc:"\u9884\u89C8"
-},
-directionality:{
-ltr_desc:"\u6587\u5B57\u4ECE\u5DE6\u5230\u53F3",
-rtl_desc:"\u6587\u5B57\u4ECE\u53F3\u5230\u5DE6"
-},
-layer:{
-insertlayer_desc:"\u63D2\u5165\u5C42",
-forward_desc:"\u524D\u7F6E",
-backward_desc:"\u540E\u7F6E",
-absolute_desc:"\u7EDD\u5BF9\u4F4D\u7F6E",
-content:"\u65B0\u589E\u5C42..."
-},
-save:{
-save_desc:"\u4FDD\u5B58",
-cancel_desc:"\u653E\u5F03\u6240\u6709\u66F4\u6539"
-},
-nonbreaking:{
-nonbreaking_desc:"\u63D2\u5165\u7A7A\u683C\u7B26"
-},
-iespell:{
-iespell_desc:"\u6267\u884C\u62FC\u5199\u68C0\u67E5",
-download:"\u672A\u68C0\u6D4B\u5230ieSpell\u7EC4\u4EF6\uFF0C\u662F\u5426\u73B0\u5728\u5B89\u88C5 ?"
-},
-advhr:{
-advhr_desc:"\u5206\u9694\u7EBF"
-},
-emotions:{
-emotions_desc:"\u8868\u60C5"
-},
-searchreplace:{
-search_desc:"\u67E5\u627E",
-replace_desc:"\u67E5\u627E/\u66FF\u6362"
-},
-advimage:{
-image_desc:"\u63D2\u5165/\u7F16\u8F91 \u56FE\u7247"
-},
-advlink:{
-link_desc:"\u63D2\u5165/\u7F16\u8F91 \u8FDE\u7ED3"
-},
-xhtmlxtras:{
-cite_desc:"\u5F15\u7528",
-abbr_desc:"\u7F29\u5199",
-acronym_desc:"\u9996\u5B57\u6BCD\u7F29\u5199",
-del_desc:"\u5220\u9664",
-ins_desc:"\u63D2\u5165",
-attribs_desc:"\u63D2\u5165/\u7F16\u8F91 \u5C5E\u6027"
-},
-style:{
-desc:"\u7F16\u8F91 CSS \u6837\u5F0F\u8868"
-},
-paste:{
-paste_text_desc:"\u7C98\u8D34\u4E3A\u7EAF\u6587\u5B57",
-paste_word_desc:"\u7C98\u8D34\u4E3AWord\u683C\u5F0F",
-selectall_desc:"\u5168\u9009"
-},
-paste_dlg:{
-text_title:"\u5C06\u590D\u5236(CTRL + C)\u7684\u5185\u5BB9\u7C98\u8D34(CTRL + V)\u5230\u7A97\u53E3\u3002",
-text_linebreaks:"\u4FDD\u7559\u5206\u884C\u7B26\u53F7\u53F7",
-word_title:"\u5C06\u590D\u5236(CTRL + C)\u7684\u5185\u5BB9\u7C98\u8D34(CTRL + V)\u5230\u7A97\u53E3\u3002"
-},
-table:{
-desc:"\u63D2\u5165\u65B0\u8868\u683C",
-row_before_desc:"\u5728\u4E0A\u65B9\u63D2\u5165\u884C",
-row_after_desc:"\u5728\u4E0B\u65B9\u63D2\u5165\u884C",
-delete_row_desc:"\u5220\u9664\u5F53\u524D\u884C",
-col_before_desc:"\u5728\u5DE6\u4FA7\u63D2\u5165\u5217",
-col_after_desc:"\u5728\u53F3\u4FA7\u63D2\u5165\u5217",
-delete_col_desc:"\u5220\u9664\u5F53\u524D\u5217",
-split_cells_desc:"\u62C6\u5206\u50A8\u5B58\u683C",
-merge_cells_desc:"\u5408\u5E76\u50A8\u5B58\u683C",
-row_desc:"\u5217 \u5C5E\u6027",
-cell_desc:"\u50A8\u5B58\u683C \u5C5E\u6027",
-props_desc:"\u8868\u683C \u5C5E\u6027",
-paste_row_before_desc:"\u7C98\u8D34\u884C\u5230\u4E0A\u65B9",
-paste_row_after_desc:"\u7C98\u8D34\u884C\u5230\u4E0B\u65B9",
-cut_row_desc:"\u526A\u5207\u5F53\u524D\u5217",
-copy_row_desc:"\u590D\u5236\u5F53\u524D\u5217",
-del:"\u5220\u9664\u8868\u683C",
-row:"\u884C",
-col:"\u5217",
-cell:"\u50A8\u5B58\u683C"
-},
-autosave:{
-unload_msg:"\u5982\u679C\u79BB\u5F00\u8BE5\u9875\u5C06\u5BFC\u81F4\u6240\u6709\u4FEE\u6539\u5168\u90E8\u4E22\u5931\u3002"
-},
-fullscreen:{
-desc:"\u5168\u5C4F\u6A21\u5F0F"
-},
-media:{
-desc:"\u63D2\u5165/\u7F16\u8F91 \u5A92\u4F53",
-edit:"\u7F16\u8F91 \u5A92\u4F53"
-},
-fullpage:{
-desc:"\u6587\u4EF6"
-},
-template:{
-desc:"\u63D2\u5165\u9009\u5B9A\u7684\u8303\u672C"
-},
-visualchars:{
-desc:"\u663E\u793A\u63A7\u5236\u7B26\u53F7\u3002"
-},
-spellchecker:{
-desc:"\u62FC\u5199\u68C0\u67E5",
-menu:"\u62FC\u5199\u68C0\u67E5 \u8BBE\u7F6E",
-ignore_word:"\u5FFD\u7565",
-ignore_words:"\u5168\u90E8\u5FFD\u7565",
-langs:"\u8BED\u8A00\u6E05\u5355",
-wait:"\u8BF7\u7A0D\u5019...",
-sug:"\u5EFA\u8BAE\u8BCD",
-no_sug:"\u65E0\u62FC\u5199\u5EFA\u8BAE",
-no_mpell:"\u65E0\u62FC\u5199\u9519\u8BEF"
-},
-pagebreak:{
-desc:"\u63D2\u5165\u5206\u9875\u7B26\u53F7"
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/ii.js b/chrome/content/zotero/tinymce/langs/ii.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({ii:{
-common:{
-edit_confirm:"\u4F60\u8981\u5728\u6B64\u6587\u5B57\u7F16\u8F91\u533A\u542F\u7528\u6240\u89C1\u5373\u6240\u5F97(WYSIWYG)\u6A21\u5F0F\uFF1F",
-apply:"\u5E94\u7528",
-insert:"\u63D2\u5165",
-update:"\u66F4\u65B0",
-cancel:"\u53D6\u6D88",
-close:"\u5173\u95ED",
-browse:"\u6D4F\u89C8",
-class_name:"\u7C7B\u522B",
-not_set:"-- \u672A\u8BBE\u5B9A --",
-clipboard_msg:"\u7C98\u8D34\u590D\u5236\u3001\u526A\u4E0B\u548C\u8D34\u4E0A\u529F\u80FD\u5728 Mozilla \u548C Firefox \u4E2D\u65E0\u6CD5\u4F7F\u7528\u3002\n\u4F60\u9700\u8981\u4E86\u89E3\u66F4\u591A\u76F8\u5173\u4FE1\u606F\u5417\uFF1F",
-clipboard_no_support:"\u76EE\u524D\u4F60\u7684\u6D4F\u89C8\u5668\u65E0\u6CD5\u652F\u6301\uFF0C\u8BF7\u7528\u952E\u76D8\u5FEB\u6377\u952E\u3002",
-popup_blocked:"\u62B1\u6B49\uFF0C\u5FEB\u6377\u529F\u80FD\u5728\u4F60\u7684\u7CFB\u7EDF\u4E0A\u88AB\u5C01\u9501\uFF0C\u4F7F\u7A0B\u5E8F\u65E0\u6CD5\u6B63\u5E38\u4F7F\u7528\uFF0C\u4F60\u9700\u8981\u6682\u65F6\u89E3\u9664\u5FEB\u6377\u5C01\u9501\uFF0C\u4F7F\u5DE5\u5177\u80FD\u6B63\u5E38\u4F7F\u7528\u3002",
-invalid_data:"\u9519\u8BEF\uFF1A\u8F93\u5165\u65E0\u6548\u7684\u503C\uFF0C\u4EE5\u7EA2\u8272\u5B57\u8868\u793A\u3002",
-more_colors:"\u66F4\u591A\u989C\u8272"
-},
-contextmenu:{
-align:"\u5BF9\u9F50\u65B9\u5F0F",
-left:"\u9760\u5DE6\u5BF9\u9F50",
-center:"\u7F6E\u4E2D",
-right:"\u9760\u53F3\u5BF9\u9F50",
-full:"\u5DE6\u53F3\u5BF9\u9F50"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"\u63D2\u5165\u4ECA\u5929\u65E5\u671F",
-inserttime_desc:"\u63D2\u5165\u73B0\u5728\u65F6\u95F4",
-months_long:"\u4E00\u6708,\u4E8C\u6708,\u4E09\u6708,\u56DB\u6708,\u4E94\u6708,\u516D\u6708,\u4E03\u6708,\u516B\u6708,\u4E5D\u6708,\u5341\u6708,\u5341\u4E00\u6708,\u5341\u4E8C\u6708",
-months_short:"1\u6708,2\u6708,3\u6708,4\u6708,5\u6708,6\u6708,7\u6708,8\u6708,9\u6708,10\u6708,11\u6708,12\u6708",
-day_long:"\u661F\u671F\u65E5,\u661F\u671F\u4E00,\u661F\u671F\u4E8C,\u661F\u671F\u4E09,\u661F\u671F\u56DB,\u661F\u671F\u4E94,\u661F\u671F\u516D,\u661F\u671F\u65E5",
-day_short:"\u5468\u65E5,\u5468\u4E00,\u5468\u4E8C,\u5468\u4E09,\u5468\u56DB,\u5468\u4E94,\u5468\u516D,\u5468\u65E5"
-},
-print:{
-print_desc:"\u6253\u5370"
-},
-preview:{
-preview_desc:"\u9884\u89C8"
-},
-directionality:{
-ltr_desc:"\u6587\u5B57\u4ECE\u5DE6\u5230\u53F3",
-rtl_desc:"\u6587\u5B57\u4ECE\u53F3\u5230\u5DE6"
-},
-layer:{
-insertlayer_desc:"\u63D2\u5165\u8FED\u5C42",
-forward_desc:"\u524D\u79FB",
-backward_desc:"\u540E\u79FB",
-absolute_desc:"\u5207\u6362\u7EDD\u5BF9\u5BFB\u5740",
-content:"\u65B0\u589E\u8FED\u5C42..."
-},
-save:{
-save_desc:"\u50A8\u5B58",
-cancel_desc:"\u53D6\u6D88\u6240\u6709\u53D8\u66F4"
-},
-nonbreaking:{
-nonbreaking_desc:"\u63D2\u5165\u975E\u622A\u65AD\u7684\u7A7A\u683C\u7B26"
-},
-iespell:{
-iespell_desc:"\u6267\u884C\u62FC\u5B57\u68C0\u67E5",
-download:"\u4FA6\u6D4B\u4E0D\u5230ieSpell\u5957\u4EF6\uFF0C\u662F\u5426\u7ACB\u5373\u5B89\u88C5\uFF1F"
-},
-advhr:{
-advhr_desc:"\u6C34\u5E73\u5206\u9694\u7EBF"
-},
-emotions:{
-emotions_desc:"\u8868\u60C5"
-},
-searchreplace:{
-search_desc:"\u641C\u5BFB",
-replace_desc:"\u641C\u5BFB/\u53D6\u4EE3"
-},
-advimage:{
-image_desc:"\u63D2\u5165/\u7F16\u8F91 \u56FE\u6863"
-},
-advlink:{
-link_desc:"\u63D2\u5165/\u7F16\u8F91 \u94FE\u63A5"
-},
-xhtmlxtras:{
-cite_desc:"\u5F15\u7528",
-abbr_desc:"\u7F29\u5199",
-acronym_desc:"\u9996\u5B57\u6BCD\u7F29\u5199",
-del_desc:"\u5220\u9664",
-ins_desc:"\u63D2\u5165",
-attribs_desc:"\u63D2\u5165/\u7F16\u8F91 \u5C5E\u6027"
-},
-style:{
-desc:"\u7F16\u8F91 CSS \u6837\u5F0F\u8868\u5355"
-},
-paste:{
-paste_text_desc:"\u4EE5\u7EAF\u6587\u672C\u683C\u5F0F\u7C98\u8D34",
-paste_word_desc:"\u4EE5Word\u683C\u5F0F\u7C98\u8D34",
-selectall_desc:"\u5168\u9009"
-},
-paste_dlg:{
-text_title:"\u7528 Ctrl+V \u7EC4\u5408\u952E\u5C06\u6587\u5B57\u8D34\u5165\u7A97\u53E3\u4E2D\u3002",
-text_linebreaks:"\u4FDD\u7559\u6362\u884C\u7B26\u53F7",
-word_title:"\u7528 Ctrl+V \u7EC4\u5408\u952E\u5C06\u6587\u5B57\u8D34\u5165\u7A97\u53E3\u4E2D\u3002"
-},
-table:{
-desc:"\u63D2\u5165\u65B0\u8868\u683C",
-row_before_desc:"\u63D2\u5165\u5217\u4E8E\u524D",
-row_after_desc:"\u63D2\u5165\u5217\u4E8E\u540E",
-delete_row_desc:"\u5220\u9664\u672C\u5217",
-col_before_desc:"\u63D2\u5165\u680F\u4E8E\u524D",
-col_after_desc:"\u63D2\u5165\u680F\u4E8E\u540E",
-delete_col_desc:"\u5220\u9664\u672C\u680F",
-split_cells_desc:"\u5206\u5272\u5355\u5143\u683C",
-merge_cells_desc:"\u5408\u5E76\u5355\u5143\u683C",
-row_desc:"\u8868\u683C\u5217 \u5C5E\u6027",
-cell_desc:"\u5355\u5143\u683C \u5C5E\u6027",
-props_desc:"\u8868\u683C \u5C5E\u6027",
-paste_row_before_desc:"\u8D34\u5165\u5217\u4E8E\u524D",
-paste_row_after_desc:"\u8D34\u5165\u5217\u4E8E\u540E",
-cut_row_desc:"\u526A\u4E0B\u6B64\u5217",
-copy_row_desc:"\u590D\u5236\u6B64\u5217",
-del:"\u5220\u9664\u8868\u683C",
-row:"\u5217",
-col:"\u680F",
-cell:"\u5355\u5143\u683C"
-},
-autosave:{
-unload_msg:"\u5982\u679C\u79BB\u5F00\u8BE5\u9875\uFF0C\u5C06\u5BFC\u81F4\u6240\u6709\u4FEE\u6539\u5168\u90E8\u9057\u5931\u3002"
-},
-fullscreen:{
-desc:"\u5207\u6362\u5168\u5C4F\u5E55\u6A21\u5F0F"
-},
-media:{
-desc:"\u63D2\u5165/\u7F16\u8F91 \u5A92\u4F53",
-edit:"\u7F16\u8F91 \u5A92\u4F53"
-},
-fullpage:{
-desc:"\u6587\u4EF6\u5C6C\u6027"
-},
-template:{
-desc:"\u63D2\u5165\u9884\u5148\u5B9A\u4E49\u7684\u6A21\u677F\u5185\u5BB9"
-},
-visualchars:{
-desc:"\u53EF\u89C1\u63A7\u5236\u5B57\u7B26 \u5F00/\u5173\u3002"
-},
-spellchecker:{
-desc:"\u5207\u6362\u62FC\u5199\u68C0\u67E5",
-menu:"\u62FC\u5199\u68C0\u67E5\u8BBE\u5B9A",
-ignore_word:"\u5FFD\u7565\u5B57",
-ignore_words:"\u5168\u90E8\u5FFD\u7565",
-langs:"\u8BED\u8A00",
-wait:"\u8BF7\u7A0D\u540E...",
-sug:"\u5EFA\u8BAE",
-no_sug:"\u65E0\u5EFA\u8BAE",
-no_mpell:"\u65E0\u62FC\u5199\u9519\u8BEF\u3002"
-},
-pagebreak:{
-desc:"\u63D2\u5165\u5206\u9875\u7B26\u3002"
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/is.js b/chrome/content/zotero/tinymce/langs/is.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({is:{
-common:{
-edit_confirm:"Viltu nota WYSIWYG ritil fyrir \u00FEetta textasv\u00E6\u00F0i?",
-apply:"Sta\u00F0festa",
-insert:"Setja inn",
-update:"Uppf\u00E6ra",
-cancel:"H\u00E6tta vi\u00F0",
-close:"Loka",
-browse:"Gramsa",
-class_name:"Klasi",
-not_set:"-- Ekki skilgreint --",
-clipboard_msg:"Afrita/Klippa/L\u00EDma er ekki a\u00F0gengilegt \u00ED Mozilla og Firefox eins og er.\nViltu f\u00E1 n\u00E1nari uppl\u00FDsingar?",
-clipboard_no_support:"Ekki stutt \u00ED \u00FE\u00EDnum vefsko\u00F0ara, nota\u00F0ur fl\u00FDtilykla \u00ED sta\u00F0inn.",
-popup_blocked:"Afsaki\u00F0, uppsprettuv\u00F6rnin \u00FE\u00EDn (popup blocker) hefur blokka\u00F0 glugga sem er hluti af ritlinum. \u00DE\u00FA ver\u00F0ur a\u00F0 sl\u00F6kkva \u00E1 uppsprettuv\u00F6rn til a\u00F0 geta nota\u00F0 \u00FEennan ritil.",
-invalid_data:"Villa: Vitlaus gildi slegin inn, \u00FEau eru merkt me\u00F0 rau\u00F0u.",
-more_colors:"Fleiri litir"
-},
-contextmenu:{
-align:"J\u00F6fnun",
-left:"Vinstri",
-center:"Mi\u00F0ja",
-right:"H\u00E6gri",
-full:"Full"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Setja inn dagsetningu",
-inserttime_desc:"Setja inn t\u00EDmasetningu",
-months_long:"Jan\u00FAar,Febr\u00FAar,Mars,Apr\u00EDl,Ma\u00ED,J\u00FAn\u00ED,J\u00FAl\u00ED,\u00C1g\u00FAst,September,Okt\u00F3ber,N\u00F3vember,Desember",
-months_short:"Jan,Feb,Mar,Apr,Ma\u00ED,J\u00FAn,J\u00FAl,\u00C1gs,Sep,Okt,N\u00F3v,Des",
-day_long:"Sunnudagur,M\u00E1nudagur,\u00DEri\u00F0judagur,Mi\u00F0vikudagur,Fimmtudagur,F\u00F6studagur,Laugardagur,Sunnudagur",
-day_short:"Sun,M\u00E1n,\u00DEri,Mi\u00F0,Fim,F\u00F6s,Lau,Sun"
-},
-print:{
-print_desc:"Prenta"
-},
-preview:{
-preview_desc:"Forsko\u00F0a"
-},
-directionality:{
-ltr_desc:"Fr\u00E1 vinstri til h\u00E6gri",
-rtl_desc:"Fr\u00E1 h\u00E6gri til vinstri"
-},
-layer:{
-insertlayer_desc:"Setja inn n\u00FDtt lag",
-forward_desc:"F\u00E6ra framfyrir",
-backward_desc:"F\u00E6ra afturfyrir",
-absolute_desc:"Taka af/setja \u00E1 absolute positioning",
-content:"N\u00FDtt lag..."
-},
-save:{
-save_desc:"Vista",
-cancel_desc:"H\u00E6tta vi\u00F0 allar breytingar"
-},
-nonbreaking:{
-nonbreaking_desc:"Setja inn bil staf"
-},
-iespell:{
-iespell_desc:"Lesa yfir",
-download:"ieSpell fannst ekki. Viltu setja \u00FEa\u00F0 inn n\u00FAna?"
-},
-advhr:{
-advhr_desc:"Horizontal rule"
-},
-emotions:{
-emotions_desc:"Broskarlar"
-},
-searchreplace:{
-search_desc:"Finna",
-replace_desc:"Finna/Skipta \u00FAt"
-},
-advimage:{
-image_desc:"Setja inn/breyta mynd"
-},
-advlink:{
-link_desc:"Insert/edit link"
-},
-xhtmlxtras:{
-cite_desc:"Citation",
-abbr_desc:"Abbreviation",
-acronym_desc:"Acronym",
-del_desc:"Deletion",
-ins_desc:"Insertion",
-attribs_desc:"Insert/Edit Attributes"
-},
-style:{
-desc:"Edit CSS Style"
-},
-paste:{
-paste_text_desc:"Paste as Plain Text",
-paste_word_desc:"Paste from Word",
-selectall_desc:"Select All"
-},
-paste_dlg:{
-text_title:"Use CTRL+V on your keyboard to paste the text into the window.",
-text_linebreaks:"Keep linebreaks",
-word_title:"Use CTRL+V on your keyboard to paste the text into the window."
-},
-table:{
-desc:"Inserts a new table",
-row_before_desc:"Insert row before",
-row_after_desc:"Insert row after",
-delete_row_desc:"Delete row",
-col_before_desc:"Insert column before",
-col_after_desc:"Insert column after",
-delete_col_desc:"Remove column",
-split_cells_desc:"Split merged table cells",
-merge_cells_desc:"Merge table cells",
-row_desc:"Table row properties",
-cell_desc:"Table cell properties",
-props_desc:"Table properties",
-paste_row_before_desc:"Paste table row before",
-paste_row_after_desc:"Paste table row after",
-cut_row_desc:"Cut table row",
-copy_row_desc:"Copy table row",
-del:"Delete table",
-row:"Row",
-col:"Column",
-cell:"Cell"
-},
-autosave:{
-unload_msg:"The changes you made will be lost if you navigate away from this page."
-},
-fullscreen:{
-desc:"Toggle fullscreen mode"
-},
-media:{
-desc:"Insert / edit embedded media",
-edit:"Edit embedded media"
-},
-fullpage:{
-desc:"Document properties"
-},
-template:{
-desc:"Insert predefined template content"
-},
-visualchars:{
-desc:"Visual control characters on/off."
-},
-spellchecker:{
-desc:"Toggle spellchecker",
-menu:"Spellchecker settings",
-ignore_word:"Ignore word",
-ignore_words:"Ignore all",
-langs:"Languages",
-wait:"Please wait...",
-sug:"Suggestions",
-no_sug:"No suggestions",
-no_mpell:"No misspellings found."
-},
-pagebreak:{
-desc:"Insert page break."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/it.js b/chrome/content/zotero/tinymce/langs/it.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({it:{
-common:{
-edit_confirm:"Usare la modalit\u00E0 WYSIWYG per questa textarea?",
-apply:"Applica",
-insert:"Inserisci",
-update:"Aggiorna",
-cancel:"Annulla",
-close:"Chiudi",
-browse:"Sfoglia",
-class_name:"Classe",
-not_set:"-- Non impostato --",
-clipboard_msg:"Copia/Taglia/Incolla non \u00E8 disponibile in Mozilla e Firefox.\nSi desidera avere maggiori informazioni su questo problema?",
-clipboard_no_support:"Attualmente non supportato dal browser in uso, usare le scorciatoie da tastiera.",
-popup_blocked:"Spiacente, ma il blocco delle popup ha disabilitato una finestra che fornisce funzionalit\u00E0 dell'applicazione. Si deve disabilitare il blocco delle popup per questo sito per poter utlizzare appieno questo strumento.",
-invalid_data:"Errore: valori inseriti non validi, sono marcati in rosso.",
-more_colors:"Colori aggiuntivi"
-},
-contextmenu:{
-align:"Allineamento",
-left:"Allinea a sinistra",
-center:"Centra",
-right:"Allinea a destra",
-full:"Giustifica"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Inserisci data",
-inserttime_desc:"Inserisci ora",
-months_long:"Gennaio,Febbraio,Marzo,Aprile,Maggio,Giugno,Luglio,Agosto,Settembre,Ottobre,Novembre,Dicembre",
-months_short:"Gen,Feb,Mar,Apr,Mag,Giu,Lug,Ago,Set,Ott,Nov,Dic",
-day_long:"Domenica,Luned\u00EC,Marted\u00EC,Mercoled\u00EC,Gioved\u00EC,Venerd\u00EC,Sabato,Domenica",
-day_short:"Dom,Lun,Mar,Mer,Gio,Ven,Sab,Dom"
-},
-print:{
-print_desc:"Stampa"
-},
-preview:{
-preview_desc:"Anteprima"
-},
-directionality:{
-ltr_desc:"Direzione da sinistra a destra",
-rtl_desc:"Direzione da destra a sinistra"
-},
-layer:{
-insertlayer_desc:"Inserisci nuovo layer",
-forward_desc:"Porta in rilievo",
-backward_desc:"Porta in sfondo",
-absolute_desc:"Attiva/Disattiva posizionamento assoluto",
-content:"Nuovo layer..."
-},
-save:{
-save_desc:"Save",
-cancel_desc:"Cancella tutte le modifiche"
-},
-nonbreaking:{
-nonbreaking_desc:"Inserisci uno spazio"
-},
-iespell:{
-iespell_desc:"Esegui controllo ortografico",
-download:"ieSpell non rilevato. Installarlo ora?"
-},
-advhr:{
-advhr_desc:"Riga orizzontale"
-},
-emotions:{
-emotions_desc:"Faccine"
-},
-searchreplace:{
-search_desc:"Trova",
-replace_desc:"Trova/Sostituisci"
-},
-advimage:{
-image_desc:"Inserisci/modifica immagine"
-},
-advlink:{
-link_desc:"Inserisci/modifica collegamento"
-},
-xhtmlxtras:{
-cite_desc:"Citazione",
-abbr_desc:"Abbreviazione",
-acronym_desc:"Acronimo",
-del_desc:"Cancellamento",
-ins_desc:"Inserimento",
-attribs_desc:"Inserisci/modifica attributi"
-},
-style:{
-desc:"Modifica stile CSS"
-},
-paste:{
-paste_text_desc:"Incolla come testo semplice",
-paste_word_desc:"Incolla da Word",
-selectall_desc:"Seleziona tutto"
-},
-paste_dlg:{
-text_title:"Premere CTRL+V sulla tastiera per incollare il testo nella finestra.",
-text_linebreaks:"Mantieni interruzioni di riga",
-word_title:"Premere CTRL+V sulla tastiera per incollare il testo nella finestra."
-},
-table:{
-desc:"Inserisci una nuova tabella",
-row_before_desc:"Inserisci riga prima",
-row_after_desc:"Inserisci riga dopo",
-delete_row_desc:"Elimina riga",
-col_before_desc:"Inserisci colonna prima",
-col_after_desc:"Inserisci colonna dopo",
-delete_col_desc:"Elimina colonna",
-split_cells_desc:"Separa celle",
-merge_cells_desc:"Unisci celle",
-row_desc:"Propriet\u00E0 riga",
-cell_desc:"Propriet\u00E0 cella",
-props_desc:"Propriet\u00E0 tabella",
-paste_row_before_desc:"Incolla riga prima",
-paste_row_after_desc:"Incolla riga dopo",
-cut_row_desc:"Taglia riga",
-copy_row_desc:"Copia riga",
-del:"Elimina tabella",
-row:"Riga",
-col:"Colonna",
-cell:"Cella"
-},
-autosave:{
-unload_msg:"I cambiamenti effettuati saranno persi se si abbandona la pagina corrente."
-},
-fullscreen:{
-desc:"Attiva/disattiva modalit\u00E0 a tutto schermo"
-},
-media:{
-desc:"Inserisci/modifica file multimediale",
-edit:"Modifica file multimediale"
-},
-fullpage:{
-desc:"Propriet\u00E0 Documento"
-},
-template:{
-desc:"Inserisci contenuto da modello predefinito"
-},
-visualchars:{
-desc:"Attiva/disattiva caratteri di controllo visuale."
-},
-spellchecker:{
-desc:"Attiva/disattiva controllo ortografico",
-menu:"Impostazioni controllo ortografico",
-ignore_word:"Ignora parola",
-ignore_words:"Ignora tutto",
-langs:"Lingue",
-wait:"Attendere prego...",
-sug:"Suggerimenti",
-no_sug:"Nessun suggerimento",
-no_mpell:"Nessun errore rilevato."
-},
-pagebreak:{
-desc:"Inserisci intterruzione di pagina."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/ja.js b/chrome/content/zotero/tinymce/langs/ja.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({ja:{
-common:{
-edit_confirm:"WYSIWYG\u30E2\u30FC\u30C9\u306B\u5207\u308A\u66FF\u3048\u307E\u3059\u304B\uFF1F",
-apply:"\u9069\u7528",
-insert:"\u633F\u5165",
-update:"\u66F4\u65B0",
-cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",
-close:"\u9589\u3058\u308B",
-browse:"\u53C2\u7167",
-class_name:"\u30AF\u30E9\u30B9",
-not_set:"-- \u672A\u8A2D\u5B9A --",
-clipboard_msg:"\u30B3\u30D4\u30FC/\u5207\u308A\u53D6\u308A/\u8CBC\u308A\u4ED8\u3051\u306FMozilla\u53CA\u3073Firefox\u3067\u306F\u4F7F\u7528\u3067\u304D\u307E\u305B\u3093\u3002\n\u8A73\u7D30\u306F\u3053\u3061\u3089",
-clipboard_no_support:"\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u64CD\u4F5C\u306F\u304A\u4F7F\u3044\u306E\u30D6\u30E9\u30A6\u30B6\u306B\u306F\u5BFE\u5FDC\u3057\u3066\u304A\u308A\u307E\u305B\u3093\u3002\u4EE3\u308F\u308A\u306B\u30AD\u30FC\u30DC\u30FC\u30C9\u306E\u30B7\u30E7\u30FC\u30C8\u30AB\u30C3\u30C8\u30AD\u30FC\u3092\u304A\u4F7F\u3044\u4E0B\u3055\u3044\u3002",
-popup_blocked:"\u30DD\u30C3\u30D7\u30A2\u30C3\u30D7\u304C\u30D6\u30ED\u30C3\u30AF\u3055\u308C\u307E\u3057\u305F\u3002\u3059\u3079\u3066\u306E\u6A5F\u80FD\u3092\u3054\u5229\u7528\u306B\u306A\u308B\u306B\u306F\u30DD\u30C3\u30D7\u30A2\u30C3\u30D7\u3092\u8A31\u53EF\u3057\u3066\u4E0B\u3055\u3044\u3002",
-invalid_data:"\u30A8\u30E9\u30FC: \u5165\u529B\u306B\u8AA4\u308A\u304C\u3042\u308A\u307E\u3059\u3002\uFF08\u8D64\u5B57\u306E\u9805\u76EE\uFF09",
-more_colors:"\u305D\u306E\u4ED6\u306E\u8272"
-},
-contextmenu:{
-align:"\u914D\u7F6E",
-left:"\u5DE6\u63C3\u3048",
-center:"\u4E2D\u592E\u63C3\u3048",
-right:"\u53F3\u63C3\u3048",
-full:"\u5747\u7B49\u5272\u4ED8"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"\u65E5\u4ED8\u306E\u633F\u5165",
-inserttime_desc:"\u6642\u523B\u306E\u633F\u5165",
-months_long:"January,February,March,April,May,June,July,August,September,October,November,December",
-months_short:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",
-day_long:"\u65E5\u66DC\u65E5,\u6708\u66DC\u65E5,\u706B\u66DC\u65E5,\u6C34\u66DC\u65E5,\u6728\u66DC\u65E5,\u91D1\u66DC\u65E5,\u571F\u66DC\u65E5,\u65E5\u66DC\u65E5",
-day_short:"(\u65E5),(\u6708),(\u706B),(\u6C34),(\u6728),(\u91D1),(\u571F),(\u65E5)"
-},
-print:{
-print_desc:"\u5370\u5237"
-},
-preview:{
-preview_desc:"\u30D7\u30EC\u30D3\u30E5\u30FC"
-},
-directionality:{
-ltr_desc:"\u5DE6\u304B\u3089\u53F3",
-rtl_desc:"\u53F3\u304B\u3089\u5DE6"
-},
-layer:{
-insertlayer_desc:"\u65B0\u898F\u30EC\u30A4\u30E4\u30FC\u306E\u633F\u5165",
-forward_desc:"\u524D\u9762\u3078\u79FB\u52D5",
-backward_desc:"\u80CC\u9762\u3078\u79FB\u52D5",
-absolute_desc:"\u7D76\u5BFE\u4F4D\u7F6E\u6307\u5B9A\u306E\u5207\u66FF",
-content:"\u65B0\u898F\u30EC\u30A4\u30E4\u30FC"
-},
-save:{
-save_desc:"\u4FDD\u5B58",
-cancel_desc:"\u5168\u3066\u306E\u5909\u66F4\u3092\u7834\u68C4"
-},
-nonbreaking:{
-nonbreaking_desc:"\u6539\u884C\u306A\u3057\u30B9\u30DA\u30FC\u30B9\u306E\u633F\u5165"
-},
-iespell:{
-iespell_desc:"\u30B9\u30DA\u30EB\u30C1\u30A7\u30C3\u30AF",
-download:"ieSpell\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002\u4ECA\u3059\u3050\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3057\u307E\u3059\u304B\uFF1F"
-},
-advhr:{
-advhr_desc:"\u6C34\u5E73\u7DDA"
-},
-emotions:{
-emotions_desc:"\u8868\u60C5\u30A2\u30A4\u30B3\u30F3"
-},
-searchreplace:{
-search_desc:"\u691C\u7D22",
-replace_desc:"\u691C\u7D22/\u7F6E\u63DB"
-},
-advimage:{
-image_desc:"\u753B\u50CF\u306E\u633F\u5165/\u7DE8\u96C6"
-},
-advlink:{
-link_desc:"\u30EA\u30F3\u30AF\u306E\u633F\u5165/\u7DE8\u96C6"
-},
-xhtmlxtras:{
-cite_desc:"\u5F15\u7528",
-abbr_desc:"\u7565\u8A9E",
-acronym_desc:"\u982D\u5B57\u8A9E",
-del_desc:"\u524A\u9664",
-ins_desc:"\u633F\u5165",
-attribs_desc:"\u5C5E\u6027\u306E\u633F\u5165/\u7DE8\u96C6"
-},
-style:{
-desc:"CSS\u7DE8\u96C6"
-},
-paste:{
-paste_text_desc:"\u30C6\u30AD\u30B9\u30C8\u3068\u3057\u3066\u8CBC\u308A\u4ED8\u3051",
-paste_word_desc:"Word\u304B\u3089\u8CBC\u308A\u4ED8\u3051",
-selectall_desc:"\u5168\u3066\u9078\u629E"
-},
-paste_dlg:{
-text_title:"\u30AD\u30FC\u30DC\u30FC\u30C9\u3067CTRL+V\u3068\u5165\u529B\u3057\u30C6\u30AD\u30B9\u30C8\u3092\u8CBC\u308A\u4ED8\u3051\u3066\u304F\u3060\u3055\u3044\u3002",
-text_linebreaks:"\u6539\u884C\u3092\u4FDD\u6301\u3059\u308B",
-word_title:"\u30AD\u30FC\u30DC\u30FC\u30C9\u3067CTRL+V\u3068\u5165\u529B\u3057\u30C6\u30AD\u30B9\u30C8\u3092\u8CBC\u308A\u4ED8\u3051\u3066\u304F\u3060\u3055\u3044\u3002"
-},
-table:{
-desc:"\u8868\u3092\u633F\u5165",
-row_before_desc:"\u884C\u3092\u4E0A\u306B\u633F\u5165",
-row_after_desc:"\u884C\u3092\u4E0B\u306B\u633F\u5165",
-delete_row_desc:"\u884C\u3092\u524A\u9664",
-col_before_desc:"\u5217\u3092\u5DE6\u306B\u633F\u5165",
-col_after_desc:"\u5217\u3092\u53F3\u306B\u633F\u5165",
-delete_col_desc:"\u5217\u3092\u524A\u9664",
-split_cells_desc:"\u30BB\u30EB\u306E\u7D50\u5408\u3092\u89E3\u9664",
-merge_cells_desc:"\u30BB\u30EB\u3092\u7D50\u5408",
-row_desc:"\u884C\u306E\u30D7\u30ED\u30D1\u30C6\u30A3",
-cell_desc:"\u30BB\u30EB\u306E\u30D7\u30ED\u30D1\u30C6\u30A3",
-props_desc:"\u8868\u306E\u30D7\u30ED\u30D1\u30C6\u30A3",
-paste_row_before_desc:"\u884C\u3092\u4E0A\u306B\u8CBC\u308A\u4ED8\u3051",
-paste_row_after_desc:"\u884C\u3092\u4E0B\u306B\u8CBC\u308A\u4ED8\u3051",
-cut_row_desc:"\u884C\u306E\u5207\u308A\u53D6\u308A",
-copy_row_desc:"\u884C\u306E\u30B3\u30D4\u30FC",
-del:"\u8868\u3092\u524A\u9664",
-row:"\u884C",
-col:"\u5217",
-cell:"\u30BB\u30EB"
-},
-autosave:{
-unload_msg:"\u4ED6\u306E\u30DA\u30FC\u30B8\u3078\u79FB\u52D5\u3059\u308B\u3068\u7DE8\u96C6\u30C7\u30FC\u30BF\u306F\u3059\u3079\u3066\u7834\u68C4\u3055\u308C\u307E\u3059\u3002"
-},
-fullscreen:{
-desc:"\u30D5\u30EB\u30B9\u30AF\u30EA\u30FC\u30F3"
-},
-media:{
-desc:"\u57CB\u3081\u8FBC\u307F\u30E1\u30C7\u30A3\u30A2\u306E\u633F\u5165/\u7DE8\u96C6",
-edit:"\u57CB\u3081\u8FBC\u307F\u30E1\u30C7\u30A3\u30A2\u306E\u7DE8\u96C6"
-},
-fullpage:{
-desc:"\u30DA\u30FC\u30B8\u8A2D\u5B9A"
-},
-template:{
-desc:"\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u306E\u633F\u5165"
-},
-visualchars:{
-desc:"\u5236\u5FA1\u6587\u5B57\u306E\u8868\u793A"
-},
-spellchecker:{
-desc:"\u30B9\u30DA\u30EB\u30C1\u30A7\u30C3\u30AFOn/Off",
-menu:"\u30B9\u30DA\u30EB\u30C1\u30A7\u30C3\u30AF\u8A2D\u5B9A",
-ignore_word:"\u3053\u306E\u5358\u8A9E\u3092\u7121\u8996",
-ignore_words:"\u5168\u3066\u7121\u8996",
-langs:"\u8A00\u8A9E",
-wait:"\u3057\u3070\u3089\u304F\u304A\u5F85\u3061\u304F\u3060\u3055\u3044...",
-sug:"\u5019\u88DC",
-no_sug:"\u5019\u88DC\u306F\u6709\u308A\u307E\u305B\u3093\u3002",
-no_mpell:"\u30B9\u30DA\u30EB\u30DF\u30B9\u306F\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\u3002"
-},
-pagebreak:{
-desc:"\u6539\u30DA\u30FC\u30B8\u633F\u5165"
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/ko.js b/chrome/content/zotero/tinymce/langs/ko.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({ko:{
-common:{
-edit_confirm:"WYSIWYG\uBAA8\uB4DC\uB85C \uC804\uD658\uD569\uB2C8\uAE4C?",
-apply:"\uC801\uC6A9",
-insert:"\uC0BD\uC785",
-update:"\uAC31\uC2E0",
-cancel:"\uCDE8\uC18C",
-close:"\uB2EB\uAE30",
-browse:"\uBE0C\uB77C\uC6B0\uC988",
-class_name:"\uD074\uB798\uC2A4",
-not_set:"-- \uC5C6\uC74C --",
-clipboard_msg:"\uBCF5\uC0AC/\uC798\uB77C\uB0B4\uAE30/\uBD99\uC774\uAE30\uB294 Mozilla \uBC0FFirefox \uC5D0\uC11C \uC0AC\uC6A9\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.\n\uC0C1\uC138\uC815\uBCF4\uB97C \uD45C\uC2DC\uD569\uB2C8\uAE4C?",
-clipboard_no_support:"\uC774 \uAE30\uB2A5\uC740 \uBE0C\uB77C\uC6B0\uC800\uC5D0 \uC758\uD574 \uC81C\uD55C\uB418\uACE0 \uC788\uC2B5\uB2C8\uB2E4. \uB2E8\uCD95\uD0A4\uC744 \uC774\uC6A9\uD558\uC2ED\uC2DC\uC624.",
-popup_blocked:"\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBAA8\uB4E0 \uAE30\uB2A5\uC744 \uC774\uC6A9\uD558\uC2DC\uAE30 \uC704\uD574\uC11C\uB294 \uD31D\uC5C5\uCC28\uB2E8\uC744 \uD574\uC81C\uD574 \uC8FC\uC138\uC694.",
-invalid_data:"\uC5D0\uB7EC: \uC720\uD6A8\uD558\uC9C0 \uC54A\uB294 \uAE00\uC790\uAC00 \uC788\uC2B5\uB2C8\uB2E4. \uBE68\uAC04\uC0C9\uC73C\uB85C \uD45C\uC2DC\uB429\uB2C8\uB2E4.",
-more_colors:"\uADF8 \uC678\uC758 \uC0C9"
-},
-contextmenu:{
-align:"\uC815\uB82C",
-left:"\uC67C\uCABD \uC815\uB82C",
-center:"\uAC00\uC6B4\uB370 \uC815\uB82C",
-right:"\uC624\uB978\uCABD \uC815\uB82C",
-full:"\uBC30\uBD84 \uC815\uB82C"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"\uB0A0\uC9DC \uC0BD\uC785",
-inserttime_desc:"\uC2DC\uAC04 \uC0BD\uC785",
-months_long:"1\uC6D4,2\uC6D4,3\uC6D4,4\uC6D4,5\uC6D4,6\uC6D4,7\uC6D4,8\uC6D4,9\uC6D4,10\uC6D4,11\uC6D4,12\uC6D4",
-months_short:"1,2,3,4,5,6,7,8,9,10,11,12",
-day_long:"\uC77C\uC694\uC77C,\uC6D4\uC694\uC77C,\uD654\uC694\uC77C,\uC218\uC694\uC77C,\uBAA9\uC694\uC77C,\uAE08\uC694\uC77C,\uD1A0\uC694\uC77C,\uC77C\uC694\uC77C",
-day_short:"\uC77C,\uC6D4,\uD654,\uC218,\uBAA9,\uAE08,\uD1A0,\uC77C"
-},
-print:{
-print_desc:"\uC778\uC1C4"
-},
-preview:{
-preview_desc:"\uBBF8\uB9AC\uBCF4\uAE30"
-},
-directionality:{
-ltr_desc:"\uBB38\uC790\uBC29\uD5A5\uC744 \uC67C\uCABD\uC5D0\uC11C \uC624\uB978\uCABD\uC73C\uB85C",
-rtl_desc:"\uBB38\uC790\uBC29\uD5A5\uC744 \uC624\uB978\uCABD\uC5D0\uC11C \uC67C\uCABD\uC73C\uB85C"
-},
-layer:{
-insertlayer_desc:"\uC0C8 \uB808\uC774\uC5B4",
-forward_desc:"\uC55E\uC73C\uB85C \uC774\uB3D9",
-backward_desc:"\uB4A4\uB85C \uC774\uB3D9",
-absolute_desc:"\uC808\uB300\uC704\uCE58\uB85C \uC804\uD658",
-content:"\uC0C8 \uB808\uC774\uC5B4..."
-},
-save:{
-save_desc:"\uC800\uC7A5",
-cancel_desc:"\uBAA8\uB450 \uCDE8\uC18C"
-},
-nonbreaking:{
-nonbreaking_desc:"\uBE48\uCE78 \uC0BD\uC785"
-},
-iespell:{
-iespell_desc:"\uCCA0\uC790 \uAC80\uC0AC",
-download:"ieSpell\uC774 \uBC1C\uACAC\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.\n\uC778\uC2A4\uD1A8 \uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?"
-},
-advhr:{
-advhr_desc:"\uAD6C\uBD84\uC120"
-},
-emotions:{
-emotions_desc:"\uC774\uBAA8\uD2F0\uCF58"
-},
-searchreplace:{
-search_desc:"\uAC80\uC0C9",
-replace_desc:"\uAC80\uC0C9/\uCE58\uD658"
-},
-advimage:{
-image_desc:"\uC774\uBBF8\uC9C0\uC758 \uC0BD\uC785/\uD3B8\uC9D1"
-},
-advlink:{
-link_desc:"\uB9C1\uD06C\uC758 \uC0BD\uC785/\uD3B8\uC9D1"
-},
-xhtmlxtras:{
-cite_desc:"\uC778\uC6A9\uCC98",
-abbr_desc:"\uC57D\uAE30",
-acronym_desc:"\uBA38\uB9AC \uAE00\uC790\uC5B4",
-del_desc:"\uC0AD\uC81C",
-ins_desc:"\uC0BD\uC785",
-attribs_desc:"\uC18D\uC131 \uC0BD\uC785/\uD3B8\uC9D1"
-},
-style:{
-desc:"CSS\uD3B8\uC9D1"
-},
-paste:{
-paste_text_desc:"\uD14D\uC2A4\uD2B8\uCC98\uB7FC \uBD99\uC5EC\uB123\uAE30",
-paste_word_desc:"Word\uB85C\uBD80\uD130 \uBD99\uC5EC\uB123\uAE30",
-selectall_desc:"\uBAA8\uB450 \uC120\uD0DD"
-},
-paste_dlg:{
-text_title:"\uC708\uB3C4\uC6B0\uC5D0 \uD14D\uC2A4\uD2B8\uB97C \uBD99\uC774\uB824\uBA74 \uD0A4\uBCF4\uB4DC\uB85C Ctrl+V\uB97C \uC785\uB825\uD574 \uC8FC\uC138\uC694.",
-text_linebreaks:"\uAC1C\uD589\uC744 \uBCF4\uAD00 \uC720\uC9C0",
-word_title:"\uC708\uB3C4\uC6B0\uC5D0 \uD14D\uC2A4\uD2B8\uB97C \uBD99\uC774\uB824\uBA74 \uD0A4\uBCF4\uB4DC\uB85CCtrl+V\uB97C \uC785\uB825\uD574 \uC8FC\uC138\uC694."
-},
-table:{
-desc:"\uC0C8 \uD14C\uC774\uBE14 \uC0BD\uC785",
-row_before_desc:"\uC55E\uC5D0 \uD589 \uC0BD\uC785",
-row_after_desc:"\uB4A4\uC5D0 \uD589 \uC0BD\uC785",
-delete_row_desc:"\uD589 \uC0AD\uC81C",
-col_before_desc:"\uC55E\uC5D0 \uC5F4\uC0BD\uC785",
-col_after_desc:"\uB4A4\uC5D0 \uC5F4\uC0BD\uC785",
-delete_col_desc:"\uC5F4\uC0AD\uC81C",
-split_cells_desc:"\uACB0\uD569\uB41C \uC140\uC744 \uBD84\uD560",
-merge_cells_desc:"\uC140\uC744 \uACB0\uD569",
-row_desc:"\uD589\uC758 \uC18D\uC131",
-cell_desc:"\uC140\uC758 \uC18D\uC131",
-props_desc:"\uD14C\uC774\uBE14 \uC18D\uC131",
-paste_row_before_desc:"\uC55E\uC5D0 \uD589\uC744 \uBD99\uC5EC\uB123\uAE30",
-paste_row_after_desc:"\uB4A4\uB85C \uD589\uC744 \uBD99\uC5EC\uB123\uAE30",
-cut_row_desc:"\uD589\uC744 \uC798\uB77C\uB0B4\uAE30",
-copy_row_desc:"\uD589\uC744 \uBCF5\uC0AC",
-del:"\uD14C\uC774\uBE14 \uC0AD\uC81C",
-row:"\uD589",
-col:"\uC5F4",
-cell:"\uC140"
-},
-autosave:{
-unload_msg:"\uB2E4\uB978 \uD398\uC774\uC9C0\uB85C \uC774\uB3D9\uD558\uBA74 \uD3B8\uC9D1\uD55C \uB0B4\uC6A9\uC774 \uCDE8\uC18C\uB429\uB2C8\uB2E4."
-},
-fullscreen:{
-desc:"\uC804\uCCB4\uD654\uBA74"
-},
-media:{
-desc:"\uBBF8\uB514\uC5B4\uC758 \uC0BD\uC785/\uD3B8\uC9D1",
-edit:"\uBBF8\uB514\uC5B4\uC758 \uD3B8\uC9D1"
-},
-fullpage:{
-desc:"\uD398\uC774\uC9C0\uC758 \uC18D\uC131"
-},
-template:{
-desc:"\uC815\uC758\uAC00 \uB05D\uB09C \uD15C\uD50C\uB9BF\uC758 \uC0BD\uC785"
-},
-visualchars:{
-desc:"\uC81C\uC5B4 \uBB38\uC790\uC758 \uD45C\uC2DC \uC804\uD658"
-},
-spellchecker:{
-desc:"\uC2A4\uD3A0\uB9C1 \uC804\uD658",
-menu:"\uC2A4\uD3A0\uB9C1 \uC124\uC815",
-ignore_word:"\uC774 \uC5B4\uAD6C\uB97C \uBB34\uC2DC",
-ignore_words:"\uBAA8\uB450 \uBB34\uC2DC",
-langs:"\uC5B8\uC5B4",
-wait:"\uAE30\uB2E4\uB824 \uC8FC\uC138\uC694...",
-sug:"\uD6C4\uBCF4",
-no_sug:"\uD6C4\uBCF4 \uC5C6\uC74C",
-no_mpell:"\uC624\uD0C8\uC790\uAC00 \uBC1C\uACAC\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."
-},
-pagebreak:{
-desc:"\uC0C8\uD398\uC774\uC9C0 \uC0BD\uC785"
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/lt.js b/chrome/content/zotero/tinymce/langs/lt.js
@@ -1,172 +0,0 @@
-tinyMCE.addI18n({lt:{
-common:{
-edit_confirm:"Ar norite naudoti tekst\u0173 redaktoriaus re\u017Eim\u0105 \u0161iam teksto redagavimo langui?",
-apply:"Taikyti",
-insert:"\u012Eterpti",
-update:"Atnaujinti",
-cancel:"At\u0161aukti",
-close:"U\u017Edaryti",
-browse:"Nar\u0161yti",
-class_name:"Klas\u0117",
-not_set:"-- Nenurodyta --",
-clipboard_msg:"Kopijavimas/i\u0161kirpimas/\u012Fklijavimas paspaudus \u0161\u012F mygtuk\u0105 negalimas Mozilla ir Firefox nar\u0161ykl\u0117se.\nNukopijuoti galima paspaudus: Ctrl + c, i\u0161kirpti: Ctrl + x, priklijuoti: Ctrl + v.\nAr norite daugiau informacijos apie \u0161i\u0105 problem\u0105?",
-clipboard_no_support:"\u0160i nar\u0161ykl\u0117 nepalaiko \u0161io veikimo, tod\u0117l naudokite klaviat\u016Bros spar\u010Diuosius klavi\u0161us.",
-popup_blocked:"Atsipra\u0161ome, ta\u010Diau pasteb\u0117jome, kad j\u016Bs\u0173 i\u0161\u0161okan\u010Di\u0173 lang\u0173 blokuotojas i\u0161jung\u0117 lang\u0105, kuris teikia aplikacijai funkcionalum\u0105. Tur\u0117tum\u0117te atjungti i\u0161\u0161okan\u010Di\u0173 lang\u0173 blokavim\u0105 \u0161iam tinklapiui, kad pilnai i\u0161naudoti visas galimybes.",
-invalid_data:"Klaida: Blogai \u012Fvestos reik\u0161m\u0117s, kurios pa\u017Eym\u0117tos raudonai.",
-more_colors:"Daugiau spalv\u0173"
-},
-contextmenu:{
-align:"Lygiavimas",
-left:"Kair\u0117je",
-center:"Centre",
-right:"De\u0161in\u0117je",
-full:"I\u0161 abiej\u0173 pusi\u0173"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"\u012Eterpti dat\u0105",
-inserttime_desc:"\u012Eterpti laik\u0105",
-months_long:"Sausis,Vasaris,Kovas,Balandis,Gegu\u017E\u0117,Bir\u017Eelis,Liepa,Rugpj\u016Btis,Rugs\u0117jis,Spalis,Lapkritis,Gruodis",
-months_short:"Sau,Vas,Kov,Bal,Geg,Bir,Lie,Rugpj,Rugs,Spa,Lapkr,Gruo",
-day_long:"Sekmadienis,Pirmadienis,Antradienis,Tre\u010Diadienis,Ketvirtadienis,Penktadienis,\u0160e\u0161tadienis,Sekmadienis",
-day_short:"Sekm,Pirm,Antr,Tre\u010D,Ketv,Penk,\u0160e\u0161t,Sekm"
-},
-print:{
-print_desc:"Spausdinti"
-},
-preview:{
-preview_desc:"Per\u017Ei\u016Bra"
-},
-directionality:{
-ltr_desc:"Kryptis i\u0161 kair\u0117s \u012F de\u0161in\u0119",
-rtl_desc:"Kryptis i\u0161 de\u0161in\u0117s \u012F kair\u0119"
-},
-layer:{
-insertlayer_desc:"\u012Eterpti nauj\u0105 sluoksn\u012F",
-forward_desc:"Pastumti \u012F priek\u012F",
-backward_desc:"Pastumpti atgal",
-absolute_desc:"Kaitalioti absoliut\u0173 pozicionavim\u0105",
-content:"Naujas sluoksnis..."
-},
-save:{
-save_desc:"I\u0161saugoti",
-cancel_desc:"At\u0161aukti visus pakeitimus"
-},
-nonbreaking:{
-nonbreaking_desc:"\u012Eterpti nelau\u017Eiam\u0105 tarpo simbol\u012F"
-},
-iespell:{
-iespell_desc:"\u012Ejungti klaid\u0173 tikrinim\u0105",
-download:"ieSpell neaptiktas. Ar norite dabar j\u012F \u012Fdiegti?"
-},
-advhr:{
-advhr_desc:"Horizontali linija",
-delta_width:"10"
-},
-emotions:{
-emotions_desc:"Emotikonai"
-},
-searchreplace:{
-search_desc:"Ie\u0161koti",
-replace_desc:"Ie\u0161koti/Pakeisti",
-delta_width:"10",
-delta_height:"20"
-},
-advimage:{
-image_desc:"\u012Eterpti/Redaguoti paveiksl\u0117l\u012F",
-delta_width:"10"
-},
-advlink:{
-link_desc:"\u012Eterpti/Redaguoti nuorod\u0105",
-delta_width:"10"
-},
-xhtmlxtras:{
-cite_desc:"Citavimas",
-abbr_desc:"Santrumpa",
-acronym_desc:"Akronimas",
-del_desc:"Panaikinimas",
-ins_desc:"\u012Eterpimas",
-attribs_desc:"\u012Eterpti/Redaguoti atributus",
-cite_delta_width:"10",
-abbr_delta_width:"10",
-acronym_delta_width:"10",
-del_delta_width:"10",
-ins_delta_width:"10",
-attribs_delta_width:"10"
-},
-style:{
-desc:"Redaguoti CSS stili\u0173",
-delta_width:"40"
-},
-paste:{
-paste_text_desc:"\u012Eklijuoti kaip paprast\u0105 tekst\u0105",
-paste_word_desc:"\u012Eklijuoti i\u0161 Word",
-selectall_desc:"Visk\u0105 pa\u017Eym\u0117ti"
-},
-paste_dlg:{
-text_title:"Naudokite CTRL+V, kad \u012Fklijuoti tekst\u0105 \u012F \u0161\u012F lang\u0105.",
-text_linebreaks:"Palikti eilu\u010Di\u0173 l\u016B\u017Eius",
-word_title:"Naudokite CTRL+V, kad \u012Fklijuoti tekst\u0105 \u012F \u0161\u012F lang\u0105."
-},
-table:{
-desc:"\u012Eterpia nauj\u0105 lentel\u0119",
-row_before_desc:"\u012Eterpti eilut\u0119 prie\u0161",
-row_after_desc:"\u012Eterpti eilut\u0119 po",
-delete_row_desc:"I\u0161trinti eilut\u0119",
-col_before_desc:"\u012Eterpti stulpel\u012F prie\u0161",
-col_after_desc:"\u012Eterpti stulpel\u012F po",
-delete_col_desc:"I\u0161trinti stulpel\u012F",
-split_cells_desc:"I\u0161skaidyti sulietas lentel\u0117s l\u0105steles",
-merge_cells_desc:"Sulieti lentel\u0117s l\u0105steles",
-row_desc:"Lentel\u0117s eilut\u0117s nustatymai",
-cell_desc:"Lentel\u0117s l\u0105stel\u0117s nustatymai",
-props_desc:"Lentel\u0117s nustatymai",
-paste_row_before_desc:"\u012Eklijuoti lentel\u0117s eilut\u0119 prie\u0161",
-paste_row_after_desc:"\u012Eklijuoti lentel\u0117s eilut\u0119 po",
-cut_row_desc:"I\u0161kirpti lentel\u0117s eilut\u0119",
-copy_row_desc:"Kopijuoti lentel\u0117s eilut\u0119",
-del:"I\u0161trinti lentel\u0119",
-row:"Eilut\u0117",
-col:"Stulpelis",
-cell:"L\u0105stel\u0117",
-rowprops_delta_width:"10",
-cellprops_delta_width:"10",
-table_delta_width:"10",
-merge_cells_delta_width:"10"
-},
-autosave:{
-unload_msg:"Visi pakeitimai bus prarasti jei i\u0161eisite \u0161iuo langu i\u0161 esamo puslapio."
-},
-fullscreen:{
-desc:"Kaitalioti viso ekrano re\u017Eim\u0105"
-},
-media:{
-desc:"\u012Eterpti/redaguoti integruot\u0105 daugialyp\u0119 terp\u0119",
-edit:"Redaguoti integruot\u0105 daugialyp\u0119 terp\u0119",
-delta_width:"10"
-},
-fullpage:{
-desc:"Dokumento nustatymai",
-delta_width:"10"
-},
-template:{
-desc:"\u012Eterpti jau nustatyt\u0105 \u0161ablonin\u012F turin\u012F"
-},
-visualchars:{
-desc:"Visualiniai valdymo simboliai \u012Fjungti/i\u0161jungti."
-},
-spellchecker:{
-desc:"Kaitalioti klaid\u0173 tikrinim\u0105",
-menu:"Klaid\u0173 tikrinimo nustatymai",
-ignore_word:"Ignoruoti \u017Eod\u012F",
-ignore_words:"Ignoruoti visk\u0105",
-langs:"Kalbos",
-wait:"Pra\u0161ome palaukti...",
-sug:"Pasi\u016Blymai",
-no_sug:"Pasi\u016Blym\u0173 nerasta",
-no_mpell:"Klaid\u0173 nerasta."
-},
-pagebreak:{
-desc:"\u012Eterpti puslapio pabaigos \u017Eym\u0119."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/lv.js b/chrome/content/zotero/tinymce/langs/lv.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({lv:{
-common:{
-edit_confirm:"Vai tu v\u0113lies izmantot WYSIWYG \u0161im teksta laukam?",
-apply:"Apstiprin\u0101t",
-insert:"Ievietot",
-update:"Atjaunin\u0101t",
-cancel:"Atcelt",
-close:"Aizv\u0113rt",
-browse:"P\u0101rl\u016Bkot",
-class_name:"Klase",
-not_set:"-- Nav nor\u0101d\u012Bts --",
-clipboard_msg:"Iesp\u0113ja Kop\u0113t/Izgriezt/Iekop\u0113t nav pieejama p\u0101rl\u016Bkiem Mozilla and Firefox.\nVai J\u016Bs v\u0113laties uzzin\u0101t vair\u0101k par \u0161o probl\u0113mu?",
-clipboard_no_support:"\u0160obr\u012Bd J\u016Bsu p\u0101rl\u016Bks neatbalsta \u0161o iesp\u0113ju, t\u0101 viet\u0101 l\u016Bdzu izmantotjiet tastat\u016Bras sa\u012Bsin\u0101jumtausti\u0146us.",
-popup_blocked:"Atvainojiet, bet m\u0113s esam konstat\u0113ju\u0161i, ka J\u016Bsu uzleco\u0161o logu blo\u0137\u0113t\u0101js ir atsp\u0113jojis logu, kas nodro\u0161ina programmas funkcionalit\u0101ti. Lai piln\u012Bb\u0101 izmantotu \u0161o r\u012Bku, Jums ir j\u0101atsl\u0113dz uzleco\u0161o logu blo\u0137\u0113tajs \u0161ai vietnei. ",
-invalid_data:"K\u013C\u016Bda: Ievad\u012Btas neder\u012Bgas v\u0113rt\u012Bbas. T\u0101s ir atz\u012Bm\u0113tas sarkan\u0101 kr\u0101s\u0101.",
-more_colors:"Vair\u0101k kr\u0101su"
-},
-contextmenu:{
-align:"Novietojums",
-left:"Pa kreisi",
-center:"Centr\u0113ts",
-right:"Pa labi",
-full:"Pilns"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Ievietot datumu",
-inserttime_desc:"Ievietot laiku",
-months_long:"Janv\u0101ris,Febru\u0101ris,Marts,Apr\u012Blis,Maijs,J\u016Bnijs,J\u016Blijs,Augusts,Seprembris,Oktobris,Novembris,Decembris",
-months_short:"Jan,Feb,Mar,Apr,Mai,J\u016Bn,J\u016Bl,Aug,Sep,Okt,Nov,Dec",
-day_long:"Sv\u0113tdiena,Pirmdiena,Otrdiena,Tre\u0161diena,Ceturtdiena,Piektdiena,Sestdiena,Sv\u0113tdiena",
-day_short:"Sv\u0113,Pir,Otr,Tre,Cet,Pie,Ses,Sv\u0113"
-},
-print:{
-print_desc:"Druk\u0101t"
-},
-preview:{
-preview_desc:"Priek\u0161skat\u012Bt"
-},
-directionality:{
-ltr_desc:"Virziens no kreis\u0101s uz labo",
-rtl_desc:"Virziens no lab\u0101s uz kreiso"
-},
-layer:{
-insertlayer_desc:"Ievietot jaunu sl\u0101ni",
-forward_desc:"Uz priek\u0161u",
-backward_desc:"Atpaka\u013C",
-absolute_desc:"Iestat\u012Bt/Nov\u0101kt absol\u016Bto novietojumu ",
-content:"Jauns sl\u0101nis..."
-},
-save:{
-save_desc:"Saglab\u0101t",
-cancel_desc:"Atcelt visas izmai\u0146as"
-},
-nonbreaking:{
-nonbreaking_desc:"Ievietot tuk\u0161uma simbolu"
-},
-iespell:{
-iespell_desc:"Uzs\u0101kt pareizrakst\u012Bbas p\u0101rbaudi",
-download:"ieSpell netika atrasts. Vai J\u016Bs v\u0113laties to uzst\u0101d\u012Bt?"
-},
-advhr:{
-advhr_desc:"Horizont\u0101la sv\u012Btra"
-},
-emotions:{
-emotions_desc:"Smaidi\u0146i"
-},
-searchreplace:{
-search_desc:"Mekl\u0113t",
-replace_desc:"Mekl\u0113t/Aizvietot"
-},
-advimage:{
-image_desc:"Ievietot/Redi\u0123\u0113t att\u0113lu"
-},
-advlink:{
-link_desc:"Ievietot/Redi\u0123\u0113t saiti"
-},
-xhtmlxtras:{
-cite_desc:"Citation",
-abbr_desc:"Abbreviation",
-acronym_desc:"Acronym",
-del_desc:"Deletion",
-ins_desc:"Insertion",
-attribs_desc:"Insert/Edit Attributes"
-},
-style:{
-desc:"Edit CSS Style"
-},
-paste:{
-paste_text_desc:"Paste as Plain Text",
-paste_word_desc:"Paste from Word",
-selectall_desc:"Select All"
-},
-paste_dlg:{
-text_title:"Use CTRL+V on your keyboard to paste the text into the window.",
-text_linebreaks:"Keep linebreaks",
-word_title:"Use CTRL+V on your keyboard to paste the text into the window."
-},
-table:{
-desc:"Inserts a new table",
-row_before_desc:"Insert row before",
-row_after_desc:"Insert row after",
-delete_row_desc:"Delete row",
-col_before_desc:"Insert column before",
-col_after_desc:"Insert column after",
-delete_col_desc:"Remove column",
-split_cells_desc:"Split merged table cells",
-merge_cells_desc:"Merge table cells",
-row_desc:"Table row properties",
-cell_desc:"Table cell properties",
-props_desc:"Table properties",
-paste_row_before_desc:"Paste table row before",
-paste_row_after_desc:"Paste table row after",
-cut_row_desc:"Cut table row",
-copy_row_desc:"Copy table row",
-del:"Delete table",
-row:"Row",
-col:"Column",
-cell:"Cell"
-},
-autosave:{
-unload_msg:"The changes you made will be lost if you navigate away from this page."
-},
-fullscreen:{
-desc:"Toggle fullscreen mode"
-},
-media:{
-desc:"Insert / edit embedded media",
-edit:"Edit embedded media"
-},
-fullpage:{
-desc:"Document properties"
-},
-template:{
-desc:"Insert predefined template content"
-},
-visualchars:{
-desc:"Visual control characters on/off."
-},
-spellchecker:{
-desc:"Toggle spellchecker",
-menu:"Spellchecker settings",
-ignore_word:"Ignore word",
-ignore_words:"Ignore all",
-langs:"Languages",
-wait:"Please wait...",
-sug:"Suggestions",
-no_sug:"No suggestions",
-no_mpell:"No misspellings found."
-},
-pagebreak:{
-desc:"Insert page break."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/mk.js b/chrome/content/zotero/tinymce/langs/mk.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({mk:{
-common:{
-edit_confirm:"\u017Delite li koristiti WYSIWYG na\u010Din rada za ovo tekstualno polje?",
-apply:"Primjeni",
-insert:"\u0412\u043C\u0435\u0442\u043D\u0438",
-update:"\u041E\u0431\u043D\u043E\u0432\u0438",
-cancel:"\u041E\u0442\u043A\u0430\u0436\u0438",
-close:"\u0417\u0430\u0442\u0432\u043E\u0440\u0438",
-browse:"\u041F\u0440\u0435\u0432\u0437\u0435\u043C\u0438",
-class_name:"\u041A\u043B\u0430\u0441\u0430",
-not_set:"-- \u041D\u0435 \u0435 \u043F\u043E\u0441\u0442\u0430\u0432\u0435\u043D\u043E --",
-clipboard_msg:"\u041A\u043E\u043F\u0438\u0440\u0430\u0458/\u0421\u043D\u0438\u043C\u0438/\u0417\u0430\u043B\u0435\u043F\u0438 \u043D\u0435 \u0435 \u0434\u043E\u0437\u0432\u043E\u043B\u0435\u043D\u043E \u043D\u0430 Mozilla \u0438 Firefox \u043F\u0440\u0435\u0431\u0430\u0440\u0443\u0432\u0430\u0447\u0438.\n\u041F\u043E\u0432\u0435\u045C\u0435 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438?",
-clipboard_no_support:"Trenuta\u010Dno va\u0161 preglednik ne podr\u017Eava ovu opciju, poku\u0161ajte koristiti tipkovni\u010Dku kraticu.",
-popup_blocked:"Oprostite, izgleda da je va\u0161 popup-blocker onemogu\u0107io prozor u sklopu ovog programa. Morate onemogu\u0107iti blokiranje popup prozora da bi u potpunosti iskoristili ovaj alat.",
-invalid_data:"Gre\u0161ka: Une\u0161ene su nevaljane vrednosti, ozna\u010Dene su crvenom bojom.",
-more_colors:"Vi\u0161e boja"
-},
-contextmenu:{
-align:"Poravnavanje",
-left:"Levo",
-center:"Sredina",
-right:"Desno",
-full:"Puno"
-},
-insertdatetime:{
-date_fmt:"%d.%m.%Y.",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"\u0412\u043C\u0435\u0442\u043D\u0438 datum",
-inserttime_desc:"\u0412\u043C\u0435\u0442\u043D\u0438 vreme",
-months_long:"januar,februar,mart,april,maj,juni,juli,avgust,septembar,oktobar,novembar,decembar",
-months_short:"jan,feb,mar,apr,maj,jun,jul,avg,sep,okt,nov,dec",
-day_long:"nedelja,ponedjeljak,utorak,sreda,\u010Detvrtak,petak,subota,nedelja",
-day_short:"ned,pon,uto,sre,\u010Det,pet,sub,ned"
-},
-print:{
-print_desc:"Ispis"
-},
-preview:{
-preview_desc:"Prikaz"
-},
-directionality:{
-ltr_desc:"S leva na desno",
-rtl_desc:"S desna na levo"
-},
-layer:{
-insertlayer_desc:"\u0412\u043C\u0435\u0442\u043D\u0438 novi sloj",
-forward_desc:"Pomakni napred",
-backward_desc:"Pomakni natrag",
-absolute_desc:"Uklju\u010Di/isklju\u010Di apsolutno pozicioniranje",
-content:"Novi sloj..."
-},
-save:{
-save_desc:"Spremi",
-cancel_desc:"Odustani od svih promjena"
-},
-nonbreaking:{
-nonbreaking_desc:"\u0412\u043C\u0435\u0442\u043D\u0438 razmak"
-},
-iespell:{
-iespell_desc:"Pokreni provjeru pravopisa",
-download:"Provjera pravopisa nije postavljena. Postaviti sada?"
-},
-advhr:{
-advhr_desc:"Vodoravna crta"
-},
-emotions:{
-emotions_desc:"Emocije"
-},
-searchreplace:{
-search_desc:"Prona\u0111i",
-replace_desc:"Prona\u0111i/Zameni"
-},
-advimage:{
-image_desc:"\u0412\u043C\u0435\u0442\u043D\u0438/uredi sliku"
-},
-advlink:{
-link_desc:"Insert/edit link"
-},
-xhtmlxtras:{
-cite_desc:"Citat",
-abbr_desc:"Kratica",
-acronym_desc:"Akronim",
-del_desc:"Brisanje",
-ins_desc:"Unos",
-attribs_desc:"\u0412\u043C\u0435\u0442\u043D\u0438/uredi atribute"
-},
-style:{
-desc:"Uredi CSS"
-},
-paste:{
-paste_text_desc:"Zalepi kao obi\u010Dni tekst",
-paste_word_desc:"Zalepi iz Worda",
-selectall_desc:"Odaberi sve"
-},
-paste_dlg:{
-text_title:"Koristite CTRL+V na tipkovnici da zalepite tekst u prozor.",
-text_linebreaks:"Zadr\u017Ei prelome",
-word_title:"Koristite CTRL+V na tipkovnici da zalepite tekst u prozor."
-},
-table:{
-desc:"Nova tablica",
-row_before_desc:"\u0412\u043C\u0435\u0442\u043D\u0438 redak iznad",
-row_after_desc:"\u0412\u043C\u0435\u0442\u043D\u0438 redak ispod",
-delete_row_desc:"Izbri\u0161i redak",
-col_before_desc:"\u0412\u043C\u0435\u0442\u043D\u0438 stupac levo",
-col_after_desc:"\u0412\u043C\u0435\u0442\u043D\u0438 stupac desno",
-delete_col_desc:"Ukloni stupac",
-split_cells_desc:"Razdvoji spojene \u0107elije",
-merge_cells_desc:"Spoji \u0107elije",
-row_desc:"Svojstva retka",
-cell_desc:"Svojstva \u0107elije",
-props_desc:"Svojstva tablice",
-paste_row_before_desc:"Zalepi redak iznad",
-paste_row_after_desc:"Zalepi redak ispod",
-cut_row_desc:"Izre\u017Ei redak",
-copy_row_desc:"Kopiraj redak",
-del:"Izbri\u0161i tablicu",
-row:"Redak",
-col:"Stupac",
-cell:"\u0106elija"
-},
-autosave:{
-unload_msg:"Promjene u dokumentu \u0107e biti izgubljene ako iza\u0111ete s ove stranice."
-},
-fullscreen:{
-desc:"Uklju\u010Di/isklju\u010Di prikaz preko celog ekrana"
-},
-media:{
-desc:"Insert / edit embedded media",
-edit:"Edit embedded media"
-},
-fullpage:{
-desc:"Svojstva dokumenta"
-},
-template:{
-desc:"\u0412\u043C\u0435\u0442\u043D\u0438 sadr\u017Eaj iz predlo\u017Eak"
-},
-visualchars:{
-desc:"Vizuelni kontrolni znakovi uklju\u010Deni/isklju\u010Deni."
-},
-spellchecker:{
-desc:"Uklju\u010Di/isklju\u010Di provjeru pravopisa",
-menu:"Postavke provere pravopisa",
-ignore_word:"Zanemari re\u010D",
-ignore_words:"Zanemari sve",
-langs:"Jezici",
-wait:"Pri\u010Dekajte...",
-sug:"Predlozi",
-no_sug:"Nema predloga",
-no_mpell:"Nije prona\u0111ena nijedna pravopisna gre\u0161ka."
-},
-pagebreak:{
-desc:"\u0412\u043C\u0435\u0442\u043D\u0438 prelom."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/ms.js b/chrome/content/zotero/tinymce/langs/ms.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({ms:{
-common:{
-edit_confirm:"Guna WYSIWYG mod untuk \"textarea\" ini?",
-apply:"Guna",
-insert:"Sisip",
-update:"Kemaskini",
-cancel:"Batal",
-close:"Tutup",
-browse:"Semak seimbas",
-class_name:"Kelas",
-not_set:"-- Tidak set --",
-clipboard_msg:"Salin/Potong/Tempel tidak disediakan untuk Mozilla dan Firefox.\nAdakah anda mahu informasi lanjut tentang isu ini?",
-clipboard_no_support:"Perisian browser anda tidak disokong pada masa ini, sila guna papan kekunci.",
-popup_blocked:"Maaf, kami dapati \"popup-blocker\" telah melumpuhkan tetingkap yang memberikan fungsi kepada perisian anda. Anda perlu mematikan \"popup-blocker\" untuk laman web ini bagi menggunakan semua alatan.",
-invalid_data:"Ralat: Nilai dimasukkan tidak sah, lihat tanda merah.",
-more_colors:"Warna lain-lain"
-},
-contextmenu:{
-align:"Penyelarian",
-left:"Kiri",
-center:"Tengah",
-right:"Kanan",
-full:"Penuh"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Sisip tarikh",
-inserttime_desc:"Sisip masa",
-months_long:"Januari,Febuari,Mac,April,Mei,Jun,Julai,Ogos,September,Oktober,November,Disember",
-months_short:"Jan,Feb,Mac,Apr,Mei,Jun,Jul,Ogo,Sep,Okt,Nov,Dis",
-day_long:"Ahad,Isnin,Selasa,Rabu,Khamis,Jumaat,Sabtu,Ahad",
-day_short:"Aha,Isn,Sel,Rab,Kha,Jum,Sab,Aha"
-},
-print:{
-print_desc:"Cetak"
-},
-preview:{
-preview_desc:"Pratonton"
-},
-directionality:{
-ltr_desc:"Arah kiri ke kanan",
-rtl_desc:"Arah kanan ke kiri"
-},
-layer:{
-insertlayer_desc:"Sisip lapisan baru",
-forward_desc:"Gerak kehadapan",
-backward_desc:"Gerak kebelakang",
-absolute_desc:"Alih posisi mutlak",
-content:"Lapisan baru..."
-},
-save:{
-save_desc:"Simpan",
-cancel_desc:"Batal semua pertukaran"
-},
-nonbreaking:{
-nonbreaking_desc:"Masukkan aksara ruang [nbsp]"
-},
-iespell:{
-iespell_desc:"Larikan pembetulan ejaan",
-download:"ieSpell tiada. Pasang sekarang?"
-},
-advhr:{
-advhr_desc:"Garis mengufuk"
-},
-emotions:{
-emotions_desc:"Simbol Emosi"
-},
-searchreplace:{
-search_desc:"Cari",
-replace_desc:"Cari/Ganti"
-},
-advimage:{
-image_desc:"Sisip/sunting imej"
-},
-advlink:{
-link_desc:"Sisip/sunting pautan"
-},
-xhtmlxtras:{
-cite_desc:"Kutipan",
-abbr_desc:"Singkatan",
-acronym_desc:"Akronim",
-del_desc:"Pemadaman",
-ins_desc:"Kemasukan",
-attribs_desc:"Masukkan/Sunting Ciri-ciri"
-},
-style:{
-desc:"Sunting Gaya CSS"
-},
-paste:{
-paste_text_desc:"Tempel sebagai teks",
-paste_word_desc:"Tempel dari Word",
-selectall_desc:"Pilih semua"
-},
-paste_dlg:{
-text_title:"Guna CTRL+V pada papan kekunci anda untuk Tempel teks ke dalam tetingkap.",
-text_linebreaks:"Biarkan garisan pemisah",
-word_title:"Guna CTRL+V pada papan kekunci anda untuk teks ke dalam tetingkap."
-},
-table:{
-desc:"Masukkan jadual baru",
-row_before_desc:"Masukkan row sebelumnya",
-row_after_desc:"Masukkan row selepasnya",
-delete_row_desc:"Padam row",
-col_before_desc:"Masukkan kolum sebelumnya",
-col_after_desc:"Masukkan kolum selepasnya",
-delete_col_desc:"Alih kolum",
-split_cells_desc:"Bahagi sel jadual",
-merge_cells_desc:"Gabung sel jadual",
-row_desc:"Alatan jadual row",
-cell_desc:"Alatan jadual sel",
-props_desc:"Alatan jadual",
-paste_row_before_desc:"Tempel jadual row sebelumnya",
-paste_row_after_desc:"Tempel jadual row selepasnya",
-cut_row_desc:"Potong jadual row",
-copy_row_desc:"Salin jadual row",
-del:"Padam jadual",
-row:"Row",
-col:"Kolum",
-cell:"Sel"
-},
-autosave:{
-unload_msg:"Pertukaran akan terbatal sekiranya anda meninggalkan halaman ini."
-},
-fullscreen:{
-desc:"Alih mod skrin penuh"
-},
-media:{
-desc:"Masukkan / sunting media",
-edit:"Sunting media"
-},
-fullpage:{
-desc:"Alatan dokumen"
-},
-template:{
-desc:"Masukkan pra takrifan kandungan templet"
-},
-visualchars:{
-desc:"Pengendali grafik huruf Buka/Tutup."
-},
-spellchecker:{
-desc:"Alih pembetul perkataan",
-menu:"Alatan pembetul perkataan",
-ignore_word:"Endahkan perkataan",
-ignore_words:"Endahkan kesemuanya",
-langs:"Bahasa-bahasa",
-wait:"Sila tunggu...",
-sug:"Cadangan",
-no_sug:"Tiada cadangan",
-no_mpell:"Tiada kesalahan ejaan."
-},
-pagebreak:{
-desc:"Masukkan penghenti-halaman."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/nb.js b/chrome/content/zotero/tinymce/langs/nb.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({nb:{
-common:{
-edit_confirm:"Vil du benytte WYSIWYG-editoren for dette tekstfeltet?",
-apply:"Legg til",
-insert:"Sett inn",
-update:"Oppdater",
-cancel:"Avbryt",
-close:"Stop",
-browse:"Bla gjennom",
-class_name:"Klasse",
-not_set:"--ikke satt--",
-clipboard_msg:"Klipp ut / Kopier /Lim inn fungerer ikke i Mozilla og Firefox. Vil du vite mer om dette?",
-clipboard_no_support:"For tiden ikke st\u00F8ttet av din nettleser, benytt tastatursnarveier i stedet.",
-popup_blocked:"Beklager, det er registrert at du har en popup-sperre aktivert i nettleseren. Du m\u00E5 oppheve popup-sperren for nettstedet for \u00E5 f\u00E5 tilgang til dette verkt\u00F8yet",
-invalid_data:"Feil: Ugyldige verdier er skrevet inn, disse er merket med r\u00F8dt.",
-more_colors:"Flere farger"
-},
-contextmenu:{
-align:"Justering",
-left:"Venstre",
-center:"Midtstill",
-right:"H\u00F8yre",
-full:"Full"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Sett inn dato",
-inserttime_desc:"Sett inn tidspunkt",
-months_long:"januar,februar,mars,april,mai,juni,juli,august,september,oktober,november,desember",
-months_short:"jan,feb,mar,apr,mai,jun,jul,aug,sep,oct,nov,des",
-day_long:"s\u00F8ndag,mandag,tirsdag,onsdag,torsdag,fredag,l\u00F8rdag,s\u00F8ndag",
-day_short:"s\u00F8n,man,tir,ons,tor,fre,l\u00F8r,s\u00F8n"
-},
-print:{
-print_desc:"Skriv u"
-},
-preview:{
-preview_desc:"Forh\u00E5ndsvisning"
-},
-directionality:{
-ltr_desc:"Retning venstre mot h\u00F8yre",
-rtl_desc:"Retning h\u00F8yre mot venstre"
-},
-layer:{
-insertlayer_desc:"Sett inn nytt lag",
-forward_desc:"Flytt framover",
-backward_desc:"Flytt bakover",
-absolute_desc:"Sl\u00E5 p\u00E5/av absolutt plassering",
-content:"Nytt lag..."
-},
-save:{
-save_desc:"Lagre",
-cancel_desc:"Kanseller alle endringer"
-},
-nonbreaking:{
-nonbreaking_desc:"Sett inn hardt mellomrom"
-},
-iespell:{
-iespell_desc:"Kj\u00F8rer rettskrivningskontroll",
-download:"ieSpell ikke funnet. \u00D8nsker du \u00E5 installere ieSpell n\u00E5?"
-},
-advhr:{
-advhr_desc:"Horisontal linje"
-},
-emotions:{
-emotions_desc:"Hum\u00F8rfjes"
-},
-searchreplace:{
-search_desc:"S\u00F8k",
-replace_desc:"S\u00F8k/Erstatt"
-},
-advimage:{
-image_desc:"Sett inn / endre bilde"
-},
-advlink:{
-link_desc:"Sett inn / endre lenke"
-},
-xhtmlxtras:{
-cite_desc:"Sitat",
-abbr_desc:"Forkortelse",
-acronym_desc:"Akronym",
-del_desc:"Sletting",
-ins_desc:"Innsetting",
-attribs_desc:"Sett inn / endre Egenskaper"
-},
-style:{
-desc:"Rediger CSS-stil"
-},
-paste:{
-paste_text_desc:"Lim inn som vanlig tekst",
-paste_word_desc:"Lim inn fra Word",
-selectall_desc:"Marker al"
-},
-paste_dlg:{
-text_title:"Bruk CTRL+V p\u00E5 tastaturet for \u00E5 lime inn i dette vinduet.",
-text_linebreaks:"Behold tekstbryting",
-word_title:"Bruk CTRL+V p\u00E5 tastaturet for \u00E5 lime inn i dette vinduet."
-},
-table:{
-desc:"Sett inn ny tabell",
-row_before_desc:"Sett inn rad foran",
-row_after_desc:"Sett inn rad etter etter",
-delete_row_desc:"Fjern rad",
-col_before_desc:"Sett inn kolonne foran",
-col_after_desc:"Sett inn kolonne etter",
-delete_col_desc:"Fjern kolonne",
-split_cells_desc:"Del celler",
-merge_cells_desc:"Sl\u00E5 sammen celler",
-row_desc:"Radegenskaper",
-cell_desc:"Celleegenskaper",
-props_desc:"Tabellegenskaper",
-paste_row_before_desc:"Lim inn rad foran",
-paste_row_after_desc:"Lim inn rad etter",
-cut_row_desc:"Fjern rad",
-copy_row_desc:"Kopier rad",
-del:"Slett tabell",
-row:"Rad",
-col:"Kolonne",
-cell:"Celle"
-},
-autosave:{
-unload_msg:"Endringene du gjorde g\u00E5r tapt dersom du velger \u00E5 forlate denne siden!"
-},
-fullscreen:{
-desc:"Skift til/fra fullskjermmodus"
-},
-media:{
-desc:"Sett inn / rediger inkludert objekt",
-edit:"Endre inkludert objekt"
-},
-fullpage:{
-desc:"Dokumentegenskaper"
-},
-template:{
-desc:"Sett inn forh\u00E5ndsdefinert malinnhold"
-},
-visualchars:{
-desc:"Visuelle kontrolltegn p\u00E5/av"
-},
-spellchecker:{
-desc:"Stavekontroll p\u00E5/av",
-menu:"Vis meny",
-ignore_word:"Ignorer ord",
-ignore_words:"Ignorer alt",
-langs:"Spr\u00E5k",
-wait:"Vennligst vent...",
-sug:"Forslag",
-no_sug:"Ingen forslag",
-no_mpell:"Ingen stavefeil funnet"
-},
-pagebreak:{
-desc:"Sett inn sideskift"
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/nl.js b/chrome/content/zotero/tinymce/langs/nl.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({nl:{
-common:{
-edit_confirm:"Weet u zeker dat u tekst in WYSIWYG mode wilt bewerken in dit tekstveld?",
-apply:"Toepassen",
-insert:"Invoegen",
-update:"Bijwerken",
-cancel:"Annuleren",
-close:"Sluiten",
-browse:"Bladeren",
-class_name:"Klasse",
-not_set:"- Standaard -",
-clipboard_msg:"Kopi\u00EBren/knippen/plakken is niet beschikbaar in Mozilla en Firefox.\nWilt u meer informatie over deze beperking?",
-clipboard_no_support:"Kopi\u00EBren/knippen/plakken wordt niet ondersteund door uw browser, gebruik hiervoor de sneltoetsen.",
-popup_blocked:"U zult uw popup-blocker tijdelijk moeten uitschakelen voor deze website om gebruik te kunnen maken van alle fucties van deze teksteditor.",
-invalid_data:"Fout: Er zijn ongeldige waardes ingevoerd, deze zijn rood gemarkeerd.",
-more_colors:"Meer kleuren"
-},
-contextmenu:{
-align:"Uitlijning",
-left:"Links",
-center:"Centreren",
-right:"Rechts",
-full:"Uitvullen"
-},
-insertdatetime:{
-date_fmt:"%d-%m-%Y",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Datum invoegen",
-inserttime_desc:"Tijd invoegen",
-months_long:"Januari,Februari,Maart,April,Mei,Juni,Juli,Augustus,September,Oktober,November,December",
-months_short:"Jan,Feb,Mar,Apr,Mei,Jun,Jul,Aug,Sep,Okt,Nov,Dec",
-day_long:"Zondag,Maandag,Dinsdag,Woensdag,Donderdag,Vrijdag,Zaterdag,Zondag",
-day_short:"Zo,Ma,Di,Wo,Do,Vr,Zat,Zon"
-},
-print:{
-print_desc:"Afdrukken"
-},
-preview:{
-preview_desc:"Voorbeeld"
-},
-directionality:{
-ltr_desc:"Van links naar rechts",
-rtl_desc:"Van rechts naar links"
-},
-layer:{
-insertlayer_desc:"Nieuwe laag invoegen",
-forward_desc:"Volgende laag",
-backward_desc:"Vorige laag",
-absolute_desc:"Absoluut positioneren inschakelen",
-content:"Nieuwe laag..."
-},
-save:{
-save_desc:"Opslaan",
-cancel_desc:"Alle wijzigingen annuleren"
-},
-nonbreaking:{
-nonbreaking_desc:"Open ruimte invoegen"
-},
-iespell:{
-iespell_desc:"Spellingcontrole",
-download:"ieSpell niet gevonden. Wilt u deze nu installeren?"
-},
-advhr:{
-advhr_desc:"Scheidingslijn"
-},
-emotions:{
-emotions_desc:"Emoties"
-},
-searchreplace:{
-search_desc:"Zoeken",
-replace_desc:"Zoeken/Vervangen"
-},
-advimage:{
-image_desc:"Afbeelding invoegen/bewerken"
-},
-advlink:{
-link_desc:"Link invoegen/bewerken"
-},
-xhtmlxtras:{
-cite_desc:"Citaat",
-abbr_desc:"Afkorting",
-acronym_desc:"Synoniem",
-del_desc:"Verwijderd",
-ins_desc:"Ingevoegd",
-attribs_desc:"Attributen invoegen/bewerken"
-},
-style:{
-desc:"CSS Stijl bewerken"
-},
-paste:{
-paste_text_desc:"Als platte tekst plakken",
-paste_word_desc:"Vanuit Word plakken",
-selectall_desc:"Alles selecteren"
-},
-paste_dlg:{
-text_title:"Gebruik Ctrl+V om tekst in het venster te plakken.",
-text_linebreaks:"Regelafbreking bewaren",
-word_title:"Gebruik Ctrl+V om tekst in het venster te plakken."
-},
-table:{
-desc:"Nieuwe tabel invoegen",
-row_before_desc:"Rij boven invoegen",
-row_after_desc:"Rij onder invoegen",
-delete_row_desc:"Rij verwijderen",
-col_before_desc:"Kolom links invoegen",
-col_after_desc:"Kolom rechts invoegen",
-delete_col_desc:"Kolom verwijderen",
-split_cells_desc:"Cellen splitsen",
-merge_cells_desc:"Cellen samenvoegen",
-row_desc:"Rij-eigenschappen",
-cell_desc:"Cel-eigenschappen",
-props_desc:"Tabeleigenschappen",
-paste_row_before_desc:"Rij boven plakken",
-paste_row_after_desc:"Rij onder plakken",
-cut_row_desc:"Rij knippen",
-copy_row_desc:"Rij kopi\u00EBren",
-del:"Tabel verwijderen",
-row:"Rij",
-col:"Kolom",
-cell:"Cel"
-},
-autosave:{
-unload_msg:"De wijzigingen zullen verloren gaan als u nu deze pagina verlaat."
-},
-fullscreen:{
-desc:"Volledig scherm"
-},
-media:{
-desc:"Media invoegen/bewerken",
-edit:"Media bewerken"
-},
-fullpage:{
-desc:"Documenteigenschappen"
-},
-template:{
-desc:"Voorgedefineerd sjabloon invoegen"
-},
-visualchars:{
-desc:"Zichtbare symbolen"
-},
-spellchecker:{
-desc:"Spellingcontrole",
-menu:"Instellingen spellingcontrole",
-ignore_word:"Woord negeren",
-ignore_words:"Alles negeren",
-langs:"Talen",
-wait:"Een ogenblik geduld...",
-sug:"Suggesties",
-no_sug:"Geen suggesties",
-no_mpell:"Geen spelfouten gevonden."
-},
-pagebreak:{
-desc:"Pagina-einde invoegen"
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/nn.js b/chrome/content/zotero/tinymce/langs/nn.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({nn:{
-common:{
-edit_confirm:"Vil du bruke WYSIWYG-editoren for dette tekstfeltet?",
-apply:"Legg til",
-insert:"Set inn",
-update:"Oppdater",
-cancel:"Avbryt",
-close:"Stopp",
-browse:"Bla gjennom",
-class_name:"Klasse",
-not_set:"--ikkje sett--",
-clipboard_msg:"Klipp ut / Kopier /Lim inn fungerer ikkje i Mozilla og Firefox. Vil du vite meir om dette?",
-clipboard_no_support:"For tida ikkje st\u00F8tta av nettlesaren din, bruk tastatursnarveger i staden.",
-popup_blocked:"Orsak, det er registrert at du har popup-sperre aktivert i nettlesaren. Du m\u00E5 oppheve popup-sperra for nettstaden for \u00E5 f\u00E5 tilgang til dette verktyet",
-invalid_data:"Feil: Ugyldige verdiar er skrivne inn, desse er merka med raudt",
-more_colors:"Fleire fargar"
-},
-contextmenu:{
-align:"Justering",
-left:"Venstre",
-center:"Midtstill",
-right:"H\u00F8gre",
-full:"Full"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Lim inn dato",
-inserttime_desc:"Lim inn tid",
-months_long:"januar,februar,mars,april,mai,juni,juli,august,september,oktober,november,desember",
-months_short:"jan,feb,mar,apr,mai,jun,jul,aug,sep,oct,nov,des",
-day_long:"sundag,mandag,tirsdag,onsdag,torsdag,fredag,laurdag,sundag",
-day_short:"sun,man,tir,ons,tor,fre,lau,sun"
-},
-print:{
-print_desc:"Skriv u"
-},
-preview:{
-preview_desc:"F\u00F8rehandsvisni"
-},
-directionality:{
-ltr_desc:"Retning venstre mot h\u00F8gre",
-rtl_desc:"Retning h\u00F8gre mot venstre"
-},
-layer:{
-insertlayer_desc:"Set inn nytt lag",
-forward_desc:"Flytt framover",
-backward_desc:"Flytt bakover",
-absolute_desc:"Sl\u00E5 p\u00E5/av absolutt plassering",
-content:"Nytt lag..."
-},
-save:{
-save_desc:"Lagre",
-cancel_desc:"Kanseller alle endringar"
-},
-nonbreaking:{
-nonbreaking_desc:"Set inn hardt mellomrom"
-},
-iespell:{
-iespell_desc:"K\u00F8yrer kontroll av rettskriving",
-download:"ieSpell ikkje funnen. \u00D8nskjer du \u00E5 installere ieSpell no?"
-},
-advhr:{
-advhr_desc:"Horisontal linje"
-},
-emotions:{
-emotions_desc:"Hum\u00F8rfjes"
-},
-searchreplace:{
-search_desc:"S\u00F8k",
-replace_desc:"S\u00F8k/Erstatt"
-},
-advimage:{
-image_desc:"Set inn / endre bilete"
-},
-advlink:{
-link_desc:"Set inn / endre lenkje"
-},
-xhtmlxtras:{
-cite_desc:"Sitat",
-abbr_desc:"Forkorting",
-acronym_desc:"Akronym",
-del_desc:"Sletting",
-ins_desc:"Innsetjing",
-attribs_desc:"Set inn / Endre eigenskapar"
-},
-style:{
-desc:"Rediger CSS-stil"
-},
-paste:{
-paste_text_desc:"Lim inn som vanleg tekst",
-paste_word_desc:"Lim inn fr\u00E5 Word",
-selectall_desc:"Marker al"
-},
-paste_dlg:{
-text_title:"Bruk CTRL+V p\u00E5 tastaturet for \u00E5 lime inn i dette vindauget.",
-text_linebreaks:"Behald tekstbryting",
-word_title:"Bruk CTRL+V p\u00E5 tastaturet for \u00E5 lime inn i dette vindauget."
-},
-table:{
-desc:"Set inn ein ny tabell",
-row_before_desc:"Set inn rad framfor",
-row_after_desc:"Set inn rad etter",
-delete_row_desc:"Fjern rad",
-col_before_desc:"Set inn kolonne framfor",
-col_after_desc:"Set inn kolonne etter",
-delete_col_desc:"Fjern kolonne",
-split_cells_desc:"Del celler",
-merge_cells_desc:"Sl\u00E5 saman celler",
-row_desc:"Radeigenskapar",
-cell_desc:"Celleegenskapar",
-props_desc:"Tabelleigenskapar",
-paste_row_before_desc:"Lim inn rad framfor",
-paste_row_after_desc:"Lim inn rad etter",
-cut_row_desc:"Fjern rad",
-copy_row_desc:"Kopier rad",
-del:"Slett tabell",
-row:"Rad",
-col:"Kolonne",
-cell:"Celle"
-},
-autosave:{
-unload_msg:"Endringane du gjorde g\u00E5r tapt om du forl\u00E8t denne sida!"
-},
-fullscreen:{
-desc:"Skift til/fr\u00E5 fullskjermmodus"
-},
-media:{
-desc:"Set inn / rediger inkludert objekt",
-edit:"Endre innsett objekt"
-},
-fullpage:{
-desc:"Dokumenteigenskapar"
-},
-template:{
-desc:"Set inn f\u00F8rehandsdefinert malinnhald"
-},
-visualchars:{
-desc:"Visuelle konktrollteikn p\u00E5/av"
-},
-spellchecker:{
-desc:"Stavekontroll p\u00E5/av",
-menu:"Vis meny",
-ignore_word:"Ignorer ord",
-ignore_words:"Ignorer alt",
-langs:"Spr\u00E5k",
-wait:"Ver venleg og vent...",
-sug:"Framlegg",
-no_sug:"Inga framlegg",
-no_mpell:"Inga stavefeil funne."
-},
-pagebreak:{
-desc:"Set inn sideskift"
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/pl.js b/chrome/content/zotero/tinymce/langs/pl.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({pl:{
-common:{
-edit_confirm:"Czy chcesz u\u017Cy\u0107 trybu WYSIWYG dla tego pola formularza?",
-apply:"Zastosuj",
-insert:"Wstaw",
-update:"Aktualizuj",
-cancel:"Anuluj",
-close:"Zamknij",
-browse:"Przegl\u0105daj",
-class_name:"Klasa",
-not_set:"-- Nie ustawiony --",
-clipboard_msg:"Akcje Kopiuj/Wytnij/Wklej nie s\u0105 dost\u0119pne w Mozilli i Firefox.\nCzy chcesz wi\u0119cej informacji o tym problemie?",
-clipboard_no_support:"Aktualnie nie jest wspomagany przez Twoj\u0105 przegl\u0105dark\u0119, u\u017Cyj skr\u00F3t\u00F3w klawiaturowych w zamian.",
-popup_blocked:"Zauwa\u017Cyli\u015Bmy, \u017Ce Twoje blokowanie wyskakuj\u0105cych okienek wy\u0142\u0105czy\u0142o okno, kt\u00F3re dostarcza funkcjonalno\u015B\u0107 aplikacji. B\u0119dziesz potrzebowa\u0142 wy\u0142\u0105czy\u0107 blokowanie wyskakuj\u0105cych okienek na tej stronie aby w pe\u0142ni wykorzysta\u0107 to narz\u0119dzie.",
-invalid_data:"B\u0142\u0105d: Zosta\u0142y wprowadzone b\u0142\u0119dne dane, s\u0105 zaznaczone na czerwono.",
-more_colors:"Wi\u0119cej kolor\u00F3w"
-},
-contextmenu:{
-align:"Wyr\u00F3wnanie",
-left:"Lewy",
-center:"\u015Arodkowy",
-right:"Prawy",
-full:"Wype\u0142niony"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Wstaw dat\u0119",
-inserttime_desc:"Wstaw czas",
-months_long:"Stycze\u0144, Luty, Marzec, Kwiecie\u0144, Maj, Czerwiec, Lipiec, Sierpie\u0144, Wrzesie\u0144, Pa\u017Adziernik, Listopad, Grudzie\u0144",
-months_short:"Sty,Lut,Mar,Kw,Maj,Cze,Lip,Sier,Wrz,Pa\u017A,Lis,Gru",
-day_long:"Niedziela, Poniedzia\u0142ek, Wtorek, \u015Aroda, Czwartek, Pi\u0105tek, Sobota, Niedziela",
-day_short:"Niedz,Pon,Wt,\u015Ar,Czw,Pt,Sob,Niedz"
-},
-print:{
-print_desc:"Drukuj"
-},
-preview:{
-preview_desc:"Podgl\u0105d"
-},
-directionality:{
-ltr_desc:"Kierunek od lewej do prawej",
-rtl_desc:"Kierunek od prawej do lewej"
-},
-layer:{
-insertlayer_desc:"Wklej now\u0105 warstw\u0119",
-forward_desc:"Przesu\u0144 do przodu",
-backward_desc:"Przesu\u0144 w ty\u0142",
-absolute_desc:"Prze\u0142\u0105cz pozycjonowanie absolutne",
-content:"Nowa warstwa..."
-},
-save:{
-save_desc:"Zachowaj",
-cancel_desc:"Anuluj wszystkie zmiany"
-},
-nonbreaking:{
-nonbreaking_desc:"Wklej tward\u0105 spacj\u0119"
-},
-iespell:{
-iespell_desc:"Sprawd\u017A pisowni\u0119",
-download:"ieSpell nie wykryte. Czy chcesz to teraz zainstalowa\u0107?"
-},
-advhr:{
-advhr_desc:"Pozioma linia"
-},
-emotions:{
-emotions_desc:"Emotikony"
-},
-searchreplace:{
-search_desc:"Znajd\u017A",
-replace_desc:"Znajd\u017A/Zamie\u0144"
-},
-advimage:{
-image_desc:"Wstaw/edytuj obraz"
-},
-advlink:{
-link_desc:"Wstaw/edytuj link"
-},
-xhtmlxtras:{
-cite_desc:"Cytat",
-abbr_desc:"Skr\u00F3t",
-acronym_desc:"Akronim",
-del_desc:"Usuni\u0119cie",
-ins_desc:"Wstawienie",
-attribs_desc:"Wstaw / Edytuj atrybuty"
-},
-style:{
-desc:"Edytuj Style CSS"
-},
-paste:{
-paste_text_desc:"Wklej jako Zwyk\u0142y Tekst",
-paste_word_desc:"Wklej z Worda",
-selectall_desc:"Zaznacz wszystko"
-},
-paste_dlg:{
-text_title:"U\u017Cyj CTRL+V na swojej klawiaturze \u017Ceby wklei\u0107 tekst do okna.",
-text_linebreaks:"Zachowaj ko\u0144ce linii.",
-word_title:"U\u017Cyj CTRL+V na swojej klawiaturze \u017Ceby wklei\u0107 tekst do okna."
-},
-table:{
-desc:"Wstaw now\u0105 tabel\u0119",
-row_before_desc:"Wstaw nowy wierdz przed...",
-row_after_desc:"Wstaw nowy wiersz po...",
-delete_row_desc:"Usu\u0144 wiersz",
-col_before_desc:"Wstaw kolumne przed...",
-col_after_desc:"Wstaw kolumne po...",
-delete_col_desc:"Usu\u0144 kolumn\u0119",
-split_cells_desc:"Podziel kom\u00F3rk\u0119",
-merge_cells_desc:"Po\u0142\u0105cz kom\u00F3rki",
-row_desc:"W\u0142a\u015Bciwo\u015Bci wiersza",
-cell_desc:"W\u0142a\u015Bciwo\u015Bci kom\u00F3rki",
-props_desc:"Table properties",
-paste_row_before_desc:"Wklej wiersz przed...",
-paste_row_after_desc:"Wklej wiersz po...",
-cut_row_desc:"Wynij wiersz...",
-copy_row_desc:"Kopiuj wiersz...",
-del:"Usu\u0144 tabel\u0119",
-row:"Wiersz",
-col:"Kolumna",
-cell:"Kom\u00F3rka"
-},
-autosave:{
-unload_msg:"Zmiany, kt\u00F3re zrobi\u0142e\u015B zostan\u0105 utracone je\u015Bli opu\u015Bcisz t\u0119 stron\u0119."
-},
-fullscreen:{
-desc:"Prze\u0142\u0105cz tryb pe\u0142noekranowy"
-},
-media:{
-desc:"Wstaw / Edytuj wbudowane media",
-edit:"Edytuj wbudowane media"
-},
-fullpage:{
-desc:"W\u0142a\u015Bciwo\u015Bci dokumentu"
-},
-template:{
-desc:"Wstaw szablon dokumentu"
-},
-visualchars:{
-desc:"Graficzna kontrola pisma w\u0142\u0105cz/wy\u0142\u0105cz."
-},
-spellchecker:{
-desc:"Sprawdzanie pisowni",
-menu:"Ustawienia sprawdzania pisowni",
-ignore_word:"Ignoruj s\u0142owo",
-ignore_words:"Ignoruj wszystkie",
-langs:"J\u0119zyki",
-wait:"Prosz\u0119 poczeka\u0107...",
-sug:"Sugestie",
-no_sug:"Nie ma sugestii",
-no_mpell:"\u017Badnych brakuj\u0105cych nie znaleziono."
-},
-pagebreak:{
-desc:"Wstaw lini\u0119."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/pt.js b/chrome/content/zotero/tinymce/langs/pt.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({pt:{
-common:{
-edit_confirm:"Deseja usar o modo de edi\u00E7\u00E3o avan\u00E7ado nesse campo de texto?",
-apply:"Aplicar",
-insert:"Inserir",
-update:"Atualizar",
-cancel:"Cancelar",
-close:"Fechar",
-browse:"Procurar",
-class_name:"Classe",
-not_set:"-- N\u00E3o especificado --",
-clipboard_msg:"Copiar/cortar/colar n\u00E3o est\u00E1 dispon\u00EDvel no Mozilla/Firefox.\nDeseja maiores informa\u00E7\u00F5es sobre esse problema?",
-clipboard_no_support:"Seu navegador n\u00E3o tem suporte para esta fun\u00E7\u00E3o, use os atalhos de teclado.",
-popup_blocked:"Detectamos que o seu bloqueador de popups desabilitou uma janela que \u00E9 essencial para o aplicativo. Voc\u00EA precisa desabilitar o bloqueador de popups para utilizar esta ferramenta.",
-invalid_data:"Erro: Valores inv\u00E1lidos est\u00E3o marcados em vermelho.",
-more_colors:"Mais Cores"
-},
-contextmenu:{
-align:"Alinhamento",
-left:"Esquerda",
-center:"Centro",
-right:"Direita",
-full:"Justificar"
-},
-insertdatetime:{
-date_fmt:"%d-%m-%Y",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Inserir data",
-inserttime_desc:"Inserir hor\u00E1rio",
-months_long:"Janeiro,Fevereiro,Mar\u00E7o,Abril,Maio,Junho,Julho,Agosto,Setembro,Outubro,Novembro,Dezembro",
-months_short:"Jan,Fev,Mar,Abr,Mai,Jun,Jul,Ago,Set,Out,Nov,Dez",
-day_long:"Domingo,Segunda-Feira,Ter\u00E7a-Feira,Quarta-Feira,Quinta-Feira,Sexta-Feira,S\u00E1bado,Domingo",
-day_short:"Dom,Seg,Ter,Qua,Qui,Sex,Sab,Dom"
-},
-print:{
-print_desc:"Imprimir"
-},
-preview:{
-preview_desc:"Previs\u00E3o"
-},
-directionality:{
-ltr_desc:"Esquerda para direita",
-rtl_desc:"Direita para esquerda"
-},
-layer:{
-insertlayer_desc:"Inserir nova camada",
-forward_desc:"Mover para frente",
-backward_desc:"Mover para tr\u00E1s",
-absolute_desc:"Alternar posicionamento absoluto",
-content:"Nova camada..."
-},
-save:{
-save_desc:"Salvar",
-cancel_desc:"Cancelar todas altera\u00E7\u00F5es"
-},
-nonbreaking:{
-nonbreaking_desc:"Inserir espa\u00E7o"
-},
-iespell:{
-iespell_desc:"Verificar ortografia",
-download:"Aplicativo de ortografia n\u00E3o-detectado. Deseja instal\u00E1-lo agora?"
-},
-advhr:{
-advhr_desc:"Separador horizontal"
-},
-emotions:{
-emotions_desc:"Emoticons"
-},
-searchreplace:{
-search_desc:"Localizar",
-replace_desc:"Localizar/substituir"
-},
-advimage:{
-image_desc:"Inserir/editar imagem"
-},
-advlink:{
-link_desc:"Inserir/editar hyperlink"
-},
-xhtmlxtras:{
-cite_desc:"Cita\u00E7\u00E3o",
-abbr_desc:"Abrevia\u00E7\u00E3o",
-acronym_desc:"Acr\u00F4nimo",
-del_desc:"Deletar",
-ins_desc:"Inserir",
-attribs_desc:"Inserir/Editar atributos"
-},
-style:{
-desc:"Editar CSS"
-},
-paste:{
-paste_text_desc:"Colar como texto simples",
-paste_word_desc:"Colar (copiado do WORD)",
-selectall_desc:"Selecionar tudo"
-},
-paste_dlg:{
-text_title:"Use CTRL+V para colar o texto na janela.",
-text_linebreaks:"Manter quebras de linha",
-word_title:"Use CTRL+V para colar o texto na janela."
-},
-table:{
-desc:"Inserir nova tabela",
-row_before_desc:"Inserir linha antes",
-row_after_desc:"Inserir linha depois",
-delete_row_desc:"Deletar linha",
-col_before_desc:"Inserir coluna antes",
-col_after_desc:"Inserir coluna depois",
-delete_col_desc:"Remover coluna",
-split_cells_desc:"Quebrar c\u00E9lulas",
-merge_cells_desc:"Unir c\u00E9lulas",
-row_desc:"Propriedades das linhas",
-cell_desc:"Propriedades das c\u00E9lulas",
-props_desc:"Propriedades da tabela",
-paste_row_before_desc:"Colar linha antes",
-paste_row_after_desc:"Colar linha depois",
-cut_row_desc:"Cortar linha",
-copy_row_desc:"Copiar linha",
-del:"Deletar tabela",
-row:"Linha",
-col:"Coluna",
-cell:"C\u00E9lula"
-},
-autosave:{
-unload_msg:"As mudan\u00E7as efetuadas ser\u00E3o perdidas se voc\u00EA sair desta p\u00E1gina."
-},
-fullscreen:{
-desc:"Tela Inteira"
-},
-media:{
-desc:"Inserir/editar m\u00EDdia embutida",
-edit:"Editar m\u00EDdia embutida"
-},
-fullpage:{
-desc:"Propriedades do Documento"
-},
-template:{
-desc:"Inserir template"
-},
-visualchars:{
-desc:"Caracteres de controle visual ligado/desligado"
-},
-spellchecker:{
-desc:"Alternar verifica\u00E7\u00E3o ortogr\u00E1fica",
-menu:"Configura\u00E7\u00F5es de ortografia",
-ignore_word:"Ignorar palavra",
-ignore_words:"Ignorar tudo",
-langs:"Linguagens",
-wait:"Aguarde...",
-sug:"Sugest\u00F5es",
-no_sug:"Sem sugest\u00F5es",
-no_mpell:"N\u00E3o h\u00E1 erros de ortografia."
-},
-pagebreak:{
-desc:"Inserir quebra de p\u00E1gina."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/ro.js b/chrome/content/zotero/tinymce/langs/ro.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({ro:{
-common:{
-edit_confirm:"Dori\u0163i s\u0103 folosi\u0163i un editor avansat pentru aceast\u0103 zona de text?",
-apply:"Aplic\u0103",
-insert:"Insereaz\u0103",
-update:"Actualizeaz\u0103",
-cancel:"Anulare",
-close:"\u00CEnchide",
-browse:"R\u0103sfoie\u015Fte",
-class_name:"Clas\u0103",
-not_set:"-- Nestat\u0103 --",
-clipboard_msg:"Copiere/T\u0103iere/Lipire nu sunt disponibile \u00EEn Mozilla \u015Fi Firefox.\nDori\u0163i mai multe informa\u0163ii despre aceast\u0103 problem\u0103?",
-clipboard_no_support:"Deocamdat\u0103 nu este suportat\u0103 de browser. V\u0103 rug\u0103m s\u0103 folosi\u0163i combina\u0163ii de taste.",
-popup_blocked:"Ne pare r\u0103u, dar un popup-blocker a dezativat o fereastr\u0103 care d\u0103 func\u0163ionalitate aplica\u0163iei.Trebuie s\u0103 dezactiva\u0163i acel popup-blocker pentru acest site pentru a folosi aplica\u0163ia la capacitate maxim\u0103.",
-invalid_data:"Ave\u0163i erori. Datele gre\u015Fite sunt \u00EEn ro\u015Fu.",
-more_colors:"Mai multe culori"
-},
-contextmenu:{
-align:"Aliniere",
-left:"St\u00E2nga",
-center:"Centru",
-right:"Dreapta",
-full:"Justify"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Insereaz\u0103 dat\u0103",
-inserttime_desc:"Insereaz\u0103 or\u0103",
-months_long:"Ianuarie,Februarie,Martie,Aprilie,Mai,Iunie,Iulie,August,Septembrie,Octombrie,Noiembrie,Decembrie ",
-months_short:"Ian,Feb,Mar,Apr,Mai,Iun,Iul,Aug,Sep,Oct,Noi,Dec",
-day_long:"Duminic\u0103,Luni,Mar\u0163i,Miercuri,Joi,Vineri,S\u00E2mb\u0103t\u0103,Duminic\u0103",
-day_short:"Dum,Lun,Mar,Mie,Joi,Vin,S\u00E2m,Dum"
-},
-print:{
-print_desc:"Imprimare"
-},
-preview:{
-preview_desc:"Previzualizare"
-},
-directionality:{
-ltr_desc:"Direc\u0163ia de la st\u00E2nga la dreapta",
-rtl_desc:"Direc\u0163ia de la dreapta la st\u00E2nga"
-},
-layer:{
-insertlayer_desc:"Insereaz\u0103 stat nou",
-forward_desc:"Mut\u0103 \u00EEnainte",
-backward_desc:"Mut\u0103 \u00EEnapoi",
-absolute_desc:"Pozi\u0163ionare absolut\u0103",
-content:"Strat nou ..."
-},
-save:{
-save_desc:"Salveaz\u0103",
-cancel_desc:"Anuleaz\u0103 toate schimb\u0103rile"
-},
-nonbreaking:{
-nonbreaking_desc:"Insert non-breaking space character"
-},
-iespell:{
-iespell_desc:"Ruleaz\u0103 corector de limb\u0103",
-download:"ieSpell nu a fost detectat. Dori\u0163i s\u0103-l instala\u0163i?"
-},
-advhr:{
-advhr_desc:"Linie orizontal\u0103"
-},
-emotions:{
-emotions_desc:"Emoticoane"
-},
-searchreplace:{
-search_desc:"Caut\u0103",
-replace_desc:"Caut\u0103/\u00CEnlocuie\u015Fte"
-},
-advimage:{
-image_desc:"Inserare/editare imagine"
-},
-advlink:{
-link_desc:"Insereaz\u0103/editeaz\u0103 link"
-},
-xhtmlxtras:{
-cite_desc:"Citat",
-abbr_desc:"Abreviere",
-acronym_desc:"Acronim",
-del_desc:"\u015Etergere",
-ins_desc:"Inserare",
-attribs_desc:"Insereaz\u0103/Editeaz\u0103 atribute"
-},
-style:{
-desc:"Editare CSS"
-},
-paste:{
-paste_text_desc:"Lipire ca text simplu",
-paste_word_desc:"Lipire din Word",
-selectall_desc:"Selecteaz\u0103 tot"
-},
-paste_dlg:{
-text_title:"Folosi\u0163i CTRL+V pentru a lipi \u00EEn aceast\u0103 zon\u0103.",
-text_linebreaks:"Pastreaza linii noi.",
-word_title:"Folosi\u0163i CTRL+V pentru a lipi \u00EEn aceast\u0103 zon\u0103."
-},
-table:{
-desc:"Insereaz\u0103 tabel nou",
-row_before_desc:"Inserare r\u00E2nd \u00EEnainte",
-row_after_desc:"Inserare r\u00E2nd dup\u0103",
-delete_row_desc:"\u015Eterge r\u00E2nd",
-col_before_desc:"Inserare coloan\u0103 \u00EEnainte",
-col_after_desc:"Inserare coloan\u0103 dup\u0103",
-delete_col_desc:"\u015Eterge coloan\u0103",
-split_cells_desc:"Separa\u0163i celule unite",
-merge_cells_desc:"Uni\u0163i celule",
-row_desc:"Propriet\u0103\u0163i r\u00E2nd",
-cell_desc:"Propriet\u0103\u0163i celul\u0103",
-props_desc:"Propriet\u0103\u0163i tabel",
-paste_row_before_desc:"Lipe\u015Fte r\u00E2nd \u00EEnainte",
-paste_row_after_desc:"Lipe\u015Fte r\u00E2nd dup\u0103",
-cut_row_desc:"Taie r\u00E2nd",
-copy_row_desc:"Copiaz\u0103 r\u00E2nd",
-del:"\u015Eterge tabel",
-row:"R\u00E2nd",
-col:"Coloan\u0103",
-cell:"Celul\u0103"
-},
-autosave:{
-unload_msg:"Modific\u0103rile nu vor fi salvate."
-},
-fullscreen:{
-desc:"Mod ecran complet"
-},
-media:{
-desc:"Insereaz\u0103 / editeaz\u0103 media",
-edit:"Editeaz\u0103 media"
-},
-fullpage:{
-desc:"Propriet\u0103\u0163i document"
-},
-template:{
-desc:"Insereaz\u0103 un \u015Fablon predefinit"
-},
-visualchars:{
-desc:"Visual control characters on/off."
-},
-spellchecker:{
-desc:"Activare/dezactivare dic\u0163ionar",
-menu:"Set\u0103ri dic\u0163ionar",
-ignore_word:"Ignor\u0103 cuv\u00E2nt",
-ignore_words:"Ignor\u0103 toate",
-langs:"Limbi",
-wait:"V\u0103 rog a\u015Ftepta\u0163i...",
-sug:"Sugestii",
-no_sug:"Nu sunt sugestii.",
-no_mpell:"Nu sunt gre\u015Feli."
-},
-pagebreak:{
-desc:"Insereaz\u0103 page break."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/ru.js b/chrome/content/zotero/tinymce/langs/ru.js
@@ -1,155 +0,0 @@
-tinyMCE.addI18n({ru:{
-common:{
-edit_confirm:"\u0412\u044B \u0445\u043E\u0442\u0438\u0442\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0434\u043B\u044F \u044D\u0442\u043E\u0439 \u0442\u0435\u043A\u0441\u0442\u043E\u0432\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u0442\u0438 \u0440\u0435\u0436\u0438\u043C WYSIWYG?",
-apply:"\u041F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C",
-insert:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C",
-update:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C",
-cancel:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",
-close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",
-browse:"\u041F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C",
-class_name:"\u041A\u043B\u0430\u0441\u0441",
-not_set:"-- \u041D\u0435 \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E --",
-clipboard_msg:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435/\u0412\u0441\u0442\u0430\u0432\u043A\u0430 \u043D\u0435 \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442 \u0432 Mozilla \u0438 Firefox.\n\u0425\u043E\u0442\u0438\u0442\u0435 \u043F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435 \u0443\u0437\u043D\u0430\u0442\u044C, \u0432 \u0447\u0451\u043C \u0434\u0435\u043B\u043E?",
-clipboard_no_support:"\u041D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u0432\u0430\u0448\u0438\u043C \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043E\u043C \u0432 \u043D\u0430\u0441\u0442\u043E\u044F\u0449\u0438\u0439 \u043C\u043E\u043C\u0435\u043D\u0442, \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u043A\u043B\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u043D\u044B\u0435 \u0441\u043E\u043A\u0440\u0430\u0449\u0435\u043D\u0438\u044F.",
-popup_blocked:"\u0418\u0437\u0432\u0438\u043D\u0438\u0442\u0435, \u043D\u043E \u0432\u0430\u0448 \u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0449\u0438\u043A \u0432\u0441\u043F\u043B\u044B\u0432\u0430\u044E\u0449\u0438\u0445 \u043E\u043A\u043E\u043D \u0437\u0430\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u043B \u043E\u043A\u043D\u043E, \u043F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u043B\u044F\u044E\u0449\u0435\u0435 \u0444\u0443\u043D\u043A\u0446\u0438\u0438 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F. \u0412\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u043E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0431\u043B\u043E\u043A\u0438\u0440\u043E\u043A\u0443 \u0432\u0441\u043F\u043B\u044B\u0432\u0430\u044E\u0449\u0438\u0445 \u043E\u043A\u043E\u043D \u043D\u0430 \u044D\u0442\u043E\u043C \u0441\u0430\u0439\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u043D\u0430\u043F\u043E\u043B\u043D\u0443\u044E \u0432\u043E\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C\u0441\u044F \u044D\u0442\u0438\u043C \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u043C.",
-invalid_data:"\u041E\u0448\u0438\u0431\u043A\u0430: \u041E\u0442\u043C\u0435\u0447\u0435\u043D\u043D\u044B\u0435 \u043A\u0440\u0430\u0441\u043D\u044B\u043C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F \u0432\u0432\u0435\u0434\u0435\u043D\u044B \u043D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u043E.",
-more_colors:"\u0411\u043E\u043B\u044C\u0448\u0435 \u0446\u0432\u0435\u0442\u043E\u0432"
-},
-contextmenu:{
-align:"\u0412\u044B\u0440\u0430\u0432\u043D\u0438\u0432\u0430\u043D\u0438\u0435",
-left:"\u0412\u043B\u0435\u0432\u043E",
-center:"\u041F\u043E \u0446\u0435\u043D\u0442\u0440\u0443",
-right:"\u0412\u043F\u0440\u0430\u0432\u043E",
-full:"\u041F\u043E\u043B\u043D\u043E\u0441\u0442\u044C\u044E"
-},
-insertdatetime:{
-date_fmt:"%d.%m.%Y",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0434\u0430\u0442\u0443",
-inserttime_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0432\u0440\u0435\u043C\u044F",
-months_long:"\u042F\u043D\u0432\u0430\u0440\u044C,\u0424\u0435\u0432\u0440\u0430\u043B\u044C,\u041C\u0430\u0440\u0442,\u0410\u043F\u0440\u0435\u043B\u044C,\u041C\u0430\u0439,\u0418\u044E\u043D\u044C,\u0418\u044E\u043D\u044C,\u0418\u044E\u043B\u044C,\u0410\u0432\u0433\u0443\u0441\u0442,\u0421\u0435\u043D\u0442\u044F\u0431\u0440\u044C,\u041E\u043A\u0442\u044F\u0431\u0440\u044C,\u041D\u043E\u044F\u0431\u0440\u044C,\u0414\u0435\u043A\u0430\u0431\u0440\u044C",
-months_short:"\u042F\u043D\u0432,\u0424\u0435\u0432,\u041C\u0430\u0440,\u0410\u043F\u0440,\u041C\u0430\u0439,\u0418\u044E\u043D,\u0418\u044E\u043B,\u0410\u0432\u0433,\u0421\u0435\u043F,\u041E\u043A\u0442,\u041D\u043E\u0432,\u0414\u0435\u043A",
-day_long:"\u0412\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435,\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A,\u0412\u0442\u043E\u0440\u043D\u0438\u043A,\u0421\u0440\u0435\u0434\u0430,\u0427\u0435\u0442\u0432\u0435\u0440\u0433,\u041F\u044F\u0442\u043D\u0438\u0446\u0430,\u0421\u0443\u0431\u0431\u043E\u0442\u0430,\u0412\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435",
-day_short:"\u0412\u0441,\u041F\u043D,\u0412\u0442,\u0421\u0440,\u0427\u0442,\u041F\u0442,\u0421\u0431,\u0412\u0441"
-},
-print:{
-print_desc:"\u041F\u0435\u0447\u0430\u0442\u044C"
-},
-preview:{
-preview_desc:"\u041F\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440"
-},
-directionality:{
-ltr_desc:"\u041D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0441\u043B\u0435\u0432\u0430 \u043D\u0430\u043F\u0440\u0430\u0432\u043E",
-rtl_desc:"\u041D\u0430\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0441\u043F\u0440\u0430\u0432\u0430 \u043D\u0430\u043B\u0435\u0432\u043E"
-},
-layer:{
-insertlayer_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u0441\u043B\u043E\u0439",
-forward_desc:"\u041F\u0435\u0440\u0435\u043D\u0435\u0441\u0442\u0438 \u0432\u043F\u0435\u0440\u0451\u0434",
-backward_desc:"\u041F\u0435\u0440\u0435\u043D\u0435\u0441\u0442\u0438 \u043D\u0430\u0437\u0430\u0434",
-absolute_desc:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C/\u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0430\u0431\u0441\u043E\u043B\u044E\u0442\u043D\u043E\u0435 \u043F\u043E\u0437\u0438\u0446\u0438\u043E\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",
-content:"\u041D\u043E\u0432\u044B\u0439 \u0441\u043B\u043E\u0439\u2026"
-},
-save:{
-save_desc:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C",
-cancel_desc:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u0441\u0435 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F"
-},
-nonbreaking:{
-nonbreaking_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043D\u0435\u0440\u0430\u0437\u0440\u044B\u0432\u043D\u044B\u0439 \u043F\u0440\u043E\u0431\u0435\u043B"
-},
-iespell:{
-iespell_desc:"\u041F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u043E\u0440\u0444\u043E\u0433\u0440\u0430\u0444\u0438\u044E",
-download:"ieSpell \u043D\u0435 \u043E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D. \u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C?"
-},
-advhr:{
-advhr_desc:"\u0413\u043E\u0440\u0438\u0437\u043E\u043D\u0442\u0430\u043B\u044C\u043D\u0430\u044F \u043B\u0438\u043D\u0438\u044F"
-},
-emotions:{
-emotions_desc:"\u0421\u043C\u0430\u0439\u043B\u0438\u043A\u0438"
-},
-searchreplace:{
-search_desc:"\u041D\u0430\u0439\u0442\u0438",
-replace_desc:"\u041D\u0430\u0439\u0442\u0438/\u0417\u0430\u043C\u0435\u043D\u0438\u0442\u044C"
-},
-advimage:{
-image_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C/\u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435"
-},
-advlink:{
-link_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C/\u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443"
-},
-xhtmlxtras:{
-cite_desc:"\u0426\u0438\u0442\u0430\u0442\u0430",
-abbr_desc:"\u0410\u0431\u0431\u0440\u0435\u0432\u0438\u0430\u0442\u0443\u0440\u0430",
-acronym_desc:"\u0410\u043A\u0440\u043E\u043D\u0438\u043C",
-del_desc:"\u0423\u0434\u0430\u043B\u0435\u043D\u043D\u044B\u0439 \u0442\u0435\u043A\u0441\u0442",
-ins_desc:"\u0414\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u043D\u044B\u0439 \u0442\u0435\u043A\u0441\u0442",
-attribs_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C/\u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u044B"
-},
-style:{
-desc:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0442\u0438\u043B\u044C CSS",
-delta_width:"35"
-},
-paste:{
-paste_text_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043A\u0430\u043A \u043F\u0440\u043E\u0441\u0442\u043E\u0439 \u0442\u0435\u043A\u0441\u0442",
-paste_word_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0438\u0437 Word",
-selectall_desc:"\u0412\u044B\u0434\u0435\u043B\u0438\u0442\u044C \u0432\u0441\u0451"
-},
-paste_dlg:{
-text_title:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u0441\u043E\u0447\u0435\u0442\u0430\u043D\u0438\u0435 \u043A\u043B\u0430\u0432\u0438\u0448 CTRL+V \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0442\u0435\u043A\u0441\u0442 \u0432 \u043E\u043A\u043D\u043E.",
-text_linebreaks:"\u0421\u043E\u0445\u0440\u0430\u043D\u044F\u0442\u044C \u0440\u0430\u0437\u0440\u044B\u0432\u044B \u0441\u0442\u0440\u043E\u043A",
-word_title:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \u0441\u043E\u0447\u0435\u0442\u0430\u043D\u0438\u0435 \u043A\u043B\u0430\u0432\u0438\u0448 CTRL+V \u0447\u0442\u043E\u0431\u044B \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0442\u0435\u043A\u0441\u0442 \u0432 \u043E\u043A\u043D\u043E."
-},
-table:{
-desc:"\u0412\u0441\u0442\u0430\u0432\u043B\u044F\u0435\u0442 \u043D\u043E\u0432\u0443\u044E \u0442\u0430\u0431\u043B\u0438\u0446\u0443",
-row_before_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0441\u0442\u0440\u043E\u043A\u0443 \u043F\u0435\u0440\u0435\u0434",
-row_after_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0441\u0442\u0440\u043E\u043A\u0443 \u043F\u043E\u0441\u043B\u0435",
-delete_row_desc:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0441\u0442\u0440\u043E\u043A\u0443",
-col_before_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0441\u0442\u043E\u043B\u0431\u0435\u0446 \u043F\u0435\u0440\u0435\u0434",
-col_after_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0441\u0442\u043E\u043B\u0431\u0435\u0446 \u043F\u043E\u0441\u043B\u0435",
-delete_col_desc:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0441\u0442\u043E\u043B\u0431\u0435\u0446",
-split_cells_desc:"\u0420\u0430\u0437\u0434\u0435\u043B\u0438\u0442\u044C \u0441\u043B\u0438\u0442\u044B\u0435 \u044F\u0447\u0435\u0439\u043A\u0438",
-merge_cells_desc:"\u0421\u043B\u0438\u0442\u044C \u044F\u0447\u0435\u0439\u043A\u0438",
-row_desc:"\u0421\u0432\u043E\u0439\u0441\u0442\u0432\u0430 \u0441\u0442\u0440\u043E\u043A\u0438",
-cell_desc:"\u0421\u0432\u043E\u0439\u0441\u0442\u0432\u0430 \u044F\u0447\u0435\u0439\u043A\u0438",
-props_desc:"\u0421\u0432\u043E\u0439\u0441\u0442\u0432\u0430 \u0442\u0430\u0431\u043B\u0438\u0446\u044B",
-paste_row_before_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0441\u0442\u0440\u043E\u043A\u0443 \u0442\u0430\u0431\u043B\u0438\u0446\u044B \u043F\u0435\u0440\u0435\u0434",
-paste_row_after_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0441\u0442\u0440\u043E\u043A\u0443 \u0442\u0430\u0431\u043B\u0438\u0446\u044B \u043F\u043E\u0441\u043B\u0435",
-cut_row_desc:"\u0412\u044B\u0440\u0435\u0437\u0430\u0442\u044C \u0441\u0442\u0440\u043E\u043A\u0443",
-copy_row_desc:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0442\u0440\u043E\u043A\u0443",
-del:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0442\u0430\u0431\u043B\u0438\u0446\u0443",
-row:"\u0421\u0442\u0440\u043E\u043A\u0430",
-col:"\u0421\u0442\u043E\u043B\u0431\u0435\u0446",
-cell:"\u042F\u0447\u0435\u0439\u043A\u0430"
-},
-autosave:{
-unload_msg:"\u0412\u043D\u0435\u0441\u0451\u043D\u043D\u044B\u0435 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0431\u0443\u0434\u0443\u0442 \u043F\u043E\u0442\u0435\u0440\u044F\u043D\u044B, \u0435\u0441\u043B\u0438 \u0432\u044B \u0443\u0439\u0434\u0451\u0442\u0435 \u0441 \u044D\u0442\u043E\u0439 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B."
-},
-fullscreen:{
-desc:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C/\u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043F\u043E\u043B\u043D\u043E\u044D\u043A\u0440\u0430\u043D\u043D\u044B\u0439 \u0440\u0435\u0436\u0438\u043C"
-},
-media:{
-desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C/\u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043C\u0435\u0434\u0438\u0430-\u043E\u0431\u044A\u0435\u043A\u0442",
-edit:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043C\u0435\u0434\u0438\u0430-\u043E\u0431\u044A\u0435\u043A\u0442"
-},
-fullpage:{
-desc:"Document properties"
-},
-template:{
-desc:"Insert predefined template content"
-},
-visualchars:{
-desc:"Visual control characters on/off."
-},
-spellchecker:{
-desc:"Toggle spellchecker",
-menu:"Spellchecker settings",
-ignore_word:"Ignore word",
-ignore_words:"Ignore all",
-langs:"Languages",
-wait:"Please wait...",
-sug:"Suggestions",
-no_sug:"No suggestions",
-no_mpell:"No misspellings found."
-},
-pagebreak:{
-desc:"Insert page break."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/sc.js b/chrome/content/zotero/tinymce/langs/sc.js
@@ -1,188 +0,0 @@
-tinyMCE.addI18n({sc:{
-common:{
-edit_confirm:"\u662F\u5426\u542F\u7528\u6240\u89C1\u5373\u6240\u5F97\u6A21\u5F0F\uFF1F",
-apply:"\u5E94\u7528",
-insert:"\u63D2\u5165",
-update:"\u66F4\u65B0",
-cancel:"\u53D6\u6D88",
-close:"\u5173\u95ED",
-browse:"\u6D4F\u89C8",
-class_name:"\u6837\u5F0F\u7C7B\u540D",
-not_set:"-- \u672A\u8BBE\u7F6E --",
-clipboard_msg:"\u590D\u5236\u3001\u526A\u5207\u548C\u7C98\u8D34\u529F\u80FD\u5728Mozilla\u548CFirefox\u4E2D\u65E0\u6CD5\u4F7F\u7528\u3002\n\u60F3\u4E86\u89E3\u66F4\u591A\u4FE1\u606F\u5417\uFF1F",
-clipboard_no_support:"\u5C1A\u4E0D\u652F\u6301\u60A8\u6240\u4F7F\u7528\u7684\u6D4F\u89C8\u5668\uFF0C\u8BF7\u4F7F\u7528\u952E\u76D8\u5FEB\u6377\u952E\u64CD\u4F5C\u3002",
-popup_blocked:"\u8BF7\u8C03\u6574\u4F60\u7684\u6D4F\u89C8\u5668\u8BBE\u7F6E\uFF0C\u5141\u8BB8\u672C\u7F51\u7AD9\u5F39\u51FA\u65B0\u7A97\u53E3\uFF0C\u4EE5\u4FBF\u4F7F\u7528\u6B64\u529F\u80FD\u3002",
-invalid_data:"\u9519\u8BEF\uFF1A\u8F93\u5165\u4E86\u65E0\u6548\u7684\u503C\uFF0C\u5DF2\u6807\u8BB0\u4E3A\u7EA2\u8272\u3002",
-more_colors:"\u66F4\u591A\u989C\u8272"
-},
-contextmenu:{
-align:"\u5BF9\u9F50\u65B9\u5F0F",
-left:"\u5DE6\u5BF9\u9F50",
-center:"\u5C45\u4E2D",
-right:"\u53F3\u5BF9\u9F50",
-full:"\u4E24\u7AEF\u5BF9\u9F50"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"\u63D2\u5165\u4ECA\u5929\u65E5\u671F",
-inserttime_desc:"\u63D2\u5165\u73B0\u5728\u65F6\u95F4",
-months_long:"\u4E00\u6708,\u4E8C\u6708,\u4E09\u6708,\u56DB\u6708,\u4E94\u6708,\u516D\u6708,\u4E03\u6708,\u516B\u6708,\u4E5D\u6708,\u5341\u6708,\u5341\u4E00\u6708,\u5341\u4E8C\u6708",
-months_short:"1\u6708,2\u6708,3\u6708,4\u6708,5\u6708,6\u6708,7\u6708,8\u6708,9\u6708,10\u6708,11\u6708,12\u6708",
-day_long:"\u661F\u671F\u65E5,\u661F\u671F\u4E00,\u661F\u671F\u4E8C,\u661F\u671F\u4E09,\u661F\u671F\u56DB,\u661F\u671F\u4E94,\u661F\u671F\u516D,\u661F\u671F\u65E5",
-day_short:"\u5468\u65E5,\u5468\u4E00,\u5468\u4E8C,\u5468\u4E09,\u5468\u56DB,\u5468\u4E94,\u5468\u516D,\u5468\u65E5"
-},
-print:{
-print_desc:"\u6253\u5370"
-},
-preview:{
-preview_desc:"\u9884\u89C8"
-},
-directionality:{
-ltr_desc:"\u6587\u5B57\u4ECE\u5DE6\u5230\u53F3",
-rtl_desc:"\u6587\u5B57\u4ECE\u53F3\u5230\u5DE6"
-},
-layer:{
-insertlayer_desc:"\u63D2\u5165\u5C42",
-forward_desc:"\u524D\u7F6E",
-backward_desc:"\u540E\u7F6E",
-absolute_desc:"\u7EDD\u5BF9\u4F4D\u7F6E",
-content:"\u65B0\u589E\u5C42..."
-},
-save:{
-save_desc:"\u4FDD\u5B58",
-cancel_desc:"\u653E\u5F03\u6240\u6709\u66F4\u6539"
-},
-nonbreaking:{
-nonbreaking_desc:"\u63D2\u5165\u7A7A\u683C\u7B26"
-},
-iespell:{
-iespell_desc:"\u68C0\u67E5\u62FC\u5199",
-download:"\u672A\u68C0\u6D4B\u5230ieSpell\u7EC4\u4EF6\uFF0C\u662F\u5426\u73B0\u5728\u5B89\u88C5 ?"
-},
-advhr:{
-advhr_desc:"\u6C34\u5E73\u5206\u9694\u7EBF",
-delta_width:"20",
-delta_height:"20"
-},
-emotions:{
-emotions_desc:"\u8868\u60C5"
-},
-searchreplace:{
-search_desc:"\u67E5\u627E",
-replace_desc:"\u67E5\u627E/\u66FF\u6362",
-delta_width:"20",
-delta_height:"20"
-},
-advimage:{
-image_desc:"\u63D2\u5165/\u7F16\u8F91 \u56FE\u7247",
-delta_width:"20",
-delta_height:"20"
-},
-advlink:{
-link_desc:"\u63D2\u5165/\u7F16\u8F91 \u94FE\u63A5",
-delta_width:"20",
-delta_height:"20"
-},
-xhtmlxtras:{
-cite_desc:"\u5F15\u7528",
-abbr_desc:"\u7F29\u5199",
-acronym_desc:"\u9996\u5B57\u6BCD\u7F29\u5199",
-del_desc:"\u5220\u9664",
-ins_desc:"\u63D2\u5165",
-attribs_desc:"\u63D2\u5165/\u7F16\u8F91 \u5C5E\u6027",
-cite_delta_width:"20",
-cite_delta_height:"20",
-abbr_delta_width:"20",
-abbr_delta_height:"20",
-acronym_delta_width:"20",
-acronym_delta_height:"20",
-del_delta_width:"20",
-del_delta_height:"20",
-ins_delta_width:"20",
-ins_delta_height:"20",
-attribs_delta_width:"20",
-attribs_delta_height:"20"
-},
-style:{
-desc:"\u7F16\u8F91CSS\u6837\u5F0F",
-delta_width:"20",
-delta_height:"20"
-},
-paste:{
-paste_text_desc:"\u7C98\u8D34\u4E3A\u7EAF\u6587\u672C\u683C\u5F0F",
-paste_word_desc:"\u7C98\u8D34Word\u683C\u5F0F\u6587\u6863",
-selectall_desc:"\u5168\u9009"
-},
-paste_dlg:{
-text_title:"\u5C06\u590D\u5236(CTRL + C)\u7684\u5185\u5BB9\u7C98\u8D34(CTRL + V)\u5230\u7A97\u53E3\u3002",
-text_linebreaks:"\u4FDD\u7559\u5206\u884C\u7B26\u53F7\u53F7",
-word_title:"\u5C06\u590D\u5236(CTRL + C)\u7684\u5185\u5BB9\u7C98\u8D34(CTRL + V)\u5230\u7A97\u53E3\u3002"
-},
-table:{
-desc:"\u63D2\u5165\u8868\u683C",
-row_before_desc:"\u5728\u4E0A\u65B9\u63D2\u5165\u884C",
-row_after_desc:"\u5728\u4E0B\u65B9\u63D2\u5165\u884C",
-delete_row_desc:"\u5220\u9664\u5F53\u524D\u884C",
-col_before_desc:"\u5728\u5DE6\u4FA7\u63D2\u5165\u5217",
-col_after_desc:"\u5728\u53F3\u4FA7\u63D2\u5165\u5217",
-delete_col_desc:"\u5220\u9664\u5F53\u524D\u5217",
-split_cells_desc:"\u62C6\u5206\u5355\u5143\u683C",
-merge_cells_desc:"\u5408\u5E76\u5355\u5143\u683C",
-row_desc:"\u5217 \u5C5E\u6027",
-cell_desc:"\u5355\u5143\u683C \u5C5E\u6027",
-props_desc:"\u8868\u683C \u5C5E\u6027",
-paste_row_before_desc:"\u7C98\u8D34\u884C\u5230\u4E0A\u65B9",
-paste_row_after_desc:"\u7C98\u8D34\u884C\u5230\u4E0B\u65B9",
-cut_row_desc:"\u526A\u5207\u5F53\u524D\u5217",
-copy_row_desc:"\u590D\u5236\u5F53\u524D\u5217",
-del:"\u5220\u9664\u8868\u683C",
-row:"\u884C",
-col:"\u5217",
-cell:"\u5355\u5143\u683C",
-rowprops_delta_width:"20",
-rowprops_delta_height:"20",
-cellprops_delta_width:"20",
-cellprops_delta_height:"20",
-table_delta_width:"20",
-table_delta_height:"20",
-merge_cells_delta_width:"20",
-merge_cells_delta_height:"20"
-},
-autosave:{
-unload_msg:"\u79BB\u5F00\u8BE5\u9875\u5C06\u4E22\u5931\u6240\u6709\u4FEE\u6539\uFF01"
-},
-fullscreen:{
-desc:"\u5168\u5C4F\u6A21\u5F0F"
-},
-media:{
-desc:"\u63D2\u5165/\u7F16\u8F91 \u5A92\u4F53",
-edit:"\u7F16\u8F91 \u5A92\u4F53",
-delta_width:"20",
-delta_height:"20"
-},
-fullpage:{
-desc:"\u6587\u6863\u5C5E\u6027",
-delta_width:"20",
-delta_height:"20"
-},
-template:{
-desc:"\u63D2\u5165\u9009\u5B9A\u7684\u8303\u672C"
-},
-visualchars:{
-desc:"\u663E\u793A\u63A7\u5236\u7B26\u53F7"
-},
-spellchecker:{
-desc:"\u62FC\u5199\u68C0\u67E5",
-menu:"\u62FC\u5199\u68C0\u67E5 \u8BBE\u7F6E",
-ignore_word:"\u5FFD\u7565",
-ignore_words:"\u5168\u90E8\u5FFD\u7565",
-langs:"\u8BED\u8A00\u5217\u8868",
-wait:"\u8BF7\u7A0D\u5019...",
-sug:"\u5EFA\u8BAE\u8BCD",
-no_sug:"\u65E0\u62FC\u5199\u5EFA\u8BAE",
-no_mpell:"\u65E0\u62FC\u5199\u9519\u8BEF"
-},
-pagebreak:{
-desc:"\u63D2\u5165\u5206\u9875\u7B26\u53F7"
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/se.js b/chrome/content/zotero/tinymce/langs/se.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({se:{
-common:{
-edit_confirm:"Vill du anv\u00E4nda WYSIWYG l\u00E4get f\u00F6r denna textarea.",
-apply:"Applicera",
-insert:"Infoga",
-update:"Uppdatera",
-cancel:"Avbryt",
-close:"St\u00E4ng",
-browse:"Bl\u00E4ddra",
-class_name:"Klass",
-not_set:"-- Inte satt --",
-clipboard_msg:"Kopiera/klipp ut/klistra in \u00E4r inte tillg\u00E4ngligt i din webbl\u00E4sare.\nVill du veta mer?",
-clipboard_no_support:"Funktionen \u00E4r inte tillg\u00E4nglig i din webbl\u00E4sare, anv\u00E4nd tangentbordsgenv\u00E4garna i st\u00E4llet.",
-popup_blocked:"Popup blockerare detekterad. St\u00E4ng av den s\u00E5 att dialogerna kan \u00F6ppnas.",
-invalid_data:"Fel: Inkorrekta v\u00E4rden har matats in, dessa \u00E4r markerade i r\u00F6tt.",
-more_colors:"Fler f\u00E4rger"
-},
-contextmenu:{
-align:"Justering",
-left:"V\u00E4nster",
-center:"Centrerad",
-right:"H\u00F6ger",
-full:"Utfyllnad"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d ",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Infoga datum",
-inserttime_desc:"Infoga tid",
-months_long:"Januari,Februari,Mars,April,Maj,Juni,Juli,Augusti,September,Oktober,November,December",
-months_short:"Jan,Feb,Mar,Apr,Maj,Jun,Jul,Aug,Sep,Okt,Nov,Dec",
-day_long:"S\u00F6ndag,M\u00E5ndag,Tisdag,Onsdag,Torsdag,Fredag,L\u00F6rdag,S\u00F6ndag",
-day_short:"S\u00F6n,M\u00E5n,Tis,Ons,Tors,Fre,L\u00F6r,S\u00F6n"
-},
-print:{
-print_desc:"Skriv ut"
-},
-preview:{
-preview_desc:"F\u00F6rhandsgranska"
-},
-directionality:{
-ltr_desc:"Skriftl\u00E4ge - v\u00E4nster till h\u00F6ger",
-rtl_desc:"Skriftl\u00E4ge - h\u00F6ger till v\u00E4nster"
-},
-layer:{
-insertlayer_desc:"Infoga nytt lager",
-forward_desc:"Flytta fram\u00E5t",
-backward_desc:"Flytta bak\u00E5t",
-absolute_desc:"Sl\u00E5 av/p\u00E5 absolut positionering",
-content:"Nytt lager..."
-},
-save:{
-save_desc:"Spara",
-cancel_desc:"Hoppa \u00F6ver alla f\u00F6r\u00E4ndringar"
-},
-nonbreaking:{
-nonbreaking_desc:"Infoga icke radbrytande mellanslag"
-},
-iespell:{
-iespell_desc:"R\u00E4ttstava",
-download:"ieSpell kunde inte hittas, vill du installera denna nu?"
-},
-advhr:{
-advhr_desc:"Horisontell skiljelinje"
-},
-emotions:{
-emotions_desc:"Smileys"
-},
-searchreplace:{
-search_desc:"S\u00F6k",
-replace_desc:"S\u00F6k/ers\u00E4tt"
-},
-advimage:{
-image_desc:"Infoga/redigera bild"
-},
-advlink:{
-link_desc:"Infoga/redigera l\u00E4nk"
-},
-xhtmlxtras:{
-cite_desc:"citat",
-abbr_desc:"F\u00F6rkortning",
-acronym_desc:"Akronym",
-del_desc:"Markera som struket",
-ins_desc:"Markera som tillagt",
-attribs_desc:"Redigera attribut"
-},
-style:{
-desc:"Redigera inline CSS"
-},
-paste:{
-paste_text_desc:"Klistra in som text",
-paste_word_desc:"Klistra in fr\u00E5n Word",
-selectall_desc:"Markera allt"
-},
-paste_dlg:{
-text_title:"Anv\u00E4nd ctrl-v p\u00E5 ditt tangentbord f\u00F6r att klistra in i detta f\u00F6nster.",
-text_linebreaks:"Spara radbrytningar",
-word_title:"Anv\u00E4nd ctrl-v p\u00E5 ditt tangentbord f\u00F6r att klistra in i detta f\u00F6nster."
-},
-table:{
-desc:"Infoga/redigera ny tabell",
-row_before_desc:"Infoga ny rad f\u00F6re",
-row_after_desc:"Infoga ny rad efter",
-delete_row_desc:"Radera rad",
-col_before_desc:"Infoga kolumn f\u00F6re",
-col_after_desc:"Infoga kolumn efter",
-delete_col_desc:"Radera kolumn",
-split_cells_desc:"Separera sammansatta celler",
-merge_cells_desc:"Sammanfoga celler",
-row_desc:"Tabellradsinst\u00E4llningar",
-cell_desc:"Tabellcellsinst\u00E4llningar",
-props_desc:"Tabellinst\u00E4llningar",
-paste_row_before_desc:"Klistra in rad ovanf\u00F6r",
-paste_row_after_desc:"Klistra in rad efter",
-cut_row_desc:"Klipp ut rad",
-copy_row_desc:"Klistra in rad",
-del:"Radera tabell",
-row:"Rad",
-col:"Kolumn",
-cell:"Cell"
-},
-autosave:{
-unload_msg:"F\u00F6r\u00E4ndringarna du gjorde kommer att g\u00E5 f\u00F6rlorade om du v\u00E4ljer att l\u00E4mna denna sida."
-},
-fullscreen:{
-desc:"Sl\u00E5 av/p\u00E5 fullsk\u00E4rmsl\u00E4ge"
-},
-media:{
-desc:"Infoga/redigera inb\u00E4ddad media",
-edit:"Redigera inb\u00E4ddad media"
-},
-fullpage:{
-desc:"Dokumentinst\u00E4llningar"
-},
-template:{
-desc:"Infoga en f\u00E4rdig mall"
-},
-visualchars:{
-desc:"Visa osynliga tecken"
-},
-spellchecker:{
-desc:"Sl\u00E5 av/p\u00E5 r\u00E4ttstavningskontroll",
-menu:"R\u00E4ttstavningsinst\u00E4llningar",
-ignore_word:"Ignorera ord",
-ignore_words:"Ignorera alla",
-langs:"Spr\u00E5k",
-wait:"Var god v\u00E4nta...",
-sug:"F\u00F6rslag",
-no_sug:"Inga f\u00F6rslag",
-no_mpell:"Kunde inte finna n\u00E5gra felstavningar."
-},
-pagebreak:{
-desc:"Infoga sidbrytning"
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/si.js b/chrome/content/zotero/tinymce/langs/si.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({si:{
-common:{
-edit_confirm:"Do you want to use the WYSIWYG mode for this textarea?",
-apply:"Apply",
-insert:"Insert",
-update:"Update",
-cancel:"Cancel",
-close:"Close",
-browse:"Browse",
-class_name:"Class",
-not_set:"-- Not set --",
-clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?",
-clipboard_no_support:"Currently not supported by your browser, use keyboard shortcuts instead.",
-popup_blocked:"Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.",
-invalid_data:"Error: Invalid values entered, these are marked in red.",
-more_colors:"More colors"
-},
-contextmenu:{
-align:"Alignment",
-left:"Left",
-center:"Center",
-right:"Right",
-full:"Full"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Insert date",
-inserttime_desc:"Insert time",
-months_long:"January,February,March,April,May,June,July,August,September,October,November,December",
-months_short:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",
-day_long:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday",
-day_short:"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun"
-},
-print:{
-print_desc:"Print"
-},
-preview:{
-preview_desc:"Preview"
-},
-directionality:{
-ltr_desc:"Direction left to right",
-rtl_desc:"Direction right to left"
-},
-layer:{
-insertlayer_desc:"Insert new layer",
-forward_desc:"Move forward",
-backward_desc:"Move backward",
-absolute_desc:"Toggle absolute positioning",
-content:"New layer..."
-},
-save:{
-save_desc:"Save",
-cancel_desc:"Cancel all changes"
-},
-nonbreaking:{
-nonbreaking_desc:"Insert non-breaking space character"
-},
-iespell:{
-iespell_desc:"Run spell checking",
-download:"ieSpell not detected. Do you want to install it now?"
-},
-advhr:{
-advhr_desc:"Horizontale rule"
-},
-emotions:{
-emotions_desc:"Emotions"
-},
-searchreplace:{
-search_desc:"Find",
-replace_desc:"Find/Replace"
-},
-advimage:{
-image_desc:"Insert/edit image"
-},
-advlink:{
-link_desc:"Insert/edit link"
-},
-xhtmlxtras:{
-cite_desc:"Citation",
-abbr_desc:"Abbreviation",
-acronym_desc:"Acronym",
-del_desc:"Deletion",
-ins_desc:"Insertion",
-attribs_desc:"Insert/Edit Attributes"
-},
-style:{
-desc:"Edit CSS Style"
-},
-paste:{
-paste_text_desc:"Paste as Plain Text",
-paste_word_desc:"Paste from Word",
-selectall_desc:"Select All"
-},
-paste_dlg:{
-text_title:"Use CTRL+V on your keyboard to paste the text into the window.",
-text_linebreaks:"Keep linebreaks",
-word_title:"Use CTRL+V on your keyboard to paste the text into the window."
-},
-table:{
-desc:"Inserts a new table",
-row_before_desc:"Insert row before",
-row_after_desc:"Insert row after",
-delete_row_desc:"Delete row",
-col_before_desc:"Insert column before",
-col_after_desc:"Insert column after",
-delete_col_desc:"Remove column",
-split_cells_desc:"Split merged table cells",
-merge_cells_desc:"Merge table cells",
-row_desc:"Table row properties",
-cell_desc:"Table cell properties",
-props_desc:"Table properties",
-paste_row_before_desc:"Paste table row before",
-paste_row_after_desc:"Paste table row after",
-cut_row_desc:"Cut table row",
-copy_row_desc:"Copy table row",
-del:"Delete table",
-row:"Row",
-col:"Column",
-cell:"Cell"
-},
-autosave:{
-unload_msg:"The changes you made will be lost if you navigate away from this page."
-},
-fullscreen:{
-desc:"Toggle fullscreen mode"
-},
-media:{
-desc:"Insert / edit embedded media",
-edit:"Edit embedded media"
-},
-fullpage:{
-desc:"Document properties"
-},
-template:{
-desc:"Insert predefined template content"
-},
-visualchars:{
-desc:"Visual control characters on/off."
-},
-spellchecker:{
-desc:"Toggle spellchecker",
-menu:"Spellchecker settings",
-ignore_word:"Ignore word",
-ignore_words:"Ignore all",
-langs:"Languages",
-wait:"Please wait...",
-sug:"Suggestions",
-no_sug:"No suggestions",
-no_mpell:"No misspellings found."
-},
-pagebreak:{
-desc:"Insert page break."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/sk.js b/chrome/content/zotero/tinymce/langs/sk.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({sk:{
-common:{
-edit_confirm:"Chce\u0161 pou\u017Ei\u0165 WYSIWYG m\u00F3d pre tento text?",
-apply:"Pou\u017Ei\u0165",
-insert:"Vlo\u017Ei\u0165",
-update:"Aktualizova\u0165",
-cancel:"Zru\u0161i\u0165",
-close:"Zavrie\u0165",
-browse:"Prech\u00E1dza\u0165",
-class_name:"Trieda",
-not_set:"-- Nezadan\u00E9 --",
-clipboard_msg:"Funkcie Kop\u00EDrova\u0165/vysrihn\u00FA\u0165/vlo\u017Ei\u0165 nie su podporovan\u00E9 prehliada\u010Dmi Mozilla a Firefox.\nChce\u0161 viac inform\u00E1ci\u00ED o tomto probl\u00E9me?",
-clipboard_no_support:"Moment\u00E1lne nie je podporovan\u00E9 tvoj\u00EDm prehliada\u010Dom. Miesto toho pou\u017Ei kl\u00E1vesov\u00FA skratku.",
-popup_blocked:"Ospravedl\u0148ujeme sa, ale blokova\u010D vyskakovac\u00EDch okien neumo\u017Enil otvori\u0165 okno, ktor\u00E9 zprostredkov\u00E1va funk\u010Dnos\u0165 aplik\u00E1ce. Mus\u00ED\u0161 vypnu\u0165 blokovanie vyskakovac\u00EDch okien na tomto webe, aby bolo mo\u017En\u00E9 vyu\u017Ei\u0165 jeho pln\u00FA funk\u010Dnos\u0165.",
-invalid_data:"Chyba: Zadan\u00E9 neplatn\u00E9 hodnoty (zv\u00FDraznen\u00E9 \u010Dervenou)",
-more_colors:"Viac farieb"
-},
-contextmenu:{
-align:"Umietnenie",
-left:"V\u013Eavo",
-center:"Na stred",
-right:"Vpravo",
-full:"Do bloku"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Vlo\u017Ei\u0165 d\u00E1tum",
-inserttime_desc:"Vlo\u017Ei\u0165 \u010Das",
-months_long:"Janu\u00E1r,Febru\u00E1r,Marec,Apr\u00EDl,M\u00E1j,J\u00FAn,J\u00FAl,August,September,Okt\u00F3ber,November,December",
-months_short:"Jan,Feb,Mar,Apr,M\u00E1j,J\u00FAn,J\u00FAl,Aug,Sep,Okt,Nov,Dec",
-day_long:"Nede\u013Ea,Pondelok,Utorok,Streda,\u0160tvrtok,Piatok,Sobota,Nede\u013Ea",
-day_short:"Ned,Pon,Ut,Str,\u0160tvr,Pia,Sob,Ned"
-},
-print:{
-print_desc:"Vytla\u010Di\u0165"
-},
-preview:{
-preview_desc:"N\u00E1h\u013Ead"
-},
-directionality:{
-ltr_desc:"Smer z \u013Eava do prava",
-rtl_desc:"Smer z prava do \u013Eava"
-},
-layer:{
-insertlayer_desc:"Vlo\u017Ei\u0165 nov\u00FA vrstvu",
-forward_desc:"Posun\u00FA\u0165 dopredu",
-backward_desc:"Posun\u00FA\u0165 dozadu",
-absolute_desc:"Prepn\u00FA\u0165 na absol\u00FAtne poziciovanie",
-content:"Nov\u00E1 vrstva..."
-},
-save:{
-save_desc:"Ulo\u017Ei\u0165",
-cancel_desc:"Zru\u0161i\u0165 v\u0161etky zmeny"
-},
-nonbreaking:{
-nonbreaking_desc:"Vlo\u017Ei\u0165 znak non-breaking space"
-},
-iespell:{
-iespell_desc:"Spusti\u0165 kontrolu pravopisu",
-download:"ieSpell nebol n\u00E1jden\u00FD. Chce\u0161 ho nain\u0161talova\u0165?"
-},
-advhr:{
-advhr_desc:"Horizont\u00E1lny odde\u013Eova\u010D"
-},
-emotions:{
-emotions_desc:"Emotikony"
-},
-searchreplace:{
-search_desc:"N\u00E1jdi",
-replace_desc:"N\u00E1jdi/Nahra\u010F"
-},
-advimage:{
-image_desc:"Vlo\u017Ei\u0165/editova\u0165 obr\u00E1zok"
-},
-advlink:{
-link_desc:"Vlo\u017Ei\u0165/editova\u0165 odkaz"
-},
-xhtmlxtras:{
-cite_desc:"Cit\u00E1cia",
-abbr_desc:"Skratka",
-acronym_desc:"Acronym",
-del_desc:"Zru\u0161enie",
-ins_desc:"Vlo\u017Eenie",
-attribs_desc:"Vlo\u017Ei\u0165/editova\u0165 atrib\u00FAty"
-},
-style:{
-desc:"Editova\u0165 CSS \u0160t\u00FDl"
-},
-paste:{
-paste_text_desc:"Vlo\u017Ei\u0165 ako neformatovan\u00FD text",
-paste_word_desc:"Vlo\u017Ei\u0165 text z aplik\u00E1ce Word",
-selectall_desc:"Ozna\u010Di\u0165 v\u0161etko"
-},
-paste_dlg:{
-text_title:"Pou\u017Ei CTRL+V na kl\u00E1vesnici pre vlo\u017Eenie textu do okna.",
-text_linebreaks:"Zachova\u0165 zalamovanie riadkov",
-word_title:"Pou\u017Ei CTRL+V na kl\u00E1vesnici pre vlo\u017Eenie textu do okna."
-},
-table:{
-desc:"Vlo\u017Ei\u0165 nov\u00FA tabu\u013Eku",
-row_before_desc:"Vlo\u017Ei\u0165 riadok pred",
-row_after_desc:"Vlo\u017Ei\u0165 riadok za",
-delete_row_desc:"Odstr\u00E1ni\u0165 riadok",
-col_before_desc:"Vlo\u017Ei\u0165 st\u013Apec pred",
-col_after_desc:"Vlo\u017Ei\u0165 st\u013Apec za",
-delete_col_desc:"Odstr\u00E1ni\u0165 st\u013Apec",
-split_cells_desc:"Rozdeli\u0165 zl\u00FAcen\u00E9 bunky",
-merge_cells_desc:"Zl\u00FA\u010Di\u0165 bunky",
-row_desc:"Vlastnosti riadky tabu\u013Eky",
-cell_desc:"Vlastnosti bunky tabu\u013Eky",
-props_desc:"Vlastnosti tabu\u013Eky",
-paste_row_before_desc:"Vlo\u017Ei\u0165 riadok pred",
-paste_row_after_desc:"Vlo\u017Ei\u0165 riadok za",
-cut_row_desc:"Vystrihn\u00FA\u0165 riadok",
-copy_row_desc:"Kop\u00EDrova\u0165 riadok",
-del:"Zmaza\u0165 tabu\u013Eku",
-row:"Riadok",
-col:"St\u013Apec",
-cell:"Bunka"
-},
-autosave:{
-unload_msg:"Vykonan\u00E9 zmeny bud\u00FA straten\u00E9, ak opust\u00ED\u0161 t\u00FAto str\u00E1nku."
-},
-fullscreen:{
-desc:"Prepn\u00FA\u0165 zobrazenie na celej obrazovke"
-},
-media:{
-desc:"Vlo\u017Ei\u0165 / editova\u0165 vnoren\u00E9 m\u00E9di\u00E1",
-edit:"Editova\u0165 vnoren\u00E9 m\u00E9di\u00E1"
-},
-fullpage:{
-desc:"Vlastnosti dokumentu"
-},
-template:{
-desc:"Vlo\u017Ei\u0165 obsah z preddefinovanej \u0161abl\u00F3ny"
-},
-visualchars:{
-desc:"Vizu\u00E1lne ovl\u00E1dacie znaky zap/vyp."
-},
-spellchecker:{
-desc:"Prepn\u00FA\u0165 na kontrolu pravopisu",
-menu:"Nastavenia kontroly pravopisu",
-ignore_word:"Vynecha\u0165 slovo",
-ignore_words:"Vynecha\u0165 v\u0161etky",
-langs:"Jazyky",
-wait:"\u010Cakaj pros\u00EDm...",
-sug:"Ponuky",
-no_sug:"\u017Diadne ponuky",
-no_mpell:"Bez pravopisn\u00FDch ch\u00FDb."
-},
-pagebreak:{
-desc:"Vlo\u017Ei\u0165 zalomenie str\u00E1nky."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/sl.js b/chrome/content/zotero/tinymce/langs/sl.js
@@ -1,155 +0,0 @@
-tinyMCE.addI18n({sl:{
-common:{
-edit_confirm:"\u017Delite uporabiti na\u010Din \'videz ne vara\' (WYSIWYG) za to vnosno polje?",
-apply:"Uporabi",
-insert:"Vstavi",
-update:"Posodobi",
-cancel:"Prekli\u010Di",
-close:"Zapri",
-browse:"Prebrskaj",
-class_name:"Razred",
-not_set:"-- ni nastavljeno --",
-clipboard_msg:"Delo z odlo\u017Ei\u0161\u010Dem ni mogo\u010De v tem brskalniku. Lahko uporabljate kombinacije tipk Ctrl+X, Ctrl+C, Ctrl+V.\n\u017Delite ve\u010D informacij o tem?",
-clipboard_no_support:"Trenutno ni podporto v va\u0161em brskalniku. Uporabite bli\u017Enjice tipkovnice.",
-popup_blocked:"\u017Dal va\u0161e orodje za prepre\u010Devanje odpiranja neza\u017Eelenih oken (popup-blocker) ne omogo\u010Da prikaza pomo\u017Enega okna izbranega orodja. Prepre\u010Devanje odpiranja oken morate onemogo\u010Diti.",
-invalid_data:"Napaka: vne\u0161ene so bile nepravilne vrednosti, ozna\u010Dene so z rde\u010Do.",
-more_colors:"Ve\u010D barv"
-},
-contextmenu:{
-align:"Poravnava",
-left:"Levo",
-center:"Sredina",
-right:"Desno",
-full:"Polno"
-},
-insertdatetime:{
-date_fmt:"%d.%m.%Y",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Vstavi datum",
-inserttime_desc:"Vstavi \u010Das",
-months_long:"januar,februar,marec,april,maj,junij,julij,avgust,september,oktober,november,december",
-months_short:"jan,feb,mar,apr,maj,jun,jul,avg,sep,okt,nov,dec",
-day_long:"nedelja,ponedeljek,torek,sreda,\u010Detrtek,petek,sobota,nedelja",
-day_short:"ned,pon,tor,sre,\u010Det,pet,sob,ned"
-},
-print:{
-print_desc:"Natisni"
-},
-preview:{
-preview_desc:"Predogled"
-},
-directionality:{
-ltr_desc:"Smer od leve proti desni",
-rtl_desc:"Smer od desne proti levi"
-},
-layer:{
-insertlayer_desc:"Vstavi nov sloj",
-forward_desc:"Premakni v ospredje",
-backward_desc:"Premakni v ozadje",
-absolute_desc:"Preklop absolutnega polo\u017Eaja",
-content:"Nov sloj..."
-},
-save:{
-save_desc:"Shrani",
-cancel_desc:"Prekli\u010Di vse spremembe"
-},
-nonbreaking:{
-nonbreaking_desc:"Vstavi nedeljivi presledek"
-},
-iespell:{
-iespell_desc:"Za\u017Eeni preverjanje \u010Drkovanja",
-download:"ieSpell ni zaznan. \u017Delite, da ga namestim?"
-},
-advhr:{
-advhr_desc:"Vodoravna \u010Drta"
-},
-emotions:{
-emotions_desc:"Sme\u0161ki"
-},
-searchreplace:{
-search_desc:"Najdi",
-replace_desc:"Najdi/zamenjaj"
-},
-advimage:{
-image_desc:"Vstavi/uredi sliko"
-},
-advlink:{
-link_desc:"Vstavi/uredi povezavo"
-},
-xhtmlxtras:{
-cite_desc:"Citat",
-abbr_desc:"Okraj\u0161ava",
-acronym_desc:"Kratica",
-del_desc:"Izbrisano",
-ins_desc:"Vstavljeno",
-attribs_desc:"Vstavi/uredi atribute"
-},
-style:{
-desc:"Uredi sloge CSS"
-},
-paste:{
-paste_text_desc:"Prilepi kot golo besedilo",
-paste_word_desc:"Prilepi iz Word-a",
-selectall_desc:"Izberi vse"
-},
-paste_dlg:{
-text_title:"Uporabite kombinacijo tipk CTRL+V, da prilepite vsebino v okno.",
-text_linebreaks:"Obdr\u017Ei prelome vrstic",
-word_title:"Uporabite kombinacijo tipk CTRL+V, da prilepite vsebino v okno."
-},
-table:{
-desc:"Vstavi/posodobi tabelo",
-row_before_desc:"Vstavi vrstico nad",
-row_after_desc:"Vstavi vrstico pod",
-delete_row_desc:"Odstrani vrstico",
-col_before_desc:"Vstavi stolpec pred",
-col_after_desc:"Vstavi stolpec po",
-delete_col_desc:"Odstrani stolpec",
-split_cells_desc:"Razcepi celico",
-merge_cells_desc:"Spoji celice",
-row_desc:"Lastnosti vrstice",
-cell_desc:"Lastnosti celice",
-props_desc:"Lastnosti tabele",
-paste_row_before_desc:"Prilepi vrstico pred",
-paste_row_after_desc:"Prilepi vrstico po",
-cut_row_desc:"Izre\u017Ei vrstico",
-copy_row_desc:"Kopiraj vrstico",
-del:"Odstrani tabelo",
-row:"Vrstica",
-col:"Stolpec",
-cell:"Celica",
-cellprops_delta_width:"100"
-},
-autosave:{
-unload_msg:"Ce se premaknete na drugo stran, bodo narejene spremembe izgubljene!"
-},
-fullscreen:{
-desc:"Preklopi celozaslonski na\u010Din"
-},
-media:{
-desc:"Vstavi / uredi multimedijsko vsebino",
-edit:"Uredi multimedijsko vsebino"
-},
-fullpage:{
-desc:"Lastnosti dokumenta"
-},
-template:{
-desc:"Vstavi pripravljeno vsebino predloge"
-},
-visualchars:{
-desc:"Preklopi prikaz nadzornih znakov."
-},
-spellchecker:{
-desc:"Preklopi \u010Drkovalnik",
-menu:"Nastavitve \u010Drkovalnika",
-ignore_word:"Prezri besedo",
-ignore_words:"Prezri vse",
-langs:"Jeziki",
-wait:"Prosim po\u010Dakaj...",
-sug:"Predlogi",
-no_sug:"Ni predlogov",
-no_mpell:"Napa\u010Dnega \u010Drkovanja nisem na\u0161el."
-},
-pagebreak:{
-desc:"Vstavi lom strani."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/sq.js b/chrome/content/zotero/tinymce/langs/sq.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({sq:{
-common:{
-edit_confirm:"Doni t\u00EB p\u00EBrdorni m\u00EBnyr\u00EBn WYSIWYG p\u00EBr k\u00EBt\u00EB tekst?",
-apply:"Zbato",
-insert:"Fut",
-update:"Rifresko",
-cancel:"Anulo",
-close:"Mbyll",
-browse:"Shfleto",
-class_name:"Klasa",
-not_set:"-- pa v\u00EBn\u00EB --",
-clipboard_msg:"Kopja/Prerja/Ngjitja nuk suportohen n\u00EB Mozilla dhe Firefox.\nD\u00EBshironi m\u00EB shum\u00EB informacione p\u00EBr k\u00EBt\u00EB \u00E7\u00EBshtje?",
-clipboard_no_support:"Aktualisht nuk suportohet nga Shfletuesi juaj, p\u00EBrdorni tastjer\u00EBn.",
-popup_blocked:"Ju k\u00EBrkojm\u00EB ndjes\u00EB, por bllokuesi i popup-eve ka bllokuar nj\u00EB dritare q\u00EB ofron funksjonalitet p\u00EBr programin. Duhet t'a \u00E7aktivizoni bllokuesin e popup-eve n\u00EB m\u00EBnyr\u00EB q\u00EB t'i p\u00EBrdorni opsionet.",
-invalid_data:"Gabim: Keni futur vlera t\u00EB pavlefshme, t\u00EB cilat jan\u00EB sh\u00EBnuar me t\u00EB kuqe.",
-more_colors:"M\u00EB shum\u00EB ngjyra"
-},
-contextmenu:{
-align:"Drejtimi",
-left:"Majtas",
-center:"Qend\u00EBr",
-right:"Djathtas",
-full:"I Plot\u00EB"
-},
-insertdatetime:{
-date_fmt:"%d-%m-%y",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Fut dat\u00EBn",
-inserttime_desc:"Fut or\u00EBn",
-months_long:"Janar,Shkurt,Mars,Prill,Maj,Qershor,Korrik,Gusht,Shtator,Tetor,N\u00EBntor,Dhjetor",
-months_short:"Jan,Shk,Mar,Pri,Maj,Qer,Kor,Gus,Sht,Tet,N\u00EBn,Dhj",
-day_long:"E Djel\u00EB,E H\u00EBn\u00EB,E Mart\u00EB,E M\u00EBrkur\u00EB,E Enjte,E Premte,E Shtun\u00EB,E Djel\u00EB",
-day_short:"Dje,H\u00EBn,Mar,M\u00EBr,Enj,Pre,Sht,Dje"
-},
-print:{
-print_desc:"Printo"
-},
-preview:{
-preview_desc:"Paraqitje"
-},
-directionality:{
-ltr_desc:"Drejtimi majtas-djathtas",
-rtl_desc:"Drejtimi djathtas-majtas"
-},
-layer:{
-insertlayer_desc:"Fut shtres\u00EB t\u00EB re",
-forward_desc:"L\u00EBviz para",
-backward_desc:"L\u00EBviz prapa",
-absolute_desc:"Aktivizo/\u00E7aktivizo pozicionimin absolut",
-content:"Shtres\u00EB e re..."
-},
-save:{
-save_desc:"Ruaj",
-cancel_desc:"Anuloji t\u00EB gjitha ndryshimet"
-},
-nonbreaking:{
-nonbreaking_desc:"Fut hap\u00EBsir\u00EB"
-},
-iespell:{
-iespell_desc:"Kontrollo p\u00EBr gabime drejt\u00EBshkrimore",
-download:"ieSpell nuk u detektua. D\u00EBshironi ta instaloni?"
-},
-advhr:{
-advhr_desc:"Linj\u00EB horizontale"
-},
-emotions:{
-emotions_desc:"Emocionet"
-},
-searchreplace:{
-search_desc:"K\u00EBrko",
-replace_desc:"K\u00EBrko/Z\u00EBvend\u00EBso"
-},
-advimage:{
-image_desc:"Fut/edito foto"
-},
-advlink:{
-link_desc:"Fut/edito lidhje"
-},
-xhtmlxtras:{
-cite_desc:"Citat",
-abbr_desc:"Shkurtim",
-acronym_desc:"Akronim",
-del_desc:"Fshirje",
-ins_desc:"Futje",
-attribs_desc:"Fut/Edito Tipare"
-},
-style:{
-desc:"Edito Stilet CSS"
-},
-paste:{
-paste_text_desc:"Ngjit si Tekst",
-paste_word_desc:"Ngjit nga Word",
-selectall_desc:"Zgjidhi t\u00EB gjitha"
-},
-paste_dlg:{
-text_title:"P\u00EBrdor CTRL+V p\u00EBr t\u00EB ngjitur tekstin.",
-text_linebreaks:"Ruaj linjat e reja",
-word_title:"P\u00EBrdor CTRL+V p\u00EBr t\u00EB ngjitur tekstin."
-},
-table:{
-desc:"Fut nj\u00EB tabel\u00EB t\u00EB re",
-row_before_desc:"Fut rresht p\u00EBrpara",
-row_after_desc:"Fut rresht pas",
-delete_row_desc:"Fshi rreshtin",
-col_before_desc:"Fut kolon\u00EB p\u00EBrpara",
-col_after_desc:"Fut kolon\u00EB pas",
-delete_col_desc:"Fshi kolon\u00EBn",
-split_cells_desc:"Ndaji qelizat e bashkuara",
-merge_cells_desc:"Bashkoji qelizat",
-row_desc:"Tiparet e rreshtit",
-cell_desc:"Tiparet e qeliz\u00EBs",
-props_desc:"Tiparet e tabel\u00EBs",
-paste_row_before_desc:"Ngjite rreshtin p\u00EBrpara",
-paste_row_after_desc:"Ngjite rreshtin pas",
-cut_row_desc:"Prit rreshtin",
-copy_row_desc:"Kopjo rreshtin",
-del:"Fshi tabel\u00EBn",
-row:"Rresht",
-col:"Kolon\u00EB",
-cell:"Qeliz\u00EB"
-},
-autosave:{
-unload_msg:"Ndryshimet q\u00EB keni b\u00EBr\u00EB do t\u00EB humbasin n\u00EBse largoheni nga kjo faqe."
-},
-fullscreen:{
-desc:"Aktivizo/\u00E7aktivizo pamjen e plot\u00EB"
-},
-media:{
-desc:"Fut / edito media",
-edit:"Edito media"
-},
-fullpage:{
-desc:"Tiparet e dokumentit"
-},
-template:{
-desc:"Fut p\u00EBrmbajtje shabllon"
-},
-visualchars:{
-desc:"Karakteret e kontrollit vizual: on/off."
-},
-spellchecker:{
-desc:"Aktivizo/\u00E7aktivizo kontrolluesin e gabimeve",
-menu:"Tiparet e kontrolluesit t\u00EB gabimeve",
-ignore_word:"Injoro fjal\u00EBn",
-ignore_words:"Injoroji t\u00EB gjitha",
-langs:"Gjuh\u00EBt",
-wait:"Ju lutem prisni...",
-sug:"Sygjerimet",
-no_sug:"Asnj\u00EB sygjerim",
-no_mpell:"Nuk u gjet asnj\u00EB gabim."
-},
-pagebreak:{
-desc:"Fut thyerje faqeje."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/sr.js b/chrome/content/zotero/tinymce/langs/sr.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({sr:{
-common:{
-edit_confirm:"\u017Delite li koristiti WYSIWYG na\u010Din rada za ovo tekstualno polje?",
-apply:"Primjeni",
-insert:"Umetni",
-update:"Obnovi",
-cancel:"Odustani",
-close:"Zatvori",
-browse:"Pregled",
-class_name:"Klasa",
-not_set:"-- Nije postavljeno --",
-clipboard_msg:"Kopiraj/Izre\u017Ei/Zalepi nije dostupno Mozilla i Firefox preglednicima.\nVi\u0161e informacija?",
-clipboard_no_support:"Trenuta\u010Dno va\u0161 preglednik ne podr\u017Eava ovu opciju, poku\u0161ajte koristiti tipkovni\u010Dku kraticu.",
-popup_blocked:"Oprostite, izgleda da je va\u0161 popup-blocker onemogu\u0107io prozor u sklopu ovog programa. Morate onemogu\u0107iti blokiranje popup prozora da bi u potpunosti iskoristili ovaj alat.",
-invalid_data:"Gre\u0161ka: Une\u0161ene su nevaljane vrednosti, ozna\u010Dene su crvenom bojom.",
-more_colors:"Vi\u0161e boja"
-},
-contextmenu:{
-align:"Poravnavanje",
-left:"Levo",
-center:"Sredina",
-right:"Desno",
-full:"Puno"
-},
-insertdatetime:{
-date_fmt:"%d.%m.%Y.",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Umetni datum",
-inserttime_desc:"Umetni vreme",
-months_long:"januar,februar,mart,april,maj,juni,juli,avgust,septembar,oktobar,novembar,decembar",
-months_short:"jan,feb,mar,apr,maj,jun,jul,avg,sep,okt,nov,dec",
-day_long:"nedelja,ponedjeljak,utorak,sreda,\u010Detvrtak,petak,subota,nedelja",
-day_short:"ned,pon,uto,sre,\u010Det,pet,sub,ned"
-},
-print:{
-print_desc:"Ispis"
-},
-preview:{
-preview_desc:"Prikaz"
-},
-directionality:{
-ltr_desc:"S leva na desno",
-rtl_desc:"S desna na levo"
-},
-layer:{
-insertlayer_desc:"Umetni novi sloj",
-forward_desc:"Pomakni napred",
-backward_desc:"Pomakni natrag",
-absolute_desc:"Uklju\u010Di/isklju\u010Di apsolutno pozicioniranje",
-content:"Novi sloj..."
-},
-save:{
-save_desc:"Spremi",
-cancel_desc:"Odustani od svih promjena"
-},
-nonbreaking:{
-nonbreaking_desc:"Umetni razmak"
-},
-iespell:{
-iespell_desc:"Pokreni provjeru pravopisa",
-download:"Provjera pravopisa nije postavljena. Postaviti sada?"
-},
-advhr:{
-advhr_desc:"Vodoravna crta"
-},
-emotions:{
-emotions_desc:"Emocije"
-},
-searchreplace:{
-search_desc:"Prona\u0111i",
-replace_desc:"Prona\u0111i/Zameni"
-},
-advimage:{
-image_desc:"Umetni/uredi sliku"
-},
-advlink:{
-link_desc:"Insert/edit link"
-},
-xhtmlxtras:{
-cite_desc:"Citat",
-abbr_desc:"Kratica",
-acronym_desc:"Akronim",
-del_desc:"Brisanje",
-ins_desc:"Unos",
-attribs_desc:"Umetni/uredi atribute"
-},
-style:{
-desc:"Uredi CSS"
-},
-paste:{
-paste_text_desc:"Zalepi kao obi\u010Dni tekst",
-paste_word_desc:"Zalepi iz Worda",
-selectall_desc:"Odaberi sve"
-},
-paste_dlg:{
-text_title:"Koristite CTRL+V na tipkovnici da zalepite tekst u prozor.",
-text_linebreaks:"Zadr\u017Ei prelome",
-word_title:"Koristite CTRL+V na tipkovnici da zalepite tekst u prozor."
-},
-table:{
-desc:"Nova tablica",
-row_before_desc:"Umetni redak iznad",
-row_after_desc:"Umetni redak ispod",
-delete_row_desc:"Izbri\u0161i redak",
-col_before_desc:"Umetni stupac levo",
-col_after_desc:"Umetni stupac desno",
-delete_col_desc:"Ukloni stupac",
-split_cells_desc:"Razdvoji spojene \u0107elije",
-merge_cells_desc:"Spoji \u0107elije",
-row_desc:"Svojstva retka",
-cell_desc:"Svojstva \u0107elije",
-props_desc:"Svojstva tablice",
-paste_row_before_desc:"Zalepi redak iznad",
-paste_row_after_desc:"Zalepi redak ispod",
-cut_row_desc:"Izre\u017Ei redak",
-copy_row_desc:"Kopiraj redak",
-del:"Izbri\u0161i tablicu",
-row:"Redak",
-col:"Stupac",
-cell:"\u0106elija"
-},
-autosave:{
-unload_msg:"Promjene u dokumentu \u0107e biti izgubljene ako iza\u0111ete s ove stranice."
-},
-fullscreen:{
-desc:"Uklju\u010Di/isklju\u010Di prikaz preko celog ekrana"
-},
-media:{
-desc:"Insert / edit embedded media",
-edit:"Edit embedded media"
-},
-fullpage:{
-desc:"Svojstva dokumenta"
-},
-template:{
-desc:"Umetni sadr\u017Eaj iz predlo\u017Eak"
-},
-visualchars:{
-desc:"Vizuelni kontrolni znakovi uklju\u010Deni/isklju\u010Deni."
-},
-spellchecker:{
-desc:"Uklju\u010Di/isklju\u010Di provjeru pravopisa",
-menu:"Postavke provere pravopisa",
-ignore_word:"Zanemari re\u010D",
-ignore_words:"Zanemari sve",
-langs:"Jezici",
-wait:"Pri\u010Dekajte...",
-sug:"Predlozi",
-no_sug:"Nema predloga",
-no_mpell:"Nije prona\u0111ena nijedna pravopisna gre\u0161ka."
-},
-pagebreak:{
-desc:"Umetni prelom."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/sv.js b/chrome/content/zotero/tinymce/langs/sv.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({sv:{
-common:{
-edit_confirm:"Vill du anv\u00E4nda WYSIWYG l\u00E4get f\u00F6r denna textarea.",
-apply:"Applicera",
-insert:"Infoga",
-update:"Uppdatera",
-cancel:"Avbryt",
-close:"St\u00E4ng",
-browse:"Bl\u00E4ddra",
-class_name:"Klass",
-not_set:"-- Inte satt --",
-clipboard_msg:"Kopiera/klipp ut/klistra in \u00E4r inte tillg\u00E4ngligt i din webbl\u00E4sare.\nVill du veta mer?",
-clipboard_no_support:"Funktionen \u00E4r inte tillg\u00E4nglig i din webbl\u00E4sare, anv\u00E4nd tangentbordsgenv\u00E4garna i st\u00E4llet.",
-popup_blocked:"Popup blockerare detekterad. St\u00E4ng av den s\u00E5 att dialogerna kan \u00F6ppnas.",
-invalid_data:"Fel: Inkorrekta v\u00E4rden har matats in, dessa \u00E4r markerade i r\u00F6tt.",
-more_colors:"Fler f\u00E4rger"
-},
-contextmenu:{
-align:"Justering",
-left:"V\u00E4nster",
-center:"Centrerad",
-right:"H\u00F6ger",
-full:"Utfyllnad"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d ",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Infoga datum",
-inserttime_desc:"Infoga tid",
-months_long:"Januari,Februari,Mars,April,Maj,Juni,Juli,Augusti,September,Oktober,November,December",
-months_short:"Jan,Feb,Mar,Apr,Maj,Jun,Jul,Aug,Sep,Okt,Nov,Dec",
-day_long:"S\u00F6ndag,M\u00E5ndag,Tisdag,Onsdag,Torsdag,Fredag,L\u00F6rdag,S\u00F6ndag",
-day_short:"S\u00F6n,M\u00E5n,Tis,Ons,Tors,Fre,L\u00F6r,S\u00F6n"
-},
-print:{
-print_desc:"Skriv ut"
-},
-preview:{
-preview_desc:"F\u00F6rhandsgranska"
-},
-directionality:{
-ltr_desc:"Skriftl\u00E4ge - v\u00E4nster till h\u00F6ger",
-rtl_desc:"Skriftl\u00E4ge - h\u00F6ger till v\u00E4nster"
-},
-layer:{
-insertlayer_desc:"Infoga nytt lager",
-forward_desc:"Flytta fram\u00E5t",
-backward_desc:"Flytta bak\u00E5t",
-absolute_desc:"Sl\u00E5 av/p\u00E5 absolut positionering",
-content:"Nytt lager..."
-},
-save:{
-save_desc:"Spara",
-cancel_desc:"Hoppa \u00F6ver alla f\u00F6r\u00E4ndringar"
-},
-nonbreaking:{
-nonbreaking_desc:"Infoga icke radbrytande mellanslag"
-},
-iespell:{
-iespell_desc:"R\u00E4ttstava",
-download:"ieSpell kunde inte hittas, vill du installera denna nu?"
-},
-advhr:{
-advhr_desc:"Horisontell skiljelinje"
-},
-emotions:{
-emotions_desc:"Smileys"
-},
-searchreplace:{
-search_desc:"S\u00F6k",
-replace_desc:"S\u00F6k/ers\u00E4tt"
-},
-advimage:{
-image_desc:"Infoga/redigera bild"
-},
-advlink:{
-link_desc:"Infoga/redigera l\u00E4nk"
-},
-xhtmlxtras:{
-cite_desc:"citat",
-abbr_desc:"F\u00F6rkortning",
-acronym_desc:"Akronym",
-del_desc:"Markera som struket",
-ins_desc:"Markera som tillagt",
-attribs_desc:"Redigera attribut"
-},
-style:{
-desc:"Redigera inline CSS"
-},
-paste:{
-paste_text_desc:"Klistra in som text",
-paste_word_desc:"Klistra in fr\u00E5n Word",
-selectall_desc:"Markera allt"
-},
-paste_dlg:{
-text_title:"Anv\u00E4nd ctrl-v p\u00E5 ditt tangentbord f\u00F6r att klistra in i detta f\u00F6nster.",
-text_linebreaks:"Spara radbrytningar",
-word_title:"Anv\u00E4nd ctrl-v p\u00E5 ditt tangentbord f\u00F6r att klistra in i detta f\u00F6nster."
-},
-table:{
-desc:"Infoga/redigera ny tabell",
-row_before_desc:"Infoga ny rad f\u00F6re",
-row_after_desc:"Infoga ny rad efter",
-delete_row_desc:"Radera rad",
-col_before_desc:"Infoga kolumn f\u00F6re",
-col_after_desc:"Infoga kolumn efter",
-delete_col_desc:"Radera kolumn",
-split_cells_desc:"Separera sammansatta celler",
-merge_cells_desc:"Sammanfoga celler",
-row_desc:"Tabellradsinst\u00E4llningar",
-cell_desc:"Tabellcellsinst\u00E4llningar",
-props_desc:"Tabellinst\u00E4llningar",
-paste_row_before_desc:"Klistra in rad ovanf\u00F6r",
-paste_row_after_desc:"Klistra in rad efter",
-cut_row_desc:"Klipp ut rad",
-copy_row_desc:"Klistra in rad",
-del:"Radera tabell",
-row:"Rad",
-col:"Kolumn",
-cell:"Cell"
-},
-autosave:{
-unload_msg:"F\u00F6r\u00E4ndringarna du gjorde kommer att g\u00E5 f\u00F6rlorade om du v\u00E4ljer att l\u00E4mna denna sida."
-},
-fullscreen:{
-desc:"Sl\u00E5 av/p\u00E5 fullsk\u00E4rmsl\u00E4ge"
-},
-media:{
-desc:"Infoga/redigera inb\u00E4ddad media",
-edit:"Redigera inb\u00E4ddad media"
-},
-fullpage:{
-desc:"Dokumentinst\u00E4llningar"
-},
-template:{
-desc:"Infoga en f\u00E4rdig mall"
-},
-visualchars:{
-desc:"Visa osynliga tecken"
-},
-spellchecker:{
-desc:"Sl\u00E5 av/p\u00E5 r\u00E4ttstavningskontroll",
-menu:"R\u00E4ttstavningsinst\u00E4llningar",
-ignore_word:"Ignorera ord",
-ignore_words:"Ignorera alla",
-langs:"Spr\u00E5k",
-wait:"Var god v\u00E4nta...",
-sug:"F\u00F6rslag",
-no_sug:"Inga f\u00F6rslag",
-no_mpell:"Kunde inte finna n\u00E5gra felstavningar."
-},
-pagebreak:{
-desc:"Infoga sidbrytning"
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/tr.js b/chrome/content/zotero/tinymce/langs/tr.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({tr:{
-common:{
-edit_confirm:"Bu metin b\u00F6lgesi i\u00E7in WYSIWYG modunu kullanmak istiyor musunuz?",
-apply:"Uygula",
-insert:"Ekle",
-update:"G\u00FCncelle",
-cancel:"\u0130ptal",
-close:"Kapat",
-browse:"G\u00F6zat",
-class_name:"S\u0131n\u0131f",
-not_set:"-- se\u00E7iniz --",
-clipboard_msg:"Kopyala/Kes/Yap\u0131\u015Ft\u0131r Mozilla ve Firefox'ta kullan\u0131lamaz.\nBu konuda daha fazla bilgi edinmek ister misiniz?",
-clipboard_no_support:"\u015Eimdilik taray\u0131c\u0131n\u0131z taraf\u0131ndan desteklenmemektedir, bunun yerine k\u0131sayol tu\u015Flar\u0131n\u0131 kullan\u0131n\u0131z.",
-popup_blocked:"\u00DCzg\u00FCn\u00FCz, fakat popup-engelleyiciniz uygulama i\u00E7in gerekli bir pencerenin a\u00E7\u0131lmas\u0131na izin vermedi. Bu arac\u0131 tam olarak kullanabilmek i\u00E7in popup engelleyicinizi kapatman\u0131z gerekebilir.",
-invalid_data:"Hata: Ge\u00E7ersiz de\u011Ferler girildi, bunlar k\u0131rm\u0131z\u0131yla i\u015Faretlendi.",
-more_colors:"Daha fazla renk"
-},
-contextmenu:{
-align:"Hizalama",
-left:"Sola",
-center:"Ortala",
-right:"Sa\u011Fa",
-full:"\u0130ki yana"
-},
-insertdatetime:{
-date_fmt:"%d-%m-%Y",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Tarih ekle",
-inserttime_desc:"Zaman ekle",
-months_long:"Ocak,\u015Eubat,Mart,Nisan,May\u0131s,Haziran,Temmuz,A\u011Fustos,Eyl\u00FCl,Ekim,Kas\u0131m,Aral\u0131k",
-months_short:"Oca,\u015Eub,Mar,Nis,May,Haz,Tem,A\u011Fu,Eyl,Eki,Kas,Ara",
-day_long:"Pazar,Pazartesi,Sal\u0131,\u00C7ar\u015Famba,Per\u015Fembe,Cuma,Cumartesi,Pazar",
-day_short:"Paz,Pzt,Sal,\u00C7r\u015F,Per,Cum,Cts,Paz"
-},
-print:{
-print_desc:"Yazd\u0131r"
-},
-preview:{
-preview_desc:"\u00D6nizleme"
-},
-directionality:{
-ltr_desc:"Sa\u011Fdan sola y\u00F6nelimli",
-rtl_desc:"Soldan sa\u011Fa y\u00F6nelimli"
-},
-layer:{
-insertlayer_desc:"Yeni katman ekle",
-forward_desc:"\u00D6ne al",
-backward_desc:"Arkaya al",
-absolute_desc:"Mutlak konumland\u0131rmay\u0131 a\u00E7/kapa",
-content:"Yeni katman..."
-},
-save:{
-save_desc:"Kaydet",
-cancel_desc:"T\u00FCm de\u011Fi\u015Fiklikleri iptal et"
-},
-nonbreaking:{
-nonbreaking_desc:"K\u0131r\u0131l\u0131ms\u0131z bo\u015Fluk karakteri ekle"
-},
-iespell:{
-iespell_desc:"\u0130mla kontrol\u00FCn\u00FC \u00E7al\u0131\u015Ft\u0131r",
-download:"ieSpell bulunamad\u0131. \u015Eimdi kurmak ister misiniz?"
-},
-advhr:{
-advhr_desc:"Yatay \u00E7izgi"
-},
-emotions:{
-emotions_desc:"\u0130fadeler"
-},
-searchreplace:{
-search_desc:"Bul",
-replace_desc:"Bul/De\u011Fi\u015Ftir"
-},
-advimage:{
-image_desc:"Resim ekle/d\u00FCzenle"
-},
-advlink:{
-link_desc:"Ba\u011Flant\u0131 ekle/d\u00FCzenle"
-},
-xhtmlxtras:{
-cite_desc:"Kaynak",
-abbr_desc:"K\u0131saltma",
-acronym_desc:"K\u0131sa ad",
-del_desc:"Silme",
-ins_desc:"Ekleme",
-attribs_desc:"Nitelik ekle/d\u00FCzenle"
-},
-style:{
-desc:"CSS Stili D\u00FCzenle"
-},
-paste:{
-paste_text_desc:"Sade Metin olarak yap\u0131\u015Ft\u0131r",
-paste_word_desc:"Word'den yap\u0131\u015Ft\u0131r",
-selectall_desc:"T\u00FCm\u00FCn\u00FC Se\u00E7"
-},
-paste_dlg:{
-text_title:"Pencereye metin yap\u0131\u015Ft\u0131rmak i\u00E7in CTRL+V tu\u015Funu kullan\u0131n\u0131z.",
-text_linebreaks:"Sat\u0131r k\u0131r\u0131l\u0131mlar\u0131n\u0131 koru",
-word_title:"Pencereye metin yap\u0131\u015Ft\u0131rmak i\u00E7in CTRL+V tu\u015Funu kullan\u0131n\u0131z."
-},
-table:{
-desc:"Yeni bir tablo ekler",
-row_before_desc:"\u00DCst\u00FCne bir sat\u0131r ekle",
-row_after_desc:"Alt\u0131na bir sat\u0131r ekle",
-delete_row_desc:"Sat\u0131r\u0131 sil",
-col_before_desc:"Soluna bir kolon ekle",
-col_after_desc:"Sa\u011F\u0131na bir kolon ekle",
-delete_col_desc:"Kolonu sil",
-split_cells_desc:"Birle\u015Fitirilmi\u015F tablo h\u00FCcrelerini ay\u0131r",
-merge_cells_desc:"Tablo h\u00FCcrelerini birle\u015Ftir",
-row_desc:"Tablo sat\u0131r \u00F6zellikleri",
-cell_desc:"Tablo h\u00FCcre \u00F6zellikler",
-props_desc:"Tablo \u00F6zellikleri",
-paste_row_before_desc:"\u00DCst\u00FCne tablo sat\u0131r\u0131n\u0131 yap\u0131\u015Ft\u0131r",
-paste_row_after_desc:"Alt\u0131na tablo sat\u0131r\u0131n\u0131 yap\u0131\u015Ft\u0131r",
-cut_row_desc:"Tablo sat\u0131r\u0131n\u0131 kes",
-copy_row_desc:"Tablo sat\u0131r\u0131n\u0131 kopyala",
-del:"Tabloyu sil",
-row:"Sat\u0131r",
-col:"Kolon",
-cell:"H\u00FCcre"
-},
-autosave:{
-unload_msg:"Bu sayfadan \u00E7\u0131karsan\u0131z yapt\u0131\u011F\u0131n\u0131z de\u011Fi\u015Fiklikler kaybedilecek."
-},
-fullscreen:{
-desc:"Tam ekran modunu a\u00E7/kapa"
-},
-media:{
-desc:"T\u00FCmle\u015Fik medya ekle/d\u00FCzenle",
-edit:"T\u00FCmle\u015Fik medya d\u00FCzenle"
-},
-fullpage:{
-desc:"Belge \u00F6zellikleri"
-},
-template:{
-desc:"\u00D6ntan\u0131ml\u0131 \u015Fablon i\u00E7eri\u011Fi ekle"
-},
-visualchars:{
-desc:"G\u00F6rsel kontrol karakterleri a\u00E7\u0131k/kapal\u0131."
-},
-spellchecker:{
-desc:"\u0130mla kontrol\u00FCn\u00FC a\u00E7/kapa",
-menu:"\u0130mla kontrol ayarlar\u0131",
-ignore_word:"S\u00F6zc\u00FC\u011F\u00FC \u00F6nemseme",
-ignore_words:"Hi\u00E7birini \u00F6nemseme",
-langs:"Diller",
-wait:"L\u00FCtfen bekleyiniz...",
-sug:"\u00D6neriler",
-no_sug:"\u00D6neri yok",
-no_mpell:"Bir imla hatas\u0131 bulunamad\u0131."
-},
-pagebreak:{
-desc:"Sayfa k\u0131r\u0131l\u0131m\u0131 ekle."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/tt.js b/chrome/content/zotero/tinymce/langs/tt.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({tt:{
-common:{
-edit_confirm:"\u662F\u5426\u5728\u8A72text area\u5167\u5553\u7528\u6240\u898B\u5373\u6240\u5F97\u6A21\u5F0F\uFF1F",
-apply:"\u61C9\u7528",
-insert:"\u63D2\u5165",
-update:"\u66F4\u65B0",
-cancel:"\u53D6\u6D88",
-close:"\u95DC\u9589",
-browse:"\u700F\u89BD",
-class_name:"\u6A23\u5F0F\u985E\u540D",
-not_set:"-- \u672A\u8A2D\u5B9A --",
-clipboard_msg:"\u8907\u88FD\u3001\u526A\u4E0B\u548C\u8CBC\u4E0A\u529F\u80FD\u5728Mozilla \u548C Firefox\u4E2D\u7121\u6CD5\u4F7F\u7528",
-clipboard_no_support:"\u5C1A\u4E0D\u652F\u63F4\u60A8\u6240\u4F7F\u7528\u7684\u700F\u89BD\u5668\uFF0C\u8ACB\u4F7F\u7528\u9375\u76E4\u65B9\u5F0F\u64CD\u4F5C",
-popup_blocked:"\u5C0D\u4E0D\u8D77\uFF0C\u60A8\u7684\u5FEB\u986F\u8996\u7A97\u963B\u6B62\u7A0B\u5F0F\u5DF2\u7D93\u963B\u6B62\u4E86\u672C\u5FEB\u986F\u8996\u7A97\uFF0C\u8ACB\u8ABF\u6574\u4F60\u7684\u700F\u89BD\u5668\u8A2D\u5B9A\uFF0C\u5141\u8A31\u672C\u7DB2\u7AD9\u5F48\u51FA\u65B0\u7A97\u53E3\uFF0C\u4EE5\u4FBF\u4F7F\u7528\u6B64\u529F\u80FD",
-invalid_data:"\u932F\u8AA4\uFF1A\u8F38\u5165\u4E86\u7121\u6548\u7684\u503C\uFF0C\u5DF2\u6A19\u8A18\u7232\u7D05\u8272\u3002",
-more_colors:"\u66F4\u591A\u9854\u8272"
-},
-contextmenu:{
-align:"\u5C0D\u9F4A\u65B9\u5F0F",
-left:"\u9760\u5DE6\u5C0D\u9F4A",
-center:"\u7F6E\u4E2D",
-right:"\u9760\u53F3\u5C0D\u9F4A",
-full:"\u5169\u7AEF\u5C0D\u9F4A"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"\u63D2\u5165\u4ECA\u5929\u65E5\u671F",
-inserttime_desc:"\u63D2\u5165\u73FE\u5728\u6642\u9593",
-months_long:"\u4E00\u6708,\u4E8C\u6708,\u4E09\u6708,\u56DB\u6708,\u4E94\u6708,\u516D\u6708,\u4E03\u6708,\u516B\u6708,\u4E5D\u6708,\u5341\u6708,\u5341\u4E00\u6708,\u5341\u4E8C\u6708",
-months_short:"1\u6708,2\u6708,3\u6708,4\u6708,5\u6708,6\u6708,7\u6708,8\u6708,9\u6708,10\u6708,11\u6708,12\u6708",
-day_long:"\u661F\u671F\u65E5,\u661F\u671F\u4E00,\u661F\u671F\u4E8C,\u661F\u671F\u4E09,\u661F\u671F\u56DB,\u661F\u671F\u4E94,\u661F\u671F\u516D,\u661F\u671F\u65E5",
-day_short:"\u9031\u65E5,\u9031\u4E00,\u9031\u4E8C,\u9031\u4E09,\u9031\u56DB,\u9031\u4E94,\u9031\u516D,\u9031\u65E5"
-},
-print:{
-print_desc:"\u5217\u5370"
-},
-preview:{
-preview_desc:"\u9810\u89BD"
-},
-directionality:{
-ltr_desc:"\u6587\u5B57\u5F9E\u5DE6\u5230\u53F3",
-rtl_desc:"\u6587\u5B57\u5F9E\u53F3\u5230\u5DE6"
-},
-layer:{
-insertlayer_desc:"\u63D2\u5165\u5C64",
-forward_desc:"\u524D\u7F6E",
-backward_desc:"\u5F8C\u7F6E",
-absolute_desc:"\u7D55\u5C0D\u4F4D\u7F6E",
-content:"\u65B0\u589E\u5C64..."
-},
-save:{
-save_desc:"\u5B58\u6A94",
-cancel_desc:"\u653E\u68C4\u6240\u6709\u66F4\u6539"
-},
-nonbreaking:{
-nonbreaking_desc:"\u63D2\u5165\u7A7A\u767D\u5B57\u5143"
-},
-iespell:{
-iespell_desc:"\u57F7\u884C\u62FC\u5B57\u6AA2\u67E5",
-download:"\u672A\u6AA2\u6E2C\u5230ieSpell\u5143\u4EF6\uFF0C\u662F\u5426\u73FE\u5728\u5B89\u88DD ?"
-},
-advhr:{
-advhr_desc:"\u5206\u9694\u7DDA"
-},
-emotions:{
-emotions_desc:"\u8868\u60C5"
-},
-searchreplace:{
-search_desc:"\u641C\u5C0B",
-replace_desc:"\u641C\u5C0B/\u53D6\u4EE3"
-},
-advimage:{
-image_desc:"\u63D2\u5165/\u7DE8\u8F2F \u5716\u7247"
-},
-advlink:{
-link_desc:"\u63D2\u5165/\u7DE8\u8F2F \u9023\u7D50"
-},
-xhtmlxtras:{
-cite_desc:"\u5F15\u7528",
-abbr_desc:"\u7E2E\u5BEB",
-acronym_desc:"\u9996\u5B57\u6BCD\u7E2E\u5BEB",
-del_desc:"\u522A\u9664",
-ins_desc:"\u63D2\u5165",
-attribs_desc:"\u63D2\u5165/\u7DE8\u8F2F \u5C6C\u6027"
-},
-style:{
-desc:"\u7DE8\u8F2F CSS \u6A23\u5F0F\u8868"
-},
-paste:{
-paste_text_desc:"\u8CBC\u4E0A\u7232\u7D14\u6587\u5B57",
-paste_word_desc:"\u8CBC\u4E0A\u7232Word\u683C\u5F0F",
-selectall_desc:"\u5168\u9078"
-},
-paste_dlg:{
-text_title:"\u5C07\u8907\u88FD(CTRL + C)\u7684\u5167\u5BB9\u8CBC\u4E0A(CTRL + V)\u5230\u8996\u7A97\u3002",
-text_linebreaks:"\u4FDD\u7559\u5206\u884C\u7B26\u865F\u865F",
-word_title:"\u5C07\u8907\u88FD(CTRL + C)\u7684\u5167\u5BB9\u8CBC\u4E0A(CTRL + V)\u5230\u8996\u7A97\u3002"
-},
-table:{
-desc:"\u63D2\u5165\u65B0\u8868\u683C",
-row_before_desc:"\u5728\u4E0A\u65B9\u63D2\u5165\u884C",
-row_after_desc:"\u5728\u4E0B\u65B9\u63D2\u5165\u884C",
-delete_row_desc:"\u522A\u9664\u7576\u524D\u884C",
-col_before_desc:"\u5728\u5DE6\u5074\u63D2\u5165\u5217",
-col_after_desc:"\u5728\u53F3\u5074\u63D2\u5165\u5217",
-delete_col_desc:"\u522A\u9664\u7576\u524D\u5217",
-split_cells_desc:"\u62C6\u5206\u5132\u5B58\u683C",
-merge_cells_desc:"\u5408\u4F75\u5132\u5B58\u683C",
-row_desc:"\u5217 \u5C6C\u6027",
-cell_desc:"\u5132\u5B58\u683C \u5C6C\u6027",
-props_desc:"\u8868\u683C \u5C6C\u6027",
-paste_row_before_desc:"\u8CBC\u4E0A\u884C\u5230\u4E0A\u65B9",
-paste_row_after_desc:"\u8CBC\u4E0A\u884C\u5230\u4E0B\u65B9",
-cut_row_desc:"\u526A\u4E0B\u7576\u524D\u5217",
-copy_row_desc:"\u8907\u88FD\u7576\u524D\u5217",
-del:"\u522A\u9664\u8868\u683C",
-row:"\u884C",
-col:"\u5217",
-cell:"\u5132\u5B58\u683C"
-},
-autosave:{
-unload_msg:"\u5982\u679C\u96E2\u958B\u8A72\u9801\u5C07\u5C0E\u81F4\u6240\u6709\u4FEE\u6539\u5168\u90E8\u907A\u5931\u3002"
-},
-fullscreen:{
-desc:"\u5168\u87A2\u5E55\u6A21\u5F0F"
-},
-media:{
-desc:"\u63D2\u5165/\u7DE8\u8F2F \u5A92\u9AD4",
-edit:"\u7DE8\u8F2F \u5A92\u9AD4"
-},
-fullpage:{
-desc:"\u6587\u4EF6"
-},
-template:{
-desc:"\u63D2\u5165\u9078\u5B9A\u7684\u7BC4\u672C"
-},
-visualchars:{
-desc:"\u986F\u793A\u63A7\u5236\u7B26\u865F\u3002"
-},
-spellchecker:{
-desc:"\u62FC\u5B57\u6AA2\u67E5",
-menu:"\u62FC\u5B57\u6AA2\u67E5 \u8A2D\u5B9A",
-ignore_word:"\u5FFD\u7565",
-ignore_words:"\u5168\u90E8\u5FFD\u7565",
-langs:"\u8A9E\u8A00\u6E05\u55AE",
-wait:"\u8ACB\u7A0D\u5019...",
-sug:"\u5EFA\u8B70\u8A5E",
-no_sug:"\u7121\u62FC\u5B57\u5EFA\u8B70",
-no_mpell:"\u7121\u62FC\u5B57\u932F\u8AA4"
-},
-pagebreak:{
-desc:"\u63D2\u5165\u5206\u9801\u7B26\u865F"
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/tw.js b/chrome/content/zotero/tinymce/langs/tw.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({tw:{
-common:{
-edit_confirm:"\u662F\u5426\u5728\u8A72text area\u5167\u555F\u7528\u6240\u898B\u5373\u6240\u5F97\u6A21\u5F0F\uFF1F",
-apply:"\u61C9\u7528",
-insert:"\u63D2\u5165",
-update:"\u66F4\u65B0",
-cancel:"\u53D6\u6D88",
-close:"\u95DC\u9589",
-browse:"\u6D41\u89BD",
-class_name:"\u6A23\u5F0F\u985E\u540D",
-not_set:"-- \u672A\u8A2D\u7F6E --",
-clipboard_msg:"\u8907\u88FD\u3001\u526A\u4E0B\u548C\u8CBC\u4E0A\u529F\u80FD\u5728Mozilla \u548C Firefox\u4E2D\u7121\u6CD5\u4F7F\u7528",
-clipboard_no_support:"\u5C1A\u4E0D\u652F\u63F4\u60A8\u6240\u4F7F\u7528\u7684\u6D41\u89BD\u5668\uFF0C\u8ACB\u4F7F\u7528\u9375\u76E4\u65B9\u5F0F\u64CD\u4F5C",
-popup_blocked:"\u5C0D\u4E0D\u8D77\uFF0C\u60A8\u7684\u5FEB\u986F\u8996\u7A97\u963B\u6B62\u7A0B\u5F0F\u5DF2\u7D93\u963B\u6B62\u4E86\u672C\u5FEB\u986F\u8996\u7A97\uFF0C\u8ACB\u8ABF\u6574\u4F60\u7684\u6D41\u89BD\u5668\u8A2D\u7F6E\uFF0C\u5141\u8A31\u672C\u7DB2\u7AD9\u5F48\u51FA\u65B0\u8996\u7A97\uFF0C\u4EE5\u4FBF\u4F7F\u7528\u6B64\u529F\u80FD",
-invalid_data:"\u932F\u8AA4\uFF1A\u8F38\u5165\u4E86\u7121\u6548\u7684\u503C\uFF0C\u5DF2\u6A19\u8A18\u70BA\u7D05\u8272\u3002",
-more_colors:"\u66F4\u591A\u984F\u8272"
-},
-contextmenu:{
-align:"\u5C0D\u9F4A\u65B9\u5F0F",
-left:"\u5DE6\u5C0D\u9F4A",
-center:"\u5C45\u4E2D",
-right:"\u53F3\u5C0D\u9F4A",
-full:"\u5169\u7AEF\u5C0D\u9F4A"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"\u63D2\u5165\u4ECA\u5929\u65E5\u671F",
-inserttime_desc:"\u63D2\u5165\u73FE\u5728\u6642\u9593",
-months_long:"\u4E00\u6708,\u4E8C\u6708,\u4E09\u6708,\u56DB\u6708,\u4E94\u6708,\u516D\u6708,\u4E03\u6708,\u516B\u6708,\u4E5D\u6708,\u5341\u6708,\u5341\u4E00\u6708,\u5341\u4E8C\u6708",
-months_short:"1\u6708,2\u6708,3\u6708,4\u6708,5\u6708,6\u6708,7\u6708,8\u6708,9\u6708,10\u6708,11\u6708,12\u6708",
-day_long:"\u661F\u671F\u65E5,\u661F\u671F\u4E00,\u661F\u671F\u4E8C,\u661F\u671F\u4E09,\u661F\u671F\u56DB,\u661F\u671F\u4E94,\u661F\u671F\u516D,\u661F\u671F\u65E5",
-day_short:"\u9031\u65E5,\u9031\u4E00,\u9031\u4E8C,\u9031\u4E09,\u9031\u56DB,\u9031\u4E94,\u9031\u516D, \u9031\u65E5"
-},
-print:{
-print_desc:"\u5217\u5370"
-},
-preview:{
-preview_desc:"\u9810\u89BD"
-},
-directionality:{
-ltr_desc:"\u6587\u5B57\u5F9E\u5DE6\u5230\u53F3",
-rtl_desc:"\u6587\u5B57\u5F9E\u53F3\u5230\u5DE6"
-},
-layer:{
-insertlayer_desc:"\u63D2\u5165\u5716\u5C64",
-forward_desc:"\u524D\u7F6E",
-backward_desc:"\u5F8C\u7F6E",
-absolute_desc:"\u7D55\u5C0D\u4F4D\u7F6E",
-content:"\u65B0\u589E\u5716\u5C64..."
-},
-save:{
-save_desc:"\u4FDD\u5B58",
-cancel_desc:"\u653E\u68C4\u6240\u6709\u66F4\u6539"
-},
-nonbreaking:{
-nonbreaking_desc:"\u63D2\u5165\u7A7A\u767D\u5B57\u5143"
-},
-iespell:{
-iespell_desc:"\u57F7\u884C\u62FC\u5BEB\u6AA2\u67E5",
-download:"\u672A\u6AA2\u6E2C\u5230ieSpell\u5143\u4EF6\uFF0C\u662F\u5426\u73FE\u5728\u5B89\u88DD ?"
-},
-advhr:{
-advhr_desc:"\u5206\u9694\u7DDA"
-},
-emotions:{
-emotions_desc:"\u8868\u60C5"
-},
-searchreplace:{
-search_desc:"\u5C0B\u627E",
-replace_desc:"\u5C0B\u627E/\u66FF\u63DB"
-},
-advimage:{
-image_desc:"\u63D2\u5165/\u7DE8\u8F2F \u5716\u7247"
-},
-advlink:{
-link_desc:"\u63D2\u5165/\u7DE8\u8F2F \u9023\u7D50"
-},
-xhtmlxtras:{
-cite_desc:"\u5F15\u7528",
-abbr_desc:"\u7E2E\u5BEB",
-acronym_desc:"\u9996\u5B57\u6BCD\u7E2E\u5BEB",
-del_desc:"\u522A\u9664",
-ins_desc:"\u63D2\u5165",
-attribs_desc:"\u63D2\u5165/\u7DE8\u8F2F \u5C6C\u6027"
-},
-style:{
-desc:"\u7DE8\u8F2F CSS \u6A23\u5F0F\u8868"
-},
-paste:{
-paste_text_desc:"\u8CBC\u4E0A\u70BA\u7D14\u6587\u5B57",
-paste_word_desc:"\u8CBC\u4E0A\u70BAWord\u683C\u5F0F",
-selectall_desc:"\u5168\u9078"
-},
-paste_dlg:{
-text_title:"\u5C07\u8907\u88FD(CTRL + C)\u7684\u5167\u5BB9\u8CBC\u4E0A(CTRL + V)\u5230\u8996\u7A97\u3002",
-text_linebreaks:"\u4FDD\u7559\u63DB\u884C\u7B26\u865F",
-word_title:"\u5C07\u8907\u88FD(CTRL + C)\u7684\u5167\u5BB9\u8CBC\u4E0A(CTRL + V)\u5230\u8996\u7A97\u3002"
-},
-table:{
-desc:"\u63D2\u5165\u65B0\u8868\u683C",
-row_before_desc:"\u5728\u4E0A\u65B9\u63D2\u5165\u884C",
-row_after_desc:"\u5728\u4E0B\u65B9\u63D2\u5165\u884C",
-delete_row_desc:"\u522A\u9664\u7576\u524D\u884C",
-col_before_desc:"\u5728\u5DE6\u5074\u63D2\u5165\u5217",
-col_after_desc:"\u5728\u53F3\u5074\u63D2\u5165\u5217",
-delete_col_desc:"\u522A\u9664\u7576\u524D\u5217",
-split_cells_desc:"\u5206\u5272\u5132\u5B58\u683C",
-merge_cells_desc:"\u5408\u4F75\u5132\u5B58\u683C",
-row_desc:"\u5217 \u5C6C\u6027",
-cell_desc:"\u5132\u5B58\u683C \u5C6C\u6027",
-props_desc:"\u8868\u683C \u5C6C\u6027",
-paste_row_before_desc:"\u8CBC\u4E0A\u884C\u5230\u4E0A\u65B9",
-paste_row_after_desc:"\u8CBC\u4E0A\u884C\u5230\u4E0B\u65B9",
-cut_row_desc:"\u526A\u4E0B\u7576\u524D\u5217",
-copy_row_desc:"\u8907\u88FD\u7576\u524D\u5217",
-del:"\u522A\u9664\u8868\u683C",
-row:"\u884C",
-col:"\u5217",
-cell:"\u5132\u5B58\u683C"
-},
-autosave:{
-unload_msg:"\u5982\u679C\u96E2\u958B\u8A72\u9801\u5C07\u5C0E\u81F4\u6240\u6709\u4FEE\u6539\u5168\u90E8\u4E1F\u5931\u3002"
-},
-fullscreen:{
-desc:"\u5168\u5C4F\u6A21\u5F0F"
-},
-media:{
-desc:"\u63D2\u5165/\u7DE8\u8F2F \u5A92\u9AD4",
-edit:"\u7DE8\u8F2F \u5A92\u9AD4"
-},
-fullpage:{
-desc:"\u6587\u4EF6"
-},
-template:{
-desc:"\u63D2\u5165\u9078\u5B9A\u7684\u7BC4\u672C"
-},
-visualchars:{
-desc:"\u986F\u793A\u63A7\u5236\u7B26\u865F\u3002"
-},
-spellchecker:{
-desc:"\u62FC\u5BEB\u6AA2\u67E5",
-menu:"\u62FC\u5BEB\u6AA2\u67E5 \u8A2D\u7F6E",
-ignore_word:"\u5FFD\u7565",
-ignore_words:"\u5168\u90E8\u5FFD\u7565",
-langs:"\u8A9E\u8A00\u6E05\u55AE",
-wait:"\u8ACB\u7A0D\u5019...",
-sug:"\u5EFA\u8B70\u8A5E",
-no_sug:"\u7121\u62FC\u5BEB\u5EFA\u8B70",
-no_mpell:"\u7121\u62FC\u5BEB\u932F\u8AA4"
-},
-pagebreak:{
-desc:"\u63D2\u5165\u5206\u9801\u7B26\u865F"
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/uk.js b/chrome/content/zotero/tinymce/langs/uk.js
@@ -1,157 +0,0 @@
-tinyMCE.addI18n({uk:{
-common:{
-edit_confirm:"\u0412\u0438 \u0431\u0430\u0436\u0430\u0454\u0442\u0435 \u0432\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u043E\u0432\u0443\u0432\u0430\u0442\u0438 WYSIWYG \u0440\u0435\u0436\u0438\u043C \u0434\u043B\u044F \u0446\u044C\u043E\u0433\u043E \u043F\u043E\u043B\u044F?",
-apply:"\u0417\u0430\u0441\u0442\u043E\u0441\u0443\u0432\u0430\u0442\u0438",
-insert:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438",
-update:"\u041E\u043D\u043E\u0432\u0438\u0442\u0438",
-cancel:"\u0412\u0456\u0434\u043C\u0456\u043D\u0438\u0442\u0438",
-close:"\u0417\u0430\u043A\u0440\u0438\u0442\u0438",
-browse:"\u041F\u0435\u0440\u0435\u0433\u043B\u044F\u0434",
-class_name:"\u041A\u043B\u0430\u0441",
-not_set:"-- \u043D\u0435 \u0432\u0438\u0431\u0440\u0430\u043D\u043E --",
-clipboard_msg:"\u041A\u043E\u043F\u0456\u044E\u0432\u0430\u0442\u0438/\u0412\u0438\u0440\u0456\u0437\u0430\u0442\u0438/\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043D\u0435 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E \u0432 Mozilla \u0442\u0430 Firefox.\n\u0412\u0430\u043C \u0446\u0456\u043A\u0430\u0432\u0430 \u0456\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0456\u044F \u043F\u0440\u043E \u0446\u0435?",
-clipboard_no_support:"Currently not supported by your browser, use keyboard shortcuts instead.",
-popup_blocked:"Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.",
-invalid_data:"\u041F\u043E\u043C\u0438\u043B\u043A\u0430: \u0412\u0432\u0435\u0434\u0435\u043D\u043E \u043F\u043E\u043C\u0438\u043B\u043A\u043E\u0432\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F, \u0432\u0456\u0434\u043C\u0456\u0447\u0435\u043D\u0435 \u0447\u0435\u0440\u0432\u043E\u043D\u0438\u043C.",
-more_colors:"\u0411\u0456\u043B\u044C\u0448\u0435 \u043A\u043E\u043B\u044C\u043E\u0440\u0456\u0432"
-},
-contextmenu:{
-align:"\u0412\u0438\u0440\u0456\u0432\u043D\u044E\u0432\u0430\u043D\u043D\u044F",
-left:"\u041F\u043E \u043B\u0456\u0432\u043E\u043C\u0443 \u043A\u0440\u0430\u044E",
-center:"\u041F\u043E \u0446\u0435\u043D\u0442\u0440\u0443",
-right:"\u041F\u043E \u043F\u0440\u0430\u0432\u043E\u043C\u0443 \u043A\u0440\u0430\u044E",
-full:"\u041F\u043E \u0448\u0438\u0440\u0438\u043D\u0456"
-},
-insertdatetime:{
-date_fmt:"%d.%m.%Y",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0434\u0430\u0442\u0443",
-inserttime_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0447\u0430\u0441",
-months_long:"\u0421\u0456\u0447\u0435\u043D\u044C,\u041B\u044E\u0442\u0438\u0439,\u0411\u0435\u0440\u0435\u0437\u0435\u043D\u044C,\u041A\u0432\u0456\u0442\u0435\u043D\u044C,\u0422\u0440\u0430\u0432\u0435\u043D\u044C,\u0427\u0435\u0440\u0432\u0435\u043D\u044C,\u041B\u0438\u043F\u0435\u043D\u044C,\u0421\u0435\u0440\u043F\u0435\u043D\u044C,\u0412\u0435\u0440\u0435\u0441\u0435\u043D\u044C,\u0416\u043E\u0432\u0442\u0435\u043D\u044C,\u041B\u0438\u0441\u0442\u043E\u043F\u0430\u0434,\u0413\u0440\u0443\u0434\u0435\u043D\u044C",
-months_short:"\u0421\u0456\u0447,\u041B\u044E\u0442,\u0411\u0435\u0440,\u041A\u0432\u0456,\u0422\u0440\u0430,\u0427\u0435\u0440,\u041B\u0438\u043F,\u0421\u0435\u0440,\u0412\u0435\u0440,\u0416\u043E\u0432,\u041B\u0438\u0441,\u0413\u0440\u0443",
-day_long:"\u041D\u0435\u0434\u0456\u043B\u044F,\u041F\u043E\u043D\u0435\u0434\u0456\u043B\u043E\u043A,\u0412\u0456\u0432\u0442\u043E\u0440\u043E\u043A,\u0421\u0435\u0440\u0435\u0434\u0430,\u0427\u0435\u0442\u0432\u0435\u0440,\u041F'\u044F\u0442\u043D\u0438\u0446\u044F,\u0421\u0443\u0431\u043E\u0442\u0430,\u041D\u0435\u0434\u0456\u043B\u044F",
-day_short:"\u041D\u0434,\u041F\u043D,\u0412\u0442,\u0421\u0440,\u0427\u0442,\u041F\u0442,\u0421\u0431,\u041D\u0434"
-},
-print:{
-print_desc:"\u0414\u0440\u0443\u043A"
-},
-preview:{
-preview_desc:"\u041F\u0435\u0440\u0435\u0433\u043B\u044F\u0434"
-},
-directionality:{
-ltr_desc:"\u041D\u0430\u043F\u0440\u044F\u043C \u0437\u043B\u0456\u0432\u0430 \u043F\u0440\u0430\u0432\u043E\u0440\u0443\u0447",
-rtl_desc:"\u041D\u0430\u043F\u0440\u044F\u043C \u0441\u043F\u0440\u0430\u0432\u0430 \u043B\u0456\u0432\u043E\u0440\u0443\u0447"
-},
-layer:{
-insertlayer_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043D\u043E\u0432\u0438\u0439 \u0441\u043B\u043E\u0439",
-forward_desc:"\u041F\u0435\u0440\u0435\u043C\u0456\u0441\u0442\u0438\u0442\u0438 \u0432\u0433\u043E\u0440\u0443",
-backward_desc:"\u041F\u0435\u0440\u0435\u043C\u0456\u0441\u0442\u0438\u0442\u0438 \u043D\u0430\u0437\u0430\u0434",
-absolute_desc:"Toggle absolute positioning",
-content:"\u041D\u043E\u0432\u0438\u0439 \u0441\u043B\u043E\u0439..."
-},
-save:{
-save_desc:"\u0417\u0431\u0435\u0440\u0435\u0433\u0442\u0438",
-cancel_desc:"\u0412\u0456\u0434\u043C\u0456\u043D\u0438\u0442\u0438 \u0432\u0441\u0456 \u0437\u043C\u0456\u043D\u0438"
-},
-nonbreaking:{
-nonbreaking_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043D\u0435\u0440\u043E\u0437\u0440\u0438\u0432\u043D\u0438\u0439 \u043F\u0440\u043E\u0431\u0456\u043B"
-},
-iespell:{
-iespell_desc:"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u0438 \u043E\u0440\u0444\u043E\u0433\u0440\u0430\u0444\u0456\u044E",
-download:"ieSpell \u043D\u0435 \u0437\u043D\u0430\u0439\u0434\u0435\u043D\u043E. \u0411\u0430\u0436\u0430\u0454\u0442\u0435 \u043F\u0440\u043E\u0456\u043D\u0441\u0442\u0430\u043B\u044E\u0432\u0430\u0442\u0438?"
-},
-advhr:{
-advhr_desc:"\u0413\u043E\u0440\u0438\u0437\u043E\u043D\u0442\u0430\u043B\u044C\u043D\u0438\u0439 \u0440\u043E\u0437\u0434\u0456\u043B\u044C\u043D\u0438\u043A"
-},
-emotions:{
-emotions_desc:"\u0421\u043C\u0430\u0439\u043B\u0438"
-},
-searchreplace:{
-search_desc:"\u0417\u043D\u0430\u0439\u0442\u0438",
-replace_desc:"\u0417\u043D\u0430\u0439\u0442\u0438/\u0417\u0430\u043C\u0456\u043D\u0438\u0442\u0438"
-},
-advimage:{
-image_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438/\u0437\u043C\u0456\u043D\u0438\u0442\u0438 \u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u043D\u044F",
-delta_width:"200"
-},
-advlink:{
-link_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438/\u0437\u043C\u0456\u043D\u0438\u0442\u0438 \u043F\u043E\u0441\u0438\u043B\u0430\u043D\u043D\u044F",
-delta_width:"200"
-},
-xhtmlxtras:{
-cite_desc:"Citation",
-abbr_desc:"Abbreviation",
-acronym_desc:"Acronym",
-del_desc:"Deletion",
-ins_desc:"Insertion",
-attribs_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438/\u0437\u043C\u0456\u043D\u0438\u0442\u0438 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0438"
-},
-style:{
-desc:"\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 CSS \u0441\u0442\u0438\u043B\u044C"
-},
-paste:{
-paste_text_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u044F\u043A \u0442\u0435\u043A\u0441\u0442",
-paste_word_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0437 Word",
-selectall_desc:"\u0412\u0438\u0434\u0456\u043B\u0438\u0442\u0438 \u0432\u0441\u0435"
-},
-paste_dlg:{
-text_title:"\u0412\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u043E\u0432\u0443\u0439\u0442\u0435 CTRL+V \u0434\u043B\u044F \u0432\u0441\u0442\u0430\u0432\u043A\u0438 \u0442\u0435\u043A\u0441\u0442\u0443 \u0443 \u0432\u0456\u043A\u043D\u043E.",
-text_linebreaks:"\u0417\u0431\u0435\u0440\u0435\u0433\u0442\u0438 \u043F\u0435\u0440\u0435\u043D\u043E\u0441\u044B \u0441\u0442\u0440\u043E\u043A",
-word_title:"\u0412\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u043E\u0432\u0443\u0439\u0442\u0435 CTRL+V \u0434\u043B\u044F \u0432\u0441\u0442\u0430\u0432\u043A\u0438 \u0442\u0435\u043A\u0441\u0442\u0443 \u0443 \u0432\u0456\u043A\u043D\u043E."
-},
-table:{
-desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043D\u043E\u0432\u0443 \u0442\u0430\u0431\u043B\u0438\u0446\u044E",
-row_before_desc:"\u0414\u043E\u0434\u0430\u0442\u0438 \u0440\u044F\u0434\u043E\u043A \u0434\u043E",
-row_after_desc:"\u0414\u043E\u0434\u0430\u0442\u0438 \u0440\u044F\u0434\u043E\u043A \u043F\u0456\u0441\u043B\u044F",
-delete_row_desc:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u0440\u044F\u0434\u043E\u043A",
-col_before_desc:"\u0414\u043E\u0434\u0430\u0442\u0438 \u0441\u0442\u043E\u0432\u0431\u0435\u0446\u044C \u0434\u043E",
-col_after_desc:"\u0414\u043E\u0434\u0430\u0442\u0438 \u0441\u0442\u043E\u0432\u0431\u0435\u0446\u044C \u043F\u0456\u0441\u043B\u044F",
-delete_col_desc:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u0441\u0442\u043E\u0432\u0431\u0435\u0446\u044C",
-split_cells_desc:"\u0420\u043E\u0437\u0434\u0456\u043B\u0438\u0442\u0438 \u043A\u043E\u043C\u0456\u0440\u043A\u0438",
-merge_cells_desc:"\u041E\u0431'\u0454\u0434\u043D\u0430\u0442\u0438 \u043A\u043E\u043C\u0456\u0440\u043A\u0438",
-row_desc:"\u0412\u043B\u0430\u0441\u0442\u0438\u0432\u043E\u0441\u0442\u0456 \u0440\u044F\u0434\u043A\u0443 \u0442\u0430\u0431\u043B\u0438\u0446\u0456",
-cell_desc:"\u0412\u043B\u0430\u0441\u0442\u0438\u0432\u043E\u0441\u0442\u0456 \u043A\u043E\u043C\u0456\u0440\u043A\u0438 \u0442\u0430\u0431\u043B\u0438\u0446\u0456",
-props_desc:"\u0412\u043B\u0430\u0441\u0442\u0438\u0432\u043E\u0441\u0442\u0456 \u0442\u0430\u0431\u043B\u0438\u0446\u0456",
-paste_row_before_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0440\u044F\u0434\u043E\u043A \u0434\u043E",
-paste_row_after_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0440\u044F\u0434\u043E\u043A \u043F\u0456\u0441\u043B\u044F",
-cut_row_desc:"\u0412\u0438\u0440\u0456\u0437\u0430\u0442\u0438 \u0440\u044F\u0434\u043E\u043A \u0442\u0430\u0431\u043B\u0438\u0446\u0456",
-copy_row_desc:"\u041A\u043E\u043F\u0456\u044E\u0432\u0430\u0442\u0438 \u0440\u044F\u0434\u043E\u043A \u0442\u0430\u0431\u043B\u0438\u0446\u0456",
-del:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u0442\u0430\u0431\u043B\u0438\u0446\u044E",
-row:"\u0420\u044F\u0434\u043E\u043A",
-col:"\u0421\u0442\u043E\u0432\u0431\u0435\u0446\u044C",
-cell:"\u041A\u043E\u043C\u0456\u0440\u043A\u0430",
-cellprops_delta_width:"30"
-},
-autosave:{
-unload_msg:"\u0417\u043C\u0456\u043D\u0438, \u044F\u043A\u0456 \u0432\u0438 \u0437\u0440\u043E\u0431\u0438\u043B\u0438, \u0431\u0443\u0434\u0443\u0442\u044C \u0432\u0442\u0440\u0430\u0447\u0435\u043D\u0456, \u044F\u043A\u0449\u043E \u0432\u0438 \u043F\u0435\u0440\u0435\u0439\u0434\u0435\u0442\u0435 \u0437 \u0446\u0456\u0454\u0457 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0438."
-},
-fullscreen:{
-desc:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u0438\u0441\u044F \u043D\u0430 \u0432\u0435\u0441\u044C \u0435\u043A\u0440\u0430\u043D"
-},
-media:{
-desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 / \u0440\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 embedded media",
-edit:"\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 embedded media"
-},
-fullpage:{
-desc:"\u0412\u043B\u0430\u0441\u0442\u0438\u0432\u043E\u0441\u0442\u0456 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430"
-},
-template:{
-desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u043D\u0438\u0439 \u043A\u043E\u043D\u0442\u0435\u043D\u0442"
-},
-visualchars:{
-desc:"Visual control characters on/off."
-},
-spellchecker:{
-desc:"\u041F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0438\u0442\u0438 \u043F\u0435\u0440\u0435\u0432\u0456\u0440\u043A\u0443",
-menu:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u043F\u0435\u0440\u0435\u0432\u0456\u0440\u043A\u0438",
-ignore_word:"\u0406\u0433\u043D\u043E\u0440\u0443\u0432\u0430\u0442\u0438 \u0441\u043B\u043E\u0432\u043E",
-ignore_words:"\u0406\u0433\u043D\u043E\u0440\u0443\u0432\u0430\u0442\u0438 \u0432\u0441\u0435",
-langs:"\u041C\u043E\u0432\u0438",
-wait:"\u0411\u0443\u0434\u044C \u043B\u0430\u0441\u043A\u0430 \u0437\u0430\u0447\u0435\u043A\u0430\u0439\u0442\u0435...",
-sug:"\u0412\u0430\u0440\u0456\u0430\u043D\u0442\u0438",
-no_sug:"\u041D\u0435\u043C\u0430\u0454 \u0432\u0430\u0440\u0456\u0430\u043D\u0442\u0456\u0432",
-no_mpell:"\u041F\u043E\u043C\u0438\u043B\u043E\u043A \u043D\u0435 \u0437\u043D\u0430\u0439\u0434\u0435\u043D\u043E."
-},
-pagebreak:{
-desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0440\u043E\u0437\u0434\u0456\u043B\u044C\u043D\u0438\u043A \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0438."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/vi.js b/chrome/content/zotero/tinymce/langs/vi.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({vi:{
-common:{
-edit_confirm:"B\u1EA1n c\u00F3 mu\u1ED1n s\u1EED d\u1EE5ng ch\u1EBF \u0111\u1ED9 nh\u1EADp li\u1EC7u WYSIWYG cho \u00F4 d\u1EEF li\u1EC7u n\u00E0y kh\u00F4ng?",
-apply:"\u00C1p d\u1EE5ng",
-insert:"Ch\u00E8n",
-update:"C\u1EADp nh\u1EADt",
-cancel:"H\u1EE7y",
-close:"\u0110\u00F3ng",
-browse:"M\u1EDF",
-class_name:"L\u1EDBp",
-not_set:"-- mac dinh ch\u1ECDn --",
-clipboard_msg:"Sao ch\u00E9p/C\u1EAFt/D\u00E1n kh\u00F4ng ho\u1EA1t \u0111\u1ED9ng tr\u00EAn Mozilla v\u00E0 Firefox.\nB\u1EA1n mu\u1ED1n xem th\u00EAm th\u00F4ng tin v\u1EC1 v\u1EA5n \u0111\u1EC1 n\u00E0y?",
-clipboard_no_support:"Hi\u1EC7n kh\u00F4ng h\u1ED5 tr\u1EE3 cho tr\u00ECnh duy\u1EC7t c\u1EE7a b\u1EA1n, vui l\u00F2ng s\u1EED d\u1EE5ng b\u00E0n ph\u00EDm.",
-popup_blocked:"Xin l\u1ED7i, nh\u01B0ng tr\u00ECnh duy\u1EC7t c\u1EE7a b\u1EA1n kh\u00F4ng cho ph\u00E9p m\u1EDF c\u1EEDa s\u1ED5 m\u1EDBi (popup). B\u1EA1n c\u1EA7n ph\u1EA3i \u0111i\u1EC1u ch\u1EC9nh tr\u00ECnh duy\u1EC7t cho ph\u00E9p m\u1EDF c\u1EEDa s\u1ED5 m\u1EDBi \u0111\u1EC3 t\u1EADn h\u01B0\u1EDFng \u0111\u1EA7y \u0111\u1EE7 ch\u1EE9c n\u0103ng c\u1EE7a c\u00F4ng c\u1EE5 n\u00E0y.",
-invalid_data:"L\u1ED7i: D\u1EEF li\u1EC7u kh\u00F4ng h\u1EE3p l\u1EC7, ch\u00FAng \u0111\u00E3 \u0111\u01B0\u1EE3c \u0111\u00E1nh d\u1EA5u m\u00E0u \u0111\u1ECF.",
-more_colors:"Nhi\u1EC1u m\u00E0u h\u01A1n"
-},
-contextmenu:{
-align:"C\u0103n l\u1EC1",
-left:"Tr\u00E1i",
-center:"Gi\u1EEFa",
-right:"Ph\u1EA3i",
-full:"\u0110\u1EC1u"
-},
-insertdatetime:{
-date_fmt:"%d/%m/%Y",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"Ch\u00E8n ng\u00E0y",
-inserttime_desc:"Ch\u00E8n gi\u1EDD",
-months_long:"Th\u00E1ng M\u1ED9t,Th\u00E1ng Hai,Th\u00E1ng Ba,Th\u00E1ng T\u01B0,Th\u00E1ng N\u0103m,Th\u00E1ng S\u00E1u,Th\u00E1ng B\u1EA3y,Th\u00E1ng T\u00E1m,Th\u00E1ng Ch\u00EDn,Th\u00E1ng M\u01B0\u1EDDi,Th\u00E1ng M\u01B0\u1EDDi M\u1ED9t,Th\u00E1ng M\u01B0\u1EDDi Hai",
-months_short:"M\u1ED9t,Hai,Ba,T\u01B0,N\u0103m,S\u00E1u,B\u1EA3y,T\u00E1m,Ch\u00EDn,M\u01B0\u1EDDi,M.M\u1ED9t,M.Hai",
-day_long:"Ch\u1EE7 Nh\u1EADt,Th\u1EE9 Hai,Th\u1EE9 Ba,Th\u1EE9 T\u01B0,Th\u1EE9 N\u0103m,Th\u1EE9 S\u00E1u,Th\u1EE9 B\u1EA3y,Ch\u1EE7 Nh\u1EADt",
-day_short:"CN,Hai,Ba,T\u01B0,N\u0103m,S\u00E1u,B\u1EA3y,CN"
-},
-print:{
-print_desc:"In"
-},
-preview:{
-preview_desc:"Xem tr\u01B0\u1EDBc"
-},
-directionality:{
-ltr_desc:"Direction left to right",
-rtl_desc:"Direction right to left"
-},
-layer:{
-insertlayer_desc:"Ch\u00E8n l\u1EDBp m\u1EDBi",
-forward_desc:"Chuy\u1EC3n \u0111\u1EBFn tr\u01B0\u1EDBc",
-backward_desc:"Chuy\u1EC3n ra sau",
-absolute_desc:"Toggle absolute positioning",
-content:"L\u1EDBp m\u1EDBi..."
-},
-save:{
-save_desc:"Save",
-cancel_desc:"Hu\u1EF7 t\u1EA5t c\u1EA3 thay \u0111\u1ED5i"
-},
-nonbreaking:{
-nonbreaking_desc:"Insert non-breaking space character"
-},
-iespell:{
-iespell_desc:"Ki\u1EC3m tra ch\u00EDnh t\u1EA3",
-download:"ieSpell not detected. Do you want to install it now?"
-},
-advhr:{
-advhr_desc:"Horizontale rule"
-},
-emotions:{
-emotions_desc:"Bi\u1EC3u t\u01B0\u1EE3ng c\u1EA3m x\u00FAc"
-},
-searchreplace:{
-search_desc:"T\u00ECm ki\u1EBFm",
-replace_desc:"T\u00ECm/Thay th\u1EBF"
-},
-advimage:{
-image_desc:"Ch\u00E8n/thay \u0111\u1ED5i h\u00ECnh \u1EA3nh"
-},
-advlink:{
-link_desc:"Ch\u00E8n/thay \u0111\u1ED5i li\u00EAn k\u1EBFt"
-},
-xhtmlxtras:{
-cite_desc:"Citation",
-abbr_desc:"Abbreviation",
-acronym_desc:"Acronym",
-del_desc:"Deletion",
-ins_desc:"Insertion",
-attribs_desc:"Insert/Edit Attributes"
-},
-style:{
-desc:"Edit CSS Style"
-},
-paste:{
-paste_text_desc:"D\u00E1n n\u1ED9i dung v\u00E0 b\u1ECF \u0111i \u0111\u1ECBnh d\u1EA1ng",
-paste_word_desc:"D\u00E1n n\u1ED9i dung sao ch\u00E9p t\u1EEB Word",
-selectall_desc:"Ch\u1ECDn t\u1EA5t c\u1EA3"
-},
-paste_dlg:{
-text_title:"S\u1EED d\u1EE5ng t\u1ED5 h\u1EE3p ph\u00EDm CTRL+V \u0111\u1EC3 d\u00E1n n\u1ED9i dung v\u00E0o khung b\u00EAn d\u01B0\u1EDBi.",
-text_linebreaks:"Gi\u1EEF nguy\u00EAn nh\u1EEFng ch\u1ED7 xu\u1ED1ng h\u00E0ng",
-word_title:"S\u1EED d\u1EE5ng t\u1ED5 h\u1EE3p ph\u00EDm CTRL+V \u0111\u1EC3 d\u00E1n n\u1ED9i dung v\u00E0o khung b\u00EAn d\u01B0\u1EDBi."
-},
-table:{
-desc:"Ch\u00E8n b\u1EA3ng m\u1EDBi",
-row_before_desc:"Ch\u00E8n d\u00F2ng v\u00E0o tr\u01B0\u1EDBc v\u1ECB tr\u00ED hi\u1EC7n t\u1EA1i",
-row_after_desc:"Ch\u00E8n d\u00F2ng v\u00E0o sau v\u1ECB tr\u00ED hi\u1EC7n t\u1EA1i",
-delete_row_desc:"X\u00F3a d\u00F2ng",
-col_before_desc:"Ch\u00E8n c\u1ED9t v\u00E0o sau v\u1ECB tr\u00ED hi\u1EC7n t\u1EA1i",
-col_after_desc:"Ch\u00E8n c\u1ED9t v\u00E0o sau v\u1ECB tr\u00ED hi\u1EC7n t\u1EA1i",
-delete_col_desc:"X\u00F3a c\u1ED9t",
-split_cells_desc:"T\u00E1ch \u00F4",
-merge_cells_desc:"G\u1ED9p \u00F4",
-row_desc:"Thay \u0111\u1ED5i thu\u1ED9c t\u00EDnh d\u00F2ng",
-cell_desc:"Thay \u0111\u1ED5i thu\u1ED9c t\u00EDnh \u00F4",
-props_desc:"Thay \u0111\u1ED5i thu\u1ED9c t\u00EDnh b\u1EA3ng",
-paste_row_before_desc:"D\u00E1n d\u00F2ng v\u00E0o tr\u01B0\u1EDBc v\u1ECB tr\u00ED hi\u1EC7n t\u1EA1i",
-paste_row_after_desc:"D\u00E1n d\u00F2ng v\u00E0o sau v\u1ECB tr\u00ED hi\u1EC7n t\u1EA1i",
-cut_row_desc:"C\u1EAFt d\u00F2ng",
-copy_row_desc:"Sao ch\u00E9p d\u00F2ng",
-del:"X\u00F3a b\u1EA3ng",
-row:"D\u00F2ng",
-col:"C\u1ED9t",
-cell:"\u00D4"
-},
-autosave:{
-unload_msg:"The changes you made will be lost if you navigate away from this page."
-},
-fullscreen:{
-desc:"B\u1EADt/t\u1EAFt ch\u1EBF \u0111\u1ED9 to\u00E0n m\u00E0n h\u00ECnh"
-},
-media:{
-desc:"Ch\u00E8n/thay \u0111\u1ED5i media(flash, nh\u1EA1c, video ...)",
-edit:"Thay \u0111\u1ED5i media"
-},
-fullpage:{
-desc:"Document properties"
-},
-template:{
-desc:"Insert predefined template content"
-},
-visualchars:{
-desc:"Visual control characters on/off."
-},
-spellchecker:{
-desc:"Ki\u1EC3m tra ch\u00EDnh t\u1EA3",
-menu:"T\u00F9y ch\u1ECDn ki\u1EC3m tra ch\u00EDnh t\u1EA3",
-ignore_word:"B\u1ECF qua m\u1ED9t t\u1EEB n\u00E0y",
-ignore_words:"B\u1ECF qua t\u1EA5t c\u1EA3 t\u1EEB n\u00E0y",
-langs:"Ng\u00F4n ng\u1EEF",
-wait:"Vui l\u00F2ng \u0111\u1EE3i trong gi\u00E2y l\u00E1t...",
-sug:"C\u00E1c t\u1EEB t\u01B0\u01A1ng t\u1EF1",
-no_sug:"Kh\u00F4ng c\u00F3 t\u1EEB t\u01B0\u01A1ng t\u1EF1",
-no_mpell:"Kh\u00F4ng c\u00F3 l\u1ED7i ch\u00EDnh t\u1EA3"
-},
-pagebreak:{
-desc:"Insert page break."
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/langs/zh.js b/chrome/content/zotero/tinymce/langs/zh.js
@@ -1,154 +0,0 @@
-tinyMCE.addI18n({zh:{
-common:{
-edit_confirm:"\u662F\u5426\u5728\u6B64\u5340\u57DF\u555F\u7528\u5373\u898B\u5373\u6240\u5F97\u7684\u7DE8\u8F2F\u6A21\u5F0F\uFF1F ",
-apply:"\u61C9\u7528",
-insert:"\u63D2\u5165",
-update:"\u66F4\u65B0",
-cancel:"\u53D6\u6D88",
-close:"\u95DC\u9589",
-browse:"\u9810\u89BD",
-class_name:"CSS\u985E\u5225",
-not_set:"\u5C1A\u672A\u8A2D\u5B9A",
-clipboard_msg:"\u8907\u88FD\u3001\u526A\u5207\u548C\u8CBC\u4E0A\u529F\u80FD\u5728Mozilla\u548CFirefox\u4E2D\u7121\u6CD5\u6B63\u5E38\u4F7F\u7528\u3002 \n\u4F60\u9700\u8981\u4E86\u89E3\u66F4\u591A\u8A0A\u606F\u55CE\uFF1F ",
-clipboard_no_support:"\u526A\u8CBC\u529F\u80FD\u7121\u6CD5\u4F7F\u7528,\u8ACB\u60A8\u6539\u7528\u9375\u76E4\u5FEB\u901F\u9375\u3002 ",
-popup_blocked:"\u60A8\u7684\u700F\u89BD\u5668\u5C01\u9396\u4E86\u8A72\u5FEB\u901F\u9375\u529F\u80FD\uFF0C\u6B64\u529F\u80FD\u7121\u6CD5\u6B63\u5E38\u4F7F\u7528\u904B\u4F5C\uFF01 ",
-invalid_data:"\u932F\u8AA4\uFF1A\u8F38\u5165\u503C\u7121\u6548\uFF0C\u5DF2\u7D93\u7528\u7D05\u8272\u6A19\u8A18\u3002 ",
-more_colors:"\u66F4\u591A\u984F\u8272.."
-},
-contextmenu:{
-align:"\u5C0D\u9F4A\u65B9\u5F0F",
-left:"\u5C45\u5DE6",
-center:"\u5C45\u4E2D",
-right:"\u5C45\u53F3",
-full:"\u5DE6\u53F3\u5C0D\u9F4A"
-},
-insertdatetime:{
-date_fmt:"%Y-%m-%d",
-time_fmt:"%H:%M:%S",
-insertdate_desc:"\u63D2\u5165\u7576\u524D\u65E5\u671F",
-inserttime_desc:"\u63D2\u5165\u7576\u524D\u6642\u9593",
-months_long:"\u4E00\u6708,\u4E8C\u6708,\u4E09\u6708,\u56DB\u6708,\u4E94\u6708,\u516D\u6708,\u4E03\u6708,\u516B\u6708,\u4E5D\u6708,\u5341\u6708,\u5341\u4E00\u6708,\u5341\u4E8C\u6708",
-months_short:"1\u6708,2\u6708,3\u6708,4\u6708,5\u6708,6\u6708,7\u6708,8\u6708,9\u6708,10\u6708,11\u6708,12\u6708",
-day_long:"\u661F\u671F\u65E5,\u661F\u671F\u4E00,\u661F\u671F\u4E8C,\u661F\u671F\u4E09,\u661F\u671F\u56DB,\u661F\u671F\u4E94,\u661F\u671F\u516D,\u661F\u671F\u65E5",
-day_short:"\u9031\u65E5,\u9031\u4E00,\u9031\u4E8C,\u9031\u4E09,\u9031\u56DB,\u9031\u4E94,\u9031\u516D,\u9031\u65E5"
-},
-print:{
-print_desc:"\u5217\u5370"
-},
-preview:{
-preview_desc:"\u9810\u89BD"
-},
-directionality:{
-ltr_desc:"\u6587\u5B57\u5F9E\u5DE6\u5230\u53F3",
-rtl_desc:"\u6587\u5B57\u5F9E\u53F3\u5230\u5DE6"
-},
-layer:{
-insertlayer_desc:"\u63D2\u5165\u5716\u5C64",
-forward_desc:"\u524D\u79FB",
-backward_desc:"\u5F8C\u79FB",
-absolute_desc:"\u5207\u63DB\u5230\u7D55\u5C0D\u5B9A\u4F4D",
-content:"\u5EFA\u7ACB\u5716\u5C64.."
-},
-save:{
-save_desc:"\u5132\u5B58",
-cancel_desc:"\u53D6\u6D88\u6240\u6709\u66F4\u6539"
-},
-nonbreaking:{
-nonbreaking_desc:"\u63D2\u5165\u975E\u63DB\u884C\u7A7A\u683C"
-},
-iespell:{
-iespell_desc:"\u57F7\u884C\u62FC\u5BEB\u6AA2\u67E5",
-download:"\u6AA2\u6E2C\u4E0D\u5230ieSpell\u7D44\u4EF6\uFF0C\u662F\u5426\u7ACB\u5373\u5B89\u88DD\uFF1F "
-},
-advhr:{
-advhr_desc:"\u6C34\u5E73\u7DDA"
-},
-emotions:{
-emotions_desc:"\u8868\u60C5"
-},
-searchreplace:{
-search_desc:"\u67E5\u627E",
-replace_desc:"\u67E5\u627E/\u66FF\u63DB"
-},
-advimage:{
-image_desc:"\u63D2\u5165/\u7DE8\u8F2F\u5716\u7247"
-},
-advlink:{
-link_desc:"\u63D2\u5165/\u7DE8\u8F2F\u9023\u7D50"
-},
-xhtmlxtras:{
-cite_desc:"\u5F15\u7528",
-abbr_desc:"\u7E2E\u5BEB",
-acronym_desc:"\u9996\u5B57\u6BCD\u7E2E\u5BEB",
-del_desc:"\u522A\u9664",
-ins_desc:"\u63D2\u5165",
-attribs_desc:"\u63D2\u5165/\u7DE8\u8F2F\u5C6C\u6027"
-},
-style:{
-desc:"\u7DE8\u8F2FCSS\u6A23\u5F0F\u8868"
-},
-paste:{
-paste_text_desc:"\u8CBC\u4E0A\u70BA\u7D14\u6587\u672C",
-paste_word_desc:"\u8CBC\u4E0A\u70BAWord\u683C\u5F0F",
-selectall_desc:"\u5168\u9078"
-},
-paste_dlg:{
-text_title:"\u7528Ctrl+V\u7D44\u5408\u9375\u5C07\u5167\u5BB9\u8CBC\u5165\u7A97\u53E3\u4E2D\u3002 ",
-text_linebreaks:"\u4FDD\u7559\u63DB\u884C\u7B26\u865F",
-word_title:"\u7528Ctrl+V\u7D44\u5408\u9375\u5C07\u5167\u5BB9\u8CBC\u5165\u7A97\u53E3\u4E2D\u3002 "
-},
-table:{
-desc:"\u63D2\u5165\u65B0\u8868\u683C",
-row_before_desc:"\u5728\u524D\u9762\u63D2\u5165\u5217",
-row_after_desc:"\u5728\u5F8C\u9762\u63D2\u5165\u5217",
-delete_row_desc:"\u522A\u9664\u672C\u5217",
-col_before_desc:"\u5728\u524D\u9762\u63D2\u5165\u884C",
-col_after_desc:"\u5728\u5F8C\u9762\u63D2\u5165\u884C",
-delete_col_desc:"\u522A\u9664\u672C\u884C",
-split_cells_desc:"\u5206\u5272\u5132\u5B58\u683C",
-merge_cells_desc:"\u5408\u4F75\u5132\u5B58\u683C",
-row_desc:"\u8868\u683C\u5217\u5C6C\u6027",
-cell_desc:"\u5132\u5B58\u683C\u5C6C\u6027",
-props_desc:"\u8868\u683C\u5C6C\u6027",
-paste_row_before_desc:"\u5728\u524D\u9762\u8CBC\u5165\u5217",
-paste_row_after_desc:"\u5728\u5F8C\u9762\u8CBC\u5165\u5217",
-cut_row_desc:"\u526A\u4E0B\u6B64\u5217",
-copy_row_desc:"\u8907\u88FD\u6B64\u5217",
-del:"\u522A\u9664\u8868\u683C",
-row:"\u5217",
-col:"\u884C",
-cell:"\u5132\u5B58\u683C"
-},
-autosave:{
-unload_msg:"\u5982\u679C\u96E2\u958B\u8A72\u9801\uFF0C\u5C07\u5C0E\u81F4\u6240\u6709\u66F4\u6539\u5168\u90E8\u6D88\u5931\u3002 "
-},
-fullscreen:{
-desc:"\u5168\u5C4F\u5207\u63DB"
-},
-media:{
-desc:"\u63D2\u5165/\u7DE8\u8F2F\u5F71\u7247",
-edit:"\u7DE8\u8F2F\u5F71\u7247"
-},
-fullpage:{
-desc:"\u6587\u4EF6\u5C6C\u6027"
-},
-template:{
-desc:"\u63D2\u5165\u9810\u5B9A\u7FA9\u6A23\u677F"
-},
-visualchars:{
-desc:"\u53EF\u898B\u63A7\u88FD\u5B57\u5143\u958B/\u95DC"
-},
-spellchecker:{
-desc:"\u5207\u63DB\u62FC\u5BEB\u6AA2\u67E5",
-menu:"\u62FC\u5BEB\u6AA2\u67E5\u8A2D\u5B9A",
-ignore_word:"\u5FFD\u7565\u5B57",
-ignore_words:"\u5168\u90E8\u5FFD\u7565",
-langs:"\u8A9E\u8A00",
-wait:"\u8ACB\u7A0D\u5019..",
-sug:"\u5EFA\u8B70",
-no_sug:"\u7121\u5EFA\u8B70",
-no_mpell:"\u7121\u62FC\u5BEB\u932F\u8AA4\u3002 "
-},
-pagebreak:{
-desc:"\u63D2\u5165\u5206\u9801\u7B26\u865F"
-}}});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/license.txt b/chrome/content/zotero/tinymce/license.txt
diff --git a/chrome/content/zotero/tinymce/plugins/contextmenu/editor_plugin.js b/chrome/content/zotero/tinymce/plugins/contextmenu/editor_plugin.js
@@ -1,147 +1 @@
-/**
- * editor_plugin_src.js
- *
- * Copyright 2009, Moxiecode Systems AB
- * Released under LGPL License.
- *
- * License: http://tinymce.moxiecode.com/license
- * Contributing: http://tinymce.moxiecode.com/contributing
- */
-
-(function() {
- var Event = tinymce.dom.Event, each = tinymce.each, DOM = tinymce.DOM;
-
- /**
- * This plugin a context menu to TinyMCE editor instances.
- *
- * @class tinymce.plugins.ContextMenu
- */
- tinymce.create('tinymce.plugins.ContextMenu', {
- /**
- * Initializes the plugin, this will be executed after the plugin has been created.
- * This call is done before the editor instance has finished it's initialization so use the onInit event
- * of the editor instance to intercept that event.
- *
- * @method init
- * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
- * @param {string} url Absolute URL to where the plugin is located.
- */
- init : function(ed) {
- var t = this, lastRng;
-
- t.editor = ed;
-
- /**
- * This event gets fired when the context menu is shown.
- *
- * @event onContextMenu
- * @param {tinymce.plugins.ContextMenu} sender Plugin instance sending the event.
- * @param {tinymce.ui.DropMenu} menu Drop down menu to fill with more items if needed.
- */
- t.onContextMenu = new tinymce.util.Dispatcher(this);
-
- ed.onContextMenu.add(function(ed, e) {
- if (!e.ctrlKey) {
- // Restore the last selection since it was removed
- if (lastRng)
- ed.selection.setRng(lastRng);
-
- t._getMenu(ed).showMenu(e.clientX, e.clientY);
- Event.add(ed.getDoc(), 'click', function(e) {
- hide(ed, e);
- });
- Event.cancel(e);
- }
- });
-
- ed.onRemove.add(function() {
- if (t._menu)
- t._menu.removeAll();
- });
-
- function hide(ed, e) {
- lastRng = null;
-
- // Since the contextmenu event moves
- // the selection we need to store it away
- if (e && e.button == 2) {
- lastRng = ed.selection.getRng();
- return;
- }
-
- if (t._menu) {
- t._menu.removeAll();
- t._menu.destroy();
- Event.remove(ed.getDoc(), 'click', hide);
- }
- };
-
- ed.onMouseDown.add(hide);
- ed.onKeyDown.add(hide);
- },
-
- /**
- * Returns information about the plugin as a name/value array.
- * The current keys are longname, author, authorurl, infourl and version.
- *
- * @method getInfo
- * @return {Object} Name/value array containing information about the plugin.
- */
- 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(ed) {
- var t = this, m = t._menu, se = ed.selection, col = se.isCollapsed(), el = se.getNode() || ed.getBody(), am, p1, p2;
-
- if (m) {
- m.removeAll();
- m.destroy();
- }
-
- p1 = DOM.getPos(ed.getContentAreaContainer());
- p2 = DOM.getPos(ed.getContainer());
-
- m = ed.controlManager.createDropMenu('contextmenu', {
- offset_x : p1.x + ed.getParam('contextmenu_offset_x', 0),
- offset_y : p1.y + ed.getParam('contextmenu_offset_y', 0),
- constrain : 1
- });
-
- t._menu = m;
-
- m.add({title : 'advanced.cut_desc', icon : 'cut', cmd : 'Cut'}).setDisabled(col);
- m.add({title : 'advanced.copy_desc', icon : 'copy', cmd : 'Copy'}).setDisabled(col);
- m.add({title : 'advanced.paste_desc', icon : 'paste', cmd : 'Paste'});
-
- if ((el.nodeName == 'A' && !ed.dom.getAttrib(el, 'name')) || !col) {
- m.addSeparator();
- m.add({title : 'advanced.link_desc', icon : 'link', cmd : ed.plugins.advlink ? 'mceAdvLink' : 'mceLink', ui : true});
- m.add({title : 'advanced.unlink_desc', icon : 'unlink', cmd : 'UnLink'});
- }
-
- m.addSeparator();
- m.add({title : 'advanced.image_desc', icon : 'image', cmd : ed.plugins.advimage ? 'mceAdvImage' : 'mceImage', ui : true});
-
- m.addSeparator();
- am = m.addMenu({title : 'contextmenu.align'});
- am.add({title : 'contextmenu.left', icon : 'justifyleft', cmd : 'JustifyLeft'});
- am.add({title : 'contextmenu.center', icon : 'justifycenter', cmd : 'JustifyCenter'});
- am.add({title : 'contextmenu.right', icon : 'justifyright', cmd : 'JustifyRight'});
- am.add({title : 'contextmenu.full', icon : 'justifyfull', cmd : 'JustifyFull'});
-
- t.onContextMenu.dispatch(t, m, el, col);
-
- return m;
- }
- });
-
- // Register plugin
- tinymce.PluginManager.add('contextmenu', tinymce.plugins.ContextMenu);
-})();
-\ No newline at end of file
+(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)})();
+\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/plugins/paste/editor_plugin.js b/chrome/content/zotero/tinymce/plugins/paste/editor_plugin.js
@@ -1,952 +1 @@
-/**
- * editor_plugin_src.js
- *
- * Copyright 2009, Moxiecode Systems AB
- * Released under LGPL License.
- *
- * License: http://tinymce.moxiecode.com/license
- * Contributing: http://tinymce.moxiecode.com/contributing
- */
-
-(function() {
- var each = tinymce.each,
- entities = null,
- defs = {
- paste_auto_cleanup_on_paste : true,
- paste_block_drop : false,
- paste_retain_style_properties : "none",
- paste_strip_class_attributes : "mso",
- paste_remove_spans : false,
- paste_remove_styles : false,
- paste_remove_styles_if_webkit : true,
- paste_convert_middot_lists : true,
- paste_convert_headers_to_strong : false,
- paste_dialog_width : "450",
- paste_dialog_height : "400",
- paste_text_use_dialog : false,
- paste_text_sticky : false,
- paste_text_notifyalways : false,
- paste_text_linebreaktype : "p",
- paste_text_replacements : [
- [/\u2026/g, "..."],
- [/[\x93\x94\u201c\u201d]/g, '"'],
- [/[\x60\x91\x92\u2018\u2019]/g, "'"]
- ]
- };
-
- function getParam(ed, name) {
- return ed.getParam(name, defs[name]);
- }
-
- tinymce.create('tinymce.plugins.PastePlugin', {
- init : function(ed, url) {
- var t = this;
-
- t.editor = ed;
- t.url = url;
-
- // Setup plugin events
- t.onPreProcess = new tinymce.util.Dispatcher(t);
- t.onPostProcess = new tinymce.util.Dispatcher(t);
-
- // Register default handlers
- t.onPreProcess.add(t._preProcess);
- t.onPostProcess.add(t._postProcess);
-
- // Register optional preprocess handler
- t.onPreProcess.add(function(pl, o) {
- ed.execCallback('paste_preprocess', pl, o);
- });
-
- // Register optional postprocess
- t.onPostProcess.add(function(pl, o) {
- ed.execCallback('paste_postprocess', pl, o);
- });
-
- // Initialize plain text flag
- ed.pasteAsPlainText = false;
-
- // This function executes the process handlers and inserts the contents
- // force_rich overrides plain text mode set by user, important for pasting with execCommand
- function process(o, force_rich) {
- var dom = ed.dom;
-
- // Execute pre process handlers
- t.onPreProcess.dispatch(t, o);
-
- // Create DOM structure
- o.node = dom.create('div', 0, o.content);
-
- // Execute post process handlers
- t.onPostProcess.dispatch(t, o);
-
- // Serialize content
- o.content = ed.serializer.serialize(o.node, {getInner : 1});
-
- // Plain text option active?
- if ((!force_rich) && (ed.pasteAsPlainText)) {
- t._insertPlainText(ed, dom, o.content);
-
- if (!getParam(ed, "paste_text_sticky")) {
- ed.pasteAsPlainText = false;
- ed.controlManager.setActive("pastetext", false);
- }
- } else if (/<(p|h[1-6]|ul|ol)/.test(o.content)) {
- // Handle insertion of contents containing block elements separately
- t._insertBlockContent(ed, dom, o.content);
- } else {
- t._insert(o.content);
- }
- }
-
- // Add command for external usage
- ed.addCommand('mceInsertClipboardContent', function(u, o) {
- process(o, true);
- });
-
- if (!getParam(ed, "paste_text_use_dialog")) {
- ed.addCommand('mcePasteText', function(u, v) {
- var cookie = tinymce.util.Cookie;
-
- ed.pasteAsPlainText = !ed.pasteAsPlainText;
- ed.controlManager.setActive('pastetext', ed.pasteAsPlainText);
-
- if ((ed.pasteAsPlainText) && (!cookie.get("tinymcePasteText"))) {
- if (getParam(ed, "paste_text_sticky")) {
- ed.windowManager.alert(ed.translate('paste.plaintext_mode_sticky'));
- } else {
- ed.windowManager.alert(ed.translate('paste.plaintext_mode_sticky'));
- }
-
- if (!getParam(ed, "paste_text_notifyalways")) {
- cookie.set("tinymcePasteText", "1", new Date(new Date().getFullYear() + 1, 12, 31))
- }
- }
- });
- }
-
- ed.addButton('pastetext', {title: 'paste.paste_text_desc', cmd: 'mcePasteText'});
- ed.addButton('selectall', {title: 'paste.selectall_desc', cmd: 'selectall'});
-
- // This function grabs the contents from the clipboard by adding a
- // hidden div and placing the caret inside it and after the browser paste
- // is done it grabs that contents and processes that
- function grabContent(e) {
- var n, or, rng, sel = ed.selection, dom = ed.dom, body = ed.getBody(), posY;
-
- // Check if browser supports direct plaintext access
- if (ed.pasteAsPlainText && (e.clipboardData || dom.doc.dataTransfer)) {
- e.preventDefault();
- process({content : (e.clipboardData || dom.doc.dataTransfer).getData('Text')}, true);
- return;
- }
-
- if (dom.get('_mcePaste'))
- return;
-
- // Create container to paste into
- n = dom.add(body, 'div', {id : '_mcePaste', 'class' : 'mcePaste'}, '\uFEFF<br _mce_bogus="1">');
-
- // If contentEditable mode we need to find out the position of the closest element
- if (body != ed.getDoc().body)
- posY = dom.getPos(ed.selection.getStart(), body).y;
- else
- posY = body.scrollTop;
-
- // Styles needs to be applied after the element is added to the document since WebKit will otherwise remove all styles
- dom.setStyles(n, {
- position : 'absolute',
- left : -10000,
- top : posY,
- width : 1,
- height : 1,
- overflow : 'hidden'
- });
-
- if (tinymce.isIE) {
- // Select the container
- rng = dom.doc.body.createTextRange();
- rng.moveToElementText(n);
- rng.execCommand('Paste');
-
- // Remove container
- dom.remove(n);
-
- // Check if the contents was changed, if it wasn't then clipboard extraction failed probably due
- // to IE security settings so we pass the junk though better than nothing right
- if (n.innerHTML === '\uFEFF') {
- ed.execCommand('mcePasteWord');
- e.preventDefault();
- return;
- }
-
- // Process contents
- process({content : n.innerHTML});
-
- // Block the real paste event
- return tinymce.dom.Event.cancel(e);
- } else {
- function block(e) {
- e.preventDefault();
- };
-
- // Block mousedown and click to prevent selection change
- dom.bind(ed.getDoc(), 'mousedown', block);
- dom.bind(ed.getDoc(), 'keydown', block);
-
- or = ed.selection.getRng();
-
- // Move caret into hidden div
- n = n.firstChild;
- rng = ed.getDoc().createRange();
- rng.setStart(n, 0);
- rng.setEnd(n, 1);
- sel.setRng(rng);
-
- // Wait a while and grab the pasted contents
- window.setTimeout(function() {
- var h = '', nl = dom.select('div.mcePaste');
-
- // WebKit will split the div into multiple ones so this will loop through then all and join them to get the whole HTML string
- each(nl, function(n) {
- var child = n.firstChild;
-
- // WebKit inserts a DIV container with lots of odd styles
- if (child && child.nodeName == 'DIV' && child.style.marginTop && child.style.backgroundColor) {
- dom.remove(child, 1);
- }
-
- // WebKit duplicates the divs so we need to remove them
- each(dom.select('div.mcePaste', n), function(n) {
- dom.remove(n, 1);
- });
-
- // Remove apply style spans
- each(dom.select('span.Apple-style-span', n), function(n) {
- dom.remove(n, 1);
- });
-
- // Remove bogus br elements
- each(dom.select('br[_mce_bogus]', n), function(n) {
- dom.remove(n);
- });
-
- h += n.innerHTML;
- });
-
- // Remove the nodes
- each(nl, function(n) {
- dom.remove(n);
- });
-
- // Restore the old selection
- if (or)
- sel.setRng(or);
-
- process({content : h});
-
- // Unblock events ones we got the contents
- dom.unbind(ed.getDoc(), 'mousedown', block);
- dom.unbind(ed.getDoc(), 'keydown', block);
- }, 0);
- }
- }
-
- // Check if we should use the new auto process method
- if (getParam(ed, "paste_auto_cleanup_on_paste")) {
- // Is it's Opera or older FF use key handler
- if (tinymce.isOpera || /Firefox\/2/.test(navigator.userAgent)) {
- ed.onKeyDown.add(function(ed, e) {
- if (((tinymce.isMac ? e.metaKey : e.ctrlKey) && e.keyCode == 86) || (e.shiftKey && e.keyCode == 45))
- grabContent(e);
- });
- } else {
- // Grab contents on paste event on Gecko and WebKit
- ed.onPaste.addToTop(function(ed, e) {
- return grabContent(e);
- });
- }
- }
-
- // Block all drag/drop events
- if (getParam(ed, "paste_block_drop")) {
- ed.onInit.add(function() {
- ed.dom.bind(ed.getBody(), ['dragend', 'dragover', 'draggesture', 'dragdrop', 'drop', 'drag'], function(e) {
- e.preventDefault();
- e.stopPropagation();
-
- return false;
- });
- });
- }
-
- // Add legacy support
- t._legacySupport();
- },
-
- getInfo : function() {
- return {
- longname : 'Paste text/word',
- author : 'Moxiecode Systems AB',
- authorurl : 'http://tinymce.moxiecode.com',
- infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/paste',
- version : tinymce.majorVersion + "." + tinymce.minorVersion
- };
- },
-
- _preProcess : function(pl, o) {
- //console.log('Before preprocess:' + o.content);
-
- var ed = this.editor,
- h = o.content,
- grep = tinymce.grep,
- explode = tinymce.explode,
- trim = tinymce.trim,
- len, stripClass;
-
- function process(items) {
- each(items, function(v) {
- // Remove or replace
- if (v.constructor == RegExp)
- h = h.replace(v, '');
- else
- h = h.replace(v[0], v[1]);
- });
- }
-
- // Detect Word content and process it more aggressive
- if (/class="?Mso|style="[^"]*\bmso-|w:WordDocument/i.test(h) || o.wordContent) {
- o.wordContent = true; // Mark the pasted contents as word specific content
- //console.log('Word contents detected.');
-
- // Process away some basic content
- process([
- /^\s*( )+/gi, // entities at the start of contents
- /( |<br[^>]*>)+\s*$/gi // entities at the end of contents
- ]);
-
- if (getParam(ed, "paste_convert_headers_to_strong")) {
- h = h.replace(/<p [^>]*class="?MsoHeading"?[^>]*>(.*?)<\/p>/gi, "<p><strong>$1</strong></p>");
- }
-
- if (getParam(ed, "paste_convert_middot_lists")) {
- process([
- [/<!--\[if !supportLists\]-->/gi, '$&__MCE_ITEM__'], // Convert supportLists to a list item marker
- [/(<span[^>]+(?:mso-list:|:\s*symbol)[^>]+>)/gi, '$1__MCE_ITEM__'] // Convert mso-list and symbol spans to item markers
- ]);
- }
-
- process([
- // Word comments like conditional comments etc
- /<!--[\s\S]+?-->/gi,
-
- // Remove comments, scripts (e.g., msoShowComment), XML tag, VML content, MS Office namespaced tags, and a few other tags
- /<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s\/>]))[^>]*>/gi,
-
- // Convert <s> into <strike> for line-though
- [/<(\/?)s>/gi, "<$1strike>"],
-
- // Replace nsbp entites to char since it's easier to handle
- [/ /gi, "\u00a0"]
- ]);
-
- // Remove bad attributes, with or without quotes, ensuring that attribute text is really inside a tag.
- // If JavaScript had a RegExp look-behind, we could have integrated this with the last process() array and got rid of the loop. But alas, it does not, so we cannot.
- do {
- len = h.length;
- h = h.replace(/(<[a-z][^>]*\s)(?:id|name|language|type|on\w+|\w+:\w+)=(?:"[^"]*"|\w+)\s?/gi, "$1");
- } while (len != h.length);
-
- // Remove all spans if no styles is to be retained
- if (getParam(ed, "paste_retain_style_properties").replace(/^none$/i, "").length == 0) {
- h = h.replace(/<\/?span[^>]*>/gi, "");
- } else {
- // We're keeping styles, so at least clean them up.
- // CSS Reference: http://msdn.microsoft.com/en-us/library/aa155477.aspx
-
- process([
- // Convert <span style="mso-spacerun:yes">___</span> to string of alternating breaking/non-breaking spaces of same length
- [/<span\s+style\s*=\s*"\s*mso-spacerun\s*:\s*yes\s*;?\s*"\s*>([\s\u00a0]*)<\/span>/gi,
- function(str, spaces) {
- return (spaces.length > 0)? spaces.replace(/./, " ").slice(Math.floor(spaces.length/2)).split("").join("\u00a0") : "";
- }
- ],
-
- // Examine all styles: delete junk, transform some, and keep the rest
- [/(<[a-z][^>]*)\sstyle="([^"]*)"/gi,
- function(str, tag, style) {
- var n = [],
- i = 0,
- s = explode(trim(style).replace(/"/gi, "'"), ";");
-
- // Examine each style definition within the tag's style attribute
- each(s, function(v) {
- var name, value,
- parts = explode(v, ":");
-
- function ensureUnits(v) {
- return v + ((v !== "0") && (/\d$/.test(v)))? "px" : "";
- }
-
- if (parts.length == 2) {
- name = parts[0].toLowerCase();
- value = parts[1].toLowerCase();
-
- // Translate certain MS Office styles into their CSS equivalents
- switch (name) {
- case "mso-padding-alt":
- case "mso-padding-top-alt":
- case "mso-padding-right-alt":
- case "mso-padding-bottom-alt":
- case "mso-padding-left-alt":
- case "mso-margin-alt":
- case "mso-margin-top-alt":
- case "mso-margin-right-alt":
- case "mso-margin-bottom-alt":
- case "mso-margin-left-alt":
- case "mso-table-layout-alt":
- case "mso-height":
- case "mso-width":
- case "mso-vertical-align-alt":
- n[i++] = name.replace(/^mso-|-alt$/g, "") + ":" + ensureUnits(value);
- return;
-
- case "horiz-align":
- n[i++] = "text-align:" + value;
- return;
-
- case "vert-align":
- n[i++] = "vertical-align:" + value;
- return;
-
- case "font-color":
- case "mso-foreground":
- n[i++] = "color:" + value;
- return;
-
- case "mso-background":
- case "mso-highlight":
- n[i++] = "background:" + value;
- return;
-
- case "mso-default-height":
- n[i++] = "min-height:" + ensureUnits(value);
- return;
-
- case "mso-default-width":
- n[i++] = "min-width:" + ensureUnits(value);
- return;
-
- case "mso-padding-between-alt":
- n[i++] = "border-collapse:separate;border-spacing:" + ensureUnits(value);
- return;
-
- case "text-line-through":
- if ((value == "single") || (value == "double")) {
- n[i++] = "text-decoration:line-through";
- }
- return;
-
- case "mso-zero-height":
- if (value == "yes") {
- n[i++] = "display:none";
- }
- return;
- }
-
- // Eliminate all MS Office style definitions that have no CSS equivalent by examining the first characters in the name
- if (/^(mso|column|font-emph|lang|layout|line-break|list-image|nav|panose|punct|row|ruby|sep|size|src|tab-|table-border|text-(?!align|decor|indent|trans)|top-bar|version|vnd|word-break)/.test(name)) {
- return;
- }
-
- // If it reached this point, it must be a valid CSS style
- n[i++] = name + ":" + parts[1]; // Lower-case name, but keep value case
- }
- });
-
- // If style attribute contained any valid styles the re-write it; otherwise delete style attribute.
- if (i > 0) {
- return tag + ' style="' + n.join(';') + '"';
- } else {
- return tag;
- }
- }
- ]
- ]);
- }
- }
-
- // Replace headers with <strong>
- if (getParam(ed, "paste_convert_headers_to_strong")) {
- process([
- [/<h[1-6][^>]*>/gi, "<p><strong>"],
- [/<\/h[1-6][^>]*>/gi, "</strong></p>"]
- ]);
- }
-
- // Class attribute options are: leave all as-is ("none"), remove all ("all"), or remove only those starting with mso ("mso").
- // Note:- paste_strip_class_attributes: "none", verify_css_classes: true is also a good variation.
- stripClass = getParam(ed, "paste_strip_class_attributes");
-
- if (stripClass !== "none") {
- function removeClasses(match, g1) {
- if (stripClass === "all")
- return '';
-
- var cls = grep(explode(g1.replace(/^(["'])(.*)\1$/, "$2"), " "),
- function(v) {
- return (/^(?!mso)/i.test(v));
- }
- );
-
- return cls.length ? ' class="' + cls.join(" ") + '"' : '';
- };
-
- h = h.replace(/ class="([^"]+)"/gi, removeClasses);
- h = h.replace(/ class=(\w+)/gi, removeClasses);
- }
-
- // Remove spans option
- if (getParam(ed, "paste_remove_spans")) {
- h = h.replace(/<\/?span[^>]*>/gi, "");
- }
-
- //console.log('After preprocess:' + h);
-
- o.content = h;
- },
-
- /**
- * Various post process items.
- */
- _postProcess : function(pl, o) {
- var t = this, ed = t.editor, dom = ed.dom, styleProps;
-
- if (o.wordContent) {
- // Remove named anchors or TOC links
- each(dom.select('a', o.node), function(a) {
- if (!a.href || a.href.indexOf('#_Toc') != -1)
- dom.remove(a, 1);
- });
-
- if (getParam(ed, "paste_convert_middot_lists")) {
- t._convertLists(pl, o);
- }
-
- // Process styles
- styleProps = getParam(ed, "paste_retain_style_properties"); // retained properties
-
- // Process only if a string was specified and not equal to "all" or "*"
- if ((tinymce.is(styleProps, "string")) && (styleProps !== "all") && (styleProps !== "*")) {
- styleProps = tinymce.explode(styleProps.replace(/^none$/i, ""));
-
- // Retains some style properties
- each(dom.select('*', o.node), function(el) {
- var newStyle = {}, npc = 0, i, sp, sv;
-
- // Store a subset of the existing styles
- if (styleProps) {
- for (i = 0; i < styleProps.length; i++) {
- sp = styleProps[i];
- sv = dom.getStyle(el, sp);
-
- if (sv) {
- newStyle[sp] = sv;
- npc++;
- }
- }
- }
-
- // Remove all of the existing styles
- dom.setAttrib(el, 'style', '');
-
- if (styleProps && npc > 0)
- dom.setStyles(el, newStyle); // Add back the stored subset of styles
- else // Remove empty span tags that do not have class attributes
- if (el.nodeName == 'SPAN' && !el.className)
- dom.remove(el, true);
- });
- }
- }
-
- // Remove all style information or only specifically on WebKit to avoid the style bug on that browser
- if (getParam(ed, "paste_remove_styles") || (getParam(ed, "paste_remove_styles_if_webkit") && tinymce.isWebKit)) {
- each(dom.select('*[style]', o.node), function(el) {
- el.removeAttribute('style');
- el.removeAttribute('_mce_style');
- });
- } else {
- if (tinymce.isWebKit) {
- // We need to compress the styles on WebKit since if you paste <img border="0" /> it will become <img border="0" style="... lots of junk ..." />
- // Removing the mce_style that contains the real value will force the Serializer engine to compress the styles
- each(dom.select('*', o.node), function(el) {
- el.removeAttribute('_mce_style');
- });
- }
- }
- },
-
- /**
- * Converts the most common bullet and number formats in Office into a real semantic UL/LI list.
- */
- _convertLists : function(pl, o) {
- var dom = pl.editor.dom, listElm, li, lastMargin = -1, margin, levels = [], lastType, html;
-
- // Convert middot lists into real semantic lists
- each(dom.select('p', o.node), function(p) {
- var sib, val = '', type, html, idx, parents;
-
- // Get text node value at beginning of paragraph
- for (sib = p.firstChild; sib && sib.nodeType == 3; sib = sib.nextSibling)
- val += sib.nodeValue;
-
- val = p.innerHTML.replace(/<\/?\w+[^>]*>/gi, '').replace(/ /g, '\u00a0');
-
- // Detect unordered lists look for bullets
- if (/^(__MCE_ITEM__)+[\u2022\u00b7\u00a7\u00d8o]\s*\u00a0*/.test(val))
- type = 'ul';
-
- // Detect ordered lists 1., a. or ixv.
- if (/^__MCE_ITEM__\s*\w+\.\s*\u00a0{2,}/.test(val))
- type = 'ol';
-
- // Check if node value matches the list pattern: o
- if (type) {
- margin = parseFloat(p.style.marginLeft || 0);
-
- if (margin > lastMargin)
- levels.push(margin);
-
- if (!listElm || type != lastType) {
- listElm = dom.create(type);
- dom.insertAfter(listElm, p);
- } else {
- // Nested list element
- if (margin > lastMargin) {
- listElm = li.appendChild(dom.create(type));
- } else if (margin < lastMargin) {
- // Find parent level based on margin value
- idx = tinymce.inArray(levels, margin);
- parents = dom.getParents(listElm.parentNode, type);
- listElm = parents[parents.length - 1 - idx] || listElm;
- }
- }
-
- // Remove middot or number spans if they exists
- each(dom.select('span', p), function(span) {
- var html = span.innerHTML.replace(/<\/?\w+[^>]*>/gi, '');
-
- // Remove span with the middot or the number
- if (type == 'ul' && /^[\u2022\u00b7\u00a7\u00d8o]/.test(html))
- dom.remove(span);
- else if (/^[\s\S]*\w+\.( |\u00a0)*\s*/.test(html))
- dom.remove(span);
- });
-
- html = p.innerHTML;
-
- // Remove middot/list items
- if (type == 'ul')
- html = p.innerHTML.replace(/__MCE_ITEM__/g, '').replace(/^[\u2022\u00b7\u00a7\u00d8o]\s*( |\u00a0)+\s*/, '');
- else
- html = p.innerHTML.replace(/__MCE_ITEM__/g, '').replace(/^\s*\w+\.( |\u00a0)+\s*/, '');
-
- // Create li and add paragraph data into the new li
- li = listElm.appendChild(dom.create('li', 0, html));
- dom.remove(p);
-
- lastMargin = margin;
- lastType = type;
- } else
- listElm = lastMargin = 0; // End list element
- });
-
- // Remove any left over makers
- html = o.node.innerHTML;
- if (html.indexOf('__MCE_ITEM__') != -1)
- o.node.innerHTML = html.replace(/__MCE_ITEM__/g, '');
- },
-
- /**
- * This method will split the current block parent and insert the contents inside the split position.
- * This logic can be improved so text nodes at the start/end remain in the start/end block elements
- */
- _insertBlockContent : function(ed, dom, content) {
- var parentBlock, marker, sel = ed.selection, last, elm, vp, y, elmHeight, markerId = 'mce_marker';
-
- function select(n) {
- var r;
-
- if (tinymce.isIE) {
- r = ed.getDoc().body.createTextRange();
- r.moveToElementText(n);
- r.collapse(false);
- r.select();
- } else {
- sel.select(n, 1);
- sel.collapse(false);
- }
- }
-
- // Insert a marker for the caret position
- this._insert('<span id="' + markerId + '"></span>', 1);
- marker = dom.get(markerId);
- parentBlock = dom.getParent(marker, 'p,h1,h2,h3,h4,h5,h6,ul,ol,th,td');
-
- // If it's a parent block but not a table cell
- if (parentBlock && !/TD|TH/.test(parentBlock.nodeName)) {
- // Split parent block
- marker = dom.split(parentBlock, marker);
-
- // Insert nodes before the marker
- each(dom.create('div', 0, content).childNodes, function(n) {
- last = marker.parentNode.insertBefore(n.cloneNode(true), marker);
- });
-
- // Move caret after marker
- select(last);
- } else {
- dom.setOuterHTML(marker, content);
- sel.select(ed.getBody(), 1);
- sel.collapse(0);
- }
-
- // Remove marker if it's left
- while (elm = dom.get(markerId))
- dom.remove(elm);
-
- // Get element, position and height
- elm = sel.getStart();
- vp = dom.getViewPort(ed.getWin());
- y = ed.dom.getPos(elm).y;
- elmHeight = elm.clientHeight;
-
- // Is element within viewport if not then scroll it into view
- if (y < vp.y || y + elmHeight > vp.y + vp.h)
- ed.getDoc().body.scrollTop = y < vp.y ? y : y - vp.h + 25;
- },
-
- /**
- * Inserts the specified contents at the caret position.
- */
- _insert : function(h, skip_undo) {
- var ed = this.editor, r = ed.selection.getRng();
-
- // First delete the contents seems to work better on WebKit when the selection spans multiple list items or multiple table cells.
- if (!ed.selection.isCollapsed() && r.startContainer != r.endContainer)
- ed.getDoc().execCommand('Delete', false, null);
-
- // It's better to use the insertHTML method on Gecko since it will combine paragraphs correctly before inserting the contents
- ed.execCommand(tinymce.isGecko ? 'insertHTML' : 'mceInsertContent', false, h, {skip_undo : skip_undo});
- },
-
- /**
- * Instead of the old plain text method which tried to re-create a paste operation, the
- * new approach adds a plain text mode toggle switch that changes the behavior of paste.
- * This function is passed the same input that the regular paste plugin produces.
- * It performs additional scrubbing and produces (and inserts) the plain text.
- * This approach leverages all of the great existing functionality in the paste
- * plugin, and requires minimal changes to add the new functionality.
- * Speednet - June 2009
- */
- _insertPlainText : function(ed, dom, h) {
- var i, len, pos, rpos, node, breakElms, before, after,
- w = ed.getWin(),
- d = ed.getDoc(),
- sel = ed.selection,
- is = tinymce.is,
- inArray = tinymce.inArray,
- linebr = getParam(ed, "paste_text_linebreaktype"),
- rl = getParam(ed, "paste_text_replacements");
-
- function process(items) {
- each(items, function(v) {
- if (v.constructor == RegExp)
- h = h.replace(v, "");
- else
- h = h.replace(v[0], v[1]);
- });
- };
-
- if ((typeof(h) === "string") && (h.length > 0)) {
- if (!entities)
- entities = ("34,quot,38,amp,39,apos,60,lt,62,gt," + ed.serializer.settings.entities).split(",");
-
- // If HTML content with line-breaking tags, then remove all cr/lf chars because only tags will break a line
- if (/<(?:p|br|h[1-6]|ul|ol|dl|table|t[rdh]|div|blockquote|fieldset|pre|address|center)[^>]*>/i.test(h)) {
- process([
- /[\n\r]+/g
- ]);
- } else {
- // Otherwise just get rid of carriage returns (only need linefeeds)
- process([
- /\r+/g
- ]);
- }
-
- process([
- [/<\/(?:p|h[1-6]|ul|ol|dl|table|div|blockquote|fieldset|pre|address|center)>/gi, "\n\n"], // Block tags get a blank line after them
- [/<br[^>]*>|<\/tr>/gi, "\n"], // Single linebreak for <br /> tags and table rows
- [/<\/t[dh]>\s*<t[dh][^>]*>/gi, "\t"], // Table cells get tabs betweem them
- /<[a-z!\/?][^>]*>/gi, // Delete all remaining tags
- [/ /gi, " "], // Convert non-break spaces to regular spaces (remember, *plain text*)
- [
- // HTML entity
- /&(#\d+|[a-z0-9]{1,10});/gi,
-
- // Replace with actual character
- function(e, s) {
- if (s.charAt(0) === "#") {
- return String.fromCharCode(s.slice(1));
- }
- else {
- return ((e = inArray(entities, s)) > 0)? String.fromCharCode(entities[e-1]) : " ";
- }
- }
- ],
- [/(?:(?!\n)\s)*(\n+)(?:(?!\n)\s)*/gi, "$1"], // Cool little RegExp deletes whitespace around linebreak chars.
- [/\n{3,}/g, "\n\n"], // Max. 2 consecutive linebreaks
- /^\s+|\s+$/g // Trim the front & back
- ]);
-
- h = dom.encode(h);
-
- // Delete any highlighted text before pasting
- if (!sel.isCollapsed()) {
- d.execCommand("Delete", false, null);
- }
-
- // Perform default or custom replacements
- if (is(rl, "array") || (is(rl, "array"))) {
- process(rl);
- }
- else if (is(rl, "string")) {
- process(new RegExp(rl, "gi"));
- }
-
- // Treat paragraphs as specified in the config
- if (linebr == "none") {
- process([
- [/\n+/g, " "]
- ]);
- }
- else if (linebr == "br") {
- process([
- [/\n/g, "<br />"]
- ]);
- }
- else {
- process([
- /^\s+|\s+$/g,
- [/\n\n/g, "</p><p>"],
- [/\n/g, "<br />"]
- ]);
- }
-
- // This next piece of code handles the situation where we're pasting more than one paragraph of plain
- // text, and we are pasting the content into the middle of a block node in the editor. The block
- // node gets split at the selection point into "Para A" and "Para B" (for the purposes of explaining).
- // The first paragraph of the pasted text is appended to "Para A", and the last paragraph of the
- // pasted text is prepended to "Para B". Any other paragraphs of pasted text are placed between
- // "Para A" and "Para B". This code solves a host of problems with the original plain text plugin and
- // now handles styles correctly. (Pasting plain text into a styled paragraph is supposed to make the
- // plain text take the same style as the existing paragraph.)
- if ((pos = h.indexOf("</p><p>")) != -1) {
- rpos = h.lastIndexOf("</p><p>");
- node = sel.getNode();
- breakElms = []; // Get list of elements to break
-
- do {
- if (node.nodeType == 1) {
- // Don't break tables and break at body
- if (node.nodeName == "TD" || node.nodeName == "BODY") {
- break;
- }
-
- breakElms[breakElms.length] = node;
- }
- } while (node = node.parentNode);
-
- // Are we in the middle of a block node?
- if (breakElms.length > 0) {
- before = h.substring(0, pos);
- after = "";
-
- for (i=0, len=breakElms.length; i<len; i++) {
- before += "</" + breakElms[i].nodeName.toLowerCase() + ">";
- after += "<" + breakElms[breakElms.length-i-1].nodeName.toLowerCase() + ">";
- }
-
- if (pos == rpos) {
- h = before + after + h.substring(pos+7);
- }
- else {
- h = before + h.substring(pos+4, rpos+4) + after + h.substring(rpos+7);
- }
- }
- }
-
- // Insert content at the caret, plus add a marker for repositioning the caret
- ed.execCommand("mceInsertRawHTML", false, h + '<span id="_plain_text_marker"> </span>');
-
- // Reposition the caret to the marker, which was placed immediately after the inserted content.
- // Needs to be done asynchronously (in window.setTimeout) or else it doesn't work in all browsers.
- // The second part of the code scrolls the content up if the caret is positioned off-screen.
- // This is only necessary for WebKit browsers, but it doesn't hurt to use for all.
- window.setTimeout(function() {
- var marker = dom.get('_plain_text_marker'),
- elm, vp, y, elmHeight;
-
- sel.select(marker, false);
- d.execCommand("Delete", false, null);
- marker = null;
-
- // Get element, position and height
- elm = sel.getStart();
- vp = dom.getViewPort(w);
- y = dom.getPos(elm).y;
- elmHeight = elm.clientHeight;
-
- // Is element within viewport if not then scroll it into view
- if ((y < vp.y) || (y + elmHeight > vp.y + vp.h)) {
- d.body.scrollTop = y < vp.y ? y : y - vp.h + 25;
- }
- }, 0);
- }
- },
-
- /**
- * This method will open the old style paste dialogs. Some users might want the old behavior but still use the new cleanup engine.
- */
- _legacySupport : function() {
- var t = this, ed = t.editor;
-
- // Register command(s) for backwards compatibility
- ed.addCommand("mcePasteWord", function() {
- ed.windowManager.open({
- file: t.url + "/pasteword.htm",
- width: parseInt(getParam(ed, "paste_dialog_width")),
- height: parseInt(getParam(ed, "paste_dialog_height")),
- inline: 1
- });
- });
-
- if (getParam(ed, "paste_text_use_dialog")) {
- ed.addCommand("mcePasteText", function() {
- ed.windowManager.open({
- file : t.url + "/pastetext.htm",
- width: parseInt(getParam(ed, "paste_dialog_width")),
- height: parseInt(getParam(ed, "paste_dialog_height")),
- inline : 1
- });
- });
- }
-
- // Register button for backwards compatibility
- ed.addButton("pasteword", {title : "paste.paste_word_desc", cmd : "mcePasteWord"});
- }
- });
-
- // Register plugin
- tinymce.PluginManager.add("paste", tinymce.plugins.PastePlugin);
-})();
+(function(){var c=tinymce.each,a={paste_auto_cleanup_on_paste:true,paste_enable_default_filters:true,paste_block_drop:false,paste_retain_style_properties:"none",paste_strip_class_attributes:"mso",paste_remove_spans:false,paste_remove_styles:false,paste_remove_styles_if_webkit:true,paste_convert_middot_lists:true,paste_convert_headers_to_strong:false,paste_dialog_width:"450",paste_dialog_height:"400",paste_max_consecutive_linebreaks:2,paste_text_use_dialog:false,paste_text_sticky:false,paste_text_sticky_default:false,paste_text_notifyalways:false,paste_text_linebreaktype:"combined",paste_text_replacements:[[/\u2026/g,"..."],[/[\x93\x94\u201c\u201d]/g,'"'],[/[\x60\x91\x92\u2018\u2019]/g,"'"]]};function b(d,e){return d.getParam(e,a[e])}tinymce.create("tinymce.plugins.PastePlugin",{init:function(d,e){var f=this;f.editor=d;f.url=e;f.onPreProcess=new tinymce.util.Dispatcher(f);f.onPostProcess=new tinymce.util.Dispatcher(f);f.onPreProcess.add(f._preProcess);f.onPostProcess.add(f._postProcess);f.onPreProcess.add(function(i,j){d.execCallback("paste_preprocess",i,j)});f.onPostProcess.add(function(i,j){d.execCallback("paste_postprocess",i,j)});d.onKeyDown.addToTop(function(i,j){if(((tinymce.isMac?j.metaKey:j.ctrlKey)&&j.keyCode==86)||(j.shiftKey&&j.keyCode==45)){return false}});d.pasteAsPlainText=b(d,"paste_text_sticky_default");function h(l,j){var k=d.dom,i;f.onPreProcess.dispatch(f,l);l.node=k.create("div",0,l.content);if(tinymce.isGecko){i=d.selection.getRng(true);if(i.startContainer==i.endContainer&&i.startContainer.nodeType==3){if(l.node.childNodes.length===1&&/^(p|h[1-6]|pre)$/i.test(l.node.firstChild.nodeName)&&l.content.indexOf("__MCE_ITEM__")===-1){k.remove(l.node.firstChild,true)}}}f.onPostProcess.dispatch(f,l);l.content=d.serializer.serialize(l.node,{getInner:1,forced_root_block:""});if((!j)&&(d.pasteAsPlainText)){f._insertPlainText(l.content);if(!b(d,"paste_text_sticky")){d.pasteAsPlainText=false;d.controlManager.setActive("pastetext",false)}}else{f._insert(l.content)}}d.addCommand("mceInsertClipboardContent",function(i,j){h(j,true)});if(!b(d,"paste_text_use_dialog")){d.addCommand("mcePasteText",function(j,i){var k=tinymce.util.Cookie;d.pasteAsPlainText=!d.pasteAsPlainText;d.controlManager.setActive("pastetext",d.pasteAsPlainText);if((d.pasteAsPlainText)&&(!k.get("tinymcePasteText"))){if(b(d,"paste_text_sticky")){d.windowManager.alert(d.translate("paste.plaintext_mode_sticky"))}else{d.windowManager.alert(d.translate("paste.plaintext_mode"))}if(!b(d,"paste_text_notifyalways")){k.set("tinymcePasteText","1",new Date(new Date().getFullYear()+1,12,31))}}})}d.addButton("pastetext",{title:"paste.paste_text_desc",cmd:"mcePasteText"});d.addButton("selectall",{title:"paste.selectall_desc",cmd:"selectall"});function g(s){var l,p,j,t,k=d.selection,o=d.dom,q=d.getBody(),i,r;if(s.clipboardData||o.doc.dataTransfer){r=(s.clipboardData||o.doc.dataTransfer).getData("Text");if(d.pasteAsPlainText){s.preventDefault();h({content:o.encode(r).replace(/\r?\n/g,"<br />")});return}}if(o.get("_mcePaste")){return}l=o.add(q,"div",{id:"_mcePaste","class":"mcePaste","data-mce-bogus":"1"},"\uFEFF\uFEFF");if(q!=d.getDoc().body){i=o.getPos(d.selection.getStart(),q).y}else{i=q.scrollTop+o.getViewPort(d.getWin()).y}o.setStyles(l,{position:"absolute",left:tinymce.isGecko?-40:0,top:i-25,width:1,height:1,overflow:"hidden"});if(tinymce.isIE){t=k.getRng();j=o.doc.body.createTextRange();j.moveToElementText(l);j.execCommand("Paste");o.remove(l);if(l.innerHTML==="\uFEFF\uFEFF"){d.execCommand("mcePasteWord");s.preventDefault();return}k.setRng(t);k.setContent("");setTimeout(function(){h({content:l.innerHTML})},0);return tinymce.dom.Event.cancel(s)}else{function m(n){n.preventDefault()}o.bind(d.getDoc(),"mousedown",m);o.bind(d.getDoc(),"keydown",m);p=d.selection.getRng();l=l.firstChild;j=d.getDoc().createRange();j.setStart(l,0);j.setEnd(l,2);k.setRng(j);window.setTimeout(function(){var u="",n;if(!o.select("div.mcePaste > div.mcePaste").length){n=o.select("div.mcePaste");c(n,function(w){var v=w.firstChild;if(v&&v.nodeName=="DIV"&&v.style.marginTop&&v.style.backgroundColor){o.remove(v,1)}c(o.select("span.Apple-style-span",w),function(x){o.remove(x,1)});c(o.select("br[data-mce-bogus]",w),function(x){o.remove(x)});if(w.parentNode.className!="mcePaste"){u+=w.innerHTML}})}else{u="<p>"+o.encode(r).replace(/\r?\n\r?\n/g,"</p><p>").replace(/\r?\n/g,"<br />")+"</p>"}c(o.select("div.mcePaste"),function(v){o.remove(v)});if(p){k.setRng(p)}h({content:u});o.unbind(d.getDoc(),"mousedown",m);o.unbind(d.getDoc(),"keydown",m)},0)}}if(b(d,"paste_auto_cleanup_on_paste")){if(tinymce.isOpera||/Firefox\/2/.test(navigator.userAgent)){d.onKeyDown.addToTop(function(i,j){if(((tinymce.isMac?j.metaKey:j.ctrlKey)&&j.keyCode==86)||(j.shiftKey&&j.keyCode==45)){g(j)}})}else{d.onPaste.addToTop(function(i,j){return g(j)})}}d.onInit.add(function(){d.controlManager.setActive("pastetext",d.pasteAsPlainText);if(b(d,"paste_block_drop")){d.dom.bind(d.getBody(),["dragend","dragover","draggesture","dragdrop","drop","drag"],function(i){i.preventDefault();i.stopPropagation();return false})}});f._legacySupport()},getInfo:function(){return{longname:"Paste text/word",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/paste",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_preProcess:function(g,e){var k=this.editor,j=e.content,p=tinymce.grep,n=tinymce.explode,f=tinymce.trim,l,i;function d(h){c(h,function(o){if(o.constructor==RegExp){j=j.replace(o,"")}else{j=j.replace(o[0],o[1])}})}if(k.settings.paste_enable_default_filters==false){return}if(tinymce.isIE&&document.documentMode>=9&&/<(h[1-6r]|p|div|address|pre|form|table|tbody|thead|tfoot|th|tr|td|li|ol|ul|caption|blockquote|center|dl|dt|dd|dir|fieldset)/.test(e.content)){d([[/(?:<br> [\s\r\n]+|<br>)*(<\/?(h[1-6r]|p|div|address|pre|form|table|tbody|thead|tfoot|th|tr|td|li|ol|ul|caption|blockquote|center|dl|dt|dd|dir|fieldset)[^>]*>)(?:<br> [\s\r\n]+|<br>)*/g,"$1"]]);d([[/<br><br>/g,"<BR><BR>"],[/<br>/g," "],[/<BR><BR>/g,"<br>"]])}if(/class="?Mso|style="[^"]*\bmso-|w:WordDocument/i.test(j)||e.wordContent){e.wordContent=true;d([/^\s*( )+/gi,/( |<br[^>]*>)+\s*$/gi]);if(b(k,"paste_convert_headers_to_strong")){j=j.replace(/<p [^>]*class="?MsoHeading"?[^>]*>(.*?)<\/p>/gi,"<p><strong>$1</strong></p>")}if(b(k,"paste_convert_middot_lists")){d([[/<!--\[if !supportLists\]-->/gi,"$&__MCE_ITEM__"],[/(<span[^>]+(?:mso-list:|:\s*symbol)[^>]+>)/gi,"$1__MCE_ITEM__"],[/(<p[^>]+(?:MsoListParagraph)[^>]+>)/gi,"$1__MCE_ITEM__"]])}d([/<!--[\s\S]+?-->/gi,/<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s\/>]))[^>]*>/gi,[/<(\/?)s>/gi,"<$1strike>"],[/ /gi,"\u00a0"]]);do{l=j.length;j=j.replace(/(<[a-z][^>]*\s)(?:id|name|language|type|on\w+|\w+:\w+)=(?:"[^"]*"|\w+)\s?/gi,"$1")}while(l!=j.length);if(b(k,"paste_retain_style_properties").replace(/^none$/i,"").length==0){j=j.replace(/<\/?span[^>]*>/gi,"")}else{d([[/<span\s+style\s*=\s*"\s*mso-spacerun\s*:\s*yes\s*;?\s*"\s*>([\s\u00a0]*)<\/span>/gi,function(o,h){return(h.length>0)?h.replace(/./," ").slice(Math.floor(h.length/2)).split("").join("\u00a0"):""}],[/(<[a-z][^>]*)\sstyle="([^"]*)"/gi,function(t,h,r){var u=[],o=0,q=n(f(r).replace(/"/gi,"'"),";");c(q,function(s){var w,y,z=n(s,":");function x(A){return A+((A!=="0")&&(/\d$/.test(A)))?"px":""}if(z.length==2){w=z[0].toLowerCase();y=z[1].toLowerCase();switch(w){case"mso-padding-alt":case"mso-padding-top-alt":case"mso-padding-right-alt":case"mso-padding-bottom-alt":case"mso-padding-left-alt":case"mso-margin-alt":case"mso-margin-top-alt":case"mso-margin-right-alt":case"mso-margin-bottom-alt":case"mso-margin-left-alt":case"mso-table-layout-alt":case"mso-height":case"mso-width":case"mso-vertical-align-alt":u[o++]=w.replace(/^mso-|-alt$/g,"")+":"+x(y);return;case"horiz-align":u[o++]="text-align:"+y;return;case"vert-align":u[o++]="vertical-align:"+y;return;case"font-color":case"mso-foreground":u[o++]="color:"+y;return;case"mso-background":case"mso-highlight":u[o++]="background:"+y;return;case"mso-default-height":u[o++]="min-height:"+x(y);return;case"mso-default-width":u[o++]="min-width:"+x(y);return;case"mso-padding-between-alt":u[o++]="border-collapse:separate;border-spacing:"+x(y);return;case"text-line-through":if((y=="single")||(y=="double")){u[o++]="text-decoration:line-through"}return;case"mso-zero-height":if(y=="yes"){u[o++]="display:none"}return}if(/^(mso|column|font-emph|lang|layout|line-break|list-image|nav|panose|punct|row|ruby|sep|size|src|tab-|table-border|text-(?!align|decor|indent|trans)|top-bar|version|vnd|word-break)/.test(w)){return}u[o++]=w+":"+z[1]}});if(o>0){return h+' style="'+u.join(";")+'"'}else{return h}}]])}}if(b(k,"paste_convert_headers_to_strong")){d([[/<h[1-6][^>]*>/gi,"<p><strong>"],[/<\/h[1-6][^>]*>/gi,"</strong></p>"]])}d([[/Version:[\d.]+\nStartHTML:\d+\nEndHTML:\d+\nStartFragment:\d+\nEndFragment:\d+/gi,""]]);i=b(k,"paste_strip_class_attributes");if(i!=="none"){function m(q,o){if(i==="all"){return""}var h=p(n(o.replace(/^(["'])(.*)\1$/,"$2")," "),function(r){return(/^(?!mso)/i.test(r))});return h.length?' class="'+h.join(" ")+'"':""}j=j.replace(/ class="([^"]+)"/gi,m);j=j.replace(/ class=([\-\w]+)/gi,m)}if(b(k,"paste_remove_spans")){j=j.replace(/<\/?span[^>]*>/gi,"")}e.content=j},_postProcess:function(g,i){var f=this,e=f.editor,h=e.dom,d;if(e.settings.paste_enable_default_filters==false){return}if(i.wordContent){c(h.select("a",i.node),function(j){if(!j.href||j.href.indexOf("#_Toc")!=-1){h.remove(j,1)}});if(b(e,"paste_convert_middot_lists")){f._convertLists(g,i)}d=b(e,"paste_retain_style_properties");if((tinymce.is(d,"string"))&&(d!=="all")&&(d!=="*")){d=tinymce.explode(d.replace(/^none$/i,""));c(h.select("*",i.node),function(m){var n={},k=0,l,o,j;if(d){for(l=0;l<d.length;l++){o=d[l];j=h.getStyle(m,o);if(j){n[o]=j;k++}}}h.setAttrib(m,"style","");if(d&&k>0){h.setStyles(m,n)}else{if(m.nodeName=="SPAN"&&!m.className){h.remove(m,true)}}})}}if(b(e,"paste_remove_styles")||(b(e,"paste_remove_styles_if_webkit")&&tinymce.isWebKit)){c(h.select("*[style]",i.node),function(j){j.removeAttribute("style");j.removeAttribute("data-mce-style")})}else{if(tinymce.isWebKit){c(h.select("*",i.node),function(j){j.removeAttribute("data-mce-style")})}}},_convertLists:function(g,e){var i=g.editor.dom,h,l,d=-1,f,m=[],k,j;c(i.select("p",e.node),function(t){var q,u="",s,r,n,o;for(q=t.firstChild;q&&q.nodeType==3;q=q.nextSibling){u+=q.nodeValue}u=t.innerHTML.replace(/<\/?\w+[^>]*>/gi,"").replace(/ /g,"\u00a0");if(/^(__MCE_ITEM__)+[\u2022\u00b7\u00a7\u00d8o\u25CF]\s*\u00a0*/.test(u)){s="ul"}if(/^__MCE_ITEM__\s*\w+\.\s*\u00a0+/.test(u)){s="ol"}if(s){f=parseFloat(t.style.marginLeft||0);if(f>d){m.push(f)}if(!h||s!=k){h=i.create(s);i.insertAfter(h,t)}else{if(f>d){h=l.appendChild(i.create(s))}else{if(f<d){n=tinymce.inArray(m,f);o=i.getParents(h.parentNode,s);h=o[o.length-1-n]||h}}}c(i.select("span",t),function(v){var p=v.innerHTML.replace(/<\/?\w+[^>]*>/gi,"");if(s=="ul"&&/^__MCE_ITEM__[\u2022\u00b7\u00a7\u00d8o\u25CF]/.test(p)){i.remove(v)}else{if(/^__MCE_ITEM__[\s\S]*\w+\.( |\u00a0)*\s*/.test(p)){i.remove(v)}}});r=t.innerHTML;if(s=="ul"){r=t.innerHTML.replace(/__MCE_ITEM__/g,"").replace(/^[\u2022\u00b7\u00a7\u00d8o\u25CF]\s*( |\u00a0)+\s*/,"")}else{r=t.innerHTML.replace(/__MCE_ITEM__/g,"").replace(/^\s*\w+\.( |\u00a0)+\s*/,"")}l=h.appendChild(i.create("li",0,r));i.remove(t);d=f;k=s}else{h=d=0}});j=e.node.innerHTML;if(j.indexOf("__MCE_ITEM__")!=-1){e.node.innerHTML=j.replace(/__MCE_ITEM__/g,"")}},_insert:function(f,d){var e=this.editor,g=e.selection.getRng();if(!e.selection.isCollapsed()&&g.startContainer!=g.endContainer){e.getDoc().execCommand("Delete",false,null)}e.execCommand("mceInsertContent",false,f,{skip_undo:d})},_insertPlainText:function(j){var h=this.editor,f=b(h,"paste_text_linebreaktype"),k=b(h,"paste_text_replacements"),g=tinymce.is;function e(m){c(m,function(n){if(n.constructor==RegExp){j=j.replace(n,"")}else{j=j.replace(n[0],n[1])}})}if((typeof(j)==="string")&&(j.length>0)){if(/<(?:p|br|h[1-6]|ul|ol|dl|table|t[rdh]|div|blockquote|fieldset|pre|address|center)[^>]*>/i.test(j)){e([/[\n\r]+/g])}else{e([/\r+/g])}e([[/<\/(?:p|h[1-6]|ul|ol|dl|table|div|blockquote|fieldset|pre|address|center)>/gi,"\n\n"],[/<br[^>]*>|<\/tr>/gi,"\n"],[/<\/t[dh]>\s*<t[dh][^>]*>/gi,"\t"],/<[a-z!\/?][^>]*>/gi,[/ /gi," "],[/(?:(?!\n)\s)*(\n+)(?:(?!\n)\s)*/gi,"$1"]]);var d=Number(b(h,"paste_max_consecutive_linebreaks"));if(d>-1){var l=new RegExp("\n{"+(d+1)+",}","g");var i="";while(i.length<d){i+="\n"}e([[l,i]])}j=h.dom.decode(tinymce.html.Entities.encodeRaw(j));if(g(k,"array")){e(k)}else{if(g(k,"string")){e(new RegExp(k,"gi"))}}if(f=="none"){e([[/\n+/g," "]])}else{if(f=="br"){e([[/\n/g,"<br />"]])}else{if(f=="p"){e([[/\n+/g,"</p><p>"],[/^(.*<\/p>)(<p>)$/,"<p>$1"]])}else{e([[/\n\n/g,"</p><p>"],[/^(.*<\/p>)(<p>)$/,"<p>$1"],[/\n/g,"<br />"]])}}}h.execCommand("mceInsertContent",false,j)}},_legacySupport:function(){var e=this,d=e.editor;d.addCommand("mcePasteWord",function(){d.windowManager.open({file:e.url+"/pasteword.htm",width:parseInt(b(d,"paste_dialog_width")),height:parseInt(b(d,"paste_dialog_height")),inline:1})});if(b(d,"paste_text_use_dialog")){d.addCommand("mcePasteText",function(){d.windowManager.open({file:e.url+"/pastetext.htm",width:parseInt(b(d,"paste_dialog_width")),height:parseInt(b(d,"paste_dialog_height")),inline:1})})}d.addButton("pasteword",{title:"paste.paste_word_desc",cmd:"mcePasteWord"})}});tinymce.PluginManager.add("paste",tinymce.plugins.PastePlugin)})();
+\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/about.htm b/chrome/content/zotero/tinymce/themes/advanced/about.htm
@@ -9,9 +9,9 @@
<body id="about" style="display: none">
<div class="tabs">
<ul>
- <li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advanced_dlg.about_general}</a></span></li>
- <li id="help_tab" style="display:none"><span><a href="javascript:mcTabs.displayTab('help_tab','help_panel');" onmousedown="return false;">{#advanced_dlg.about_help}</a></span></li>
- <li id="plugins_tab"><span><a href="javascript:mcTabs.displayTab('plugins_tab','plugins_panel');" onmousedown="return false;">{#advanced_dlg.about_plugins}</a></span></li>
+ <li id="general_tab" class="current" aria-controls="general_panel"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advanced_dlg.about_general}</a></span></li>
+ <li id="help_tab" style="display:none" aria-hidden="true" aria-controls="help_panel"><span><a href="javascript:mcTabs.displayTab('help_tab','help_panel');" onmousedown="return false;">{#advanced_dlg.about_help}</a></span></li>
+ <li id="plugins_tab" aria-controls="plugins_panel"><span><a href="javascript:mcTabs.displayTab('plugins_tab','plugins_panel');" onmousedown="return false;">{#advanced_dlg.about_plugins}</a></span></li>
</ul>
</div>
@@ -26,8 +26,6 @@
<div id="buttoncontainer">
<a href="http://www.moxiecode.com" target="_blank"><img src="http://tinymce.moxiecode.com/images/gotmoxie.png" alt="Got Moxie?" border="0" /></a>
- <a href="http://sourceforge.net/projects/tinymce/" target="_blank"><img src="http://sourceforge.net/sflogo.php?group_id=103281" alt="Hosted By Sourceforge" border="0" /></a>
- <a href="http://www.freshmeat.net/projects/tinymce" target="_blank"><img src="http://tinymce.moxiecode.com/images/fm.gif" alt="Also on freshmeat" border="0" /></a>
</div>
</div>
diff --git a/chrome/content/zotero/tinymce/themes/advanced/anchor.htm b/chrome/content/zotero/tinymce/themes/advanced/anchor.htm
@@ -5,15 +5,15 @@
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
<script type="text/javascript" src="js/anchor.js"></script>
</head>
-<body style="display: none">
+<body style="display: none" role="application" aria-labelledby="app_title">
<form onsubmit="AnchorDialog.update();return false;" action="#">
- <table border="0" cellpadding="4" cellspacing="0">
+ <table border="0" cellpadding="4" cellspacing="0" role="presentation">
<tr>
- <td colspan="2" class="title">{#advanced_dlg.anchor_title}</td>
+ <td colspan="2" class="title" id="app_title">{#advanced_dlg.anchor_title}</td>
</tr>
<tr>
- <td class="nowrap">{#advanced_dlg.anchor_name}:</td>
- <td><input name="anchorName" type="text" class="mceFocus" id="anchorName" value="" style="width: 200px" /></td>
+ <td class="nowrap"><label for="anchorName">{#advanced_dlg.anchor_name}:</label></td>
+ <td><input name="anchorName" type="text" class="mceFocus" id="anchorName" value="" style="width: 200px" aria-required="true" /></td>
</tr>
</table>
diff --git a/chrome/content/zotero/tinymce/themes/advanced/charmap.htm b/chrome/content/zotero/tinymce/themes/advanced/charmap.htm
@@ -5,48 +5,51 @@
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
<script type="text/javascript" src="js/charmap.js"></script>
</head>
-<body id="charmap" style="display:none">
-<table align="center" border="0" cellspacing="0" cellpadding="2">
- <tr>
- <td colspan="2" class="title">{#advanced_dlg.charmap_title}</td>
- </tr>
- <tr>
- <td id="charmapView" rowspan="2" align="left" valign="top">
+<body id="charmap" style="display:none" role="application">
+<table align="center" border="0" cellspacing="0" cellpadding="2" role="presentation">
+ <tr>
+ <td colspan="2" class="title" ><label for="charmapView" id="charmap_label">{#advanced_dlg.charmap_title}</label></td>
+ </tr>
+ <tr>
+ <td id="charmapView" rowspan="2" align="left" valign="top">
<!-- Chars will be rendered here -->
- </td>
- <td width="100" align="center" valign="top">
- <table border="0" cellpadding="0" cellspacing="0" width="100" style="height:100px">
- <tr>
- <td id="codeV"> </td>
- </tr>
- <tr>
- <td id="codeN"> </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td valign="bottom" style="padding-bottom: 3px;">
- <table width="100" align="center" border="0" cellpadding="2" cellspacing="0">
- <tr>
- <td align="center" style="border-left: 1px solid #666699; border-top: 1px solid #666699; border-right: 1px solid #666699;">HTML-Code</td>
- </tr>
- <tr>
- <td style="font-size: 16px; font-weight: bold; border-left: 1px solid #666699; border-bottom: 1px solid #666699; border-right: 1px solid #666699;" id="codeA" align="center"> </td>
- </tr>
- <tr>
- <td style="font-size: 1px;"> </td>
- </tr>
- <tr>
- <td align="center" style="border-left: 1px solid #666699; border-top: 1px solid #666699; border-right: 1px solid #666699;">NUM-Code</td>
- </tr>
- <tr>
- <td style="font-size: 16px; font-weight: bold; border-left: 1px solid #666699; border-bottom: 1px solid #666699; border-right: 1px solid #666699;" id="codeB" align="center"> </td>
- </tr>
- </table>
- </td>
- </tr>
+ </td>
+ <td width="100" align="center" valign="top">
+ <table border="0" cellpadding="0" cellspacing="0" width="100" style="height:100px" role="presentation">
+ <tr>
+ <td id="codeV"> </td>
+ </tr>
+ <tr>
+ <td id="codeN"> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td valign="bottom" style="padding-bottom: 3px;">
+ <table width="100" align="center" border="0" cellpadding="2" cellspacing="0" role="presentation">
+ <tr>
+ <td align="center" style="border-left: 1px solid #666699; border-top: 1px solid #666699; border-right: 1px solid #666699;"><label for="codeA">HTML-Code</label></td>
+ </tr>
+ <tr>
+ <td style="font-size: 16px; font-weight: bold; border-left: 1px solid #666699; border-bottom: 1px solid #666699; border-right: 1px solid #666699;" id="codeA" align="center"> </td>
+ </tr>
+ <tr>
+ <td style="font-size: 1px;"> </td>
+ </tr>
+ <tr>
+ <td align="center" style="border-left: 1px solid #666699; border-top: 1px solid #666699; border-right: 1px solid #666699;"><label for="codeB">NUM-Code</label></td>
+ </tr>
+ <tr>
+ <td style="font-size: 16px; font-weight: bold; border-left: 1px solid #666699; border-bottom: 1px solid #666699; border-right: 1px solid #666699;" id="codeB" align="center"> </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2" id="charmap_usage">{#advanced_dlg.charmap_usage}</td>
+ </tr>
+
</table>
-
</body>
</html>
diff --git a/chrome/content/zotero/tinymce/themes/advanced/color_picker.htm b/chrome/content/zotero/tinymce/themes/advanced/color_picker.htm
@@ -6,13 +6,14 @@
<script type="text/javascript" src="../../utils/mctabs.js"></script>
<script type="text/javascript" src="js/color_picker.js"></script>
</head>
-<body id="colorpicker" style="display: none">
+<body id="colorpicker" style="display: none" role="application" aria-labelledby="app_label">
+ <span class="mceVoiceLabel" id="app_label" style="display:none;">{#advanced_dlg.colorpicker_title}</span>
<form onsubmit="insertAction();return false" action="#">
<div class="tabs">
<ul>
- <li id="picker_tab" class="current"><span><a href="javascript:mcTabs.displayTab('picker_tab','picker_panel');" onmousedown="return false;">{#advanced_dlg.colorpicker_picker_tab}</a></span></li>
- <li id="rgb_tab"><span><a href="javascript:;" onclick="generateWebColors();mcTabs.displayTab('rgb_tab','rgb_panel');" onmousedown="return false;">{#advanced_dlg.colorpicker_palette_tab}</a></span></li>
- <li id="named_tab"><span><a href="javascript:;" onclick="generateNamedColors();javascript:mcTabs.displayTab('named_tab','named_panel');" onmousedown="return false;">{#advanced_dlg.colorpicker_named_tab}</a></span></li>
+ <li id="picker_tab" aria-controls="picker_panel" class="current"><span><a href="javascript:mcTabs.displayTab('picker_tab','picker_panel');" onmousedown="return false;">{#advanced_dlg.colorpicker_picker_tab}</a></span></li>
+ <li id="rgb_tab" aria-controls="rgb_panel"><span><a href="javascript:;" onclick="mcTabs.displayTab('rgb_tab','rgb_panel');" onmousedown="return false;">{#advanced_dlg.colorpicker_palette_tab}</a></span></li>
+ <li id="named_tab" aria-controls="named_panel"><span><a href="javascript:;" onclick="javascript:mcTabs.displayTab('named_tab','named_panel');" onmousedown="return false;">{#advanced_dlg.colorpicker_named_tab}</a></span></li>
</ul>
</div>
@@ -34,7 +35,7 @@
<div id="rgb_panel" class="panel">
<fieldset>
- <legend>{#advanced_dlg.colorpicker_palette_title}</legend>
+ <legend id="webcolors_title">{#advanced_dlg.colorpicker_palette_title}</legend>
<div id="webcolors">
<!-- Gets filled with web safe colors-->
</div>
@@ -44,9 +45,9 @@
</div>
<div id="named_panel" class="panel">
- <fieldset>
- <legend>{#advanced_dlg.colorpicker_named_title}</legend>
- <div id="namedcolors">
+ <fieldset id="named_picker_label">
+ <legend id="named_title">{#advanced_dlg.colorpicker_named_title}</legend>
+ <div id="namedcolors" role="listbox" tabindex="0" aria-labelledby="named_picker_label">
<!-- Gets filled with named colors-->
</div>
@@ -61,12 +62,8 @@
<div class="mceActionPanel">
<input type="submit" id="insert" name="insert" value="{#apply}" />
-
- <div id="preview"></div>
-
- <div id="previewblock">
- <label for="color">{#advanced_dlg.colorpicker_color}</label> <input id="color" type="text" size="8" maxlength="8" class="text mceFocus" />
- </div>
+ <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();"/>
+ <div id="preview_wrapper"><div id="previewblock"><label for="color">{#advanced_dlg.colorpicker_color}</label> <input id="color" type="text" size="8" class="text mceFocus" aria-required="true" /></div><span id="preview"></span></div>
</div>
</form>
</body>
diff --git a/chrome/content/zotero/tinymce/themes/advanced/editor_template.js b/chrome/content/zotero/tinymce/themes/advanced/editor_template.js
@@ -1 +1 @@
-(function(e){var d=e.DOM,b=e.dom.Event,h=e.extend,f=e.each,a=e.util.Cookie,g,c=e.explode;e.ThemeManager.requireLangPack("advanced");e.create("tinymce.themes.AdvancedTheme",{sizes:[8,10,12,14,18,24,36],controls:{bold:["bold_desc","Bold"],italic:["italic_desc","Italic"],underline:["underline_desc","Underline"],strikethrough:["striketrough_desc","Strikethrough"],justifyleft:["justifyleft_desc","JustifyLeft"],justifycenter:["justifycenter_desc","JustifyCenter"],justifyright:["justifyright_desc","JustifyRight"],justifyfull:["justifyfull_desc","JustifyFull"],bullist:["bullist_desc","InsertUnorderedList"],numlist:["numlist_desc","InsertOrderedList"],outdent:["outdent_desc","Outdent"],indent:["indent_desc","Indent"],cut:["cut_desc","Cut"],copy:["copy_desc","Copy"],paste:["paste_desc","Paste"],undo:["undo_desc","Undo"],redo:["redo_desc","Redo"],link:["link_desc","mceLink"],unlink:["unlink_desc","unlink"],image:["image_desc","mceImage"],cleanup:["cleanup_desc","mceCleanup"],help:["help_desc","mceHelp"],code:["code_desc","mceCodeEditor"],hr:["hr_desc","InsertHorizontalRule"],removeformat:["removeformat_desc","RemoveFormat"],sub:["sub_desc","subscript"],sup:["sup_desc","superscript"],forecolor:["forecolor_desc","ForeColor"],forecolorpicker:["forecolor_desc","mceForeColor"],backcolor:["backcolor_desc","HiliteColor"],backcolorpicker:["backcolor_desc","mceBackColor"],charmap:["charmap_desc","mceCharMap"],visualaid:["visualaid_desc","mceToggleVisualAid"],anchor:["anchor_desc","mceInsertAnchor"],newdocument:["newdocument_desc","mceNewDocument"],blockquote:["blockquote_desc","mceBlockQuote"]},stateControls:["bold","italic","underline","strikethrough","bullist","numlist","justifyleft","justifycenter","justifyright","justifyfull","sub","sup","blockquote"],init:function(j,k){var l=this,m,i,n;l.editor=j;l.url=k;l.onResolveName=new e.util.Dispatcher(this);l.settings=m=h({theme_advanced_path:true,theme_advanced_toolbar_location:"bottom",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect",theme_advanced_buttons2:"bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code",theme_advanced_buttons3:"hr,removeformat,visualaid,|,sub,sup,|,charmap",theme_advanced_blockformats:"p,address,pre,h1,h2,h3,h4,h5,h6",theme_advanced_toolbar_align:"center",theme_advanced_fonts:"Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",theme_advanced_more_colors:1,theme_advanced_row_height:23,theme_advanced_resize_horizontal:1,theme_advanced_resizing_use_cookie:1,theme_advanced_font_sizes:"1,2,3,4,5,6,7",readonly:j.settings.readonly},j.settings);if(!m.font_size_style_values){m.font_size_style_values="8pt,10pt,12pt,14pt,18pt,24pt,36pt"}if(e.is(m.theme_advanced_font_sizes,"string")){m.font_size_style_values=e.explode(m.font_size_style_values);m.font_size_classes=e.explode(m.font_size_classes||"");n={};j.settings.theme_advanced_font_sizes=m.theme_advanced_font_sizes;f(j.getParam("theme_advanced_font_sizes","","hash"),function(q,p){var o;if(p==q&&q>=1&&q<=7){p=q+" ("+l.sizes[q-1]+"pt)";o=m.font_size_classes[q-1];q=m.font_size_style_values[q-1]||(l.sizes[q-1]+"pt")}if(/^\s*\./.test(q)){o=q.replace(/\./g,"")}n[p]=o?{"class":o}:{fontSize:q}});m.theme_advanced_font_sizes=n}if((i=m.theme_advanced_path_location)&&i!="none"){m.theme_advanced_statusbar_location=m.theme_advanced_path_location}if(m.theme_advanced_statusbar_location=="none"){m.theme_advanced_statusbar_location=0}j.onInit.add(function(){if(!j.settings.readonly){j.onNodeChange.add(l._nodeChanged,l)}if(j.settings.content_css!==false){j.dom.loadCSS(j.baseURI.toAbsolute(k+"/skins/"+j.settings.skin+"/content.css"))}});j.onSetProgressState.add(function(q,o,r){var s,t=q.id,p;if(o){l.progressTimer=setTimeout(function(){s=q.getContainer();s=s.insertBefore(d.create("DIV",{style:"position:relative"}),s.firstChild);p=d.get(q.id+"_tbl");d.add(s,"div",{id:t+"_blocker","class":"mceBlocker",style:{width:p.clientWidth+2,height:p.clientHeight+2}});d.add(s,"div",{id:t+"_progress","class":"mceProgress",style:{left:p.clientWidth/2,top:p.clientHeight/2}})},r||0)}else{d.remove(t+"_blocker");d.remove(t+"_progress");clearTimeout(l.progressTimer)}});d.loadCSS(m.editor_css?j.documentBaseURI.toAbsolute(m.editor_css):k+"/skins/"+j.settings.skin+"/ui.css");if(m.skin_variant){d.loadCSS(k+"/skins/"+j.settings.skin+"/ui_"+m.skin_variant+".css")}},createControl:function(l,i){var j,k;if(k=i.createControl(l)){return k}switch(l){case"styleselect":return this._createStyleSelect();case"formatselect":return this._createBlockFormats();case"fontselect":return this._createFontSelect();case"fontsizeselect":return this._createFontSizeSelect();case"forecolor":return this._createForeColorMenu();case"backcolor":return this._createBackColorMenu()}if((j=this.controls[l])){return i.createButton(l,{title:"advanced."+j[0],cmd:j[1],ui:j[2],value:j[3]})}},execCommand:function(k,j,l){var i=this["_"+k];if(i){i.call(this,j,l);return true}return false},_importClasses:function(k){var i=this.editor,j=i.controlManager.get("styleselect");if(j.getLength()==0){f(i.dom.getClasses(),function(n,l){var m="style_"+l;i.formatter.register(m,{inline:"span",attributes:{"class":n["class"]},selector:"*"});j.add(n["class"],m)})}},_createStyleSelect:function(m){var k=this,i=k.editor,j=i.controlManager,l;l=j.createListBox("styleselect",{title:"advanced.style_select",onselect:function(o){var p,n=[];f(l.items,function(q){n.push(q.value)});i.focus();i.undoManager.add();p=i.formatter.matchAll(n);if(!o||p[0]==o){i.formatter.remove(p[0])}else{i.formatter.apply(o)}i.undoManager.add();i.nodeChanged();return false}});i.onInit.add(function(){var o=0,n=i.getParam("style_formats");if(n){f(n,function(p){var q,r=0;f(p,function(){r++});if(r>1){q=p.name=p.name||"style_"+(o++);i.formatter.register(q,p);l.add(p.title,q)}else{l.add(p.title)}})}else{f(i.getParam("theme_advanced_styles","","hash"),function(r,q){var p;if(r){p="style_"+(o++);i.formatter.register(p,{inline:"span",classes:r,selector:"*"});l.add(k.editor.translate(q),p)}})}});if(l.getLength()==0){l.onPostRender.add(function(o,p){if(!l.NativeListBox){b.add(p.id+"_text","focus",k._importClasses,k);b.add(p.id+"_text","mousedown",k._importClasses,k);b.add(p.id+"_open","focus",k._importClasses,k);b.add(p.id+"_open","mousedown",k._importClasses,k)}else{b.add(p.id,"focus",k._importClasses,k)}})}return l},_createFontSelect:function(){var k,j=this,i=j.editor;k=i.controlManager.createListBox("fontselect",{title:"advanced.fontdefault",onselect:function(l){var m=k.items[k.selectedIndex];if(!l&&m){i.execCommand("FontName",false,m.value);return}i.execCommand("FontName",false,l);k.select(function(n){return l==n});return false}});if(k){f(i.getParam("theme_advanced_fonts",j.settings.theme_advanced_fonts,"hash"),function(m,l){k.add(i.translate(l),m,{style:m.indexOf("dings")==-1?"font-family:"+m:""})})}return k},_createFontSizeSelect:function(){var m=this,k=m.editor,n,l=0,j=[];n=k.controlManager.createListBox("fontsizeselect",{title:"advanced.font_size",onselect:function(i){var o=n.items[n.selectedIndex];if(!i&&o){o=o.value;if(o["class"]){k.formatter.toggle("fontsize_class",{value:o["class"]});k.undoManager.add();k.nodeChanged()}else{k.execCommand("FontSize",false,o.fontSize)}return}if(i["class"]){k.focus();k.undoManager.add();k.formatter.toggle("fontsize_class",{value:i["class"]});k.undoManager.add();k.nodeChanged()}else{k.execCommand("FontSize",false,i.fontSize)}n.select(function(p){return i==p});return false}});if(n){f(m.settings.theme_advanced_font_sizes,function(o,i){var p=o.fontSize;if(p>=1&&p<=7){p=m.sizes[parseInt(p)-1]+"pt"}n.add(i,o,{style:"font-size:"+p,"class":"mceFontSize"+(l++)+(" "+(o["class"]||""))})})}return n},_createBlockFormats:function(){var k,i={p:"advanced.paragraph",address:"advanced.address",pre:"advanced.pre",h1:"advanced.h1",h2:"advanced.h2",h3:"advanced.h3",h4:"advanced.h4",h5:"advanced.h5",h6:"advanced.h6",div:"advanced.div",blockquote:"advanced.blockquote",code:"advanced.code",dt:"advanced.dt",dd:"advanced.dd",samp:"advanced.samp"},j=this;k=j.editor.controlManager.createListBox("formatselect",{title:"advanced.block",cmd:"FormatBlock"});if(k){f(j.editor.getParam("theme_advanced_blockformats",j.settings.theme_advanced_blockformats,"hash"),function(m,l){k.add(j.editor.translate(l!=m?l:i[m]),m,{"class":"mce_formatPreview mce_"+m})})}return k},_createForeColorMenu:function(){var m,j=this,k=j.settings,l={},i;if(k.theme_advanced_more_colors){l.more_colors_func=function(){j._mceColorPicker(0,{color:m.value,func:function(n){m.setColor(n)}})}}if(i=k.theme_advanced_text_colors){l.colors=i}if(k.theme_advanced_default_foreground_color){l.default_color=k.theme_advanced_default_foreground_color}l.title="advanced.forecolor_desc";l.cmd="ForeColor";l.scope=this;m=j.editor.controlManager.createColorSplitButton("forecolor",l);return m},_createBackColorMenu:function(){var m,j=this,k=j.settings,l={},i;if(k.theme_advanced_more_colors){l.more_colors_func=function(){j._mceColorPicker(0,{color:m.value,func:function(n){m.setColor(n)}})}}if(i=k.theme_advanced_background_colors){l.colors=i}if(k.theme_advanced_default_background_color){l.default_color=k.theme_advanced_default_background_color}l.title="advanced.backcolor_desc";l.cmd="HiliteColor";l.scope=this;m=j.editor.controlManager.createColorSplitButton("backcolor",l);return m},renderUI:function(k){var m,l,q,v=this,r=v.editor,w=v.settings,u,j,i;m=j=d.create("span",{id:r.id+"_parent","class":"mceEditor "+r.settings.skin+"Skin"+(w.skin_variant?" "+r.settings.skin+"Skin"+v._ufirst(w.skin_variant):"")});if(!d.boxModel){m=d.add(m,"div",{"class":"mceOldBoxModel"})}m=u=d.add(m,"table",{id:r.id+"_tbl","class":"mceLayout",cellSpacing:0,cellPadding:0});m=q=d.add(m,"tbody");switch((w.theme_advanced_layout_manager||"").toLowerCase()){case"rowlayout":l=v._rowLayout(w,q,k);break;case"customlayout":l=r.execCallback("theme_advanced_custom_layout",w,q,k,j);break;default:l=v._simpleLayout(w,q,k,j)}m=k.targetNode;i=d.stdMode?u.getElementsByTagName("tr"):u.rows;d.addClass(i[0],"mceFirst");d.addClass(i[i.length-1],"mceLast");f(d.select("tr",q),function(o){d.addClass(o.firstChild,"mceFirst");d.addClass(o.childNodes[o.childNodes.length-1],"mceLast")});if(d.get(w.theme_advanced_toolbar_container)){d.get(w.theme_advanced_toolbar_container).appendChild(j)}else{d.insertAfter(j,m)}b.add(r.id+"_path_row","click",function(n){n=n.target;if(n.nodeName=="A"){v._sel(n.className.replace(/^.*mcePath_([0-9]+).*$/,"$1"));return b.cancel(n)}});if(!r.getParam("accessibility_focus")){b.add(d.add(j,"a",{href:"#"},"<!-- IE -->"),"focus",function(){tinyMCE.get(r.id).focus()})}if(w.theme_advanced_toolbar_location=="external"){k.deltaHeight=0}v.deltaHeight=k.deltaHeight;k.targetNode=null;return{iframeContainer:l,editorContainer:r.id+"_parent",sizeContainer:u,deltaHeight:k.deltaHeight}},getInfo:function(){return{longname:"Advanced theme",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",version:e.majorVersion+"."+e.minorVersion}},resizeBy:function(i,j){var k=d.get(this.editor.id+"_tbl");this.resizeTo(k.clientWidth+i,k.clientHeight+j)},resizeTo:function(i,m,k){var j=this.editor,l=this.settings,n=d.get(j.id+"_tbl"),o=d.get(j.id+"_ifr");i=Math.max(l.theme_advanced_resizing_min_width||100,i);m=Math.max(l.theme_advanced_resizing_min_height||100,m);i=Math.min(l.theme_advanced_resizing_max_width||65535,i);m=Math.min(l.theme_advanced_resizing_max_height||65535,m);d.setStyle(n,"height","");d.setStyle(o,"height",m);if(l.theme_advanced_resize_horizontal){d.setStyle(n,"width","");d.setStyle(o,"width",i);if(i<n.clientWidth){i=n.clientWidth;d.setStyle(o,"width",n.clientWidth)}}if(k&&l.theme_advanced_resizing_use_cookie){a.setHash("TinyMCE_"+j.id+"_size",{cw:i,ch:m})}},destroy:function(){var i=this.editor.id;b.clear(i+"_resize");b.clear(i+"_path_row");b.clear(i+"_external_close")},_simpleLayout:function(y,r,k,i){var x=this,u=x.editor,v=y.theme_advanced_toolbar_location,m=y.theme_advanced_statusbar_location,l,j,q,w;if(y.readonly){l=d.add(r,"tr");l=j=d.add(l,"td",{"class":"mceIframeContainer"});return j}if(v=="top"){x._addToolbars(r,k)}if(v=="external"){l=w=d.create("div",{style:"position:relative"});l=d.add(l,"div",{id:u.id+"_external","class":"mceExternalToolbar"});d.add(l,"a",{id:u.id+"_external_close",href:"javascript:;","class":"mceExternalClose"});l=d.add(l,"table",{id:u.id+"_tblext",cellSpacing:0,cellPadding:0});q=d.add(l,"tbody");if(i.firstChild.className=="mceOldBoxModel"){i.firstChild.appendChild(w)}else{i.insertBefore(w,i.firstChild)}x._addToolbars(q,k);u.onMouseUp.add(function(){var o=d.get(u.id+"_external");d.show(o);d.hide(g);var n=b.add(u.id+"_external_close","click",function(){d.hide(u.id+"_external");b.remove(u.id+"_external_close","click",n)});d.show(o);d.setStyle(o,"top",0-d.getRect(u.id+"_tblext").h-1);d.hide(o);d.show(o);o.style.filter="";g=u.id+"_external";o=null})}if(m=="top"){x._addStatusBar(r,k)}if(!y.theme_advanced_toolbar_container){l=d.add(r,"tr");l=j=d.add(l,"td",{"class":"mceIframeContainer"})}if(v=="bottom"){x._addToolbars(r,k)}if(m=="bottom"){x._addStatusBar(r,k)}return j},_rowLayout:function(w,m,k){var v=this,p=v.editor,u,x,i=p.controlManager,l,j,r,q;u=w.theme_advanced_containers_default_class||"";x=w.theme_advanced_containers_default_align||"center";f(c(w.theme_advanced_containers||""),function(s,o){var n=w["theme_advanced_container_"+s]||"";switch(n.toLowerCase()){case"mceeditor":l=d.add(m,"tr");l=j=d.add(l,"td",{"class":"mceIframeContainer"});break;case"mceelementpath":v._addStatusBar(m,k);break;default:q=(w["theme_advanced_container_"+s+"_align"]||x).toLowerCase();q="mce"+v._ufirst(q);l=d.add(d.add(m,"tr"),"td",{"class":"mceToolbar "+(w["theme_advanced_container_"+s+"_class"]||u)+" "+q||x});r=i.createToolbar("toolbar"+o);v._addControls(n,r);d.setHTML(l,r.renderHTML());k.deltaHeight-=w.theme_advanced_row_height}});return j},_addControls:function(j,i){var k=this,l=k.settings,m,n=k.editor.controlManager;if(l.theme_advanced_disable&&!k._disabled){m={};f(c(l.theme_advanced_disable),function(o){m[o]=1});k._disabled=m}else{m=k._disabled}f(c(j),function(p){var o;if(m&&m[p]){return}if(p=="tablecontrols"){f(["table","|","row_props","cell_props","|","row_before","row_after","delete_row","|","col_before","col_after","delete_col","|","split_cells","merge_cells"],function(q){q=k.createControl(q,n);if(q){i.add(q)}});return}o=k.createControl(p,n);if(o){i.add(o)}})},_addToolbars:function(w,k){var z=this,p,m,r=z.editor,A=z.settings,y,j=r.controlManager,u,l,q=[],x;x=A.theme_advanced_toolbar_align.toLowerCase();x="mce"+z._ufirst(x);l=d.add(d.add(w,"tr"),"td",{"class":"mceToolbar "+x});if(!r.getParam("accessibility_focus")){q.push(d.createHTML("a",{href:"#",onfocus:"tinyMCE.get('"+r.id+"').focus();"},"<!-- IE -->"))}q.push(d.createHTML("a",{href:"#",accesskey:"q",title:r.getLang("advanced.toolbar_focus")},"<!-- IE -->"));for(p=1;(y=A["theme_advanced_buttons"+p]);p++){m=j.createToolbar("toolbar"+p,{"class":"mceToolbarRow"+p});if(A["theme_advanced_buttons"+p+"_add"]){y+=","+A["theme_advanced_buttons"+p+"_add"]}if(A["theme_advanced_buttons"+p+"_add_before"]){y=A["theme_advanced_buttons"+p+"_add_before"]+","+y}z._addControls(y,m);q.push(m.renderHTML());k.deltaHeight-=A.theme_advanced_row_height}q.push(d.createHTML("a",{href:"#",accesskey:"z",title:r.getLang("advanced.toolbar_focus"),onfocus:"tinyMCE.getInstanceById('"+r.id+"').focus();"},"<!-- IE -->"));d.setHTML(l,q.join(""))},_addStatusBar:function(m,j){var k,v=this,p=v.editor,w=v.settings,i,q,u,l;k=d.add(m,"tr");k=l=d.add(k,"td",{"class":"mceStatusbar"});k=d.add(k,"div",{id:p.id+"_path_row"},w.theme_advanced_path?p.translate("advanced.path")+": ":" ");d.add(k,"a",{href:"#",accesskey:"x"});if(w.theme_advanced_resizing){d.add(l,"a",{id:p.id+"_resize",href:"javascript:;",onclick:"return false;","class":"mceResize"});if(w.theme_advanced_resizing_use_cookie){p.onPostRender.add(function(){var n=a.getHash("TinyMCE_"+p.id+"_size"),r=d.get(p.id+"_tbl");if(!n){return}v.resizeTo(n.cw,n.ch)})}p.onPostRender.add(function(){b.add(p.id+"_resize","click",function(n){n.preventDefault()});b.add(p.id+"_resize","mousedown",function(D){var t,r,s,o,C,z,A,F,n,E,x;function y(G){G.preventDefault();n=A+(G.screenX-C);E=F+(G.screenY-z);v.resizeTo(n,E)}function B(G){b.remove(d.doc,"mousemove",t);b.remove(p.getDoc(),"mousemove",r);b.remove(d.doc,"mouseup",s);b.remove(p.getDoc(),"mouseup",o);n=A+(G.screenX-C);E=F+(G.screenY-z);v.resizeTo(n,E,true)}D.preventDefault();C=D.screenX;z=D.screenY;x=d.get(v.editor.id+"_ifr");A=n=x.clientWidth;F=E=x.clientHeight;t=b.add(d.doc,"mousemove",y);r=b.add(p.getDoc(),"mousemove",y);s=b.add(d.doc,"mouseup",B);o=b.add(p.getDoc(),"mouseup",B)})})}j.deltaHeight-=21;k=m=null},_nodeChanged:function(r,z,l,x,j){var C=this,i,y=0,B,u,D=C.settings,A,k,w,m,q;e.each(C.stateControls,function(n){z.setActive(n,r.queryCommandState(C.controls[n][1]))});function o(p){var s,n=j.parents,t=p;if(typeof(p)=="string"){t=function(v){return v.nodeName==p}}for(s=0;s<n.length;s++){if(t(n[s])){return n[s]}}}z.setActive("visualaid",r.hasVisual);z.setDisabled("undo",!r.undoManager.hasUndo()&&!r.typing);z.setDisabled("redo",!r.undoManager.hasRedo());z.setDisabled("outdent",!r.queryCommandState("Outdent"));i=o("A");if(u=z.get("link")){if(!i||!i.name){u.setDisabled(!i&&x);u.setActive(!!i)}}if(u=z.get("unlink")){u.setDisabled(!i&&x);u.setActive(!!i&&!i.name)}if(u=z.get("anchor")){u.setActive(!!i&&i.name)}i=o("IMG");if(u=z.get("image")){u.setActive(!!i&&l.className.indexOf("mceItem")==-1)}if(u=z.get("styleselect")){C._importClasses();m=[];f(u.items,function(n){m.push(n.value)});q=r.formatter.matchAll(m);u.select(q[0])}if(u=z.get("formatselect")){i=o(d.isBlock);if(i){u.select(i.nodeName.toLowerCase())}}o(function(p){if(p.nodeName==="SPAN"){if(!A&&p.className){A=p.className}if(!k&&p.style.fontSize){k=p.style.fontSize}if(!w&&p.style.fontFamily){w=p.style.fontFamily.replace(/[\"\']+/g,"").replace(/^([^,]+).*/,"$1").toLowerCase()}}return false});if(u=z.get("fontselect")){u.select(function(n){return n.replace(/^([^,]+).*/,"$1").toLowerCase()==w})}if(u=z.get("fontsizeselect")){if(D.theme_advanced_runtime_fontsize&&!k&&!A){k=r.dom.getStyle(l,"fontSize",true)}u.select(function(n){if(n.fontSize&&n.fontSize===k){return true}if(n["class"]&&n["class"]===A){return true}})}if(D.theme_advanced_path&&D.theme_advanced_statusbar_location){i=d.get(r.id+"_path")||d.add(r.id+"_path_row","span",{id:r.id+"_path"});d.setHTML(i,"");o(function(E){var p=E.nodeName.toLowerCase(),s,v,t="";if(E.nodeType!=1||E.nodeName==="BR"||(d.hasClass(E,"mceItemHidden")||d.hasClass(E,"mceItemRemoved"))){return}if(B=d.getAttrib(E,"mce_name")){p=B}if(e.isIE&&E.scopeName!=="HTML"){p=E.scopeName+":"+p}p=p.replace(/mce\:/g,"");switch(p){case"b":p="strong";break;case"i":p="em";break;case"img":if(B=d.getAttrib(E,"src")){t+="src: "+B+" "}break;case"a":if(B=d.getAttrib(E,"name")){t+="name: "+B+" ";p+="#"+B}if(B=d.getAttrib(E,"href")){t+="href: "+B+" "}break;case"font":if(B=d.getAttrib(E,"face")){t+="font: "+B+" "}if(B=d.getAttrib(E,"size")){t+="size: "+B+" "}if(B=d.getAttrib(E,"color")){t+="color: "+B+" "}break;case"span":if(B=d.getAttrib(E,"style")){t+="style: "+B+" "}break}if(B=d.getAttrib(E,"id")){t+="id: "+B+" "}if(B=E.className){B=B.replace(/\b\s*(webkit|mce|Apple-)\w+\s*\b/g,"");if(B){t+="class: "+B+" ";if(d.isBlock(E)||p=="img"||p=="span"){p+="."+B}}}p=p.replace(/(html:)/g,"");p={name:p,node:E,title:t};C.onResolveName.dispatch(C,p);t=p.title;p=p.name;v=d.create("a",{href:"javascript:;",onmousedown:"return false;",title:t,"class":"mcePath_"+(y++)},p);if(i.hasChildNodes()){i.insertBefore(d.doc.createTextNode(" \u00bb "),i.firstChild);i.insertBefore(v,i.firstChild)}else{i.appendChild(v)}},r.getBody())}},_sel:function(i){this.editor.execCommand("mceSelectNodeDepth",false,i)},_mceInsertAnchor:function(k,j){var i=this.editor;i.windowManager.open({url:this.url+"/anchor.htm",width:320+parseInt(i.getLang("advanced.anchor_delta_width",0)),height:90+parseInt(i.getLang("advanced.anchor_delta_height",0)),inline:true},{theme_url:this.url})},_mceCharMap:function(){var i=this.editor;i.windowManager.open({url:this.url+"/charmap.htm",width:550+parseInt(i.getLang("advanced.charmap_delta_width",0)),height:250+parseInt(i.getLang("advanced.charmap_delta_height",0)),inline:true},{theme_url:this.url})},_mceHelp:function(){var i=this.editor;i.windowManager.open({url:this.url+"/about.htm",width:480,height:380,inline:true},{theme_url:this.url})},_mceColorPicker:function(k,j){var i=this.editor;j=j||{};i.windowManager.open({url:this.url+"/color_picker.htm",width:375+parseInt(i.getLang("advanced.colorpicker_delta_width",0)),height:250+parseInt(i.getLang("advanced.colorpicker_delta_height",0)),close_previous:false,inline:true},{input_color:j.color,func:j.func,theme_url:this.url})},_mceCodeEditor:function(j,k){var i=this.editor;i.windowManager.open({url:this.url+"/source_editor.htm",width:parseInt(i.getParam("theme_advanced_source_editor_width",720)),height:parseInt(i.getParam("theme_advanced_source_editor_height",580)),inline:true,resizable:true,maximizable:true},{theme_url:this.url})},_mceImage:function(j,k){var i=this.editor;if(i.dom.getAttrib(i.selection.getNode(),"class").indexOf("mceItem")!=-1){return}i.windowManager.open({url:this.url+"/image.htm",width:355+parseInt(i.getLang("advanced.image_delta_width",0)),height:275+parseInt(i.getLang("advanced.image_delta_height",0)),inline:true},{theme_url:this.url})},_mceLink:function(j,k){var i=this.editor;i.windowManager.open({url:this.url+"/link.htm",width:310+parseInt(i.getLang("advanced.link_delta_width",0)),height:200+parseInt(i.getLang("advanced.link_delta_height",0)),inline:true},{theme_url:this.url})},_mceNewDocument:function(){var i=this.editor;i.windowManager.confirm("advanced.newdocument",function(j){if(j){i.execCommand("mceSetContent",false,"")}})},_mceForeColor:function(){var i=this;this._mceColorPicker(0,{color:i.fgColor,func:function(j){i.fgColor=j;i.editor.execCommand("ForeColor",false,j)}})},_mceBackColor:function(){var i=this;this._mceColorPicker(0,{color:i.bgColor,func:function(j){i.bgColor=j;i.editor.execCommand("HiliteColor",false,j)}})},_ufirst:function(i){return i.substring(0,1).toUpperCase()+i.substring(1)}});e.ThemeManager.add("advanced",e.themes.AdvancedTheme)}(tinymce));
-\ No newline at end of file
+(function(h){var i=h.DOM,g=h.dom.Event,c=h.extend,f=h.each,a=h.util.Cookie,e,d=h.explode;function b(p,m){var k,l,o=p.dom,j="",n,r;previewStyles=p.settings.preview_styles;if(previewStyles===false){return""}if(!previewStyles){previewStyles="font-family font-size font-weight text-decoration text-transform color background-color"}function q(s){return s.replace(/%(\w+)/g,"")}k=m.block||m.inline||"span";l=o.create(k);f(m.styles,function(t,s){t=q(t);if(t){o.setStyle(l,s,t)}});f(m.attributes,function(t,s){t=q(t);if(t){o.setAttrib(l,s,t)}});f(m.classes,function(s){s=q(s);if(!o.hasClass(l,s)){o.addClass(l,s)}});o.setStyles(l,{position:"absolute",left:-65535});p.getBody().appendChild(l);n=o.getStyle(p.getBody(),"fontSize",true);n=/px$/.test(n)?parseInt(n,10):0;f(previewStyles.split(" "),function(s){var t=o.getStyle(l,s,true);if(s=="background-color"&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(t)){t=o.getStyle(p.getBody(),s,true);if(o.toHex(t).toLowerCase()=="#ffffff"){return}}if(s=="font-size"){if(/em|%$/.test(t)){if(n===0){return}t=parseFloat(t,10)/(/%$/.test(t)?100:1);t=(t*n)+"px"}}j+=s+":"+t+";"});o.remove(l);return j}h.ThemeManager.requireLangPack("advanced");h.create("tinymce.themes.AdvancedTheme",{sizes:[8,10,12,14,18,24,36],controls:{bold:["bold_desc","Bold"],italic:["italic_desc","Italic"],underline:["underline_desc","Underline"],strikethrough:["striketrough_desc","Strikethrough"],justifyleft:["justifyleft_desc","JustifyLeft"],justifycenter:["justifycenter_desc","JustifyCenter"],justifyright:["justifyright_desc","JustifyRight"],justifyfull:["justifyfull_desc","JustifyFull"],bullist:["bullist_desc","InsertUnorderedList"],numlist:["numlist_desc","InsertOrderedList"],outdent:["outdent_desc","Outdent"],indent:["indent_desc","Indent"],cut:["cut_desc","Cut"],copy:["copy_desc","Copy"],paste:["paste_desc","Paste"],undo:["undo_desc","Undo"],redo:["redo_desc","Redo"],link:["link_desc","mceLink"],unlink:["unlink_desc","unlink"],image:["image_desc","mceImage"],cleanup:["cleanup_desc","mceCleanup"],help:["help_desc","mceHelp"],code:["code_desc","mceCodeEditor"],hr:["hr_desc","InsertHorizontalRule"],removeformat:["removeformat_desc","RemoveFormat"],sub:["sub_desc","subscript"],sup:["sup_desc","superscript"],forecolor:["forecolor_desc","ForeColor"],forecolorpicker:["forecolor_desc","mceForeColor"],backcolor:["backcolor_desc","HiliteColor"],backcolorpicker:["backcolor_desc","mceBackColor"],charmap:["charmap_desc","mceCharMap"],visualaid:["visualaid_desc","mceToggleVisualAid"],anchor:["anchor_desc","mceInsertAnchor"],newdocument:["newdocument_desc","mceNewDocument"],blockquote:["blockquote_desc","mceBlockQuote"]},stateControls:["bold","italic","underline","strikethrough","bullist","numlist","justifyleft","justifycenter","justifyright","justifyfull","sub","sup","blockquote"],init:function(k,l){var m=this,n,j,p;m.editor=k;m.url=l;m.onResolveName=new h.util.Dispatcher(this);n=k.settings;k.forcedHighContrastMode=k.settings.detect_highcontrast&&m._isHighContrast();k.settings.skin=k.forcedHighContrastMode?"highcontrast":k.settings.skin;if(!n.theme_advanced_buttons1){n=c({theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect",theme_advanced_buttons2:"bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code",theme_advanced_buttons3:"hr,removeformat,visualaid,|,sub,sup,|,charmap"},n)}m.settings=n=c({theme_advanced_path:true,theme_advanced_toolbar_location:"top",theme_advanced_blockformats:"p,address,pre,h1,h2,h3,h4,h5,h6",theme_advanced_toolbar_align:"left",theme_advanced_statusbar_location:"bottom",theme_advanced_fonts:"Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",theme_advanced_more_colors:1,theme_advanced_row_height:23,theme_advanced_resize_horizontal:1,theme_advanced_resizing_use_cookie:1,theme_advanced_font_sizes:"1,2,3,4,5,6,7",theme_advanced_font_selector:"span",theme_advanced_show_current_color:0,readonly:k.settings.readonly},n);if(!n.font_size_style_values){n.font_size_style_values="8pt,10pt,12pt,14pt,18pt,24pt,36pt"}if(h.is(n.theme_advanced_font_sizes,"string")){n.font_size_style_values=h.explode(n.font_size_style_values);n.font_size_classes=h.explode(n.font_size_classes||"");p={};k.settings.theme_advanced_font_sizes=n.theme_advanced_font_sizes;f(k.getParam("theme_advanced_font_sizes","","hash"),function(r,q){var o;if(q==r&&r>=1&&r<=7){q=r+" ("+m.sizes[r-1]+"pt)";o=n.font_size_classes[r-1];r=n.font_size_style_values[r-1]||(m.sizes[r-1]+"pt")}if(/^\s*\./.test(r)){o=r.replace(/\./g,"")}p[q]=o?{"class":o}:{fontSize:r}});n.theme_advanced_font_sizes=p}if((j=n.theme_advanced_path_location)&&j!="none"){n.theme_advanced_statusbar_location=n.theme_advanced_path_location}if(n.theme_advanced_statusbar_location=="none"){n.theme_advanced_statusbar_location=0}if(k.settings.content_css!==false){k.contentCSS.push(k.baseURI.toAbsolute(l+"/skins/"+k.settings.skin+"/content.css"))}k.onInit.add(function(){if(!k.settings.readonly){k.onNodeChange.add(m._nodeChanged,m);k.onKeyUp.add(m._updateUndoStatus,m);k.onMouseUp.add(m._updateUndoStatus,m);k.dom.bind(k.dom.getRoot(),"dragend",function(){m._updateUndoStatus(k)})}});k.onSetProgressState.add(function(r,o,s){var t,u=r.id,q;if(o){m.progressTimer=setTimeout(function(){t=r.getContainer();t=t.insertBefore(i.create("DIV",{style:"position:relative"}),t.firstChild);q=i.get(r.id+"_tbl");i.add(t,"div",{id:u+"_blocker","class":"mceBlocker",style:{width:q.clientWidth+2,height:q.clientHeight+2}});i.add(t,"div",{id:u+"_progress","class":"mceProgress",style:{left:q.clientWidth/2,top:q.clientHeight/2}})},s||0)}else{i.remove(u+"_blocker");i.remove(u+"_progress");clearTimeout(m.progressTimer)}});i.loadCSS(n.editor_css?k.documentBaseURI.toAbsolute(n.editor_css):l+"/skins/"+k.settings.skin+"/ui.css");if(n.skin_variant){i.loadCSS(l+"/skins/"+k.settings.skin+"/ui_"+n.skin_variant+".css")}},_isHighContrast:function(){var j,k=i.add(i.getRoot(),"div",{style:"background-color: rgb(171,239,86);"});j=(i.getStyle(k,"background-color",true)+"").toLowerCase().replace(/ /g,"");i.remove(k);return j!="rgb(171,239,86)"&&j!="#abef56"},createControl:function(m,j){var k,l;if(l=j.createControl(m)){return l}switch(m){case"styleselect":return this._createStyleSelect();case"formatselect":return this._createBlockFormats();case"fontselect":return this._createFontSelect();case"fontsizeselect":return this._createFontSizeSelect();case"forecolor":return this._createForeColorMenu();case"backcolor":return this._createBackColorMenu()}if((k=this.controls[m])){return j.createButton(m,{title:"advanced."+k[0],cmd:k[1],ui:k[2],value:k[3]})}},execCommand:function(l,k,m){var j=this["_"+l];if(j){j.call(this,k,m);return true}return false},_importClasses:function(l){var j=this.editor,k=j.controlManager.get("styleselect");if(k.getLength()==0){f(j.dom.getClasses(),function(q,m){var p="style_"+m,n;n={inline:"span",attributes:{"class":q["class"]},selector:"*"};j.formatter.register(p,n);k.add(q["class"],p,{style:function(){return b(j,n)}})})}},_createStyleSelect:function(o){var l=this,j=l.editor,k=j.controlManager,m;m=k.createListBox("styleselect",{title:"advanced.style_select",onselect:function(q){var r,n=[],p;f(m.items,function(s){n.push(s.value)});j.focus();j.undoManager.add();r=j.formatter.matchAll(n);h.each(r,function(s){if(!q||s==q){if(s){j.formatter.remove(s)}p=true}});if(!p){j.formatter.apply(q)}j.undoManager.add();j.nodeChanged();return false}});j.onPreInit.add(function(){var p=0,n=j.getParam("style_formats");if(n){f(n,function(q){var r,s=0;f(q,function(){s++});if(s>1){r=q.name=q.name||"style_"+(p++);j.formatter.register(r,q);m.add(q.title,r,{style:function(){return b(j,q)}})}else{m.add(q.title)}})}else{f(j.getParam("theme_advanced_styles","","hash"),function(t,s){var r,q;if(t){r="style_"+(p++);q={inline:"span",classes:t,selector:"*"};j.formatter.register(r,q);m.add(l.editor.translate(s),r,{style:function(){return b(j,q)}})}})}});if(m.getLength()==0){m.onPostRender.add(function(p,q){if(!m.NativeListBox){g.add(q.id+"_text","focus",l._importClasses,l);g.add(q.id+"_text","mousedown",l._importClasses,l);g.add(q.id+"_open","focus",l._importClasses,l);g.add(q.id+"_open","mousedown",l._importClasses,l)}else{g.add(q.id,"focus",l._importClasses,l)}})}return m},_createFontSelect:function(){var l,k=this,j=k.editor;l=j.controlManager.createListBox("fontselect",{title:"advanced.fontdefault",onselect:function(m){var n=l.items[l.selectedIndex];if(!m&&n){j.execCommand("FontName",false,n.value);return}j.execCommand("FontName",false,m);l.select(function(o){return m==o});if(n&&n.value==m){l.select(null)}return false}});if(l){f(j.getParam("theme_advanced_fonts",k.settings.theme_advanced_fonts,"hash"),function(n,m){l.add(j.translate(m),n,{style:n.indexOf("dings")==-1?"font-family:"+n:""})})}return l},_createFontSizeSelect:function(){var m=this,k=m.editor,n,l=0,j=[];n=k.controlManager.createListBox("fontsizeselect",{title:"advanced.font_size",onselect:function(o){var p=n.items[n.selectedIndex];if(!o&&p){p=p.value;if(p["class"]){k.formatter.toggle("fontsize_class",{value:p["class"]});k.undoManager.add();k.nodeChanged()}else{k.execCommand("FontSize",false,p.fontSize)}return}if(o["class"]){k.focus();k.undoManager.add();k.formatter.toggle("fontsize_class",{value:o["class"]});k.undoManager.add();k.nodeChanged()}else{k.execCommand("FontSize",false,o.fontSize)}n.select(function(q){return o==q});if(p&&(p.value.fontSize==o.fontSize||p.value["class"]&&p.value["class"]==o["class"])){n.select(null)}return false}});if(n){f(m.settings.theme_advanced_font_sizes,function(p,o){var q=p.fontSize;if(q>=1&&q<=7){q=m.sizes[parseInt(q)-1]+"pt"}n.add(o,p,{style:"font-size:"+q,"class":"mceFontSize"+(l++)+(" "+(p["class"]||""))})})}return n},_createBlockFormats:function(){var l,j={p:"advanced.paragraph",address:"advanced.address",pre:"advanced.pre",h1:"advanced.h1",h2:"advanced.h2",h3:"advanced.h3",h4:"advanced.h4",h5:"advanced.h5",h6:"advanced.h6",div:"advanced.div",blockquote:"advanced.blockquote",code:"advanced.code",dt:"advanced.dt",dd:"advanced.dd",samp:"advanced.samp"},k=this;l=k.editor.controlManager.createListBox("formatselect",{title:"advanced.block",onselect:function(m){k.editor.execCommand("FormatBlock",false,m);return false}});if(l){f(k.editor.getParam("theme_advanced_blockformats",k.settings.theme_advanced_blockformats,"hash"),function(n,m){l.add(k.editor.translate(m!=n?m:j[n]),n,{"class":"mce_formatPreview mce_"+n,style:function(){return b(k.editor,{block:n})}})})}return l},_createForeColorMenu:function(){var n,k=this,l=k.settings,m={},j;if(l.theme_advanced_more_colors){m.more_colors_func=function(){k._mceColorPicker(0,{color:n.value,func:function(o){n.setColor(o)}})}}if(j=l.theme_advanced_text_colors){m.colors=j}if(l.theme_advanced_default_foreground_color){m.default_color=l.theme_advanced_default_foreground_color}m.title="advanced.forecolor_desc";m.cmd="ForeColor";m.scope=this;n=k.editor.controlManager.createColorSplitButton("forecolor",m);return n},_createBackColorMenu:function(){var n,k=this,l=k.settings,m={},j;if(l.theme_advanced_more_colors){m.more_colors_func=function(){k._mceColorPicker(0,{color:n.value,func:function(o){n.setColor(o)}})}}if(j=l.theme_advanced_background_colors){m.colors=j}if(l.theme_advanced_default_background_color){m.default_color=l.theme_advanced_default_background_color}m.title="advanced.backcolor_desc";m.cmd="HiliteColor";m.scope=this;n=k.editor.controlManager.createColorSplitButton("backcolor",m);return n},renderUI:function(l){var q,m,r,w=this,u=w.editor,x=w.settings,v,k,j;if(u.settings){u.settings.aria_label=x.aria_label+u.getLang("advanced.help_shortcut")}q=k=i.create("span",{role:"application","aria-labelledby":u.id+"_voice",id:u.id+"_parent","class":"mceEditor "+u.settings.skin+"Skin"+(x.skin_variant?" "+u.settings.skin+"Skin"+w._ufirst(x.skin_variant):"")+(u.settings.directionality=="rtl"?" mceRtl":"")});i.add(q,"span",{"class":"mceVoiceLabel",style:"display:none;",id:u.id+"_voice"},x.aria_label);if(!i.boxModel){q=i.add(q,"div",{"class":"mceOldBoxModel"})}q=v=i.add(q,"table",{role:"presentation",id:u.id+"_tbl","class":"mceLayout",cellSpacing:0,cellPadding:0});q=r=i.add(q,"tbody");switch((x.theme_advanced_layout_manager||"").toLowerCase()){case"rowlayout":m=w._rowLayout(x,r,l);break;case"customlayout":m=u.execCallback("theme_advanced_custom_layout",x,r,l,k);break;default:m=w._simpleLayout(x,r,l,k)}q=l.targetNode;j=v.rows;i.addClass(j[0],"mceFirst");i.addClass(j[j.length-1],"mceLast");f(i.select("tr",r),function(o){i.addClass(o.firstChild,"mceFirst");i.addClass(o.childNodes[o.childNodes.length-1],"mceLast")});if(i.get(x.theme_advanced_toolbar_container)){i.get(x.theme_advanced_toolbar_container).appendChild(k)}else{i.insertAfter(k,q)}g.add(u.id+"_path_row","click",function(n){n=n.target;if(n.nodeName=="A"){w._sel(n.className.replace(/^.*mcePath_([0-9]+).*$/,"$1"));return false}});if(!u.getParam("accessibility_focus")){g.add(i.add(k,"a",{href:"#"},"<!-- IE -->"),"focus",function(){tinyMCE.get(u.id).focus()})}if(x.theme_advanced_toolbar_location=="external"){l.deltaHeight=0}w.deltaHeight=l.deltaHeight;l.targetNode=null;u.onKeyDown.add(function(p,n){var s=121,o=122;if(n.altKey){if(n.keyCode===s){if(h.isWebKit){window.focus()}w.toolbarGroup.focus();return g.cancel(n)}else{if(n.keyCode===o){i.get(p.id+"_path_row").focus();return g.cancel(n)}}}});u.addShortcut("alt+0","","mceShortcuts",w);return{iframeContainer:m,editorContainer:u.id+"_parent",sizeContainer:v,deltaHeight:l.deltaHeight}},getInfo:function(){return{longname:"Advanced theme",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",version:h.majorVersion+"."+h.minorVersion}},resizeBy:function(j,k){var l=i.get(this.editor.id+"_ifr");this.resizeTo(l.clientWidth+j,l.clientHeight+k)},resizeTo:function(j,n,l){var k=this.editor,m=this.settings,o=i.get(k.id+"_tbl"),p=i.get(k.id+"_ifr");j=Math.max(m.theme_advanced_resizing_min_width||100,j);n=Math.max(m.theme_advanced_resizing_min_height||100,n);j=Math.min(m.theme_advanced_resizing_max_width||65535,j);n=Math.min(m.theme_advanced_resizing_max_height||65535,n);i.setStyle(o,"height","");i.setStyle(p,"height",n);if(m.theme_advanced_resize_horizontal){i.setStyle(o,"width","");i.setStyle(p,"width",j);if(j<o.clientWidth){j=o.clientWidth;i.setStyle(p,"width",o.clientWidth)}}if(l&&m.theme_advanced_resizing_use_cookie){a.setHash("TinyMCE_"+k.id+"_size",{cw:j,ch:n})}},destroy:function(){var j=this.editor.id;g.clear(j+"_resize");g.clear(j+"_path_row");g.clear(j+"_external_close")},_simpleLayout:function(z,u,l,j){var y=this,v=y.editor,w=z.theme_advanced_toolbar_location,q=z.theme_advanced_statusbar_location,m,k,r,x;if(z.readonly){m=i.add(u,"tr");m=k=i.add(m,"td",{"class":"mceIframeContainer"});return k}if(w=="top"){y._addToolbars(u,l)}if(w=="external"){m=x=i.create("div",{style:"position:relative"});m=i.add(m,"div",{id:v.id+"_external","class":"mceExternalToolbar"});i.add(m,"a",{id:v.id+"_external_close",href:"javascript:;","class":"mceExternalClose"});m=i.add(m,"table",{id:v.id+"_tblext",cellSpacing:0,cellPadding:0});r=i.add(m,"tbody");if(j.firstChild.className=="mceOldBoxModel"){j.firstChild.appendChild(x)}else{j.insertBefore(x,j.firstChild)}y._addToolbars(r,l);v.onMouseUp.add(function(){var o=i.get(v.id+"_external");i.show(o);i.hide(e);var n=g.add(v.id+"_external_close","click",function(){i.hide(v.id+"_external");g.remove(v.id+"_external_close","click",n);return false});i.show(o);i.setStyle(o,"top",0-i.getRect(v.id+"_tblext").h-1);i.hide(o);i.show(o);o.style.filter="";e=v.id+"_external";o=null})}if(q=="top"){y._addStatusBar(u,l)}if(!z.theme_advanced_toolbar_container){m=i.add(u,"tr");m=k=i.add(m,"td",{"class":"mceIframeContainer"})}if(w=="bottom"){y._addToolbars(u,l)}if(q=="bottom"){y._addStatusBar(u,l)}return k},_rowLayout:function(x,p,l){var w=this,q=w.editor,v,y,j=q.controlManager,m,k,u,r;v=x.theme_advanced_containers_default_class||"";y=x.theme_advanced_containers_default_align||"center";f(d(x.theme_advanced_containers||""),function(s,o){var n=x["theme_advanced_container_"+s]||"";switch(s.toLowerCase()){case"mceeditor":m=i.add(p,"tr");m=k=i.add(m,"td",{"class":"mceIframeContainer"});break;case"mceelementpath":w._addStatusBar(p,l);break;default:r=(x["theme_advanced_container_"+s+"_align"]||y).toLowerCase();r="mce"+w._ufirst(r);m=i.add(i.add(p,"tr"),"td",{"class":"mceToolbar "+(x["theme_advanced_container_"+s+"_class"]||v)+" "+r||y});u=j.createToolbar("toolbar"+o);w._addControls(n,u);i.setHTML(m,u.renderHTML());l.deltaHeight-=x.theme_advanced_row_height}});return k},_addControls:function(k,j){var l=this,m=l.settings,n,o=l.editor.controlManager;if(m.theme_advanced_disable&&!l._disabled){n={};f(d(m.theme_advanced_disable),function(p){n[p]=1});l._disabled=n}else{n=l._disabled}f(d(k),function(q){var p;if(n&&n[q]){return}if(q=="tablecontrols"){f(["table","|","row_props","cell_props","|","row_before","row_after","delete_row","|","col_before","col_after","delete_col","|","split_cells","merge_cells"],function(r){r=l.createControl(r,o);if(r){j.add(r)}});return}p=l.createControl(q,o);if(p){j.add(p)}})},_addToolbars:function(y,k){var B=this,q,p,u=B.editor,C=B.settings,A,j=u.controlManager,w,l,r=[],z,x,m=false;x=j.createToolbarGroup("toolbargroup",{name:u.getLang("advanced.toolbar"),tab_focus_toolbar:u.getParam("theme_advanced_tab_focus_toolbar")});B.toolbarGroup=x;z=C.theme_advanced_toolbar_align.toLowerCase();z="mce"+B._ufirst(z);l=i.add(i.add(y,"tr",{role:"toolbar"}),"td",{"class":"mceToolbar "+z,role:"toolbar"});for(q=1;(A=C["theme_advanced_buttons"+q]);q++){m=true;p=j.createToolbar("toolbar"+q,{"class":"mceToolbarRow"+q});if(C["theme_advanced_buttons"+q+"_add"]){A+=","+C["theme_advanced_buttons"+q+"_add"]}if(C["theme_advanced_buttons"+q+"_add_before"]){A=C["theme_advanced_buttons"+q+"_add_before"]+","+A}B._addControls(A,p);x.add(p);k.deltaHeight-=C.theme_advanced_row_height}if(!m){k.deltaHeight-=C.theme_advanced_row_height}r.push(x.renderHTML());r.push(i.createHTML("a",{href:"#",accesskey:"z",title:u.getLang("advanced.toolbar_focus"),onfocus:"tinyMCE.getInstanceById('"+u.id+"').focus();"},"<!-- IE -->"));i.setHTML(l,r.join(""))},_addStatusBar:function(p,k){var l,w=this,q=w.editor,x=w.settings,j,u,v,m;l=i.add(p,"tr");l=m=i.add(l,"td",{"class":"mceStatusbar"});l=i.add(l,"div",{id:q.id+"_path_row",role:"group","aria-labelledby":q.id+"_path_voice"});if(x.theme_advanced_path){i.add(l,"span",{id:q.id+"_path_voice"},q.translate("advanced.path"));i.add(l,"span",{},": ")}else{i.add(l,"span",{}," ")}if(x.theme_advanced_resizing){i.add(m,"a",{id:q.id+"_resize",href:"javascript:;",onclick:"return false;","class":"mceResize",tabIndex:"-1"});if(x.theme_advanced_resizing_use_cookie){q.onPostRender.add(function(){var n=a.getHash("TinyMCE_"+q.id+"_size"),r=i.get(q.id+"_tbl");if(!n){return}w.resizeTo(n.cw,n.ch)})}q.onPostRender.add(function(){g.add(q.id+"_resize","click",function(n){n.preventDefault()});g.add(q.id+"_resize","mousedown",function(E){var t,r,s,o,D,A,B,G,n,F,y;function z(H){H.preventDefault();n=B+(H.screenX-D);F=G+(H.screenY-A);w.resizeTo(n,F)}function C(H){g.remove(i.doc,"mousemove",t);g.remove(q.getDoc(),"mousemove",r);g.remove(i.doc,"mouseup",s);g.remove(q.getDoc(),"mouseup",o);n=B+(H.screenX-D);F=G+(H.screenY-A);w.resizeTo(n,F,true);q.nodeChanged()}E.preventDefault();D=E.screenX;A=E.screenY;y=i.get(w.editor.id+"_ifr");B=n=y.clientWidth;G=F=y.clientHeight;t=g.add(i.doc,"mousemove",z);r=g.add(q.getDoc(),"mousemove",z);s=g.add(i.doc,"mouseup",C);o=g.add(q.getDoc(),"mouseup",C)})})}k.deltaHeight-=21;l=p=null},_updateUndoStatus:function(k){var j=k.controlManager,l=k.undoManager;j.setDisabled("undo",!l.hasUndo()&&!l.typing);j.setDisabled("redo",!l.hasRedo())},_nodeChanged:function(o,u,E,r,F){var z=this,D,G=0,y,H,A=z.settings,x,l,w,C,m,k,j;h.each(z.stateControls,function(n){u.setActive(n,o.queryCommandState(z.controls[n][1]))});function q(p){var s,n=F.parents,t=p;if(typeof(p)=="string"){t=function(v){return v.nodeName==p}}for(s=0;s<n.length;s++){if(t(n[s])){return n[s]}}}u.setActive("visualaid",o.hasVisual);z._updateUndoStatus(o);u.setDisabled("outdent",!o.queryCommandState("Outdent"));D=q("A");if(H=u.get("link")){H.setDisabled((!D&&r)||(D&&!D.href));H.setActive(!!D&&(!D.name&&!D.id))}if(H=u.get("unlink")){H.setDisabled(!D&&r);H.setActive(!!D&&!D.name&&!D.id)}if(H=u.get("anchor")){H.setActive(!r&&!!D&&(D.name||(D.id&&!D.href)))}D=q("IMG");if(H=u.get("image")){H.setActive(!r&&!!D&&E.className.indexOf("mceItem")==-1)}if(H=u.get("styleselect")){z._importClasses();k=[];f(H.items,function(n){k.push(n.value)});j=o.formatter.matchAll(k);H.select(j[0]);h.each(j,function(p,n){if(n>0){H.mark(p)}})}if(H=u.get("formatselect")){D=q(o.dom.isBlock);if(D){H.select(D.nodeName.toLowerCase())}}q(function(p){if(p.nodeName==="SPAN"){if(!x&&p.className){x=p.className}}if(o.dom.is(p,A.theme_advanced_font_selector)){if(!l&&p.style.fontSize){l=p.style.fontSize}if(!w&&p.style.fontFamily){w=p.style.fontFamily.replace(/[\"\']+/g,"").replace(/^([^,]+).*/,"$1").toLowerCase()}if(!C&&p.style.color){C=p.style.color}if(!m&&p.style.backgroundColor){m=p.style.backgroundColor}}return false});if(H=u.get("fontselect")){H.select(function(n){return n.replace(/^([^,]+).*/,"$1").toLowerCase()==w})}if(H=u.get("fontsizeselect")){if(A.theme_advanced_runtime_fontsize&&!l&&!x){l=o.dom.getStyle(E,"fontSize",true)}H.select(function(n){if(n.fontSize&&n.fontSize===l){return true}if(n["class"]&&n["class"]===x){return true}})}if(A.theme_advanced_show_current_color){function B(p,n){if(H=u.get(p)){if(!n){n=H.settings.default_color}if(n!==H.value){H.displayColor(n)}}}B("forecolor",C);B("backcolor",m)}if(A.theme_advanced_show_current_color){function B(p,n){if(H=u.get(p)){if(!n){n=H.settings.default_color}if(n!==H.value){H.displayColor(n)}}}B("forecolor",C);B("backcolor",m)}if(A.theme_advanced_path&&A.theme_advanced_statusbar_location){D=i.get(o.id+"_path")||i.add(o.id+"_path_row","span",{id:o.id+"_path"});if(z.statusKeyboardNavigation){z.statusKeyboardNavigation.destroy();z.statusKeyboardNavigation=null}i.setHTML(D,"");q(function(I){var p=I.nodeName.toLowerCase(),s,v,t="";if(I.nodeType!=1||p==="br"||I.getAttribute("data-mce-bogus")||i.hasClass(I,"mceItemHidden")||i.hasClass(I,"mceItemRemoved")){return}if(h.isIE&&I.scopeName!=="HTML"&&I.scopeName){p=I.scopeName+":"+p}p=p.replace(/mce\:/g,"");switch(p){case"b":p="strong";break;case"i":p="em";break;case"img":if(y=i.getAttrib(I,"src")){t+="src: "+y+" "}break;case"a":if(y=i.getAttrib(I,"name")){t+="name: "+y+" ";p+="#"+y}if(y=i.getAttrib(I,"href")){t+="href: "+y+" "}break;case"font":if(y=i.getAttrib(I,"face")){t+="font: "+y+" "}if(y=i.getAttrib(I,"size")){t+="size: "+y+" "}if(y=i.getAttrib(I,"color")){t+="color: "+y+" "}break;case"span":if(y=i.getAttrib(I,"style")){t+="style: "+y+" "}break}if(y=i.getAttrib(I,"id")){t+="id: "+y+" "}if(y=I.className){y=y.replace(/\b\s*(webkit|mce|Apple-)\w+\s*\b/g,"");if(y){t+="class: "+y+" ";if(o.dom.isBlock(I)||p=="img"||p=="span"){p+="."+y}}}p=p.replace(/(html:)/g,"");p={name:p,node:I,title:t};z.onResolveName.dispatch(z,p);t=p.title;p=p.name;v=i.create("a",{href:"javascript:;",role:"button",onmousedown:"return false;",title:t,"class":"mcePath_"+(G++)},p);if(D.hasChildNodes()){D.insertBefore(i.create("span",{"aria-hidden":"true"},"\u00a0\u00bb "),D.firstChild);D.insertBefore(v,D.firstChild)}else{D.appendChild(v)}},o.getBody());if(i.select("a",D).length>0){z.statusKeyboardNavigation=new h.ui.KeyboardNavigation({root:o.id+"_path_row",items:i.select("a",D),excludeFromTabOrder:true,onCancel:function(){o.focus()}},i)}}},_sel:function(j){this.editor.execCommand("mceSelectNodeDepth",false,j)},_mceInsertAnchor:function(l,k){var j=this.editor;j.windowManager.open({url:this.url+"/anchor.htm",width:320+parseInt(j.getLang("advanced.anchor_delta_width",0)),height:90+parseInt(j.getLang("advanced.anchor_delta_height",0)),inline:true},{theme_url:this.url})},_mceCharMap:function(){var j=this.editor;j.windowManager.open({url:this.url+"/charmap.htm",width:550+parseInt(j.getLang("advanced.charmap_delta_width",0)),height:265+parseInt(j.getLang("advanced.charmap_delta_height",0)),inline:true},{theme_url:this.url})},_mceHelp:function(){var j=this.editor;j.windowManager.open({url:this.url+"/about.htm",width:480,height:380,inline:true},{theme_url:this.url})},_mceShortcuts:function(){var j=this.editor;j.windowManager.open({url:this.url+"/shortcuts.htm",width:480,height:380,inline:true},{theme_url:this.url})},_mceColorPicker:function(l,k){var j=this.editor;k=k||{};j.windowManager.open({url:this.url+"/color_picker.htm",width:375+parseInt(j.getLang("advanced.colorpicker_delta_width",0)),height:250+parseInt(j.getLang("advanced.colorpicker_delta_height",0)),close_previous:false,inline:true},{input_color:k.color,func:k.func,theme_url:this.url})},_mceCodeEditor:function(k,l){var j=this.editor;j.windowManager.open({url:this.url+"/source_editor.htm",width:parseInt(j.getParam("theme_advanced_source_editor_width",720)),height:parseInt(j.getParam("theme_advanced_source_editor_height",580)),inline:true,resizable:true,maximizable:true},{theme_url:this.url})},_mceImage:function(k,l){var j=this.editor;if(j.dom.getAttrib(j.selection.getNode(),"class","").indexOf("mceItem")!=-1){return}j.windowManager.open({url:this.url+"/image.htm",width:355+parseInt(j.getLang("advanced.image_delta_width",0)),height:275+parseInt(j.getLang("advanced.image_delta_height",0)),inline:true},{theme_url:this.url})},_mceLink:function(k,l){var j=this.editor;j.windowManager.open({url:this.url+"/link.htm",width:310+parseInt(j.getLang("advanced.link_delta_width",0)),height:200+parseInt(j.getLang("advanced.link_delta_height",0)),inline:true},{theme_url:this.url})},_mceNewDocument:function(){var j=this.editor;j.windowManager.confirm("advanced.newdocument",function(k){if(k){j.execCommand("mceSetContent",false,"")}})},_mceForeColor:function(){var j=this;this._mceColorPicker(0,{color:j.fgColor,func:function(k){j.fgColor=k;j.editor.execCommand("ForeColor",false,k)}})},_mceBackColor:function(){var j=this;this._mceColorPicker(0,{color:j.bgColor,func:function(k){j.bgColor=k;j.editor.execCommand("HiliteColor",false,k)}})},_ufirst:function(j){return j.substring(0,1).toUpperCase()+j.substring(1)}});h.ThemeManager.add("advanced",h.themes.AdvancedTheme)}(tinymce));
+\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/image.htm b/chrome/content/zotero/tinymce/themes/advanced/image.htm
@@ -17,57 +17,57 @@
<div class="panel_wrapper">
<div id="general_panel" class="panel current">
- <table border="0" cellpadding="4" cellspacing="0">
- <tr>
- <td class="nowrap"><label for="src">{#advanced_dlg.image_src}</label></td>
- <td><table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td><input id="src" name="src" type="text" class="mceFocus" value="" style="width: 200px" onchange="ImageDialog.getImageData();" /></td>
- <td id="srcbrowsercontainer"> </td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td><label for="image_list">{#advanced_dlg.image_list}</label></td>
- <td><select id="image_list" name="image_list" onchange="document.getElementById('src').value=this.options[this.selectedIndex].value;document.getElementById('alt').value=this.options[this.selectedIndex].text;"></select></td>
- </tr>
- <tr>
- <td class="nowrap"><label for="alt">{#advanced_dlg.image_alt}</label></td>
- <td><input id="alt" name="alt" type="text" value="" style="width: 200px" /></td>
- </tr>
- <tr>
- <td class="nowrap"><label for="align">{#advanced_dlg.image_align}</label></td>
- <td><select id="align" name="align" onchange="ImageDialog.updateStyle();">
- <option value="">{#not_set}</option>
- <option value="baseline">{#advanced_dlg.image_align_baseline}</option>
- <option value="top">{#advanced_dlg.image_align_top}</option>
- <option value="middle">{#advanced_dlg.image_align_middle}</option>
- <option value="bottom">{#advanced_dlg.image_align_bottom}</option>
- <option value="text-top">{#advanced_dlg.image_align_texttop}</option>
- <option value="text-bottom">{#advanced_dlg.image_align_textbottom}</option>
- <option value="left">{#advanced_dlg.image_align_left}</option>
- <option value="right">{#advanced_dlg.image_align_right}</option>
- </select></td>
- </tr>
- <tr>
- <td class="nowrap"><label for="width">{#advanced_dlg.image_dimensions}</label></td>
- <td><input id="width" name="width" type="text" value="" size="3" maxlength="5" />
- x
- <input id="height" name="height" type="text" value="" size="3" maxlength="5" /></td>
- </tr>
- <tr>
- <td class="nowrap"><label for="border">{#advanced_dlg.image_border}</label></td>
- <td><input id="border" name="border" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
- </tr>
- <tr>
- <td class="nowrap"><label for="vspace">{#advanced_dlg.image_vspace}</label></td>
- <td><input id="vspace" name="vspace" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
- </tr>
- <tr>
- <td class="nowrap"><label for="hspace">{#advanced_dlg.image_hspace}</label></td>
- <td><input id="hspace" name="hspace" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
- </tr>
- </table>
+ <table border="0" cellpadding="4" cellspacing="0">
+ <tr>
+ <td class="nowrap"><label for="src">{#advanced_dlg.image_src}</label></td>
+ <td><table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input id="src" name="src" type="text" class="mceFocus" value="" style="width: 200px" onchange="ImageDialog.getImageData();" /></td>
+ <td id="srcbrowsercontainer"> </td>
+ </tr>
+ </table></td>
+ </tr>
+ <tr>
+ <td><label for="image_list">{#advanced_dlg.image_list}</label></td>
+ <td><select id="image_list" name="image_list" onchange="document.getElementById('src').value=this.options[this.selectedIndex].value;document.getElementById('alt').value=this.options[this.selectedIndex].text;"></select></td>
+ </tr>
+ <tr>
+ <td class="nowrap"><label for="alt">{#advanced_dlg.image_alt}</label></td>
+ <td><input id="alt" name="alt" type="text" value="" style="width: 200px" /></td>
+ </tr>
+ <tr>
+ <td class="nowrap"><label for="align">{#advanced_dlg.image_align}</label></td>
+ <td><select id="align" name="align" onchange="ImageDialog.updateStyle();">
+ <option value="">{#not_set}</option>
+ <option value="baseline">{#advanced_dlg.image_align_baseline}</option>
+ <option value="top">{#advanced_dlg.image_align_top}</option>
+ <option value="middle">{#advanced_dlg.image_align_middle}</option>
+ <option value="bottom">{#advanced_dlg.image_align_bottom}</option>
+ <option value="text-top">{#advanced_dlg.image_align_texttop}</option>
+ <option value="text-bottom">{#advanced_dlg.image_align_textbottom}</option>
+ <option value="left">{#advanced_dlg.image_align_left}</option>
+ <option value="right">{#advanced_dlg.image_align_right}</option>
+ </select></td>
+ </tr>
+ <tr>
+ <td class="nowrap"><label for="width">{#advanced_dlg.image_dimensions}</label></td>
+ <td><input id="width" name="width" type="text" value="" size="3" maxlength="5" />
+ x
+ <input id="height" name="height" type="text" value="" size="3" maxlength="5" /></td>
+ </tr>
+ <tr>
+ <td class="nowrap"><label for="border">{#advanced_dlg.image_border}</label></td>
+ <td><input id="border" name="border" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
+ </tr>
+ <tr>
+ <td class="nowrap"><label for="vspace">{#advanced_dlg.image_vspace}</label></td>
+ <td><input id="vspace" name="vspace" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
+ </tr>
+ <tr>
+ <td class="nowrap"><label for="hspace">{#advanced_dlg.image_hspace}</label></td>
+ <td><input id="hspace" name="hspace" type="text" value="" size="3" maxlength="3" onchange="ImageDialog.updateStyle();" /></td>
+ </tr>
+ </table>
</div>
</div>
diff --git a/chrome/content/zotero/tinymce/themes/advanced/img/colorpicker.jpg b/chrome/content/zotero/tinymce/themes/advanced/img/colorpicker.jpg
Binary files differ.
diff --git a/chrome/content/zotero/tinymce/themes/advanced/img/icons.gif b/chrome/content/zotero/tinymce/themes/advanced/img/icons.gif
Binary files differ.
diff --git a/chrome/content/zotero/tinymce/themes/advanced/js/about.js b/chrome/content/zotero/tinymce/themes/advanced/js/about.js
@@ -66,6 +66,7 @@ function insertHelpIFrame() {
html = '<iframe width="100%" height="300" src="' + tinyMCEPopup.editor.baseURI.toAbsolute(tinyMCEPopup.getParam('docs_url')) + '"></iframe>';
document.getElementById('iframecontainer').innerHTML = html;
document.getElementById('help_tab').style.display = 'block';
+ document.getElementById('help_tab').setAttribute("aria-hidden", "false");
}
}
diff --git a/chrome/content/zotero/tinymce/themes/advanced/js/anchor.js b/chrome/content/zotero/tinymce/themes/advanced/js/anchor.js
@@ -6,7 +6,7 @@ var AnchorDialog = {
this.editor = ed;
elm = ed.dom.getParent(ed.selection.getNode(), 'A');
- v = ed.dom.getAttrib(elm, 'name');
+ v = ed.dom.getAttrib(elm, 'name') || ed.dom.getAttrib(elm, 'id');
if (v) {
this.action = 'update';
@@ -17,18 +17,37 @@ var AnchorDialog = {
},
update : function() {
- var ed = this.editor, elm, name = document.forms[0].anchorName.value;
+ var ed = this.editor, elm, name = document.forms[0].anchorName.value, attribName;
+
+ if (!name || !/^[a-z][a-z0-9\-\_:\.]*$/i.test(name)) {
+ tinyMCEPopup.alert('advanced_dlg.anchor_invalid');
+ return;
+ }
tinyMCEPopup.restoreSelection();
if (this.action != 'update')
ed.selection.collapse(1);
+ var aRule = ed.schema.getElementRule('a');
+ if (!aRule || aRule.attributes.name) {
+ attribName = 'name';
+ } else {
+ attribName = 'id';
+ }
+
elm = ed.dom.getParent(ed.selection.getNode(), 'A');
- if (elm)
- elm.name = name;
- else
- ed.execCommand('mceInsertContent', 0, ed.dom.createHTML('a', {name : name, 'class' : 'mceItemAnchor'}, ''));
+ if (elm) {
+ elm.setAttribute(attribName, name);
+ elm[attribName] = name;
+ ed.undoManager.add();
+ } else {
+ // create with zero-sized nbsp so that in Webkit where anchor is on last line by itself caret cannot be placed after it
+ var attrs = {'class' : 'mceItemAnchor'};
+ attrs[attribName] = name;
+ ed.execCommand('mceInsertContent', 0, ed.dom.createHTML('a', attrs, '\uFEFF'));
+ ed.nodeChanged();
+ }
tinyMCEPopup.close();
}
diff --git a/chrome/content/zotero/tinymce/themes/advanced/js/charmap.js b/chrome/content/zotero/tinymce/themes/advanced/js/charmap.js
@@ -173,7 +173,7 @@ var charmap = [
['ý', 'ý', true, 'y - acute'],
['þ', 'þ', true, 'thorn'],
['ÿ', 'ÿ', true, 'y - diaeresis'],
- ['Α', 'Α', true, 'Alpha'],
+ ['Α', 'Α', true, 'Alpha'],
['Β', 'Β', true, 'Beta'],
['Γ', 'Γ', true, 'Gamma'],
['Δ', 'Δ', true, 'Delta'],
@@ -258,8 +258,8 @@ var charmap = [
['⌋', '⌋', false,'right floor'],
['⟨', '〈', false,'left-pointing angle bracket'],
['⟩', '〉', false,'right-pointing angle bracket'],
- ['◊', '◊', true,'lozenge'],
- ['♠', '♠', false,'black spade suit'],
+ ['◊', '◊', true, 'lozenge'],
+ ['♠', '♠', true, 'black spade suit'],
['♣', '♣', true, 'black club suit'],
['♥', '♥', true, 'black heart suit'],
['♦', '♦', true, 'black diamond suit'],
@@ -275,19 +275,46 @@ var charmap = [
tinyMCEPopup.onInit.add(function() {
tinyMCEPopup.dom.setHTML('charmapView', renderCharMapHTML());
+ addKeyboardNavigation();
});
+function addKeyboardNavigation(){
+ var tableElm, cells, settings;
+
+ cells = tinyMCEPopup.dom.select("a.charmaplink", "charmapgroup");
+
+ settings ={
+ root: "charmapgroup",
+ items: cells
+ };
+ cells[0].tabindex=0;
+ tinyMCEPopup.dom.addClass(cells[0], "mceFocus");
+ if (tinymce.isGecko) {
+ cells[0].focus();
+ } else {
+ setTimeout(function(){
+ cells[0].focus();
+ }, 100);
+ }
+ tinyMCEPopup.editor.windowManager.createInstance('tinymce.ui.KeyboardNavigation', settings, tinyMCEPopup.dom);
+}
+
function renderCharMapHTML() {
var charsPerRow = 20, tdWidth=20, tdHeight=20, i;
- var html = '<table border="0" cellspacing="1" cellpadding="0" width="' + (tdWidth*charsPerRow) + '"><tr height="' + tdHeight + '">';
+ var html = '<div id="charmapgroup" aria-labelledby="charmap_label" tabindex="0" role="listbox">'+
+ '<table role="presentation" border="0" cellspacing="1" cellpadding="0" width="' + (tdWidth*charsPerRow) +
+ '"><tr height="' + tdHeight + '">';
var cols=-1;
for (i=0; i<charmap.length; i++) {
+ var previewCharFn;
+
if (charmap[i][2]==true) {
cols++;
+ previewCharFn = 'previewChar(\'' + charmap[i][1].substring(1,charmap[i][1].length) + '\',\'' + charmap[i][0].substring(1,charmap[i][0].length) + '\',\'' + charmap[i][3] + '\');';
html += ''
+ '<td class="charmap">'
- + '<a onmouseover="previewChar(\'' + charmap[i][1].substring(1,charmap[i][1].length) + '\',\'' + charmap[i][0].substring(1,charmap[i][0].length) + '\',\'' + charmap[i][3] + '\');" onfocus="previewChar(\'' + charmap[i][1].substring(1,charmap[i][1].length) + '\',\'' + charmap[i][0].substring(1,charmap[i][0].length) + '\',\'' + charmap[i][3] + '\');" href="javascript:void(0)" onclick="insertChar(\'' + charmap[i][1].substring(2,charmap[i][1].length-1) + '\');" onclick="return false;" onmousedown="return false;" title="' + charmap[i][3] + '">'
+ + '<a class="charmaplink" role="button" onmouseover="'+previewCharFn+'" onfocus="'+previewCharFn+'" href="javascript:void(0)" onclick="insertChar(\'' + charmap[i][1].substring(2,charmap[i][1].length-1) + '\');" onclick="return false;" onmousedown="return false;" title="' + charmap[i][3] + ' '+ tinyMCEPopup.editor.translate("advanced_dlg.charmap_usage")+'">'
+ charmap[i][1]
+ '</a></td>';
if ((cols+1) % charsPerRow == 0)
@@ -301,7 +328,8 @@ function renderCharMapHTML() {
html += '<td width="' + tdWidth + '" height="' + tdHeight + '" class="charmap"> </td>';
}
- html += '</tr></table>';
+ html += '</tr></table></div>';
+ html = html.replace(/<tr height="20"><\/tr>/g, '');
return html;
}
diff --git a/chrome/content/zotero/tinymce/themes/advanced/js/color_picker.js b/chrome/content/zotero/tinymce/themes/advanced/js/color_picker.js
@@ -1,253 +1,345 @@
-tinyMCEPopup.requireLangPack();
-
-var detail = 50, strhex = "0123456789abcdef", i, isMouseDown = false, isMouseOver = false;
-
-var colors = [
- "#000000","#000033","#000066","#000099","#0000cc","#0000ff","#330000","#330033",
- "#330066","#330099","#3300cc","#3300ff","#660000","#660033","#660066","#660099",
- "#6600cc","#6600ff","#990000","#990033","#990066","#990099","#9900cc","#9900ff",
- "#cc0000","#cc0033","#cc0066","#cc0099","#cc00cc","#cc00ff","#ff0000","#ff0033",
- "#ff0066","#ff0099","#ff00cc","#ff00ff","#003300","#003333","#003366","#003399",
- "#0033cc","#0033ff","#333300","#333333","#333366","#333399","#3333cc","#3333ff",
- "#663300","#663333","#663366","#663399","#6633cc","#6633ff","#993300","#993333",
- "#993366","#993399","#9933cc","#9933ff","#cc3300","#cc3333","#cc3366","#cc3399",
- "#cc33cc","#cc33ff","#ff3300","#ff3333","#ff3366","#ff3399","#ff33cc","#ff33ff",
- "#006600","#006633","#006666","#006699","#0066cc","#0066ff","#336600","#336633",
- "#336666","#336699","#3366cc","#3366ff","#666600","#666633","#666666","#666699",
- "#6666cc","#6666ff","#996600","#996633","#996666","#996699","#9966cc","#9966ff",
- "#cc6600","#cc6633","#cc6666","#cc6699","#cc66cc","#cc66ff","#ff6600","#ff6633",
- "#ff6666","#ff6699","#ff66cc","#ff66ff","#009900","#009933","#009966","#009999",
- "#0099cc","#0099ff","#339900","#339933","#339966","#339999","#3399cc","#3399ff",
- "#669900","#669933","#669966","#669999","#6699cc","#6699ff","#999900","#999933",
- "#999966","#999999","#9999cc","#9999ff","#cc9900","#cc9933","#cc9966","#cc9999",
- "#cc99cc","#cc99ff","#ff9900","#ff9933","#ff9966","#ff9999","#ff99cc","#ff99ff",
- "#00cc00","#00cc33","#00cc66","#00cc99","#00cccc","#00ccff","#33cc00","#33cc33",
- "#33cc66","#33cc99","#33cccc","#33ccff","#66cc00","#66cc33","#66cc66","#66cc99",
- "#66cccc","#66ccff","#99cc00","#99cc33","#99cc66","#99cc99","#99cccc","#99ccff",
- "#cccc00","#cccc33","#cccc66","#cccc99","#cccccc","#ccccff","#ffcc00","#ffcc33",
- "#ffcc66","#ffcc99","#ffcccc","#ffccff","#00ff00","#00ff33","#00ff66","#00ff99",
- "#00ffcc","#00ffff","#33ff00","#33ff33","#33ff66","#33ff99","#33ffcc","#33ffff",
- "#66ff00","#66ff33","#66ff66","#66ff99","#66ffcc","#66ffff","#99ff00","#99ff33",
- "#99ff66","#99ff99","#99ffcc","#99ffff","#ccff00","#ccff33","#ccff66","#ccff99",
- "#ccffcc","#ccffff","#ffff00","#ffff33","#ffff66","#ffff99","#ffffcc","#ffffff"
-];
-
-var named = {
- '#F0F8FF':'AliceBlue','#FAEBD7':'AntiqueWhite','#00FFFF':'Aqua','#7FFFD4':'Aquamarine','#F0FFFF':'Azure','#F5F5DC':'Beige',
- '#FFE4C4':'Bisque','#000000':'Black','#FFEBCD':'BlanchedAlmond','#0000FF':'Blue','#8A2BE2':'BlueViolet','#A52A2A':'Brown',
- '#DEB887':'BurlyWood','#5F9EA0':'CadetBlue','#7FFF00':'Chartreuse','#D2691E':'Chocolate','#FF7F50':'Coral','#6495ED':'CornflowerBlue',
- '#FFF8DC':'Cornsilk','#DC143C':'Crimson','#00FFFF':'Cyan','#00008B':'DarkBlue','#008B8B':'DarkCyan','#B8860B':'DarkGoldenRod',
- '#A9A9A9':'DarkGray','#A9A9A9':'DarkGrey','#006400':'DarkGreen','#BDB76B':'DarkKhaki','#8B008B':'DarkMagenta','#556B2F':'DarkOliveGreen',
- '#FF8C00':'Darkorange','#9932CC':'DarkOrchid','#8B0000':'DarkRed','#E9967A':'DarkSalmon','#8FBC8F':'DarkSeaGreen','#483D8B':'DarkSlateBlue',
- '#2F4F4F':'DarkSlateGray','#2F4F4F':'DarkSlateGrey','#00CED1':'DarkTurquoise','#9400D3':'DarkViolet','#FF1493':'DeepPink','#00BFFF':'DeepSkyBlue',
- '#696969':'DimGray','#696969':'DimGrey','#1E90FF':'DodgerBlue','#B22222':'FireBrick','#FFFAF0':'FloralWhite','#228B22':'ForestGreen',
- '#FF00FF':'Fuchsia','#DCDCDC':'Gainsboro','#F8F8FF':'GhostWhite','#FFD700':'Gold','#DAA520':'GoldenRod','#808080':'Gray','#808080':'Grey',
- '#008000':'Green','#ADFF2F':'GreenYellow','#F0FFF0':'HoneyDew','#FF69B4':'HotPink','#CD5C5C':'IndianRed','#4B0082':'Indigo','#FFFFF0':'Ivory',
- '#F0E68C':'Khaki','#E6E6FA':'Lavender','#FFF0F5':'LavenderBlush','#7CFC00':'LawnGreen','#FFFACD':'LemonChiffon','#ADD8E6':'LightBlue',
- '#F08080':'LightCoral','#E0FFFF':'LightCyan','#FAFAD2':'LightGoldenRodYellow','#D3D3D3':'LightGray','#D3D3D3':'LightGrey','#90EE90':'LightGreen',
- '#FFB6C1':'LightPink','#FFA07A':'LightSalmon','#20B2AA':'LightSeaGreen','#87CEFA':'LightSkyBlue','#778899':'LightSlateGray','#778899':'LightSlateGrey',
- '#B0C4DE':'LightSteelBlue','#FFFFE0':'LightYellow','#00FF00':'Lime','#32CD32':'LimeGreen','#FAF0E6':'Linen','#FF00FF':'Magenta','#800000':'Maroon',
- '#66CDAA':'MediumAquaMarine','#0000CD':'MediumBlue','#BA55D3':'MediumOrchid','#9370D8':'MediumPurple','#3CB371':'MediumSeaGreen','#7B68EE':'MediumSlateBlue',
- '#00FA9A':'MediumSpringGreen','#48D1CC':'MediumTurquoise','#C71585':'MediumVioletRed','#191970':'MidnightBlue','#F5FFFA':'MintCream','#FFE4E1':'MistyRose','#FFE4B5':'Moccasin',
- '#FFDEAD':'NavajoWhite','#000080':'Navy','#FDF5E6':'OldLace','#808000':'Olive','#6B8E23':'OliveDrab','#FFA500':'Orange','#FF4500':'OrangeRed','#DA70D6':'Orchid',
- '#EEE8AA':'PaleGoldenRod','#98FB98':'PaleGreen','#AFEEEE':'PaleTurquoise','#D87093':'PaleVioletRed','#FFEFD5':'PapayaWhip','#FFDAB9':'PeachPuff',
- '#CD853F':'Peru','#FFC0CB':'Pink','#DDA0DD':'Plum','#B0E0E6':'PowderBlue','#800080':'Purple','#FF0000':'Red','#BC8F8F':'RosyBrown','#4169E1':'RoyalBlue',
- '#8B4513':'SaddleBrown','#FA8072':'Salmon','#F4A460':'SandyBrown','#2E8B57':'SeaGreen','#FFF5EE':'SeaShell','#A0522D':'Sienna','#C0C0C0':'Silver',
- '#87CEEB':'SkyBlue','#6A5ACD':'SlateBlue','#708090':'SlateGray','#708090':'SlateGrey','#FFFAFA':'Snow','#00FF7F':'SpringGreen',
- '#4682B4':'SteelBlue','#D2B48C':'Tan','#008080':'Teal','#D8BFD8':'Thistle','#FF6347':'Tomato','#40E0D0':'Turquoise','#EE82EE':'Violet',
- '#F5DEB3':'Wheat','#FFFFFF':'White','#F5F5F5':'WhiteSmoke','#FFFF00':'Yellow','#9ACD32':'YellowGreen'
-};
-
-function init() {
- var inputColor = convertRGBToHex(tinyMCEPopup.getWindowArg('input_color'));
-
- tinyMCEPopup.resizeToInnerSize();
-
- generatePicker();
-
- if (inputColor) {
- changeFinalColor(inputColor);
-
- col = convertHexToRGB(inputColor);
-
- if (col)
- updateLight(col.r, col.g, col.b);
- }
-}
-
-function insertAction() {
- var color = document.getElementById("color").value, f = tinyMCEPopup.getWindowArg('func');
-
- tinyMCEPopup.restoreSelection();
-
- if (f)
- f(color);
-
- tinyMCEPopup.close();
-}
-
-function showColor(color, name) {
- if (name)
- document.getElementById("colorname").innerHTML = name;
-
- document.getElementById("preview").style.backgroundColor = color;
- document.getElementById("color").value = color.toLowerCase();
-}
-
-function convertRGBToHex(col) {
- var re = new RegExp("rgb\\s*\\(\\s*([0-9]+).*,\\s*([0-9]+).*,\\s*([0-9]+).*\\)", "gi");
-
- if (!col)
- return col;
-
- var rgb = col.replace(re, "$1,$2,$3").split(',');
- if (rgb.length == 3) {
- r = parseInt(rgb[0]).toString(16);
- g = parseInt(rgb[1]).toString(16);
- b = parseInt(rgb[2]).toString(16);
-
- r = r.length == 1 ? '0' + r : r;
- g = g.length == 1 ? '0' + g : g;
- b = b.length == 1 ? '0' + b : b;
-
- return "#" + r + g + b;
- }
-
- return col;
-}
-
-function convertHexToRGB(col) {
- if (col.indexOf('#') != -1) {
- col = col.replace(new RegExp('[^0-9A-F]', 'gi'), '');
-
- r = parseInt(col.substring(0, 2), 16);
- g = parseInt(col.substring(2, 4), 16);
- b = parseInt(col.substring(4, 6), 16);
-
- return {r : r, g : g, b : b};
- }
-
- return null;
-}
-
-function generatePicker() {
- var el = document.getElementById('light'), h = '', i;
-
- for (i = 0; i < detail; i++){
- h += '<div id="gs'+i+'" style="background-color:#000000; width:15px; height:3px; border-style:none; border-width:0px;"'
- + ' onclick="changeFinalColor(this.style.backgroundColor)"'
- + ' onmousedown="isMouseDown = true; return false;"'
- + ' onmouseup="isMouseDown = false;"'
- + ' onmousemove="if (isMouseDown && isMouseOver) changeFinalColor(this.style.backgroundColor); return false;"'
- + ' onmouseover="isMouseOver = true;"'
- + ' onmouseout="isMouseOver = false;"'
- + '></div>';
- }
-
- el.innerHTML = h;
-}
-
-function generateWebColors() {
- var el = document.getElementById('webcolors'), h = '', i;
-
- if (el.className == 'generated')
- return;
-
- h += '<table border="0" cellspacing="1" cellpadding="0">'
- + '<tr>';
-
- for (i=0; i<colors.length; i++) {
- h += '<td bgcolor="' + colors[i] + '" width="10" height="10">'
- + '<a href="javascript:insertAction();" onfocus="showColor(\'' + colors[i] + '\');" onmouseover="showColor(\'' + colors[i] + '\');" style="display:block;width:10px;height:10px;overflow:hidden;">'
- + '</a></td>';
- if ((i+1) % 18 == 0)
- h += '</tr><tr>';
- }
-
- h += '</table>';
-
- el.innerHTML = h;
- el.className = 'generated';
-}
-
-function generateNamedColors() {
- var el = document.getElementById('namedcolors'), h = '', n, v, i = 0;
-
- if (el.className == 'generated')
- return;
-
- for (n in named) {
- v = named[n];
- h += '<a href="javascript:insertAction();" onmouseover="showColor(\'' + n + '\',\'' + v + '\');" style="background-color: ' + n + '"><!-- IE --></a>'
- }
-
- el.innerHTML = h;
- el.className = 'generated';
-}
-
-function dechex(n) {
- return strhex.charAt(Math.floor(n / 16)) + strhex.charAt(n % 16);
-}
-
-function computeColor(e) {
- var x, y, partWidth, partDetail, imHeight, r, g, b, coef, i, finalCoef, finalR, finalG, finalB;
-
- x = e.offsetX ? e.offsetX : (e.target ? e.clientX - e.target.x : 0);
- y = e.offsetY ? e.offsetY : (e.target ? e.clientY - e.target.y : 0);
-
- partWidth = document.getElementById('colors').width / 6;
- partDetail = detail / 2;
- imHeight = document.getElementById('colors').height;
-
- r = (x >= 0)*(x < partWidth)*255 + (x >= partWidth)*(x < 2*partWidth)*(2*255 - x * 255 / partWidth) + (x >= 4*partWidth)*(x < 5*partWidth)*(-4*255 + x * 255 / partWidth) + (x >= 5*partWidth)*(x < 6*partWidth)*255;
- g = (x >= 0)*(x < partWidth)*(x * 255 / partWidth) + (x >= partWidth)*(x < 3*partWidth)*255 + (x >= 3*partWidth)*(x < 4*partWidth)*(4*255 - x * 255 / partWidth);
- b = (x >= 2*partWidth)*(x < 3*partWidth)*(-2*255 + x * 255 / partWidth) + (x >= 3*partWidth)*(x < 5*partWidth)*255 + (x >= 5*partWidth)*(x < 6*partWidth)*(6*255 - x * 255 / partWidth);
-
- coef = (imHeight - y) / imHeight;
- r = 128 + (r - 128) * coef;
- g = 128 + (g - 128) * coef;
- b = 128 + (b - 128) * coef;
-
- changeFinalColor('#' + dechex(r) + dechex(g) + dechex(b));
- updateLight(r, g, b);
-}
-
-function updateLight(r, g, b) {
- var i, partDetail = detail / 2, finalCoef, finalR, finalG, finalB, color;
-
- for (i=0; i<detail; i++) {
- if ((i>=0) && (i<partDetail)) {
- finalCoef = i / partDetail;
- finalR = dechex(255 - (255 - r) * finalCoef);
- finalG = dechex(255 - (255 - g) * finalCoef);
- finalB = dechex(255 - (255 - b) * finalCoef);
- } else {
- finalCoef = 2 - i / partDetail;
- finalR = dechex(r * finalCoef);
- finalG = dechex(g * finalCoef);
- finalB = dechex(b * finalCoef);
- }
-
- color = finalR + finalG + finalB;
-
- setCol('gs' + i, '#'+color);
- }
-}
-
-function changeFinalColor(color) {
- if (color.indexOf('#') == -1)
- color = convertRGBToHex(color);
-
- setCol('preview', color);
- document.getElementById('color').value = color;
-}
-
-function setCol(e, c) {
- try {
- document.getElementById(e).style.backgroundColor = c;
- } catch (ex) {
- // Ignore IE warning
- }
-}
-
-tinyMCEPopup.onInit.add(init);
+tinyMCEPopup.requireLangPack();
+
+var detail = 50, strhex = "0123456789abcdef", i, isMouseDown = false, isMouseOver = false;
+
+var colors = [
+ "#000000","#000033","#000066","#000099","#0000cc","#0000ff","#330000","#330033",
+ "#330066","#330099","#3300cc","#3300ff","#660000","#660033","#660066","#660099",
+ "#6600cc","#6600ff","#990000","#990033","#990066","#990099","#9900cc","#9900ff",
+ "#cc0000","#cc0033","#cc0066","#cc0099","#cc00cc","#cc00ff","#ff0000","#ff0033",
+ "#ff0066","#ff0099","#ff00cc","#ff00ff","#003300","#003333","#003366","#003399",
+ "#0033cc","#0033ff","#333300","#333333","#333366","#333399","#3333cc","#3333ff",
+ "#663300","#663333","#663366","#663399","#6633cc","#6633ff","#993300","#993333",
+ "#993366","#993399","#9933cc","#9933ff","#cc3300","#cc3333","#cc3366","#cc3399",
+ "#cc33cc","#cc33ff","#ff3300","#ff3333","#ff3366","#ff3399","#ff33cc","#ff33ff",
+ "#006600","#006633","#006666","#006699","#0066cc","#0066ff","#336600","#336633",
+ "#336666","#336699","#3366cc","#3366ff","#666600","#666633","#666666","#666699",
+ "#6666cc","#6666ff","#996600","#996633","#996666","#996699","#9966cc","#9966ff",
+ "#cc6600","#cc6633","#cc6666","#cc6699","#cc66cc","#cc66ff","#ff6600","#ff6633",
+ "#ff6666","#ff6699","#ff66cc","#ff66ff","#009900","#009933","#009966","#009999",
+ "#0099cc","#0099ff","#339900","#339933","#339966","#339999","#3399cc","#3399ff",
+ "#669900","#669933","#669966","#669999","#6699cc","#6699ff","#999900","#999933",
+ "#999966","#999999","#9999cc","#9999ff","#cc9900","#cc9933","#cc9966","#cc9999",
+ "#cc99cc","#cc99ff","#ff9900","#ff9933","#ff9966","#ff9999","#ff99cc","#ff99ff",
+ "#00cc00","#00cc33","#00cc66","#00cc99","#00cccc","#00ccff","#33cc00","#33cc33",
+ "#33cc66","#33cc99","#33cccc","#33ccff","#66cc00","#66cc33","#66cc66","#66cc99",
+ "#66cccc","#66ccff","#99cc00","#99cc33","#99cc66","#99cc99","#99cccc","#99ccff",
+ "#cccc00","#cccc33","#cccc66","#cccc99","#cccccc","#ccccff","#ffcc00","#ffcc33",
+ "#ffcc66","#ffcc99","#ffcccc","#ffccff","#00ff00","#00ff33","#00ff66","#00ff99",
+ "#00ffcc","#00ffff","#33ff00","#33ff33","#33ff66","#33ff99","#33ffcc","#33ffff",
+ "#66ff00","#66ff33","#66ff66","#66ff99","#66ffcc","#66ffff","#99ff00","#99ff33",
+ "#99ff66","#99ff99","#99ffcc","#99ffff","#ccff00","#ccff33","#ccff66","#ccff99",
+ "#ccffcc","#ccffff","#ffff00","#ffff33","#ffff66","#ffff99","#ffffcc","#ffffff"
+];
+
+var named = {
+ '#F0F8FF':'Alice Blue','#FAEBD7':'Antique White','#00FFFF':'Aqua','#7FFFD4':'Aquamarine','#F0FFFF':'Azure','#F5F5DC':'Beige',
+ '#FFE4C4':'Bisque','#000000':'Black','#FFEBCD':'Blanched Almond','#0000FF':'Blue','#8A2BE2':'Blue Violet','#A52A2A':'Brown',
+ '#DEB887':'Burly Wood','#5F9EA0':'Cadet Blue','#7FFF00':'Chartreuse','#D2691E':'Chocolate','#FF7F50':'Coral','#6495ED':'Cornflower Blue',
+ '#FFF8DC':'Cornsilk','#DC143C':'Crimson','#00FFFF':'Cyan','#00008B':'Dark Blue','#008B8B':'Dark Cyan','#B8860B':'Dark Golden Rod',
+ '#A9A9A9':'Dark Gray','#A9A9A9':'Dark Grey','#006400':'Dark Green','#BDB76B':'Dark Khaki','#8B008B':'Dark Magenta','#556B2F':'Dark Olive Green',
+ '#FF8C00':'Darkorange','#9932CC':'Dark Orchid','#8B0000':'Dark Red','#E9967A':'Dark Salmon','#8FBC8F':'Dark Sea Green','#483D8B':'Dark Slate Blue',
+ '#2F4F4F':'Dark Slate Gray','#2F4F4F':'Dark Slate Grey','#00CED1':'Dark Turquoise','#9400D3':'Dark Violet','#FF1493':'Deep Pink','#00BFFF':'Deep Sky Blue',
+ '#696969':'Dim Gray','#696969':'Dim Grey','#1E90FF':'Dodger Blue','#B22222':'Fire Brick','#FFFAF0':'Floral White','#228B22':'Forest Green',
+ '#FF00FF':'Fuchsia','#DCDCDC':'Gainsboro','#F8F8FF':'Ghost White','#FFD700':'Gold','#DAA520':'Golden Rod','#808080':'Gray','#808080':'Grey',
+ '#008000':'Green','#ADFF2F':'Green Yellow','#F0FFF0':'Honey Dew','#FF69B4':'Hot Pink','#CD5C5C':'Indian Red','#4B0082':'Indigo','#FFFFF0':'Ivory',
+ '#F0E68C':'Khaki','#E6E6FA':'Lavender','#FFF0F5':'Lavender Blush','#7CFC00':'Lawn Green','#FFFACD':'Lemon Chiffon','#ADD8E6':'Light Blue',
+ '#F08080':'Light Coral','#E0FFFF':'Light Cyan','#FAFAD2':'Light Golden Rod Yellow','#D3D3D3':'Light Gray','#D3D3D3':'Light Grey','#90EE90':'Light Green',
+ '#FFB6C1':'Light Pink','#FFA07A':'Light Salmon','#20B2AA':'Light Sea Green','#87CEFA':'Light Sky Blue','#778899':'Light Slate Gray','#778899':'Light Slate Grey',
+ '#B0C4DE':'Light Steel Blue','#FFFFE0':'Light Yellow','#00FF00':'Lime','#32CD32':'Lime Green','#FAF0E6':'Linen','#FF00FF':'Magenta','#800000':'Maroon',
+ '#66CDAA':'Medium Aqua Marine','#0000CD':'Medium Blue','#BA55D3':'Medium Orchid','#9370D8':'Medium Purple','#3CB371':'Medium Sea Green','#7B68EE':'Medium Slate Blue',
+ '#00FA9A':'Medium Spring Green','#48D1CC':'Medium Turquoise','#C71585':'Medium Violet Red','#191970':'Midnight Blue','#F5FFFA':'Mint Cream','#FFE4E1':'Misty Rose','#FFE4B5':'Moccasin',
+ '#FFDEAD':'Navajo White','#000080':'Navy','#FDF5E6':'Old Lace','#808000':'Olive','#6B8E23':'Olive Drab','#FFA500':'Orange','#FF4500':'Orange Red','#DA70D6':'Orchid',
+ '#EEE8AA':'Pale Golden Rod','#98FB98':'Pale Green','#AFEEEE':'Pale Turquoise','#D87093':'Pale Violet Red','#FFEFD5':'Papaya Whip','#FFDAB9':'Peach Puff',
+ '#CD853F':'Peru','#FFC0CB':'Pink','#DDA0DD':'Plum','#B0E0E6':'Powder Blue','#800080':'Purple','#FF0000':'Red','#BC8F8F':'Rosy Brown','#4169E1':'Royal Blue',
+ '#8B4513':'Saddle Brown','#FA8072':'Salmon','#F4A460':'Sandy Brown','#2E8B57':'Sea Green','#FFF5EE':'Sea Shell','#A0522D':'Sienna','#C0C0C0':'Silver',
+ '#87CEEB':'Sky Blue','#6A5ACD':'Slate Blue','#708090':'Slate Gray','#708090':'Slate Grey','#FFFAFA':'Snow','#00FF7F':'Spring Green',
+ '#4682B4':'Steel Blue','#D2B48C':'Tan','#008080':'Teal','#D8BFD8':'Thistle','#FF6347':'Tomato','#40E0D0':'Turquoise','#EE82EE':'Violet',
+ '#F5DEB3':'Wheat','#FFFFFF':'White','#F5F5F5':'White Smoke','#FFFF00':'Yellow','#9ACD32':'Yellow Green'
+};
+
+var namedLookup = {};
+
+function init() {
+ var inputColor = convertRGBToHex(tinyMCEPopup.getWindowArg('input_color')), key, value;
+
+ tinyMCEPopup.resizeToInnerSize();
+
+ generatePicker();
+ generateWebColors();
+ generateNamedColors();
+
+ if (inputColor) {
+ changeFinalColor(inputColor);
+
+ col = convertHexToRGB(inputColor);
+
+ if (col)
+ updateLight(col.r, col.g, col.b);
+ }
+
+ for (key in named) {
+ value = named[key];
+ namedLookup[value.replace(/\s+/, '').toLowerCase()] = key.replace(/#/, '').toLowerCase();
+ }
+}
+
+function toHexColor(color) {
+ var matches, red, green, blue, toInt = parseInt;
+
+ function hex(value) {
+ value = parseInt(value).toString(16);
+
+ return value.length > 1 ? value : '0' + value; // Padd with leading zero
+ };
+
+ color = tinymce.trim(color);
+ color = color.replace(/^[#]/, '').toLowerCase(); // remove leading '#'
+ color = namedLookup[color] || color;
+
+ matches = /^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/.exec(color);
+
+ if (matches) {
+ red = toInt(matches[1]);
+ green = toInt(matches[2]);
+ blue = toInt(matches[3]);
+ } else {
+ matches = /^([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/.exec(color);
+
+ if (matches) {
+ red = toInt(matches[1], 16);
+ green = toInt(matches[2], 16);
+ blue = toInt(matches[3], 16);
+ } else {
+ matches = /^([0-9a-f])([0-9a-f])([0-9a-f])$/.exec(color);
+
+ if (matches) {
+ red = toInt(matches[1] + matches[1], 16);
+ green = toInt(matches[2] + matches[2], 16);
+ blue = toInt(matches[3] + matches[3], 16);
+ } else {
+ return '';
+ }
+ }
+ }
+
+ return '#' + hex(red) + hex(green) + hex(blue);
+}
+
+function insertAction() {
+ var color = document.getElementById("color").value, f = tinyMCEPopup.getWindowArg('func');
+
+ var hexColor = toHexColor(color);
+
+ if (hexColor === '') {
+ var text = tinyMCEPopup.editor.getLang('advanced_dlg.invalid_color_value');
+ tinyMCEPopup.alert(text + ': ' + color);
+ }
+ else {
+ tinyMCEPopup.restoreSelection();
+
+ if (f)
+ f(hexColor);
+
+ tinyMCEPopup.close();
+ }
+}
+
+function showColor(color, name) {
+ if (name)
+ document.getElementById("colorname").innerHTML = name;
+
+ document.getElementById("preview").style.backgroundColor = color;
+ document.getElementById("color").value = color.toUpperCase();
+}
+
+function convertRGBToHex(col) {
+ var re = new RegExp("rgb\\s*\\(\\s*([0-9]+).*,\\s*([0-9]+).*,\\s*([0-9]+).*\\)", "gi");
+
+ if (!col)
+ return col;
+
+ var rgb = col.replace(re, "$1,$2,$3").split(',');
+ if (rgb.length == 3) {
+ r = parseInt(rgb[0]).toString(16);
+ g = parseInt(rgb[1]).toString(16);
+ b = parseInt(rgb[2]).toString(16);
+
+ r = r.length == 1 ? '0' + r : r;
+ g = g.length == 1 ? '0' + g : g;
+ b = b.length == 1 ? '0' + b : b;
+
+ return "#" + r + g + b;
+ }
+
+ return col;
+}
+
+function convertHexToRGB(col) {
+ if (col.indexOf('#') != -1) {
+ col = col.replace(new RegExp('[^0-9A-F]', 'gi'), '');
+
+ r = parseInt(col.substring(0, 2), 16);
+ g = parseInt(col.substring(2, 4), 16);
+ b = parseInt(col.substring(4, 6), 16);
+
+ return {r : r, g : g, b : b};
+ }
+
+ return null;
+}
+
+function generatePicker() {
+ var el = document.getElementById('light'), h = '', i;
+
+ for (i = 0; i < detail; i++){
+ h += '<div id="gs'+i+'" style="background-color:#000000; width:15px; height:3px; border-style:none; border-width:0px;"'
+ + ' onclick="changeFinalColor(this.style.backgroundColor)"'
+ + ' onmousedown="isMouseDown = true; return false;"'
+ + ' onmouseup="isMouseDown = false;"'
+ + ' onmousemove="if (isMouseDown && isMouseOver) changeFinalColor(this.style.backgroundColor); return false;"'
+ + ' onmouseover="isMouseOver = true;"'
+ + ' onmouseout="isMouseOver = false;"'
+ + '></div>';
+ }
+
+ el.innerHTML = h;
+}
+
+function generateWebColors() {
+ var el = document.getElementById('webcolors'), h = '', i;
+
+ if (el.className == 'generated')
+ return;
+
+ // TODO: VoiceOver doesn't seem to support legend as a label referenced by labelledby.
+ h += '<div role="listbox" aria-labelledby="webcolors_title" tabindex="0"><table role="presentation" border="0" cellspacing="1" cellpadding="0">'
+ + '<tr>';
+
+ for (i=0; i<colors.length; i++) {
+ h += '<td bgcolor="' + colors[i] + '" width="10" height="10">'
+ + '<a href="javascript:insertAction();" role="option" tabindex="-1" aria-labelledby="web_colors_' + i + '" onfocus="showColor(\'' + colors[i] + '\');" onmouseover="showColor(\'' + colors[i] + '\');" style="display:block;width:10px;height:10px;overflow:hidden;">';
+ if (tinyMCEPopup.editor.forcedHighContrastMode) {
+ h += '<canvas class="mceColorSwatch" height="10" width="10" data-color="' + colors[i] + '"></canvas>';
+ }
+ h += '<span class="mceVoiceLabel" style="display:none;" id="web_colors_' + i + '">' + colors[i].toUpperCase() + '</span>';
+ h += '</a></td>';
+ if ((i+1) % 18 == 0)
+ h += '</tr><tr>';
+ }
+
+ h += '</table></div>';
+
+ el.innerHTML = h;
+ el.className = 'generated';
+
+ paintCanvas(el);
+ enableKeyboardNavigation(el.firstChild);
+}
+
+function paintCanvas(el) {
+ tinyMCEPopup.getWin().tinymce.each(tinyMCEPopup.dom.select('canvas.mceColorSwatch', el), function(canvas) {
+ var context;
+ if (canvas.getContext && (context = canvas.getContext("2d"))) {
+ context.fillStyle = canvas.getAttribute('data-color');
+ context.fillRect(0, 0, 10, 10);
+ }
+ });
+}
+function generateNamedColors() {
+ var el = document.getElementById('namedcolors'), h = '', n, v, i = 0;
+
+ if (el.className == 'generated')
+ return;
+
+ for (n in named) {
+ v = named[n];
+ h += '<a href="javascript:insertAction();" role="option" tabindex="-1" aria-labelledby="named_colors_' + i + '" onfocus="showColor(\'' + n + '\',\'' + v + '\');" onmouseover="showColor(\'' + n + '\',\'' + v + '\');" style="background-color: ' + n + '">';
+ if (tinyMCEPopup.editor.forcedHighContrastMode) {
+ h += '<canvas class="mceColorSwatch" height="10" width="10" data-color="' + colors[i] + '"></canvas>';
+ }
+ h += '<span class="mceVoiceLabel" style="display:none;" id="named_colors_' + i + '">' + v + '</span>';
+ h += '</a>';
+ i++;
+ }
+
+ el.innerHTML = h;
+ el.className = 'generated';
+
+ paintCanvas(el);
+ enableKeyboardNavigation(el);
+}
+
+function enableKeyboardNavigation(el) {
+ tinyMCEPopup.editor.windowManager.createInstance('tinymce.ui.KeyboardNavigation', {
+ root: el,
+ items: tinyMCEPopup.dom.select('a', el)
+ }, tinyMCEPopup.dom);
+}
+
+function dechex(n) {
+ return strhex.charAt(Math.floor(n / 16)) + strhex.charAt(n % 16);
+}
+
+function computeColor(e) {
+ var x, y, partWidth, partDetail, imHeight, r, g, b, coef, i, finalCoef, finalR, finalG, finalB, pos = tinyMCEPopup.dom.getPos(e.target);
+
+ x = e.offsetX ? e.offsetX : (e.target ? e.clientX - pos.x : 0);
+ y = e.offsetY ? e.offsetY : (e.target ? e.clientY - pos.y : 0);
+
+ partWidth = document.getElementById('colors').width / 6;
+ partDetail = detail / 2;
+ imHeight = document.getElementById('colors').height;
+
+ r = (x >= 0)*(x < partWidth)*255 + (x >= partWidth)*(x < 2*partWidth)*(2*255 - x * 255 / partWidth) + (x >= 4*partWidth)*(x < 5*partWidth)*(-4*255 + x * 255 / partWidth) + (x >= 5*partWidth)*(x < 6*partWidth)*255;
+ g = (x >= 0)*(x < partWidth)*(x * 255 / partWidth) + (x >= partWidth)*(x < 3*partWidth)*255 + (x >= 3*partWidth)*(x < 4*partWidth)*(4*255 - x * 255 / partWidth);
+ b = (x >= 2*partWidth)*(x < 3*partWidth)*(-2*255 + x * 255 / partWidth) + (x >= 3*partWidth)*(x < 5*partWidth)*255 + (x >= 5*partWidth)*(x < 6*partWidth)*(6*255 - x * 255 / partWidth);
+
+ coef = (imHeight - y) / imHeight;
+ r = 128 + (r - 128) * coef;
+ g = 128 + (g - 128) * coef;
+ b = 128 + (b - 128) * coef;
+
+ changeFinalColor('#' + dechex(r) + dechex(g) + dechex(b));
+ updateLight(r, g, b);
+}
+
+function updateLight(r, g, b) {
+ var i, partDetail = detail / 2, finalCoef, finalR, finalG, finalB, color;
+
+ for (i=0; i<detail; i++) {
+ if ((i>=0) && (i<partDetail)) {
+ finalCoef = i / partDetail;
+ finalR = dechex(255 - (255 - r) * finalCoef);
+ finalG = dechex(255 - (255 - g) * finalCoef);
+ finalB = dechex(255 - (255 - b) * finalCoef);
+ } else {
+ finalCoef = 2 - i / partDetail;
+ finalR = dechex(r * finalCoef);
+ finalG = dechex(g * finalCoef);
+ finalB = dechex(b * finalCoef);
+ }
+
+ color = finalR + finalG + finalB;
+
+ setCol('gs' + i, '#'+color);
+ }
+}
+
+function changeFinalColor(color) {
+ if (color.indexOf('#') == -1)
+ color = convertRGBToHex(color);
+
+ setCol('preview', color);
+ document.getElementById('color').value = color;
+}
+
+function setCol(e, c) {
+ try {
+ document.getElementById(e).style.backgroundColor = c;
+ } catch (ex) {
+ // Ignore IE warning
+ }
+}
+
+tinyMCEPopup.onInit.add(init);
diff --git a/chrome/content/zotero/tinymce/themes/advanced/js/image.js b/chrome/content/zotero/tinymce/themes/advanced/js/image.js
@@ -18,7 +18,7 @@ var ImageDialog = {
e = ed.selection.getNode();
- this.fillFileList('image_list', 'tinyMCEImageList');
+ this.fillFileList('image_list', tinyMCEPopup.getParam('external_image_list', 'tinyMCEImageList'));
if (e.nodeName == 'IMG') {
f.src.value = ed.dom.getAttrib(e, 'src');
@@ -39,7 +39,7 @@ var ImageDialog = {
fillFileList : function(id, l) {
var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl;
- l = window[l];
+ l = typeof(l) === 'function' ? l() : window[l];
if (l && l.length > 0) {
lst.options[lst.options.length] = new Option('', '');
@@ -77,7 +77,7 @@ var ImageDialog = {
args.style = this.styleVal;
tinymce.extend(args, {
- src : f.src.value,
+ src : f.src.value.replace(/ /g, '%20'),
alt : f.alt.value,
width : f.width.value,
height : f.height.value
@@ -87,10 +87,16 @@ var ImageDialog = {
if (el && el.nodeName == 'IMG') {
ed.dom.setAttribs(el, args);
+ tinyMCEPopup.editor.execCommand('mceRepaint');
+ tinyMCEPopup.editor.focus();
} else {
- ed.execCommand('mceInsertContent', false, '<img id="__mce_tmp" />', {skip_undo : 1});
- ed.dom.setAttribs('__mce_tmp', args);
- ed.dom.setAttrib('__mce_tmp', 'id', '');
+ tinymce.each(args, function(value, name) {
+ if (value === "") {
+ delete args[name];
+ }
+ });
+
+ ed.execCommand('mceInsertContent', false, tinyMCEPopup.editor.dom.createHTML('img', args), {skip_undo : 1});
ed.undoManager.add();
}
@@ -98,10 +104,12 @@ var ImageDialog = {
},
updateStyle : function() {
- var dom = tinyMCEPopup.dom, st, v, f = document.forms[0];
+ var dom = tinyMCEPopup.dom, st = {}, v, f = document.forms[0];
if (tinyMCEPopup.editor.settings.inline_styles) {
- st = tinyMCEPopup.dom.parseStyle(this.styleVal);
+ tinymce.each(tinyMCEPopup.dom.parseStyle(this.styleVal), function(value, key) {
+ st[key] = value;
+ });
// Handle align
v = getSelectValue(f, 'align');
diff --git a/chrome/content/zotero/tinymce/themes/advanced/js/link.js b/chrome/content/zotero/tinymce/themes/advanced/js/link.js
@@ -31,7 +31,7 @@ var LinkDialog = {
},
update : function() {
- var f = document.forms[0], ed = tinyMCEPopup.editor, e, b;
+ var f = document.forms[0], ed = tinyMCEPopup.editor, e, b, href = f.href.value.replace(/ /g, '%20');
tinyMCEPopup.restoreSelection();
e = ed.dom.getParent(ed.selection.getNode(), 'A');
@@ -39,7 +39,6 @@ var LinkDialog = {
// Remove element if there is no href
if (!f.href.value) {
if (e) {
- tinyMCEPopup.execCommand("mceBeginUndoLevel");
b = ed.selection.getBookmark();
ed.dom.remove(e, 1);
ed.selection.moveToBookmark(b);
@@ -49,19 +48,17 @@ var LinkDialog = {
}
}
- tinyMCEPopup.execCommand("mceBeginUndoLevel");
-
// Create new anchor elements
if (e == null) {
ed.getDoc().execCommand("unlink", false, null);
- tinyMCEPopup.execCommand("CreateLink", false, "#mce_temp_url#", {skip_undo : 1});
+ tinyMCEPopup.execCommand("mceInsertLink", false, "#mce_temp_url#", {skip_undo : 1});
tinymce.each(ed.dom.select("a"), function(n) {
if (ed.dom.getAttrib(n, 'href') == '#mce_temp_url#') {
e = n;
ed.dom.setAttribs(e, {
- href : f.href.value,
+ href : href,
title : f.linktitle.value,
target : f.target_list ? getSelectValue(f, "target_list") : null,
'class' : f.class_list ? getSelectValue(f, "class_list") : null
@@ -70,11 +67,17 @@ var LinkDialog = {
});
} else {
ed.dom.setAttribs(e, {
- href : f.href.value,
- title : f.linktitle.value,
- target : f.target_list ? getSelectValue(f, "target_list") : null,
- 'class' : f.class_list ? getSelectValue(f, "class_list") : null
+ href : href,
+ title : f.linktitle.value
});
+
+ if (f.target_list) {
+ ed.dom.setAttrib(e, 'target', getSelectValue(f, "target_list"));
+ }
+
+ if (f.class_list) {
+ ed.dom.setAttrib(e, 'class', getSelectValue(f, "class_list"));
+ }
}
// Don't move caret if selection was image
diff --git a/chrome/content/zotero/tinymce/themes/advanced/js/source_editor.js b/chrome/content/zotero/tinymce/themes/advanced/js/source_editor.js
@@ -16,7 +16,7 @@ function onLoadInit() {
document.getElementById('htmlSource').value = tinyMCEPopup.editor.getContent({source_view : true});
if (tinyMCEPopup.editor.getParam("theme_advanced_source_editor_wrap", true)) {
- setWrap('soft');
+ turnWrapOn();
document.getElementById('wraped').checked = true;
}
@@ -37,11 +37,33 @@ function setWrap(val) {
}
}
-function toggleWordWrap(elm) {
- if (elm.checked)
- setWrap('soft');
- else
+function setWhiteSpaceCss(value) {
+ var el = document.getElementById('htmlSource');
+ tinymce.DOM.setStyle(el, 'white-space', value);
+}
+
+function turnWrapOff() {
+ if (tinymce.isWebKit) {
+ setWhiteSpaceCss('pre');
+ } else {
setWrap('off');
+ }
+}
+
+function turnWrapOn() {
+ if (tinymce.isWebKit) {
+ setWhiteSpaceCss('pre-wrap');
+ } else {
+ setWrap('soft');
+ }
+}
+
+function toggleWordWrap(elm) {
+ if (elm.checked) {
+ turnWrapOn();
+ } else {
+ turnWrapOff();
+ }
}
function resizeInputs() {
@@ -50,7 +72,7 @@ function resizeInputs() {
el = document.getElementById('htmlSource');
if (el) {
- el.style.width = (vp.w - 20) + 'px';
+ el.style.width = (vp.w - 20) + 'px';
el.style.height = (vp.h - 65) + 'px';
}
}
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/ar.js b/chrome/content/zotero/tinymce/themes/advanced/langs/ar.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('ar.advanced',{
-style_select:"Styles",
-font_size:"\u062D\u062C\u0645 \u0627\u0644\u062E\u0637",
-fontdefault:"\u0646\u0648\u0639 \u0627\u0644\u062E\u0637",
-block:"\u062A\u0646\u0633\u064A\u0642",
-paragraph:"\u0641\u0642\u0631\u0629",
-div:"Div",
-address:"\u0639\u0646\u0648\u0627\u0646",
-pre:"Preformatted",
-h1:"\u0639\u0646\u0648\u0627\u0646 1",
-h2:"\u0639\u0646\u0648\u0627\u0646 2",
-h3:"\u0639\u0646\u0648\u0627\u0646 3",
-h4:"\u0639\u0646\u0648\u0627\u0646 4",
-h5:"\u0639\u0646\u0648\u0627\u0646 5",
-h6:"\u0639\u0646\u0648\u0627\u0646 6",
-blockquote:"Blockquote",
-code:"\u0643\u0648\u062F",
-samp:"\u0643\u0648\u062F \u0628\u0633\u064A\u0637",
-dt:"Definition term",
-dd:"Definition description",
-bold_desc:"\u0639\u0631\u064A\u0636 (Ctrl+B)",
-italic_desc:"\u0645\u0627\u0626\u0644 (Ctrl+I)",
-underline_desc:"\u062A\u062D\u062A\u0647 \u062E\u0637 (Ctrl+U)",
-striketrough_desc:"\u064A\u062A\u0648\u0633\u0637\u0629 \u062E\u0637",
-justifyleft_desc:"\u0645\u062D\u0627\u0630\u0627\u0629 \u0644\u0644\u064A\u0633\u0627\u0631",
-justifycenter_desc:"\u0645\u062D\u0627\u0630\u0627\u0629 \u0644\u0644\u0648\u0633\u0637",
-justifyright_desc:"\u0645\u062D\u0627\u0630\u0627\u0629 \u064A\u0645\u064A\u0646",
-justifyfull_desc:"\u0636\u0628\u0637",
-bullist_desc:"\u062A\u0639\u062F\u0627\u062F \u0646\u0642\u0637\u064A",
-numlist_desc:"\u062A\u0639\u062F\u0627\u062F \u0631\u0642\u0645\u064A",
-outdent_desc:"\u0625\u0646\u0642\u0627\u0635 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0627\u0644\u0628\u0627\u062F\u0626\u0629",
-indent_desc:"\u0632\u064A\u0627\u062F\u0629 \u0627\u0644\u0645\u0633\u0627\u0641\u0629 \u0627\u0644\u0628\u0627\u062F\u0626\u0629",
-undo_desc:"\u062A\u0631\u0627\u062C\u0639 (Ctrl+Z)",
-redo_desc:"\u0625\u0639\u0627\u062F\u0629 (Ctrl+Y)",
-link_desc:"\u0625\u062F\u0631\u0627\u062C/\u062A\u062D\u0631\u064A\u0631 \u0631\u0627\u0628\u0637",
-unlink_desc:"\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0631\u0627\u0628\u0637",
-image_desc:"\u0625\u062F\u0631\u0627\u062C/\u062A\u062D\u0631\u064A\u0631 \u0635\u0648\u0631\u0629",
-cleanup_desc:"\u062A\u0646\u0636\u064A\u0641 \u0627\u0644\u0623\u0643\u0648\u0627\u062F \u0627\u0644\u062E\u0627\u0637\u0626\u0629",
-code_desc:"\u062A\u062D\u0631\u064A\u0631 \u0643\u0648\u062F HTML",
-sub_desc:"\u0623\u0633\u0641\u0644 \u0627\u0644\u0646\u0635",
-sup_desc:"\u0623\u0639\u0644\u0649 \u0627\u0644\u0646\u0635",
-hr_desc:"\u0625\u062F\u0631\u0627\u062C \u062E\u0637 \u0627\u0641\u0642\u064A",
-removeformat_desc:"\u0645\u0633\u062D \u0627\u0644\u062A\u0646\u0633\u064A\u0642\u0627\u062A",
-custom1_desc:"Your custom description here",
-forecolor_desc:"\u062D\u062F\u062F \u0644\u0648\u0646 \u0627\u0644\u0646\u0635",
-backcolor_desc:"\u062D\u062F\u062F \u0644\u0648\u0646 \u0627\u0644\u062E\u0644\u0641\u064A\u0629",
-charmap_desc:"\u0625\u062F\u0627\u0631\u062C \u062D\u0631\u0641 \u0645\u062E\u0635\u0635",
-visualaid_desc:"Toggle guidelines/invisible elements",
-anchor_desc:"\u0625\u062F\u0631\u0627\u062C/\u062A\u062D\u0631\u064A\u0631 \u0639\u0644\u0627\u0645\u0629",
-cut_desc:"\u0642\u0635",
-copy_desc:"\u0646\u0633\u062E",
-paste_desc:"\u0644\u0635\u0642",
-image_props_desc:"\u062E\u0635\u0627\u0626\u0635 \u0627\u0644\u0635\u0648\u0631\u0629",
-newdocument_desc:"\u0645\u0633\u062A\u0646\u062F \u062C\u062F\u064A\u062F",
-help_desc:"\u0645\u0633\u0627\u0639\u062F\u0629",
-blockquote_desc:"Blockquote",
-clipboard_msg:"\u0646\u0633\u062E/\u0642\u0635/\u0644\u0635\u0642 \u063A\u064A\u0631 \u0645\u062A\u0648\u0641\u0631\u0629 \u0644\u0645\u062A\u0635\u0641\u062D Mozilla \u0648 Firefox.\n\u0647\u0644 \u062A\u0631\u064A\u062F \u0645\u0639\u0631\u0641\u0629 \u0627\u0644\u0645\u0632\u064A\u062F \u0645\u0646 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062A \u062D\u0648\u0644 \u0647\u0630\u0627 \u0627\u0644\u0645\u0648\u0636\u0648\u0639?",
-path:"\u0627\u0644\u0645\u0633\u0627\u0631",
-newdocument:"\u0647\u0644 \u062A\u0631\u064A\u062F \u062D\u0642\u0627 \u0645\u0633\u062D \u062C\u0645\u064A\u0639 \u0627\u0644\u0645\u062D\u062A\u0648\u064A\u0627\u062A?",
-toolbar_focus:"\u0625\u0646\u062A\u0642\u0627\u0644 \u0644\u0634\u0631\u064A\u0637 \u0627\u0644\u0623\u062F\u0648\u0627\u062A - Alt+Q, \u0625\u0646\u062A\u0642\u0627\u0644 \u0644\u0644\u0645\u062D\u0631\u0631 - Alt-Z, \u0625\u0646\u062A\u0642\u0627\u0644 \u0644\u0644\u0645\u0633\u0627\u0631 - Alt-X",
-more_colors:"\u0645\u0632\u064A\u062F \u0645\u0646 \u0627\u0644\u0623\u0644\u0648\u0627\u0646"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/ar_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/ar_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('ar.advanced_dlg',{
-about_title:"\u062D\u0648\u0644 TinyMCE",
-about_general:"\u062D\u0648\u0644",
-about_help:"\u0645\u0633\u0627\u0639\u062F\u0629",
-about_license:"\u0627\u0644\u0631\u062E\u0635\u0629",
-about_plugins:"\u0627\u0644\u0625\u0636\u0627\u0641\u0627\u062A",
-about_plugin:"\u0627\u0644\u0625\u0636\u0627\u0641\u0629",
-about_author:"\u0627\u0644\u0645\u0628\u0631\u0645\u062C",
-about_version:"\u0627\u0644\u0625\u0635\u062F\u0627\u0631",
-about_loaded:"\u0627\u0644\u0625\u0636\u0627\u0641\u0627\u062A \u0627\u0644\u0645\u062D\u0645\u0644\u0629",
-anchor_title:"\u0625\u062F\u0631\u0627\u062C/\u062A\u062D\u0631\u064A\u0631 \u0639\u0644\u0627\u0645\u0629",
-anchor_name:"\u0627\u0633\u0645 \u0627\u0644\u0639\u0644\u0627\u0645\u0629",
-code_title:"\u0645\u062D\u0631\u0631 \u0643\u0648\u062F HTML",
-code_wordwrap:"\u0627\u0644\u062A\u0641\u0627\u0641 \u0627\u0644\u0646\u0635",
-colorpicker_title:"\u062D\u062F\u062F \u0644\u0648\u0646",
-colorpicker_picker_tab:"\u0627\u0644\u0645\u0627\u0632\u062C",
-colorpicker_picker_title:"\u0645\u0627\u0632\u062C \u0627\u0644\u0623\u0644\u0648\u0627\u0646",
-colorpicker_palette_tab:"\u0627\u0644\u0644\u0648\u062D\u0629",
-colorpicker_palette_title:"\u0644\u0648\u062D\u0629 \u0627\u0644\u0623\u0644\u0648\u0627\u0646",
-colorpicker_named_tab:"\u0627\u0644\u0623\u0633\u0645\u0627\u0621",
-colorpicker_named_title:"\u0627\u0633\u0645\u0627\u0621 \u0627\u0644\u0623\u0644\u0648\u0627\u0646",
-colorpicker_color:"\u0627\u0644\u0644\u0648\u0646:",
-colorpicker_name:"\u0627\u0644\u0623\u0633\u0645:",
-charmap_title:"\u062D\u062F\u062F \u062D\u0631\u0641 \u0645\u062E\u0635\u0635",
-image_title:"\u0625\u062F\u0631\u0627\u062C/\u062A\u062D\u0631\u064A\u0631 \u0635\u0648\u0631\u0629",
-image_src:"\u0631\u0627\u0628\u0637 \u0627\u0644\u0635\u0648\u0631\u0629",
-image_alt:"\u0648\u0635\u0641 \u0627\u0644\u0635\u0648\u0631\u0629",
-image_list:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0635\u0648\u0631",
-image_border:"\u0627\u0644\u062D\u062F\u0648\u062F",
-image_dimensions:"\u0627\u0644\u0642\u064A\u0627\u0633\u0627\u062A",
-image_vspace:"\u0645\u0633\u0627\u0641\u0629 \u0639\u0645\u0648\u062F\u064A\u0629",
-image_hspace:"\u0645\u0633\u0627\u0641\u0629 \u0627\u0641\u0642\u064A\u0629",
-image_align:"\u0645\u062D\u0627\u0630\u0627\u0629",
-image_align_baseline:"\u062E\u0637 \u0627\u0644\u0642\u0627\u0639\u062F\u0629",
-image_align_top:"\u0623\u0639\u0644\u0649",
-image_align_middle:"\u062A\u0648\u0633\u064A\u0637 \u0639\u0645\u0648\u062F\u064A",
-image_align_bottom:"\u0627\u0633\u0641\u0644",
-image_align_texttop:"\u0623\u0639\u0644\u0649 \u0627\u0644\u0646\u0635",
-image_align_textbottom:"\u0623\u0633\u0641\u0644 \u0627\u0644\u0646\u0635",
-image_align_left:"\u064A\u0633\u0627\u0631",
-image_align_right:"\u064A\u0645\u064A\u0646",
-link_title:"\u0625\u062F\u0631\u0627\u062C/\u062A\u062D\u0631\u064A\u0631 \u0631\u0627\u0628\u0637",
-link_url:"\u0627\u0644\u0631\u0627\u0628\u0637",
-link_target:"\u0627\u0644\u0645\u0633\u0627\u0631",
-link_target_same:"\u0641\u062A\u062D \u0627\u0644\u0631\u0627\u0628\u0637 \u0641\u064A \u0646\u0641\u0633 \u0627\u0644\u0635\u0641\u062D\u0629",
-link_target_blank:"\u0641\u062A\u062D \u0627\u0644\u0631\u0627\u0628\u0637 \u0641\u064A \u0635\u0641\u062D\u0629 \u062C\u062F\u064A\u062F\u0629",
-link_titlefield:"\u0627\u0644\u0639\u0646\u0648\u0627\u0646",
-link_is_email:"The URL you entered seems to be an email address, do you want to add the required mailto: prefix?",
-link_is_external:"The URL you entered seems to external link, do you want to add the required http:// prefix?",
-link_list:"\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0631\u0648\u0627\u0628\u0637"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/bg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/bg.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('bg.advanced',{
-style_select:"\u0421\u0442\u0438\u043B\u043E\u0432\u0435",
-font_size:"\u0420\u0430\u0437\u043C\u0435\u0440 \u043D\u0430 \u0448\u0440\u0438\u0444\u0442\u0430",
-fontdefault:"\u0428\u0440\u0438\u0444\u0442",
-block:"\u0424\u043E\u0440\u043C\u0430\u0442",
-paragraph:"\u041F\u0430\u0440\u0430\u0433\u0440\u0430\u0444",
-div:"Div",
-address:"\u0410\u0434\u0440\u0435\u0441",
-pre:"\u041F\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043B\u043D\u043E \u0444\u043E\u0440\u043C\u0430\u0442\u0438\u0440\u0430\u043D",
-h1:"\u0417\u0430\u0433\u043B\u0430\u0432\u0438\u0435 1",
-h2:"\u0417\u0430\u0433\u043B\u0430\u0432\u0438\u0435 2",
-h3:"\u0417\u0430\u0433\u043B\u0430\u0432\u0438\u0435 3",
-h4:"\u0417\u0430\u0433\u043B\u0430\u0432\u0438\u0435 4",
-h5:"\u0417\u0430\u0433\u043B\u0430\u0432\u0438\u0435 5",
-h6:"\u0417\u0430\u0433\u043B\u0430\u0432\u0438\u0435 6",
-blockquote:"\u0426\u0438\u0442\u0430\u0442",
-code:"\u041A\u043E\u0434",
-samp:"\u041F\u0440\u043E\u043C\u0435\u0440\u0435\u043D \u043A\u043E\u0434",
-dt:"\u0414\u0435\u0444\u0438\u043D\u0438\u0446\u0438\u044F ",
-dd:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u043D\u0430 \u0434\u0435\u0444\u0438\u043D\u0438\u0446\u0438\u044F",
-bold_desc:"\u041F\u043E\u043B\u0443\u0447\u0435\u0440 (Ctrl+B)",
-italic_desc:"\u041A\u0443\u0440\u0441\u0438\u0432 (Ctrl+I)",
-underline_desc:"\u041F\u043E\u0434\u0447\u0435\u0440\u0442\u0430\u043D (Ctrl+U)",
-striketrough_desc:"\u0417\u0430\u0447\u0435\u0440\u0442\u0430\u043D",
-justifyleft_desc:"\u041F\u043E\u0434\u0440\u0430\u0432\u043D\u044F\u0432\u0430\u043D\u0435 \u043E\u0442\u043B\u044F\u0432\u043E",
-justifycenter_desc:"\u0426\u0435\u043D\u0442\u0440\u0438\u0440\u0430\u043D\u043E",
-justifyright_desc:"\u041F\u043E\u0434\u0440\u0430\u0432\u043D\u044F\u0432\u0430\u043D\u0435 \u043E\u0442\u0434\u044F\u0441\u043D\u043E",
-justifyfull_desc:"\u0414\u0432\u0443\u0441\u0442\u0440\u0430\u043D\u043D\u043E",
-bullist_desc:"\u0412\u043E\u0434\u0430\u0447\u0438",
-numlist_desc:"\u041D\u043E\u043C\u0435\u0440\u0430",
-outdent_desc:"\u041D\u0430\u043C\u0430\u043B\u044F\u0432\u0430\u043D\u0435 \u043D\u0430 \u043E\u0442\u0441\u0442\u044A\u043F\u0430",
-indent_desc:"\u0423\u0432\u0435\u043B\u0438\u0447\u0430\u0432\u0430\u043D\u0435 \u043D\u0430 \u043E\u0442\u0441\u0442\u044A\u043F\u0430",
-undo_desc:"\u041E\u0442\u043C\u044F\u043D\u0430 (Ctrl+Z)",
-redo_desc:"\u0412\u044A\u0437\u0441\u0442\u0430\u043D\u043E\u0432\u044F\u0432\u0430\u043D\u0435 (Ctrl+Y)",
-link_desc:"\u0412\u043C\u044A\u043A\u0432\u0430\u043D\u0435/\u0440\u0435\u0434\u0430\u043A\u0446\u0438\u044F \u043D\u0430 \u0445\u0438\u043F\u0435\u0440\u0432\u0440\u044A\u0437\u043A\u0430",
-unlink_desc:"\u041F\u0440\u0435\u043C\u0430\u0445\u043D\u0438 \u0445\u0438\u043F\u0435\u0440\u0432\u0440\u044A\u0437\u043A\u0430",
-image_desc:"\u0412\u043C\u044A\u043A\u0432\u0430\u043D\u0435/\u0440\u0435\u0434\u0430\u043A\u0446\u0438\u044F \u043D\u0430 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430",
-cleanup_desc:"\u0418\u0437\u0447\u0438\u0441\u0442\u0438 \u043A\u043E\u0434\u0430",
-code_desc:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u0430\u0439 HTML",
-sub_desc:"\u0414\u043E\u043B\u0435\u043D \u0438\u043D\u0434\u0435\u043A\u0441",
-sup_desc:"\u0413\u043E\u0440\u0435\u043D \u0438\u043D\u0434\u0435\u043A\u0441",
-hr_desc:"\u0412\u043C\u044A\u043A\u043D\u0438 \u0445\u043E\u0440\u0438\u0437\u043E\u043D\u0442\u0430\u043B\u043D\u0430 \u043B\u0438\u043D\u0438\u044F",
-removeformat_desc:"\u041F\u0440\u0435\u043C\u0430\u0445\u043D\u0438 \u0444\u043E\u0440\u043C\u0430\u0442\u0438\u0440\u0430\u043D\u0435\u0442\u043E",
-custom1_desc:"\u0412\u0430\u0448\u0435\u0442\u043E \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u0442\u0443\u043A",
-forecolor_desc:"\u0418\u0437\u0431\u0435\u0440\u0438 \u0446\u0432\u044F\u0442 \u043D\u0430 \u0442\u0435\u043A\u0441\u0442\u0430",
-backcolor_desc:"\u0418\u0437\u0431\u0435\u0440\u0438 \u0446\u0432\u044F\u0442 \u043D\u0430 \u0444\u043E\u043D\u0430",
-charmap_desc:"\u0412\u043C\u044A\u043A\u043D\u0438 \u0441\u0438\u043C\u0432\u043E\u043B",
-visualaid_desc:"\u0412\u043A\u043B./\u0438\u0437\u043A\u043B. \u043D\u0435\u0432\u0438\u0434\u0438\u043C\u0438\u0442\u0435 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438",
-anchor_desc:"\u0412\u043C\u044A\u043A\u043D\u0438/\u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u0430\u0439 \u043A\u043E\u0442\u0432\u0430",
-cut_desc:"\u0418\u0437\u0440\u044F\u0437\u0432\u0430\u043D\u0435",
-copy_desc:"\u041A\u043E\u043F\u0438\u0440\u0430\u043D\u0435",
-paste_desc:"\u041F\u043E\u0441\u0442\u0430\u0432\u044F\u043D\u0435",
-image_props_desc:"\u0421\u0432\u043E\u0439\u0441\u0442\u0432\u0430 \u043D\u0430 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430\u0442\u0430",
-newdocument_desc:"\u041D\u043E\u0432 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442",
-help_desc:"\u041F\u043E\u043C\u043E\u0449",
-blockquote_desc:"\u0426\u0438\u0442\u0430\u0442",
-clipboard_msg:"\u041A\u043E\u043F\u0438\u0440\u0430\u043D\u0435/\u041E\u0442\u0440\u044F\u0437\u0432\u0430\u043D\u0435/\u041F\u043E\u0441\u0442\u0430\u0432\u044F\u043D\u0435 \u043D\u0435 \u0435 \u0434\u043E\u0441\u0442\u044A\u043F\u043D\u043E \u043F\u043E\u0434 Mozilla \u0438 Firefox.\r\n\u0416\u0435\u043B\u0430\u0435\u0442\u0435 \u043B\u0438 \u043F\u043E\u0432\u0435\u0447\u0435 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F \u0437\u0430 \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0430?",
-path:"\u041F\u044A\u0442",
-newdocument:"\u0421\u0438\u0433\u0443\u0440\u0435\u043D \u043B\u0438 \u0441\u0442\u0435, \u0447\u0435 \u0438\u0441\u043A\u0430\u0442\u0435 \u0434\u0430 \u0438\u0437\u0447\u0438\u0441\u0442\u0438\u0442\u0435 \u0446\u044F\u043B\u043E\u0442\u043E \u0441\u044A\u0434\u044A\u0440\u0436\u0430\u043D\u0438\u0435?",
-toolbar_focus:"\u041E\u0442\u0438\u0434\u0438 \u043F\u0440\u0438 \u0431\u0443\u0442\u043E\u043D\u0438\u0442\u0435 - Alt+Q, \u041E\u0442\u0438\u0434\u0438 \u043F\u0440\u0438 \u0440\u0435\u0434\u0430\u043A\u0442\u043E\u0440\u0430 - Alt-Z, \u041E\u0442\u0438\u0434\u0438 \u043F\u0440\u0438 \u043F\u044A\u0442\u0435\u043A\u0430\u0442\u0430 \u043D\u0430 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438\u0442\u0435 - Alt-X",
-more_colors:"\u041E\u0449\u0435 \u0446\u0432\u0435\u0442\u043E\u0432\u0435"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/bg_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/bg_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('bg.advanced_dlg',{
-about_title:"\u041E\u0442\u043D\u043E\u0441\u043D\u043E TinyMCE",
-about_general:"\u041E\u0442\u043D\u043E\u0441\u043D\u043E",
-about_help:"\u041F\u043E\u043C\u043E\u0449",
-about_license:"\u041B\u0438\u0446\u0435\u043D\u0437",
-about_plugins:"\u0414\u043E\u0431\u0430\u0432\u043A\u0438",
-about_plugin:"\u0414\u043E\u0431\u0430\u0432\u043A\u0430",
-about_author:"\u0410\u0432\u0442\u043E\u0440",
-about_version:"\u0412\u0435\u0440\u0441\u0438\u044F",
-about_loaded:"\u0417\u0430\u0440\u0435\u0434\u0435\u043D\u0438 \u0434\u043E\u0431\u0430\u0432\u043A\u0438",
-anchor_title:"\u0412\u043C\u044A\u043A\u043D\u0438/\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u0430\u0439 \u043A\u043E\u0442\u0432\u0430",
-anchor_name:"\u0418\u043C\u0435 \u043D\u0430 \u043A\u043E\u0442\u0432\u0430\u0442\u0430",
-code_title:"\u0420\u0435\u0434\u0430\u043A\u0442\u043E\u0440 \u043D\u0430 HTML",
-code_wordwrap:"\u041F\u0440\u0435\u043D\u043E\u0441 \u043D\u0430 \u0434\u0443\u043C\u0438",
-colorpicker_title:"\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u0446\u0432\u044F\u0442",
-colorpicker_picker_tab:"\u0418\u0437\u0431\u043E\u0440",
-colorpicker_picker_title:"\u0418\u0437\u0431\u043E\u0440 \u043D\u0430 \u0446\u0432\u044F\u0442",
-colorpicker_palette_tab:"\u041F\u0430\u043B\u0438\u0442\u0440\u0430",
-colorpicker_palette_title:"\u0426\u0432\u0435\u0442\u043E\u0432\u0430 \u043F\u0430\u043B\u0438\u0442\u0440\u0430",
-colorpicker_named_tab:"\u0418\u043C\u0435\u043D\u0443\u0432\u0430\u043D\u0438",
-colorpicker_named_title:"\u0418\u043C\u0435\u043D\u0443\u0432\u0430\u043D\u0438 \u0446\u0432\u0435\u0442\u043E\u0432\u0435",
-colorpicker_color:"\u0426\u0432\u044F\u0442:",
-colorpicker_name:"\u0418\u043C\u0435:",
-charmap_title:"\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u0441\u0438\u043C\u0432\u043E\u043B",
-image_title:"\u0412\u043C\u044A\u043A\u043D\u0438/\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u0430\u0439 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430",
-image_src:"URL \u043D\u0430 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430",
-image_alt:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u043D\u0430 \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0430",
-image_list:"\u0421\u043F\u0438\u0441\u044A\u043A \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0438",
-image_border:"\u0420\u0430\u043C\u043A\u0430",
-image_dimensions:"\u0420\u0430\u0437\u043C\u0435\u0440\u0438",
-image_vspace:"\u0412\u0435\u0440\u0442\u0438\u043A\u0430\u043B\u043D\u043E \u0440\u0430\u0437\u0441\u0442\u043E\u044F\u043D\u0438\u0435",
-image_hspace:"\u0425\u043E\u0440\u0438\u0437\u043E\u043D\u0442\u0430\u043B\u043D\u043E \u0440\u0430\u0437\u0441\u0442\u043E\u044F\u043D\u0438\u0435",
-image_align:"\u041F\u043E\u0434\u0440\u0430\u0432\u043D\u044F\u0432\u0430\u043D\u0435",
-image_align_baseline:"\u0411\u0430\u0437\u043E\u0432\u0430 \u043B\u0438\u043D\u0438\u044F",
-image_align_top:"\u0413\u043E\u0440\u0435",
-image_align_middle:"\u0426\u0435\u043D\u0442\u0440\u0438\u0440\u0430\u043D\u0435",
-image_align_bottom:"\u0414\u043E\u043B\u0443",
-image_align_texttop:"\u0422\u0435\u043A\u0441\u0442 \u0433\u043E\u0440\u0435",
-image_align_textbottom:"\u0422\u0435\u043A\u0441\u0442 \u0434\u043E\u043B\u0443",
-image_align_left:"\u041B\u044F\u0432\u043E",
-image_align_right:"\u0414\u044F\u0441\u043D\u043E",
-link_title:"\u0412\u043C\u044A\u043A\u043D\u0438/\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u0430\u0439 \u0445\u0438\u043F\u0435\u0440\u0432\u0440\u044A\u0437\u043A\u0430",
-link_url:"URL \u043D\u0430 \u0445\u0438\u043F\u0435\u0440\u0432\u0440\u044A\u0437\u043A\u0430",
-link_target:"\u0426\u0435\u043B",
-link_target_same:"\u041E\u0442\u0432\u043E\u0440\u0438 \u0445\u0438\u043F\u0435\u0440\u0432\u0440\u044A\u0437\u043A\u0430\u0442\u0430 \u0432 \u0441\u044A\u0449\u0438\u044F\u0442 \u043F\u0440\u043E\u0437\u043E\u0440\u0435\u0446",
-link_target_blank:"\u041E\u0442\u0432\u043E\u0440\u0438 \u0445\u0438\u043F\u0435\u0440\u0432\u0440\u044A\u0437\u043A\u0430\u0442\u0430 \u0432 \u043D\u043E\u0432 \u043F\u0440\u043E\u0437\u043E\u0440\u0435\u0446",
-link_titlefield:"\u0417\u0430\u0433\u043B\u0430\u0432\u0438\u0435",
-link_is_email:"URL-\u0442\u043E \u043A\u043E\u0435\u0442\u043E \u0432\u044A\u0432\u0435\u0434\u043E\u0445\u0442\u0435 \u0435 email \u0430\u0434\u0440\u0435\u0441, \u0436\u0435\u043B\u0430\u0435\u0442\u0435 \u043B\u0438 \u0434\u0430 \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u0435 \u043D\u0443\u0436\u043D\u0438\u044F\u0442 mailto: \u043F\u0440\u0435\u0444\u0438\u043A\u0441?",
-link_is_external:"URL-\u0442\u043E \u043A\u043E\u0435\u0442\u043E \u0432\u044A\u0432\u0435\u0434\u043E\u0445\u0442\u0435 \u0435 \u0432\u044A\u043D\u0448\u043D\u0430 \u0445\u0438\u043F\u0435\u0440\u0432\u0440\u044A\u0437\u043A\u0430, \u0436\u0435\u043B\u0430\u0435\u0442\u0435 \u043B\u0438 \u0434\u0430 \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u0435 \u043D\u0443\u0436\u043D\u0438\u044F\u0442 http:// \u043F\u0440\u0435\u0444\u0438\u043A\u0441?",
-link_list:"\u0421\u043F\u0438\u0441\u044A\u043A \u043B\u0438\u043D\u043A\u043E\u0432\u0435"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/bs.js b/chrome/content/zotero/tinymce/themes/advanced/langs/bs.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('bs.advanced',{
-style_select:"Stilovi",
-font_size:"Veli\u010Dina pisma",
-fontdefault:"Vrsta pisma",
-block:"Format",
-paragraph:"Paragraf",
-div:"Div",
-address:"Adresa",
-pre:"Oblikovano",
-h1:"Naslov 1",
-h2:"Naslov 2",
-h3:"Naslov 3",
-h4:"Naslov 4",
-h5:"Naslov 5",
-h6:"Naslov 6",
-blockquote:"Citat",
-code:"Kod",
-samp:"Primjer koda",
-dt:"Definicija pojma",
-dd:"Opis definicije",
-bold_desc:"Podebljaj (Ctrl+B)",
-italic_desc:"Kurziv (Ctrl+I)",
-underline_desc:"Podcrtaj (Ctrl+U)",
-striketrough_desc:"Precrtaj",
-justifyleft_desc:"Poravnaj lijevo",
-justifycenter_desc:"Centriraj",
-justifyright_desc:"Poravnaj desno",
-justifyfull_desc:"Poravnaj potpuno",
-bullist_desc:"Neure\u0111ena lista",
-numlist_desc:"Ure\u0111ena lista",
-outdent_desc:"Uvuci",
-indent_desc:"Izvuci",
-undo_desc:"Poni\u0161ti (Ctrl+Z)",
-redo_desc:"Ponovi (Ctrl+Y)",
-link_desc:"Umetni/uredi poveznicu",
-unlink_desc:"Poni\u0161ti poveznicu",
-image_desc:"Umetni/uredi sliku",
-cleanup_desc:"Po\u010Disti kod",
-code_desc:"Uredi HTML izvor",
-sub_desc:"Indeks",
-sup_desc:"Eksponent",
-hr_desc:"Umetni vodoravnu crtu",
-removeformat_desc:"Poni\u0161ti oblikovanje",
-custom1_desc:"Vlastiti opis ovdje",
-forecolor_desc:"Odaberite boju teksta",
-backcolor_desc:"Odaberite boju pozadine",
-charmap_desc:"Umetni vlastiti znak",
-visualaid_desc:"Vodilice/nevidljivi elementi",
-anchor_desc:"Umetni/uredi sidro",
-cut_desc:"Izre\u017Ei",
-copy_desc:"Kopiraj",
-paste_desc:"Zalijepi",
-image_props_desc:"Svojstva slike",
-newdocument_desc:"Novi dokument",
-help_desc:"Pomo\u0107",
-blockquote_desc:"Citiraj",
-clipboard_msg:"Kopiraj/Izre\u017Ei/Zalijepi nije dostupno u Mozilla i Firefox preglednicima. Vi\u0161e informacija?",
-path:"Staza",
-newdocument:"Jeste li sigurni da \u017Eelite izbrisati cijeli sadr\u017Eaj?",
-toolbar_focus:"Prije\u0111i na alatnu traku - Alt+Q, prije\u0111i na ure\u0111iva\u010D - Alt-Z, prije\u0111i na element path - Alt-X",
-more_colors:"Vi\u0161e boja"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/bs_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/bs_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('bs.advanced_dlg',{
-about_title:"TinyMCE",
-about_general:"O programu",
-about_help:"Pomo\u0107",
-about_license:"Licenca",
-about_plugins:"Dodaci",
-about_plugin:"Dodatak",
-about_author:"Autor",
-about_version:"Verzija",
-about_loaded:"Postoje\u0107i dodaci",
-anchor_title:"Umetni/uredi sidro",
-anchor_name:"Ime sidra",
-code_title:"HTML ure\u0111iva\u010D",
-code_wordwrap:"Omatanje teksta",
-colorpicker_title:"Izbor boje",
-colorpicker_picker_tab:"Odabir",
-colorpicker_picker_title:"Odabir boje",
-colorpicker_palette_tab:"Paleta",
-colorpicker_palette_title:"Paleta boja",
-colorpicker_named_tab:"Imenovano",
-colorpicker_named_title:"Imenovane boje",
-colorpicker_color:"Boja:",
-colorpicker_name:"Naziv:",
-charmap_title:"Odaberite znak",
-image_title:"Umetni/uredi sliku",
-image_src:"URL slike",
-image_alt:"Opis slike",
-image_list:"Lista slika",
-image_border:"Obrub",
-image_dimensions:"Dimenzije",
-image_vspace:"Okomiti razmak",
-image_hspace:"Vodoravni razmak",
-image_align:"Poravnavanje",
-image_align_baseline:"Osnovna linija",
-image_align_top:"Vrh",
-image_align_middle:"Sredina",
-image_align_bottom:"Dno",
-image_align_texttop:"Vrh teksta",
-image_align_textbottom:"Dno teksta",
-image_align_left:"Lijevo",
-image_align_right:"Desno",
-link_title:"Umetni/uredi poveznicu",
-link_url:"URL poveznice",
-link_target:"Meta",
-link_target_same:"Otvori poveznicu u istom prozoru",
-link_target_blank:"Otvori poveznicu u novom prozoru",
-link_titlefield:"Naslov",
-link_is_email:"URL koji ste unijeli izgleda kao e-mail adresa, \u017Eelite li dodati potrebni mailto: prefiks?",
-link_is_external:"URL koji ste unijeli izgleda kao vanjska poveznica, \u017Eelite li dodati potrebni http:// prefiks?",
-link_list:"Lista poveznica"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/ca.js b/chrome/content/zotero/tinymce/themes/advanced/langs/ca.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('ca.advanced',{
-style_select:"Estils",
-font_size:"Mida de lletra",
-fontdefault:"Tipografia",
-block:"Format",
-paragraph:"Par\u00E0graf",
-div:"Div",
-address:"Adre\u00E7a",
-pre:"Preformatat",
-h1:"Cap\u00E7alera 1",
-h2:"Cap\u00E7alera 2",
-h3:"Cap\u00E7alera 3",
-h4:"Cap\u00E7alera 4",
-h5:"Cap\u00E7alera 5",
-h6:"Cap\u00E7alera 6",
-blockquote:"Cita",
-code:"Codi",
-samp:"Mostra de codi",
-dt:"Terme de la definici\u00F3",
-dd:"Descripci\u00F3 de la definici\u00F3",
-bold_desc:"Negreta (Ctrl+B)",
-italic_desc:"Cursiva (Ctrl+I)",
-underline_desc:"Subratllat (Ctrl+U)",
-striketrough_desc:"Tatxat",
-justifyleft_desc:"Alinea a l'esquerra",
-justifycenter_desc:"Centra",
-justifyright_desc:"Alinea a la dreta",
-justifyfull_desc:"Justifica",
-bullist_desc:"Llista no ordenada",
-numlist_desc:"Llista ordenada",
-outdent_desc:"Redueix el sagnat",
-indent_desc:"Augmenta el sagnat",
-undo_desc:"Desf\u00E9s (Ctrl+Z)",
-redo_desc:"Ref\u00E9s (Ctrl+Y)",
-link_desc:"Insereix/edita enlla\u00E7",
-unlink_desc:"Desenlla\u00E7a",
-image_desc:"Insereix/edita imatge",
-cleanup_desc:"Neteja el codi no correcte",
-code_desc:"Edita la font HTML",
-sub_desc:"Sub\u00EDndex",
-sup_desc:"Super\u00EDndex",
-hr_desc:"Insereix regle horitzontal",
-removeformat_desc:"Elimina el format",
-custom1_desc:"Aqu\u00ED la teva descripci\u00F3 personalitzada",
-forecolor_desc:"Selecciona el color del text",
-backcolor_desc:"Selecciona el color de fons",
-charmap_desc:"Insereix car\u00E0cter personalitzat",
-visualaid_desc:"Canvia els elements guies/invisibles",
-anchor_desc:"Insereix/edita \u00E0ncora",
-cut_desc:"Retalla",
-copy_desc:"Copia",
-paste_desc:"Enganxa",
-image_props_desc:"Propietats de la imatge",
-newdocument_desc:"Nou document",
-help_desc:"Ajuda",
-blockquote_desc:"Descripci\u00F3 de la cita",
-clipboard_msg:"Copia/Retalla/Enganxa no est\u00E0 disponible en Mozilla/Firefox.\r\nVols m\u00E9s informaci\u00F3 sobre aquest tema?",
-path:"Cam\u00ED",
-newdocument:"Segur que vols esborrar tot el contingut?",
-toolbar_focus:"Salta als botons d'eines - Alt+Q, Salta a l'editor - Alt-Z, Salta al cam\u00ED de l'element - Alt-X",
-more_colors:"M\u00E9s colors"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/ca_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/ca_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('ca.advanced_dlg',{
-about_title:"Quant a TinyMCE",
-about_general:"Quant a",
-about_help:"Ajuda",
-about_license:"Llic\u00E8ncia",
-about_plugins:"Extensions",
-about_plugin:"Extensi\u00F3",
-about_author:"Autor",
-about_version:"Versi\u00F3",
-about_loaded:"Extensions carregades",
-anchor_title:"Insereix/edita \u00E0ncora",
-anchor_name:"Nom de l'\u00E0ncora",
-code_title:"Editor de Font HTML",
-code_wordwrap:"Salt de paraula",
-colorpicker_title:"Selecciona un color",
-colorpicker_picker_tab:"Triador",
-colorpicker_picker_title:"Triador de color",
-colorpicker_palette_tab:"Paleta",
-colorpicker_palette_title:"Colors de la paleta",
-colorpicker_named_tab:"Amb nom",
-colorpicker_named_title:"Colors amb nom",
-colorpicker_color:"Color:",
-colorpicker_name:"Nom:",
-charmap_title:"Selecciona el car\u00E0cter personalitzat",
-image_title:"Insereix/edita imatge",
-image_src:"URL de la imatge",
-image_alt:"Descripci\u00F3 de la imatge",
-image_list:"Llista d'imatges",
-image_border:"Vora",
-image_dimensions:"Dimensions",
-image_vspace:"Espaiat vertical",
-image_hspace:"Espaiat horitzontal",
-image_align:"Alineaci\u00F3",
-image_align_baseline:"L\u00EDnia base",
-image_align_top:"Dalt",
-image_align_middle:"Mig",
-image_align_bottom:"Baix",
-image_align_texttop:"A dalt del text",
-image_align_textbottom:"A baix del text",
-image_align_left:"Esquerra",
-image_align_right:"Dreta",
-link_title:"Insereix/edita enlla\u00E7",
-link_url:"URL de l'enlla\u00E7",
-link_target:"Objectiu",
-link_target_same:"Obre l'enlla\u00E7 a la mateixa finestra",
-link_target_blank:"Obre l'enlla\u00E7 en una finestra nova",
-link_titlefield:"T\u00EDtol",
-link_is_email:"L'URL que has introdu\u00EFt sembla una adre\u00E7a de correu, vols afegir-hi el prefix mailto://?",
-link_is_external:"L'URL que has introdu\u00EFt sembla un enlla\u00E7 extern, vols afegir-hi el prefix http://?",
-link_list:"Llista d'enlla\u00E7os"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/ch.js b/chrome/content/zotero/tinymce/themes/advanced/langs/ch.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('ch.advanced',{
-style_select:"\u6837\u5F0F",
-font_size:"\u5B57\u4F53\u5927\u5C0F",
-fontdefault:"\u5B57\u578B",
-block:"\u683C\u5F0F",
-paragraph:"\u6BB5\u843D",
-div:"Div",
-address:"\u5730\u5740",
-pre:"\u539F\u59CB\u683C\u5F0F",
-h1:"\u6807\u98981",
-h2:"\u6807\u98982",
-h3:"\u6807\u98983",
-h4:"\u6807\u98984",
-h5:"\u6807\u98985",
-h6:"\u6807\u98986",
-blockquote:"\u5F15\u7528",
-code:"\u539F\u59CB\u7801",
-samp:"\u7A0B\u5E8F\u8303\u4F8B",
-dt:"\u540D\u8BCD\u5B9A\u4E49",
-dd:"\u540D\u8BCD\u89E3\u91CA",
-bold_desc:"\u7C97\u4F53(Ctrl+B)",
-italic_desc:"\u659C\u4F53(Ctrl+I)",
-underline_desc:"\u5E95\u7EBF(Ctrl+U)",
-striketrough_desc:"\u5220\u9664\u7EBF",
-justifyleft_desc:"\u9760\u5DE6\u5BF9\u9F50",
-justifycenter_desc:"\u7F6E\u4E2D",
-justifyright_desc:"\u9760\u53F3\u5BF9\u9F50",
-justifyfull_desc:"\u5DE6\u53F3\u5BF9\u9F50",
-bullist_desc:"\u9879\u76EE\u65B9\u5F0F\u5217\u8868",
-numlist_desc:"\u7F16\u53F7\u65B9\u5F0F\u5217\u8868",
-outdent_desc:"\u51CF\u5C11\u7F29\u8FDB",
-indent_desc:"\u589E\u52A0\u7F29\u8FDB",
-undo_desc:"\u8FD8\u539F(Ctrl+Z)",
-redo_desc:"\u91CD\u505A(Ctrl+Y)",
-link_desc:"\u63D2\u5165/\u7F16\u8F91\u94FE\u63A5",
-unlink_desc:"\u53D6\u6D88\u94FE\u63A5",
-image_desc:"\u63D2\u5165/\u7F16\u8F91\u56FE\u7247",
-cleanup_desc:"\u6E05\u9664\u65E0\u6548\u539F\u59CB\u7801",
-code_desc:"\u7F16\u8F91HTML\u539F\u59CB\u7801",
-sub_desc:"\u4E0B\u6807",
-sup_desc:"\u4E0A\u6807",
-hr_desc:"\u63D2\u5165\u6C34\u5E73\u5206\u5272\u7EBF",
-removeformat_desc:"\u6E05\u9664\u6837\u5F0F",
-custom1_desc:"\u5728\u6B64\u8F93\u5165\u81EA\u5B9A\u4E49\u63CF\u8FF0",
-forecolor_desc:"\u9009\u62E9\u6587\u5B57\u989C\u8272",
-backcolor_desc:"\u9009\u62E9\u80CC\u666F\u989C\u8272",
-charmap_desc:"\u63D2\u5165\u81EA\u5B9A\u4E49\u7B26\u53F7",
-visualaid_desc:"\u5207\u6362\u53EF\u89C1/\u9690\u85CF\u5143\u7D20",
-anchor_desc:"\u63D2\u5165/\u7F16\u8F91\u951A\u70B9",
-cut_desc:"\u526A\u4E0B(Ctrl+X)",
-copy_desc:"\u590D\u5236(Ctrl+C)",
-paste_desc:"\u8D34\u4E0A(Ctrl+V)",
-image_props_desc:"\u56FE\u7247\u5C5E\u6027",
-newdocument_desc:"\u5F00\u65B0\u6863\u6848",
-help_desc:"\u8BF4\u660E",
-blockquote_desc:"\u5F15\u7528",
-clipboard_msg:"\u590D\u5236/\u526A\u4E0B/\u8D34\u4E0A\u529F\u80FD\u5728Mozilla\u548CFirefox\u4E2D\u65E0\u6CD5\u4F7F\u7528\u3002 \n\u60F3\u66F4\u6DF1\u5165\u4E86\u89E3\u8FD9\u4E2A\u95EE\u9898\u5417\uFF1F ",
-path:"\u8DEF\u5F84",
-newdocument:"\u4F60\u786E\u5B9A\u8981\u6E05\u9664\u6240\u6709\u5185\u5BB9\u5417\uFF1F ",
-toolbar_focus:"\u79FB\u81F3\u5DE5\u5177\u680F- Alt+Q,\u79FB\u81F3\u7F16\u8F91\u5668- Alt-Z,\u79FB\u81F3\u5143\u7D20\u8DEF\u5F84- Alt-X",
-more_colors:"\u66F4\u591A\u989C\u8272"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/ch_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/ch_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('ch.advanced_dlg',{
-about_title:"\u5173\u4E8ETinyMCE",
-about_general:"\u5173\u4E8E",
-about_help:"\u8BF4\u660E",
-about_license:"\u6388\u6743",
-about_plugins:"\u5916\u6302\u7EC4\u4EF6",
-about_plugin:"\u5916\u6302\u7EC4\u4EF6",
-about_author:"\u4F5C\u8005",
-about_version:"\u7248\u672C",
-about_loaded:"\u5DF2\u52A0\u8F7D\u7684\u5916\u6302\u7EC4\u4EF6",
-anchor_title:"\u63D2\u5165/\u7F16\u8F91\u951A\u70B9",
-anchor_name:"\u951A\u70B9\u540D\u79F0",
-code_title:"HTML\u539F\u59CB\u7801\u7F16\u8F91\u5668",
-code_wordwrap:"\u81EA\u52A8\u6362\u884C",
-colorpicker_title:"\u9009\u62E9\u989C\u8272",
-colorpicker_picker_tab:"\u9009\u8272\u5668",
-colorpicker_picker_title:"\u9009\u8272\u5668",
-colorpicker_palette_tab:"\u8272\u76D8",
-colorpicker_palette_title:"\u8272\u76D8\u989C\u8272",
-colorpicker_named_tab:"\u8272\u540D",
-colorpicker_named_title:"\u989C\u8272\u540D\u79F0",
-colorpicker_color:"\u989C\u8272\uFF1A",
-colorpicker_name:"\u540D\u79F0\uFF1A",
-charmap_title:"\u9009\u62E9\u81EA\u5B9A\u4E49\u5B57\u7B26\u7B26\u53F7",
-image_title:"\u63D2\u5165/\u7F16\u8F91\u56FE\u7247",
-image_src:"\u56FE\u7247URL",
-image_alt:"\u56FE\u7247\u8BF4\u660E",
-image_list:"\u56FE\u7247\u6863\u6E05\u5355",
-image_border:"\u8FB9\u6846",
-image_dimensions:"\u5C3A\u5BF8",
-image_vspace:"\u5782\u76F4\u95F4\u8DDD",
-image_hspace:"\u6C34\u5E73\u95F4\u8DDD",
-image_align:"\u5BF9\u9F50\u65B9\u5F0F",
-image_align_baseline:"\u57FA\u7EBF",
-image_align_top:"\u7F6E\u9876\u5BF9\u9F50",
-image_align_middle:"\u7F6E\u4E2D",
-image_align_bottom:"\u7F6E\u5E95\u5BF9\u9F50",
-image_align_texttop:"\u6587\u5B57\u4E0A\u65B9",
-image_align_textbottom:"\u6587\u5B57\u4E0B\u65B9",
-image_align_left:"\u9760\u5DE6\u5BF9\u9F50",
-image_align_right:"\u9760\u53F3\u5BF9\u9F50",
-link_title:"\u63D2\u5165/\u7F16\u8F91\u94FE\u63A5",
-link_url:"\u94FE\u63A5URL",
-link_target:"\u76EE\u6807",
-link_target_same:"\u76EE\u524D\u89C6\u7A97\u5F00\u542F\u94FE\u63A5",
-link_target_blank:"\u65B0\u89C6\u7A97\u5F00\u542F\u94FE\u63A5",
-link_titlefield:"\u6807\u9898",
-link_is_email:"\u4F60\u8F93\u5165\u7684URL\u4F3C\u4E4E\u662F\u4E00\u4E2AEmail\u5730\u5740\uFF0C\u662F\u5426\u8981\u52A0\u4E0A\u524D\u7F6E\u8BCD\"mailto:\" \uFF1F ",
-link_is_external:"\u4F60\u8F93\u5165\u7684URL\u4F3C\u4E4E\u662F\u4E00\u4E2A\u5916\u90E8\u94FE\u63A5\uFF0C\u662F\u5426\u8981\u52A0\u4E0A\u524D\u7F6E\u8BCD\"http://\" \uFF1F ",
-link_list:"\u94FE\u63A5\u6E05\u5355"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/cs.js b/chrome/content/zotero/tinymce/themes/advanced/langs/cs.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('cs.advanced',{
-style_select:"--- Styly ---",
-font_size:"- Velikost p\u00EDsma -",
-fontdefault:"--- P\u00EDsma ---",
-block:"-- Form\u00E1t --",
-paragraph:"Odstavec",
-div:"Div",
-address:"Adresa",
-pre:"P\u0159edform\u00E1tov\u00E1no",
-h1:"Nadpis 1",
-h2:"Nadpis 2",
-h3:"Nadpis 3",
-h4:"Nadpis 4",
-h5:"Nadpis 5",
-h6:"Nadpis 6",
-blockquote:"Odsazen\u00FD blok textu",
-code:"K\u00F3d",
-samp:"Vzorek",
-dt:"Term\u00EDn",
-dd:"Definice",
-bold_desc:"Tu\u010Dn\u00E9 (Ctrl+B)",
-italic_desc:"Kurz\u00EDva (Ctrl+I)",
-underline_desc:"Podtr\u017Een\u00E9 (Ctrl+U)",
-striketrough_desc:"P\u0159e\u0161krtnut\u00E9",
-justifyleft_desc:"Zarovnat doleva",
-justifycenter_desc:"Zarovnat na st\u0159ed",
-justifyright_desc:"Zarovnat doprava",
-justifyfull_desc:"Zarovnat do bloku",
-bullist_desc:"Seznam s odr\u00E1\u017Ekami",
-numlist_desc:"\u010C\u00EDslovan\u00FD seznam",
-outdent_desc:"Zmen\u0161it odsazen\u00ED",
-indent_desc:"Zv\u011Bt\u0161it odsazen\u00ED",
-undo_desc:"Zp\u011Bt (Ctrl+Z)",
-redo_desc:"Znovu (Ctrl+Y)",
-link_desc:"Vlo\u017Eit/upravit odkaz",
-unlink_desc:"Zru\u0161it odkaz",
-image_desc:"Vlo\u017Eit/upravit obr\u00E1zek",
-cleanup_desc:"Vy\u010Distit k\u00F3d",
-code_desc:"Editovat HTML k\u00F3d",
-sub_desc:"Doln\u00ED index",
-sup_desc:"Horn\u00ED index",
-hr_desc:"Vlo\u017Eit vodorovn\u00FD odd\u011Blova\u010D",
-removeformat_desc:"Zru\u0161it form\u00E1tov\u00E1n\u00ED",
-custom1_desc:"Libovoln\u00FD popisek",
-forecolor_desc:"Barva textu",
-backcolor_desc:"Barva pozad\u00ED",
-charmap_desc:"Vlo\u017Eit speci\u00E1ln\u00ED znak",
-visualaid_desc:"Zviditelnit zna\u010Dky",
-anchor_desc:"Vlo\u017Eit/upravit kotvu",
-cut_desc:"Vyjmout",
-copy_desc:"Kop\u00EDrovat",
-paste_desc:"Vlo\u017Eit",
-image_props_desc:"Vlastnosti obr\u00E1zku",
-newdocument_desc:"Nov\u00FD dokument",
-help_desc:"N\u00E1pov\u011Bda",
-blockquote_desc:"Blok citace",
-clipboard_msg:"Funkce kop\u00EDrovat/vyjmout/vlo\u017Eit nejsou pou\u017Eiteln\u00E9 v Mozille a Firefoxu.\nChcete v\u00EDce informac\u00ED?",
-path:"Cesta",
-newdocument:"Jste si opravdu jisti, \u017Ee chcete vymazat ve\u0161ker\u00FD obsah?",
-toolbar_focus:"Skok na li\u0161tu n\u00E1stroj\u016F - Alt+Q, skok do editoru - Alt-Z, skok na cestu prvk\u016F - Alt-X",
-more_colors:"Dal\u0161\u00ED barvy"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/cs_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/cs_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('cs.advanced_dlg',{
-about_title:"O TinyMCE",
-about_general:"O n\u00E1s",
-about_help:"N\u00E1pov\u011Bda",
-about_license:"Licence",
-about_plugins:"Pluginy",
-about_plugin:"Plugin",
-about_author:"Autor",
-about_version:"Verze",
-about_loaded:"Na\u010Dten\u00E9 pluginy",
-anchor_title:"Vlo\u017Eit/upravit kotvu",
-anchor_name:"N\u00E1zev kotvy",
-code_title:"HTML",
-code_wordwrap:"Zalomen\u00ED \u0159\u00E1dk\u016F",
-colorpicker_title:"V\u00FDb\u011Br barvy",
-colorpicker_picker_tab:"Kap\u00E1tko",
-colorpicker_picker_title:"Kap\u00E1tko",
-colorpicker_palette_tab:"Paleta",
-colorpicker_palette_title:"Paleta barev",
-colorpicker_named_tab:"N\u00E1zvy",
-colorpicker_named_title:"Pojmenovan\u00E9 barvy",
-colorpicker_color:"Vybran\u00E1 barva:",
-colorpicker_name:"N\u00E1zev:",
-charmap_title:"Vlo\u017Eit speci\u00E1ln\u00ED znak",
-image_title:"Vlo\u017Eit/upravit obr\u00E1zek",
-image_src:"URL obr\u00E1zku",
-image_alt:"Popis obr\u00E1zku",
-image_list:"Seznam obr\u00E1zk\u016F",
-image_border:"R\u00E1me\u010Dek",
-image_dimensions:"Rozm\u011Bry",
-image_vspace:"Vertik\u00E1ln\u00ED mezera",
-image_hspace:"Horizont\u00E1ln\u00ED mezera",
-image_align:"Zarovn\u00E1n\u00ED",
-image_align_baseline:"Na z\u00E1kladnu",
-image_align_top:"Nahoru",
-image_align_middle:"Na st\u0159ed \u0159\u00E1dku",
-image_align_bottom:"Dol\u016F",
-image_align_texttop:"S vrchem \u0159\u00E1dku",
-image_align_textbottom:"Se spodkem \u0159\u00E1dku",
-image_align_left:"Vlevo",
-image_align_right:"Vpravo",
-link_title:"Vlo\u017Eit/upravit odkaz",
-link_url:"URL odkazu",
-link_target:"C\u00EDl",
-link_target_same:"Otev\u0159\u00EDt odkaz ve stejn\u00E9m okn\u011B",
-link_target_blank:"Otev\u0159\u00EDt odkaz v nov\u00E9m okn\u011B",
-link_titlefield:"Titulek",
-link_is_email:"Zadan\u00E9 URL vypad\u00E1 jako e-mailov\u00E1 adresa, chcete doplnit prefix mailto:?",
-link_is_external:"Zadan\u00E9 URL vypad\u00E1 jako extern\u00ED odkaz, chcete doplnit prefix http://?",
-link_list:"Seznam odkaz\u016F"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/da.js b/chrome/content/zotero/tinymce/themes/advanced/langs/da.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('da.advanced',{
-style_select:"Typografier",
-font_size:"Skriftst\u00F8rrelse",
-fontdefault:"Skrifttype",
-block:"Format",
-paragraph:"Afsnit",
-div:"Div",
-address:"Adresse",
-pre:"Pr\u00E6formatteret",
-h1:"Overskrift 1",
-h2:"Overskrift 2",
-h3:"Overskrift 3",
-h4:"Overskrift 4",
-h5:"Overskrift 5",
-h6:"Overskrift 6",
-blockquote:"Blokcitat",
-code:"Kode",
-samp:"Kodeeksempel",
-dt:"Definitionsterm ",
-dd:"Definitionsbeskrivelse",
-bold_desc:"Fed (Ctrl+B)",
-italic_desc:"Kursiv (Ctrl+I)",
-underline_desc:"Understreget (Ctrl+U)",
-striketrough_desc:"Gennemstreget",
-justifyleft_desc:"Venstrejusteret",
-justifycenter_desc:"Centreret",
-justifyright_desc:"H\u00F8jrejusteret",
-justifyfull_desc:"Lige marginer",
-bullist_desc:"Unummereret punktopstilling",
-numlist_desc:"Nummereret punktopstilling",
-outdent_desc:"Formindsk indrykning",
-indent_desc:"\u00D8g indrykning",
-undo_desc:"Fortryd (Ctrl+Z)",
-redo_desc:"Gendan (Ctrl+Y)",
-link_desc:"Inds\u00E6t/rediger link",
-unlink_desc:"Fjern link",
-image_desc:"Inds\u00E6t/rediger billede",
-cleanup_desc:"Ryd op i uordentlig kode",
-code_desc:"Rediger HTML-kilde",
-sub_desc:"S\u00E6nket skrift",
-sup_desc:"H\u00E6vet skrift",
-hr_desc:"Inds\u00E6t horisontal linie",
-removeformat_desc:"Fjern formatering",
-custom1_desc:"Din egen beskrivelse her",
-forecolor_desc:"V\u00E6lg tekstfarve",
-backcolor_desc:"V\u00E6lg baggrundsfarve",
-charmap_desc:"Inds\u00E6t specialtegn",
-visualaid_desc:"Sl\u00E5 hj\u00E6lp/synlige elementer til/fra",
-anchor_desc:"Inds\u00E6t/rediger anker",
-cut_desc:"Klip",
-copy_desc:"Kopier",
-paste_desc:"Inds\u00E6t",
-image_props_desc:"Billedeegenskaber",
-newdocument_desc:"Nyt dokument",
-help_desc:"Hj\u00E6lp",
-blockquote_desc:"Blokcitat",
-clipboard_msg:"Kopier/Klip/inds\u00E6t er ikke muligt i Mozilla og Firefox.\nVil du have mere information om dette emne?",
-path:"Sti",
-newdocument:"Er du sikker p\u00E5 du vil slette alt indhold?",
-toolbar_focus:"Hop til v\u00E6rkt\u00F8jsknapper - Alt+Q, Skift til redigering - Alt-Z, Skift til element sti - Alt-X",
-more_colors:"Flere farver"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/da_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/da_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('da.advanced_dlg',{
-about_title:"Om TinyMCE",
-about_general:"Om",
-about_help:"Hj\u00E6lp",
-about_license:"Licens",
-about_plugins:"Udvidelser",
-about_plugin:"Udvidelse",
-about_author:"Forfatter",
-about_version:"Version",
-about_loaded:"Indl\u00E6ste udvidelser",
-anchor_title:"Inds\u00E6t/rediger anker",
-anchor_name:"Navn p\u00E5 anker",
-code_title:"HTML kildekode redigering",
-code_wordwrap:"Tekstombrydning",
-colorpicker_title:"V\u00E6lg en farve",
-colorpicker_picker_tab:"V\u00E6lger",
-colorpicker_picker_title:"Farve v\u00E6lger",
-colorpicker_palette_tab:"Palette",
-colorpicker_palette_title:"Palette farver",
-colorpicker_named_tab:"Navngivet",
-colorpicker_named_title:"Navngivet farve",
-colorpicker_color:"Farve:",
-colorpicker_name:"Navn:",
-charmap_title:"V\u00E6lg specialtegn",
-image_title:"Inds\u00E6t/rediger billede",
-image_src:"Billede URL",
-image_alt:"Billedebeskrivelse",
-image_list:"Liste over billeder",
-image_border:"Kant",
-image_dimensions:"Dimensioner",
-image_vspace:"Vertikal afstand",
-image_hspace:"Horisontal afstand",
-image_align:"Justering",
-image_align_baseline:"Grundlinie",
-image_align_top:"Toppen",
-image_align_middle:"Centreret",
-image_align_bottom:"Bunden",
-image_align_texttop:"Tekst toppen",
-image_align_textbottom:"Tekst bunden",
-image_align_left:"Venstre",
-image_align_right:"H\u00F8jre",
-link_title:"Inds\u00E6t/rediger link",
-link_url:"Link URL",
-link_target:"Target",
-link_target_same:"\u00C5ben link i samme vindue",
-link_target_blank:"\u00C5ben link i nyt vindue",
-link_titlefield:"Titel",
-link_is_email:"Den URL der er indtastet ser ud til at v\u00E6re en emailadresse. Vil du have tilf\u00F8jet det p\u00E5kr\u00E6vede mailto: foran?",
-link_is_external:"Den URL der er indtastet ser ud til at v\u00E6re et eksternt link. Vil du have tilf\u00F8jet det p\u00E5kr\u00E6vede http:// foran?",
-link_list:"Liste over links"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/de.js b/chrome/content/zotero/tinymce/themes/advanced/langs/de.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('de.advanced',{
-style_select:"Format",
-font_size:"Schriftgr\u00F6\u00DFe",
-fontdefault:"Schriftart",
-block:"Vorlage",
-paragraph:"Absatz",
-div:"Zusammenh\u00E4ngender Bereich",
-address:"Addresse",
-pre:"Rohdaten",
-h1:"\u00DCberschrift 1",
-h2:"\u00DCberschrift 2",
-h3:"\u00DCberschrift 3",
-h4:"\u00DCberschrift 4",
-h5:"\u00DCberschrift 5",
-h6:"\u00DCberschrift 6",
-blockquote:"Zitatblock",
-code:"Code",
-samp:"Beispiel",
-dt:"Definitionsbegriff",
-dd:"Definitionsbeschreibung",
-bold_desc:"Fett (Strg+B)",
-italic_desc:"Kursiv (Strg+I)",
-underline_desc:"Unterstrichen (Strg+U)",
-striketrough_desc:"Durchgestrichen",
-justifyleft_desc:"Links ausgerichtet",
-justifycenter_desc:"Mittig ausgerichtet",
-justifyright_desc:"Rechts ausgerichtet",
-justifyfull_desc:"Blocksatz",
-bullist_desc:"Unsortierte Liste",
-numlist_desc:"Sortierte Liste",
-outdent_desc:"Ausr\u00FCcken",
-indent_desc:"Einr\u00FCcken",
-undo_desc:"R\u00FCckg\u00E4ngig (Strg+Z)",
-redo_desc:"Wiederholen (Strg+Y)",
-link_desc:"Link einf\u00FCgen/ver\u00E4ndern",
-unlink_desc:"Link entfernen",
-image_desc:"Bild einf\u00FCgen/ver\u00E4ndern",
-cleanup_desc:"Quellcode aufr\u00E4ufen",
-code_desc:"HTML-Quellcode bearbeiten",
-sub_desc:"Tiefgestellt",
-sup_desc:"Hochgestellt",
-hr_desc:"Trennlinie einf\u00FCgen",
-removeformat_desc:"Formatierungen zur\u00FCcksetzen",
-custom1_desc:"Benutzerdefinierte Beschreibung",
-forecolor_desc:"Textfarbe",
-backcolor_desc:"Hintergrundfarbe",
-charmap_desc:"Sonderzeichen einf\u00FCgen",
-visualaid_desc:"Hilfslinien und unsichtbare Elemente ein-/ausblenden",
-anchor_desc:"Anker einf\u00FCgen/ver\u00E4ndern",
-cut_desc:"Ausschneiden",
-copy_desc:"Kopieren",
-paste_desc:"Einf\u00FCgen",
-image_props_desc:"Bildeigenschaften",
-newdocument_desc:"Neues Dokument",
-help_desc:"Hilfe",
-blockquote_desc:"Zitatblock",
-clipboard_msg:"Kopieren, Ausschneiden und Einf\u00FCgen sind im Mozilla Firefox nicht m\u00F6glich.\r\nWollen Sie mehr \u00FCber dieses Problem erfahren?",
-path:"Pfad",
-newdocument:"Wollen Sie wirklich den ganzen Inhalt l\u00F6schen?",
-toolbar_focus:"Zur Werkzeugleiste springen: Alt+Q; Zum Editor springen: Alt-Z; Zum Elementpfad springen: Alt-X",
-more_colors:"Weitere Farben"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/de_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/de_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('de.advanced_dlg',{
-about_title:"\u00DCber TinyMCE",
-about_general:"\u00DCber\u00C3\u00A2\u00C2\u0080\u00C2\u00A6",
-about_help:"Hilfe",
-about_license:"Lizenzbedingungen",
-about_plugins:"Plugins",
-about_plugin:"Plugin",
-about_author:"Urheber",
-about_version:"Version",
-about_loaded:"Geladene Plugins",
-anchor_title:"Anker einf\u00FCgen/ver\u00E4ndern",
-anchor_name:"Name des Ankers",
-code_title:"HTML-Quellcode bearbeiten",
-code_wordwrap:"Automatischer Zeilenumbruch",
-colorpicker_title:"Farbe",
-colorpicker_picker_tab:"Farbwahl",
-colorpicker_picker_title:"Farbwahl",
-colorpicker_palette_tab:"Palette",
-colorpicker_palette_title:"Farbpalette",
-colorpicker_named_tab:"Benannte Farben",
-colorpicker_named_title:"Benannte Farben",
-colorpicker_color:"Farbe:",
-colorpicker_name:"Name:",
-charmap_title:"Sonderzeichen",
-image_title:"Bild einf\u00FCgen/bearbeiten",
-image_src:"Adresse",
-image_alt:"Alternativtext",
-image_list:"Bilderliste",
-image_border:"Rahmen",
-image_dimensions:"Ausma\u00DFe",
-image_vspace:"Vertikaler Abstand",
-image_hspace:"Horizontaler Abstand",
-image_align:"Ausrichtung",
-image_align_baseline:"Zeile",
-image_align_top:"Oben",
-image_align_middle:"Mittig",
-image_align_bottom:"Unten",
-image_align_texttop:"Oben im Text",
-image_align_textbottom:"Unten im Text",
-image_align_left:"Links",
-image_align_right:"Rechts",
-link_title:"Link einf\u00FCgen/bearbeiten",
-link_url:"Adresse",
-link_target:"Fenster",
-link_target_same:"Im selben Fenster \u00F6ffnen",
-link_target_blank:"Neues Fenster \u00F6ffnen",
-link_titlefield:"Titel",
-link_is_email:"Bei der Adresse scheint es sich um eine E-Mail-Adresse zu handeln. Wollen Sie das dazu ben\u00F6tigte mailto: voranstellen?",
-link_is_external:"Bei der Adresse scheint es sich um einen externen Link zu handeln. M\u00F6chten Sie, dass zur korrekten Verlinkung ein http:// vorangestellt wird?",
-link_list:"Linkliste"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/el.js b/chrome/content/zotero/tinymce/themes/advanced/langs/el.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('el.advanced',{
-style_select:"\u03A3\u03C4\u03C5\u03BB",
-font_size:"\u039C\u03AD\u03B3\u03B5\u03B8\u03BF\u03C2 \u0393\u03C1\u03B1\u03BC\u03BC\u03AC\u03C4\u03C9\u03BD",
-fontdefault:"\u0393\u03C1\u03B1\u03BC\u03BC\u03B1\u03C4\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC",
-block:"\u039C\u03BF\u03C1\u03C6\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7",
-paragraph:"\u03A0\u03B1\u03C1\u03AC\u03B3\u03C1\u03B1\u03C6\u03BF\u03C2",
-div:"Div",
-address:"\u0394\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7",
-pre:"Pre",
-h1:"\u0395\u03C0\u03B9\u03BA\u03B5\u03C6\u03B1\u03BB\u03AF\u03B4\u03B1 1",
-h2:"\u0395\u03C0\u03B9\u03BA\u03B5\u03C6\u03B1\u03BB\u03AF\u03B4\u03B1 2",
-h3:"\u0395\u03C0\u03B9\u03BA\u03B5\u03C6\u03B1\u03BB\u03AF\u03B4\u03B1 3",
-h4:"\u0395\u03C0\u03B9\u03BA\u03B5\u03C6\u03B1\u03BB\u03AF\u03B4\u03B1 4",
-h5:"\u0395\u03C0\u03B9\u03BA\u03B5\u03C6\u03B1\u03BB\u03AF\u03B4\u03B1 5",
-h6:"\u0395\u03C0\u03B9\u03BA\u03B5\u03C6\u03B1\u03BB\u03AF\u03B4\u03B1 6",
-blockquote:"Blockquote",
-code:"\u039A\u03CE\u03B4\u03B9\u03BA\u03B1\u03C2",
-samp:"\u0394\u03B5\u03AF\u03B3\u03BC\u03B1 \u039A\u03CE\u03B4\u03B9\u03BA\u03B1",
-dt:"\u039F\u03C1\u03B9\u03C3\u03BC\u03CC\u03C2",
-dd:"\u03A0\u03B5\u03C1\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE \u039F\u03C1\u03B9\u03C3\u03BC\u03BF\u03CD",
-bold_desc:"\u039C\u03B1\u03CD\u03C1\u03B1 (Ctrl+B)",
-italic_desc:"\u03A0\u03BB\u03AC\u03B3\u03B9\u03B1 (Ctrl+I)",
-underline_desc:"\u03A5\u03C0\u03BF\u03B3\u03C1\u03B1\u03BC\u03BC\u03B9\u03C3\u03BC\u03AD\u03BD\u03B1 (Ctrl+U)",
-striketrough_desc:"\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03BC\u03BC\u03B9\u03C3\u03BC\u03AD\u03BD\u03B1",
-justifyleft_desc:"\u03A3\u03C4\u03BF\u03AF\u03C7\u03B9\u03C3\u03B7 \u03B1\u03C1\u03B9\u03C3\u03C4\u03B5\u03C1\u03AC",
-justifycenter_desc:"\u03A3\u03C4\u03BF\u03AF\u03C7\u03B9\u03C3\u03B7 \u03BA\u03AD\u03BD\u03C4\u03C1\u03BF",
-justifyright_desc:"\u03A3\u03C4\u03BF\u03AF\u03C7\u03B9\u03C3\u03B7 \u03B4\u03B5\u03BE\u03B9\u03AC",
-justifyfull_desc:"\u03A3\u03C4\u03BF\u03AF\u03C7\u03B9\u03C3\u03B7 \u03C0\u03BB\u03AE\u03C1\u03B7\u03C2",
-bullist_desc:"\u039B\u03AF\u03C3\u03C4\u03B1 \u03C7\u03C9\u03C1\u03AF\u03C2 \u03C3\u03B5\u03B9\u03C1\u03AC",
-numlist_desc:"\u039B\u03AF\u03C3\u03C4\u03B1 \u03BC\u03B5 \u03C3\u03B5\u03B9\u03C1\u03AC",
-outdent_desc:"\u03A0\u03C1\u03BF\u03B5\u03BE\u03BF\u03C7\u03AE",
-indent_desc:"\u0395\u03C3\u03BF\u03C7\u03AE",
-undo_desc:"\u0391\u03BD\u03B1\u03AF\u03C1\u03B5\u03C3\u03B7 (Ctrl+Z)",
-redo_desc:"\u0395\u03C0\u03B1\u03BD\u03AC\u03BB\u03B7\u03C8\u03B7 (Ctrl+Y)",
-link_desc:"\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE/\u03B5\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 \u03C3\u03C5\u03BD\u03B4\u03AD\u03C3\u03BC\u03BF\u03C5",
-unlink_desc:"\u039A\u03B1\u03C4\u03AC\u03C1\u03B3\u03B7\u03C3\u03B7 \u03C3\u03C5\u03BD\u03B4\u03AD\u03C3\u03BC\u03BF\u03C5",
-image_desc:"\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE/\u03B5\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 \u03B5\u03B9\u03BA\u03CC\u03BD\u03B1\u03C2",
-cleanup_desc:"\u039A\u03B1\u03B8\u03B1\u03C1\u03B9\u03C3\u03BC\u03CC\u03C2 \u03BC\u03C0\u03B5\u03C1\u03B4\u03B5\u03BC\u03AD\u03BD\u03BF\u03C5 \u03BA\u03CE\u03B4\u03B9\u03BA\u03B1",
-code_desc:"\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 HTML \u039A\u03CE\u03B4\u03B9\u03BA\u03B1",
-sub_desc:"\u0394\u03B5\u03AF\u03BA\u03C4\u03B7\u03C2",
-sup_desc:"\u0395\u03BA\u03B8\u03AD\u03C4\u03B7\u03C2",
-hr_desc:"\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03BF\u03C1\u03B9\u03B6\u03CC\u03BD\u03C4\u03B9\u03B1\u03C2 \u03B3\u03C1\u03B1\u03BC\u03BC\u03AE\u03C2",
-removeformat_desc:"\u0391\u03C6\u03B1\u03AF\u03C1\u03B5\u03C3\u03B7 \u03BC\u03BF\u03C1\u03C6\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7\u03C2",
-custom1_desc:"\u0397 \u03C0\u03B5\u03C1\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE \u03C3\u03B1\u03C2 \u03B5\u03B4\u03CE",
-forecolor_desc:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03C7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2 \u03BA\u03B5\u03B9\u03BC\u03AD\u03BD\u03BF\u03C5",
-backcolor_desc:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03C7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2 \u03C6\u03CC\u03BD\u03C4\u03BF\u03C5",
-charmap_desc:"\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE \u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B1",
-visualaid_desc:"\u0395\u03BC\u03C6\u03AC\u03BD\u03B9\u03C3\u03B7/\u0391\u03C0\u03CC\u03BA\u03C1\u03C5\u03C8\u03B7 \u03B2\u03BF\u03B7\u03B8\u03B7\u03C4\u03B9\u03BA\u03CE\u03BD \u03B3\u03C1\u03B1\u03BC\u03BC\u03CE\u03BD \u03BA\u03B1\u03B9 \u03B1\u03CC\u03C1\u03B1\u03C4\u03C9\u03BD \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03C9\u03BD",
-anchor_desc:"\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE/\u03B5\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 anchor",
-cut_desc:"\u0391\u03C0\u03BF\u03BA\u03BF\u03C0\u03AE",
-copy_desc:"\u0391\u03BD\u03C4\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE",
-paste_desc:"\u0395\u03C0\u03B9\u03BA\u03CC\u03BB\u03BB\u03B7\u03C3\u03B7",
-image_props_desc:"\u0399\u03B4\u03B9\u03CC\u03C4\u03B7\u03C4\u03B5\u03C2 \u03B5\u03B9\u03BA\u03CC\u03BD\u03B1\u03C2",
-newdocument_desc:"\u039D\u03AD\u03BF \u03AD\u03B3\u03B3\u03C1\u03B1\u03C6\u03BF",
-help_desc:"\u0392\u03BF\u03AE\u03B8\u03B5\u03B9\u03B1",
-blockquote_desc:"Blockquote",
-clipboard_msg:"\u039F\u03B9 \u03BB\u03B5\u03B9\u03C4\u03BF\u03C5\u03C1\u03B3\u03AF\u03B5\u03C2 \u0391\u03BD\u03C4\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE/\u0391\u03C0\u03BF\u03BA\u03BF\u03C0\u03AE/\u0395\u03C0\u03B9\u03BA\u03CC\u03BB\u03BB\u03B7\u03C3\u03B7 \u03B4\u03B5\u03BD \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B4\u03B9\u03B1\u03B8\u03AD\u03C3\u03B9\u03BC\u03B5\u03C2 \u03C3\u03B5 Mozilla \u03BA\u03B1\u03B9 Firefox.\n\u0398\u03AD\u03BB\u03B5\u03C4\u03B5 \u03C0\u03B5\u03C1\u03B9\u03C3\u03C3\u03CC\u03C4\u03B5\u03C1\u03B5\u03C2 \u03C0\u03BB\u03B7\u03C1\u03BF\u03C6\u03BF\u03C1\u03AF\u03B5\u03C2 ;",
-path:"\u0394\u03B9\u03B1\u03B4\u03C1\u03BF\u03BC\u03AE",
-newdocument:"\u03A3\u03B9\u03AF\u03B3\u03BF\u03C5\u03C1\u03B1 \u03B8\u03AD\u03BB\u03B5\u03C4\u03B5 \u03BD\u03B1 \u03BA\u03B1\u03B8\u03B1\u03C1\u03AF\u03C3\u03B5\u03C4\u03B5 \u03CC\u03BB\u03BF \u03C4\u03BF \u03C0\u03B5\u03C1\u03B9\u03B5\u03C7\u03CC\u03BC\u03B5\u03BD\u03BF ;",
-toolbar_focus:"\u039C\u03B5\u03C4\u03AC\u03B2\u03B1\u03C3\u03B7 \u03C3\u03C4\u03B1 \u03BA\u03BF\u03C5\u03BC\u03C0\u03B9\u03AC \u03B5\u03C1\u03B3\u03B1\u03BB\u03B5\u03AF\u03C9\u03BD - Alt+Q, \u039C\u03B5\u03C4\u03AC\u03B2\u03B1\u03C3\u03B7 \u03C3\u03C4\u03BF\u03BD \u03B5\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03C4\u03AE \u03BA\u03B5\u03B9\u03BC\u03AD\u03BD\u03BF\u03C5 - Alt-Z, \u039C\u03B5\u03C4\u03AC\u03B2\u03B1\u03C3\u03B7 \u03C3\u03C4\u03B7\u03BD \u03B4\u03B9\u03B1\u03B4\u03C1\u03BF\u03BC\u03AE \u03C4\u03BF\u03C5 \u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03BF\u03C5 - Alt-X",
-more_colors:"\u03A0\u03B5\u03C1\u03B9\u03C3\u03C3\u03CC\u03C4\u03B5\u03C1\u03B1 \u03C7\u03C1\u03CE\u03BC\u03B1\u03C4\u03B1"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/el_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/el_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('el.advanced_dlg',{
-about_title:"\u03A3\u03C7\u03B5\u03C4\u03B9\u03BA\u03AC \u03BC\u03B5 \u03C4\u03BF TinyMCE",
-about_general:"\u03A3\u03C7\u03B5\u03C4\u03B9\u03BA\u03AC",
-about_help:"\u0392\u03BF\u03AE\u03B8\u03B5\u03B9\u03B1",
-about_license:"\u0386\u03B4\u03B5\u03B9\u03B1",
-about_plugins:"\u03A3\u03C7\u03B5\u03C4\u03B9\u03BA\u03AC \u03BC\u03B5 \u03C4\u03B1 \u03C0\u03C1\u03CC\u03C3\u03B8\u03B5\u03C4\u03B1",
-about_plugin:"\u03A3\u03C7\u03B5\u03C4\u03B9\u03BA\u03AC \u03BC\u03B5 \u03C4\u03BF \u03C0\u03C1\u03CC\u03C3\u03B8\u03B5\u03C4\u03BF",
-about_author:"\u03A3\u03C5\u03B3\u03B3\u03C1\u03B1\u03C6\u03AD\u03B1\u03C2",
-about_version:"\u0388\u03BA\u03B4\u03BF\u03C3\u03B7",
-about_loaded:"\u03A6\u03BF\u03C1\u03C4\u03C9\u03BC\u03AD\u03BD\u03B1 \u03C0\u03C1\u03CC\u03C3\u03B8\u03B5\u03C4\u03B1",
-anchor_title:"\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE/\u03B5\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 anchor",
-anchor_name:"\u038C\u03BD\u03BF\u03BC\u03B1 anchor",
-code_title:"\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03C4\u03AE\u03C2 \u03BA\u03CE\u03B4\u03B9\u03BA\u03B1 HTML",
-code_wordwrap:"\u0391\u03BD\u03B1\u03B4\u03AF\u03C0\u03BB\u03C9\u03C3\u03B7 \u03BA\u03B5\u03B9\u03BC\u03AD\u03BD\u03BF\u03C5",
-colorpicker_title:"\u0394\u03B9\u03B1\u03BB\u03AD\u03BE\u03C4\u03B5 \u03C7\u03C1\u03CE\u03BC\u03B1",
-colorpicker_picker_tab:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE",
-colorpicker_picker_title:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03C7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",
-colorpicker_palette_tab:"\u03A0\u03B1\u03BB\u03AD\u03C4\u03B1",
-colorpicker_palette_title:"\u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03B1 \u03C0\u03B1\u03BB\u03AD\u03C4\u03B1\u03C2",
-colorpicker_named_tab:"\u039F\u03BD\u03BF\u03BC\u03B1\u03C3\u03C4\u03B9\u03BA\u03AC",
-colorpicker_named_title:"\u039F\u03BD\u03BF\u03BC\u03B1\u03C3\u03C4\u03B9\u03BA\u03AC \u03C7\u03C1\u03CE\u03BC\u03B1\u03C4\u03B1",
-colorpicker_color:"\u03A7\u03C1\u03CE\u03BC\u03B1:",
-colorpicker_name:"\u038C\u03BD\u03BF\u03BC\u03B1:",
-charmap_title:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B1",
-image_title:"\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE/\u03B5\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 \u03B5\u03B9\u03BA\u03CC\u03BD\u03B1\u03C2",
-image_src:"\u0394\u03B9\u03B1\u03B4\u03C1\u03BF\u03BC\u03AE URL \u0395\u03B9\u03BA\u03CC\u03BD\u03B1\u03C2",
-image_alt:"\u03A0\u03B5\u03C1\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE \u03B5\u03B9\u03BA\u03CC\u03BD\u03B1\u03C2",
-image_list:"\u039B\u03AF\u03C3\u03C4\u03B1 \u03B5\u03B9\u03BA\u03CC\u03BD\u03C9\u03BD",
-image_border:"\u03A0\u03BB\u03B1\u03AF\u03C3\u03B9\u03BF",
-image_dimensions:"\u0394\u03B9\u03B1\u03C3\u03C4\u03AC\u03C3\u03B5\u03B9\u03C2",
-image_vspace:"\u0391\u03C0\u03CC\u03C3\u03C4\u03B1\u03C3\u03B7 \u03BA\u03AC\u03B8\u03B5\u03C4\u03B7",
-image_hspace:"\u0391\u03C0\u03CC\u03C3\u03C4\u03B1\u03C3\u03B7 \u03BF\u03C1\u03B9\u03B6\u03CC\u03BD\u03C4\u03B9\u03B1",
-image_align:"\u03A3\u03C4\u03BF\u03AF\u03C7\u03B9\u03C3\u03B7",
-image_align_baseline:"\u0393\u03C1\u03B1\u03BC\u03BC\u03AE \u03C3\u03C4\u03BF\u03AF\u03C7\u03B9\u03C3\u03B7\u03C2 \u03B3\u03C1\u03B1\u03BC\u03BC\u03AC\u03C4\u03C9\u03BD",
-image_align_top:"\u0395\u03C0\u03AC\u03BD\u03C9",
-image_align_middle:"\u039C\u03AD\u03C3\u03B7",
-image_align_bottom:"\u039A\u03AC\u03C4\u03C9",
-image_align_texttop:"\u039A\u03AD\u03B9\u03BC\u03B5\u03BD\u03BF \u03C0\u03AC\u03BD\u03C9",
-image_align_textbottom:"\u039A\u03B5\u03AF\u03BC\u03B5\u03BD\u03BF \u03BA\u03AC\u03C4\u03C9",
-image_align_left:"\u0391\u03C1\u03B9\u03C3\u03C4\u03B5\u03C1\u03AC",
-image_align_right:"\u0394\u03B5\u03BE\u03B9\u03AC",
-link_title:"\u0395\u03B9\u03C3\u03B1\u03B3\u03C9\u03B3\u03AE/\u03B5\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1 \u03C3\u03C5\u03BD\u03B4\u03AD\u03C3\u03BC\u03BF\u03C5",
-link_url:"\u0394\u03B9\u03B1\u03B4\u03C1\u03BF\u03BC\u03AE URL \u03C3\u03C5\u03BD\u03B4\u03AD\u03C3\u03BC\u03BF\u03C5",
-link_target:"\u03A3\u03C4\u03CC\u03C7\u03BF\u03C2",
-link_target_same:"\u0386\u03BD\u03BF\u03B9\u03B3\u03BC\u03B1 \u03C3\u03C4\u03BF \u03AF\u03B4\u03B9\u03BF \u03C0\u03B1\u03C1\u03AC\u03B8\u03C5\u03C1\u03BF",
-link_target_blank:"\u0386\u03BD\u03BF\u03B9\u03B3\u03BC\u03B1 \u03C3\u03B5 \u03BD\u03AD\u03BF \u03C0\u03B1\u03C1\u03AC\u03B8\u03C5\u03C1\u03BF",
-link_titlefield:"\u03A4\u03AF\u03C4\u03BB\u03BF\u03C2",
-link_is_email:"\u0397 \u03B4\u03B9\u03B1\u03B4\u03C1\u03BF\u03BC\u03AE URL \u03C0\u03BF\u03C5 \u03B5\u03B9\u03C3\u03AC\u03B3\u03B1\u03C4\u03B5 \u03C6\u03B1\u03AF\u03BD\u03B5\u03C4\u03B1\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 email, \u03BD\u03B1 \u03C0\u03C1\u03BF\u03C3\u03C4\u03B5\u03B8\u03B5\u03AF \u03C4\u03BF \u03B1\u03C0\u03B1\u03C1\u03B1\u03AF\u03C4\u03B7\u03C4\u03BF mailto: ;",
-link_is_external:"\u0397 \u03B4\u03B9\u03B1\u03B4\u03C1\u03BF\u03BC\u03AE URL \u03C0\u03BF\u03C5 \u03B5\u03B9\u03C3\u03AC\u03B3\u03B1\u03C4\u03B5 \u03C6\u03B1\u03AF\u03BD\u03B5\u03C4\u03B1\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03B5\u03BE\u03C9\u03C4\u03B5\u03C1\u03B9\u03BA\u03CC\u03C2 \u03C3\u03CD\u03BD\u03B4\u03B5\u03C3\u03BC\u03BF\u03C2, \u03BD\u03B1 \u03C0\u03C1\u03BF\u03C3\u03C4\u03B5\u03B8\u03B5\u03AF \u03C4\u03BF \u03B1\u03C0\u03B1\u03C1\u03B1\u03AF\u03C4\u03B7\u03C4\u03BF http:// ;",
-link_list:"\u039B\u03AF\u03C3\u03C4\u03B1 \u03C3\u03C5\u03BD\u03B4\u03AD\u03C3\u03BC\u03C9\u03BD"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/en.js b/chrome/content/zotero/tinymce/themes/advanced/langs/en.js
@@ -1,62 +1 @@
-tinyMCE.addI18n('en.advanced',{
-style_select:"Styles",
-font_size:"Font size",
-fontdefault:"Font family",
-block:"Format",
-paragraph:"Paragraph",
-div:"Div",
-address:"Address",
-pre:"Preformatted",
-h1:"Heading 1",
-h2:"Heading 2",
-h3:"Heading 3",
-h4:"Heading 4",
-h5:"Heading 5",
-h6:"Heading 6",
-blockquote:"Blockquote",
-code:"Code",
-samp:"Code sample",
-dt:"Definition term ",
-dd:"Definition description",
-bold_desc:"Bold (Ctrl+B)",
-italic_desc:"Italic (Ctrl+I)",
-underline_desc:"Underline (Ctrl+U)",
-striketrough_desc:"Strikethrough",
-justifyleft_desc:"Align left",
-justifycenter_desc:"Align center",
-justifyright_desc:"Align right",
-justifyfull_desc:"Align full",
-bullist_desc:"Unordered list",
-numlist_desc:"Ordered list",
-outdent_desc:"Outdent",
-indent_desc:"Indent",
-undo_desc:"Undo (Ctrl+Z)",
-redo_desc:"Redo (Ctrl+Y)",
-link_desc:"Insert/edit link",
-unlink_desc:"Unlink",
-image_desc:"Insert/edit image",
-cleanup_desc:"Cleanup messy code",
-code_desc:"Edit HTML Source",
-sub_desc:"Subscript",
-sup_desc:"Superscript",
-hr_desc:"Insert horizontal ruler",
-removeformat_desc:"Remove formatting",
-custom1_desc:"Your custom description here",
-forecolor_desc:"Select text color",
-backcolor_desc:"Select background color",
-charmap_desc:"Insert custom character",
-visualaid_desc:"Toggle guidelines/invisible elements",
-anchor_desc:"Insert/edit anchor",
-cut_desc:"Cut",
-copy_desc:"Copy",
-paste_desc:"Paste",
-image_props_desc:"Image properties",
-newdocument_desc:"New document",
-help_desc:"Help",
-blockquote_desc:"Blockquote",
-clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.\r\nDo you want more information about this issue?",
-path:"Path",
-newdocument:"Are you sure you want clear all contents?",
-toolbar_focus:"Jump to tool buttons - Alt+Q, Jump to editor - Alt-Z, Jump to element path - Alt-X",
-more_colors:"More colors"
-});
-\ No newline at end of file
+tinyMCE.addI18n('en.advanced',{"underline_desc":"Underline (Ctrl+U)","italic_desc":"Italic (Ctrl+I)","bold_desc":"Bold (Ctrl+B)",dd:"Definition Description",dt:"Definition Term ",samp:"Code Sample",code:"Code",blockquote:"Block Quote",h6:"Heading 6",h5:"Heading 5",h4:"Heading 4",h3:"Heading 3",h2:"Heading 2",h1:"Heading 1",pre:"Preformatted",address:"Address",div:"DIV",paragraph:"Paragraph",block:"Format",fontdefault:"Font Family","font_size":"Font Size","style_select":"Styles","anchor_delta_height":"","anchor_delta_width":"","charmap_delta_height":"","charmap_delta_width":"","colorpicker_delta_height":"","colorpicker_delta_width":"","link_delta_height":"","link_delta_width":"","image_delta_height":"","image_delta_width":"","more_colors":"More Colors...","toolbar_focus":"Jump to tool buttons - Alt+Q, Jump to editor - Alt-Z, Jump to element path - Alt-X",newdocument:"Are you sure you want clear all contents?",path:"Path","clipboard_msg":"Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?","blockquote_desc":"Block Quote","help_desc":"Help","newdocument_desc":"New Document","image_props_desc":"Image Properties","paste_desc":"Paste (Ctrl+V)","copy_desc":"Copy (Ctrl+C)","cut_desc":"Cut (Ctrl+X)","anchor_desc":"Insert/Edit Anchor","visualaid_desc":"show/Hide Guidelines/Invisible Elements","charmap_desc":"Insert Special Character","backcolor_desc":"Select Background Color","forecolor_desc":"Select Text Color","custom1_desc":"Your Custom Description Here","removeformat_desc":"Remove Formatting","hr_desc":"Insert Horizontal Line","sup_desc":"Superscript","sub_desc":"Subscript","code_desc":"Edit HTML Source","cleanup_desc":"Cleanup Messy Code","image_desc":"Insert/Edit Image","unlink_desc":"Unlink","link_desc":"Insert/Edit Link","redo_desc":"Redo (Ctrl+Y)","undo_desc":"Undo (Ctrl+Z)","indent_desc":"Increase Indent","outdent_desc":"Decrease Indent","numlist_desc":"Insert/Remove Numbered List","bullist_desc":"Insert/Remove Bulleted List","justifyfull_desc":"Align Full","justifyright_desc":"Align Right","justifycenter_desc":"Align Center","justifyleft_desc":"Align Left","striketrough_desc":"Strikethrough","help_shortcut":"Press ALT-F10 for toolbar. Press ALT-0 for help","rich_text_area":"Rich Text Area","shortcuts_desc":"Accessability Help",toolbar:"Toolbar"});
+\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/en_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/en_dlg.js
@@ -1,51 +1 @@
-tinyMCE.addI18n('en.advanced_dlg',{
-about_title:"About TinyMCE",
-about_general:"About",
-about_help:"Help",
-about_license:"License",
-about_plugins:"Plugins",
-about_plugin:"Plugin",
-about_author:"Author",
-about_version:"Version",
-about_loaded:"Loaded plugins",
-anchor_title:"Insert/edit anchor",
-anchor_name:"Anchor name",
-code_title:"HTML Source Editor",
-code_wordwrap:"Word wrap",
-colorpicker_title:"Select a color",
-colorpicker_picker_tab:"Picker",
-colorpicker_picker_title:"Color picker",
-colorpicker_palette_tab:"Palette",
-colorpicker_palette_title:"Palette colors",
-colorpicker_named_tab:"Named",
-colorpicker_named_title:"Named colors",
-colorpicker_color:"Color:",
-colorpicker_name:"Name:",
-charmap_title:"Select custom character",
-image_title:"Insert/edit image",
-image_src:"Image URL",
-image_alt:"Image description",
-image_list:"Image list",
-image_border:"Border",
-image_dimensions:"Dimensions",
-image_vspace:"Vertical space",
-image_hspace:"Horizontal space",
-image_align:"Alignment",
-image_align_baseline:"Baseline",
-image_align_top:"Top",
-image_align_middle:"Middle",
-image_align_bottom:"Bottom",
-image_align_texttop:"Text top",
-image_align_textbottom:"Text bottom",
-image_align_left:"Left",
-image_align_right:"Right",
-link_title:"Insert/edit link",
-link_url:"Link URL",
-link_target:"Target",
-link_target_same:"Open link in the same window",
-link_target_blank:"Open link in a new window",
-link_titlefield:"Title",
-link_is_email:"The URL you entered seems to be an email address, do you want to add the required mailto: prefix?",
-link_is_external:"The URL you entered seems to external link, do you want to add the required http:// prefix?",
-link_list:"Link list"
-});
-\ No newline at end of file
+tinyMCE.addI18n('en.advanced_dlg', {"link_list":"Link List","link_is_external":"The URL you entered seems to be an external link. Do you want to add the required http:// prefix?","link_is_email":"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?","link_titlefield":"Title","link_target_blank":"Open Link in a New Window","link_target_same":"Open Link in the Same Window","link_target":"Target","link_url":"Link URL","link_title":"Insert/Edit Link","image_align_right":"Right","image_align_left":"Left","image_align_textbottom":"Text Bottom","image_align_texttop":"Text Top","image_align_bottom":"Bottom","image_align_middle":"Middle","image_align_top":"Top","image_align_baseline":"Baseline","image_align":"Alignment","image_hspace":"Horizontal Space","image_vspace":"Vertical Space","image_dimensions":"Dimensions","image_alt":"Image Description","image_list":"Image List","image_border":"Border","image_src":"Image URL","image_title":"Insert/Edit Image","charmap_title":"Select Special Character", "charmap_usage":"Use left and right arrows to navigate.","colorpicker_name":"Name:","colorpicker_color":"Color:","colorpicker_named_title":"Named Colors","colorpicker_named_tab":"Named","colorpicker_palette_title":"Palette Colors","colorpicker_palette_tab":"Palette","colorpicker_picker_title":"Color Picker","colorpicker_picker_tab":"Picker","colorpicker_title":"Select a Color","code_wordwrap":"Word Wrap","code_title":"HTML Source Editor","anchor_name":"Anchor Name","anchor_title":"Insert/Edit Anchor","about_loaded":"Loaded Plugins","about_version":"Version","about_author":"Author","about_plugin":"Plugin","about_plugins":"Plugins","about_license":"License","about_help":"Help","about_general":"About","about_title":"About TinyMCE","anchor_invalid":"Please specify a valid anchor name.","accessibility_help":"Accessibility Help","accessibility_usage_title":"General Usage","invalid_color_value":"Invalid color value","":""});
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/es.js b/chrome/content/zotero/tinymce/themes/advanced/langs/es.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('es.advanced',{
-style_select:"Estilos",
-font_size:"Tama\u00F1o",
-fontdefault:"Fuente",
-block:"Formato",
-paragraph:"P\u00E1rrafo",
-div:"Div",
-address:"Direcci\u00F3n",
-pre:"Preformateado",
-h1:"Encabezado 1",
-h2:"Encabezado 2",
-h3:"Encabezado 3",
-h4:"Encabezado 4",
-h5:"Encabezado 5",
-h6:"Encabezado 6",
-blockquote:"Cita",
-code:"C\u00F3digo",
-samp:"Ejemplo de c\u00F3digo",
-dt:"T\u00E9rmino de definici\u00F3n",
-dd:"Descripci\u00F3n de definici\u00F3n",
-bold_desc:"Negrita (Ctrl+B)",
-italic_desc:"Cursiva (Ctrl+I)",
-underline_desc:"Subrayado (Ctrl+U)",
-striketrough_desc:"Tachado",
-justifyleft_desc:"Alinear a la izquierda",
-justifycenter_desc:"Alinear al centro",
-justifyright_desc:"Alinear a la derecha",
-justifyfull_desc:"Justificar",
-bullist_desc:"Lista desordenada",
-numlist_desc:"Lista ordenada",
-outdent_desc:"Reducir sangr\u00EDa",
-indent_desc:"Aumentar sandr\u00EDa",
-undo_desc:"Deshacer (Ctrl+Z)",
-redo_desc:"Rehacer (Ctrl+Y)",
-link_desc:"Insertar/editar hiperv\u00EDnculo",
-unlink_desc:"Quitar hiperv\u00EDnculo",
-image_desc:"Insertar/editar imagen",
-cleanup_desc:"Limpiar c\u00F3digo basura",
-code_desc:"Editar c\u00F3digo HTML",
-sub_desc:"Sub\u00EDndice",
-sup_desc:"Super\u00EDndice",
-hr_desc:"Insertar regla horizontal",
-removeformat_desc:"Limpiar formato",
-custom1_desc:"Su descripci\u00F3n personal aqu\u00ED",
-forecolor_desc:"Seleccionar color del texto",
-backcolor_desc:"Seleccionar color de fondo",
-charmap_desc:"Insertar caracteres personalizados",
-visualaid_desc:"Mostrar/ocultar l\u00EDnea de gu\u00EDa/elementos invisibles",
-anchor_desc:"Insertar/editar ancla",
-cut_desc:"Cortar",
-copy_desc:"Copiar",
-paste_desc:"Pegar",
-image_props_desc:"Propiedades de imagen",
-newdocument_desc:"Nuevo documento",
-help_desc:"Ayuda",
-blockquote_desc:"Cita",
-clipboard_msg:"Copiar/Cortar/Pegar no se encuentra disponible en Mozilla y Firefox.\n\u00BFDesea obtener m\u00E1s informaci\u00F3n acerca de este tema?",
-path:"Ruta",
-newdocument:"\u00BFEst\u00E1 seguro que desea limpiar todo el contenido?",
-toolbar_focus:"Ir a los botones de herramientas - Alt+Q, Ir al editor - Alt-Z, Ir a la ruta del elemento - Alt-X",
-more_colors:"M\u00E1s colores"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/es_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/es_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('es.advanced_dlg',{
-about_title:"Acerca de TinyMCE",
-about_general:"Acerca de ",
-about_help:"Ayuda",
-about_license:"Licencia",
-about_plugins:"Complementos",
-about_plugin:"Complemento",
-about_author:"Autor",
-about_version:"Versi\u00F3n",
-about_loaded:"Complementos cargados",
-anchor_title:"Insertar/editar ancla",
-anchor_name:"Nombre del ancla",
-code_title:"Editor del c\u00F3digo fuente HTML",
-code_wordwrap:"Ajustar al margen",
-colorpicker_title:"Seleccionar color",
-colorpicker_picker_tab:"Selector",
-colorpicker_picker_title:"Paleta de color",
-colorpicker_palette_tab:"Paleta",
-colorpicker_palette_title:"Paleta de colores",
-colorpicker_named_tab:"Nombrados",
-colorpicker_named_title:"Colores nombrados",
-colorpicker_color:"Color:",
-colorpicker_name:"Nombre:",
-charmap_title:"Seleccionar caracter personalizado",
-image_title:"Insertar/editar imagen",
-image_src:"URL de la Imagen",
-image_alt:"Descripci\u00F3n de la Imagen",
-image_list:"Lista de la Imagen",
-image_border:"Borde",
-image_dimensions:"Dimensi\u00F3n",
-image_vspace:"Espacio vertical",
-image_hspace:"Espacio horizontal",
-image_align:"Alineaci\u00F3n",
-image_align_baseline:"L\u00EDnea base",
-image_align_top:"Arriba",
-image_align_middle:"Medio",
-image_align_bottom:"Debajo",
-image_align_texttop:"Texto arriba",
-image_align_textbottom:"Texto debajo",
-image_align_left:"Izquierda",
-image_align_right:"Derecha",
-link_title:"Insertar/editar hiperv\u00EDnculo",
-link_url:"URL del hiperv\u00EDnculo",
-link_target:"Destino",
-link_target_same:"Abrir v\u00EDnculo en la misma ventana",
-link_target_blank:"Abrir v\u00EDnculo en una ventana nueva",
-link_titlefield:"T\u00EDtulo",
-link_is_email:"La URL que introdujo parece ser una direcci\u00F3n de email, \u00BFdesea agregar el prefijo mailto: necesario?",
-link_is_external:"La URL que introdujo parece ser un v\u00EDnculo externo, \u00BFdesea agregar el prefijo http:// necesario?",
-link_list:"Lista de hiperv\u00EDnculos"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/et.js b/chrome/content/zotero/tinymce/themes/advanced/langs/et.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('et.advanced',{
-style_select:"Styles",
-font_size:"Font size",
-fontdefault:"Font family",
-block:"Format",
-paragraph:"Paragraph",
-div:"Div",
-address:"Address",
-pre:"Preformatted",
-h1:"Heading 1",
-h2:"Heading 2",
-h3:"Heading 3",
-h4:"Heading 4",
-h5:"Heading 5",
-h6:"Heading 6",
-blockquote:"Blockquote",
-code:"Code",
-samp:"Code sample",
-dt:"Definition term ",
-dd:"Definition description",
-bold_desc:"Rasvane (Ctrl+B)",
-italic_desc:"Kursiiv (Ctrl+I)",
-underline_desc:"Allajoonitud (Ctrl+U)",
-striketrough_desc:"L\u00E4bijoonitud",
-justifyleft_desc:"Vasak joondus",
-justifycenter_desc:"Keskjoondus",
-justifyright_desc:"Parem joondus",
-justifyfull_desc:"T\u00E4isjoondus",
-bullist_desc:"Ebakorrap\u00E4rane loetelu",
-numlist_desc:"Korrap\u00E4rane loetelu",
-outdent_desc:"Taanda v\u00E4lja",
-indent_desc:"Taanda sisse",
-undo_desc:"V\u00F5ta tagasi (Ctrl+Z)",
-redo_desc:"Tee uuesti (Ctrl+Y)",
-link_desc:"Sisesta/redigeeri link",
-unlink_desc:"Eemalda link",
-image_desc:"Sisesta/redigeeri pilt",
-cleanup_desc:"Puhasta segane kood",
-code_desc:"Redigeeri HTML l\u00E4htekoodi",
-sub_desc:"Alaindeks",
-sup_desc:"\u00DClaindeks",
-hr_desc:"Sisesta horisontaalne joonlaud",
-removeformat_desc:"Eemalda vormindus",
-custom1_desc:"Teie kohandatud kirjeldus siia",
-forecolor_desc:"Vali teksti v\u00E4rv",
-backcolor_desc:"Vali tausta v\u00E4rv",
-charmap_desc:"Sisesta kohandatud kirjam\u00E4rk",
-visualaid_desc:"L\u00FClita \u00FCmber juhtjooned/n\u00E4htamatud elemendid",
-anchor_desc:"Sisesta/redigeeri ankur",
-cut_desc:"L\u00F5ika",
-copy_desc:"Kopeeri",
-paste_desc:"Kleebi",
-image_props_desc:"Pildi kirjeldus",
-newdocument_desc:"Uus dokument",
-help_desc:"Abi",
-blockquote_desc:"Plokkviide",
-clipboard_msg:"Kopeeri/L\u00F5ika/Kleebi ei ole Mozillas ja Firefoxis saadaval.\r\nKas soovid rohkem infot selle probleemi kohta?",
-path:"Tee",
-newdocument:"Oled sa kindel, et tahad kustutada k\u00F5ik sisud?",
-toolbar_focus:"H\u00FCppa t\u00F6\u00F6riista nuppudele - Alt+Q, H\u00FCppa redigeerijale - Alt-Z, H\u00FCppa elemendi teele - Alt-X",
-more_colors:"Rohkem v\u00E4rve"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/et_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/et_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('et.advanced_dlg',{
-about_title:"About TinyMCE",
-about_general:"About",
-about_help:"Help",
-about_license:"License",
-about_plugins:"Plugins",
-about_plugin:"Plugin",
-about_author:"Author",
-about_version:"Version",
-about_loaded:"Loaded plugins",
-anchor_title:"Sisesta/redigeeri ankur",
-anchor_name:"Ankru nimi",
-code_title:"HTML Source Editor",
-code_wordwrap:"Word wrap",
-colorpicker_title:"Vali v\u00E4rv",
-colorpicker_picker_tab:"Korjaja",
-colorpicker_picker_title:"V\u00E4rvi korjaja",
-colorpicker_palette_tab:"Palett",
-colorpicker_palette_title:"Palett v\u00E4rvid",
-colorpicker_named_tab:"Nimetatud",
-colorpicker_named_title:"Nimetatud v\u00E4rvid",
-colorpicker_color:"V\u00E4rv:",
-colorpicker_name:"Nimi:",
-charmap_title:"Vali kohandatud t\u00E4hem\u00E4rk",
-image_title:"Sisestal/redigeeri pilt",
-image_src:"Pildi URL",
-image_alt:"Pildi kirjeldus",
-image_list:"Pildi loend",
-image_border:"Raam",
-image_dimensions:"Dimensioonid",
-image_vspace:"Vertikaalne vahe",
-image_hspace:"Horisontaalne vahe",
-image_align:"Reastus",
-image_align_baseline:"Kirjajoondus",
-image_align_top:"\u00DClemine",
-image_align_middle:"Keskmine",
-image_align_bottom:"Alumine",
-image_align_texttop:"Teksti tipp",
-image_align_textbottom:"Teksti p\u00F5hi",
-image_align_left:"Vasak",
-image_align_right:"Parem",
-link_title:"Sisesta/redigeeri link",
-link_url:"Link URL",
-link_target:"Sihtala",
-link_target_same:"Ava link samas aknas",
-link_target_blank:"Ava link uues aknas",
-link_titlefield:"Tiitel",
-link_is_email:"URL, mille te sisestasite, tundub olevat emaili aadress, kas soovite, et lisataks mailto: eesliite?",
-link_is_external:"URL, mille sisestasite, tundub olevat v\u00E4line link, kas soovite, et lisataks http:// eesliite?",
-link_list:"Lingi loetelu"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/fa.js b/chrome/content/zotero/tinymce/themes/advanced/langs/fa.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('fa.advanced',{
-style_select:"\u0633\u0628\u06A9\u200C\u0647\u0627",
-font_size:"\u0627\u0646\u062F\u0627\u0632\u0647 \u0642\u0644\u0645",
-fontdefault:"\u0646\u0648\u0639 \u0642\u0644\u0645",
-block:"\u0642\u0627\u0644\u0628",
-paragraph:"\u067E\u0627\u0631\u0627\u06AF\u0631\u0627\u0641",
-div:"Div",
-address:"\u0622\u062F\u0631\u0633",
-pre:"\u0627\u0632 \u0642\u0628\u0644 \u0642\u0627\u0644\u0628\u0646\u062F\u06CC \u0634\u062F\u0647",
-h1:"\u0633\u0631\u0641\u0635\u0644 1",
-h2:"\u0633\u0631\u0641\u0635\u0644 2",
-h3:"\u0633\u0631\u0641\u0635\u0644 3",
-h4:"\u0633\u0631\u0641\u0635\u0644 4",
-h5:"\u0633\u0631\u0641\u0635\u0644 5",
-h6:"\u0633\u0631\u0641\u0635\u0644 6",
-blockquote:"\u062C\u0639\u0628\u0647 \u0646\u0642\u0644 \u0642\u0648\u0644",
-code:"\u06A9\u062F",
-samp:"\u0646\u0645\u0648\u0646\u0647 \u06A9\u062F",
-dt:"Definition term ",
-dd:"Definition description",
-bold_desc:"(Ctrl+B) \u067E\u0631\u0631\u0646\u06AF",
-italic_desc:"(Ctrl+I) \u06A9\u062C",
-underline_desc:"(Ctrl+U) \u0632\u06CC\u0631\u062E\u0637",
-striketrough_desc:"\u062E\u0637 \u062E\u0648\u0631\u062F\u0647",
-justifyleft_desc:"\u0686\u067E \u0686\u06CC\u0646",
-justifycenter_desc:"\u0648\u0633\u0637 \u0686\u06CC\u0646",
-justifyright_desc:"\u0631\u0627\u0633\u062A \u0686\u06CC\u0646",
-justifyfull_desc:"\u062A\u0631\u0627\u0632 \u06A9\u0634\u06CC\u062F\u0647",
-bullist_desc:"\u0644\u06CC\u0633\u062A \u0633\u0627\u062F\u0647",
-numlist_desc:"\u0644\u06CC\u0633\u062A \u0634\u0645\u0627\u0631\u0647\u200C\u062F\u0627\u0631",
-outdent_desc:"\u06A9\u0627\u0647\u0634 \u062A\u0648\u0631\u0641\u062A\u06AF\u06CC",
-indent_desc:"\u0627\u0641\u0632\u0627\u06CC\u0634 \u062A\u0648\u0631\u0641\u062A\u06AF\u06CC",
-undo_desc:"(Ctrl+Z) \u0628\u0627\u0637\u0644 \u0646\u0645\u0648\u062F\u0646",
-redo_desc:"(Ctrl+Y) \u062A\u06A9\u0631\u0627\u0631",
-link_desc:"\u062F\u0631\u062C/\u0648\u06CC\u0631\u0627\u06CC\u0634 \u0644\u06CC\u0646\u06A9",
-unlink_desc:"\u062D\u0630\u0641 \u0644\u06CC\u0646\u06A9",
-image_desc:"\u062F\u0631\u062C/\u0648\u06CC\u0631\u0627\u06CC\u0634 \u062A\u0635\u0648\u06CC\u0631",
-cleanup_desc:"\u067E\u0627\u06A9 \u0633\u0627\u0632\u06CC \u06A9\u062F\u0647\u0627\u06CC \u0622\u0634\u0641\u062A\u0647",
-code_desc:"HTML \u0648\u06CC\u0631\u0627\u06CC\u0634 \u06A9\u062F",
-sub_desc:"(\u0632\u06CC\u0631\u0646\u0648\u06CC\u0633 (\u0627\u0646\u062F\u06CC\u0633",
-sup_desc:"(\u0628\u0627\u0644\u0627\u0646\u0648\u06CC\u0633 (\u062A\u0648\u0627\u0646",
-hr_desc:"\u062F\u0631\u062C \u062E\u0637 \u0627\u0641\u0642\u06CC",
-removeformat_desc:"\u062D\u0630\u0641 \u0633\u0628\u06A9",
-custom1_desc:"\u0645\u062D\u0644 \u062A\u0648\u0636\u06CC\u062D \u062F\u0644\u062E\u0648\u0627\u0647 \u0634\u0645\u0627",
-forecolor_desc:"\u0631\u0646\u06AF \u0645\u062A\u0646 \u0631\u0627 \u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F",
-backcolor_desc:"\u0631\u0646\u06AF \u067E\u0633 \u0632\u0645\u06CC\u0646\u0647 \u0631\u0627 \u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F",
-charmap_desc:"\u062F\u0631\u062C \u06A9\u0627\u0631\u0627\u06A9\u062A\u0631 \u062F\u0644\u062E\u0648\u0627\u0647",
-visualaid_desc:"\u062A\u063A\u06CC\u06CC\u0631 \u0648\u0636\u0639\u06CC\u062A \u062E\u0637\u0648\u0637 \u0631\u0627\u0647\u0646\u0645\u0627/\u0639\u0646\u0627\u0635\u0631 \u0645\u062E\u0641\u06CC",
-anchor_desc:"\u062F\u0631\u062C/\u0648\u06CC\u0631\u0627\u06CC\u0634 \u0645\u0631\u062C\u0639",
-cut_desc:"\u0628\u0631\u0634",
-copy_desc:"\u0631\u0648\u0646\u0648\u0634\u062A",
-paste_desc:"\u0686\u0633\u0628\u0627\u0646\u062F\u0646",
-image_props_desc:"\u062A\u0646\u0638\u06CC\u0645\u0627\u062A \u062A\u0635\u0648\u06CC\u0631",
-newdocument_desc:"\u0633\u0646\u062F \u062C\u062F\u06CC\u062F",
-help_desc:"\u0631\u0627\u0647\u0646\u0645\u0627",
-blockquote_desc:"\u062C\u0639\u0628\u0647 \u0646\u0642\u0644 \u0642\u0648\u0644",
-clipboard_msg:"\u0631\u0648\u0646\u0648\u0634\u062A/\u0628\u0631\u0634/\u062C\u0627\u06CC\u06AF\u0630\u0627\u0631\u06CC \u062F\u0631 \u0645\u0631\u0648\u0631\u06AF\u0631\u0647\u0627\u06CC \u0645\u0648\u0632\u06CC\u0644\u0627 \u0648 \u0641\u0627\u06CC\u0631\u0641\u0627\u06A9\u0633 \u0648\u062C\u0648\u062F \u0646\u062F\u0627\u0631\u0646\u062F.\r\n\u0622\u06CC\u0627 \u0628\u0647 \u0627\u0637\u0644\u0627\u0639\u0627\u062A \u0628\u06CC\u0634\u062A\u0631\u06CC \u062F\u0631 \u0627\u06CC\u0646 \u0632\u0645\u06CC\u0646\u0647 \u0646\u06CC\u0627\u0632 \u062F\u0627\u0631\u06CC\u062F\u061F",
-path:"\u0645\u0633\u064A\u0631",
-newdocument:"\u0622\u06CC\u0627 \u0645\u0637\u0645\u0626\u0646\u06CC\u062F \u06A9\u0647 \u0645\u0647\u0645 \u0645\u062D\u062A\u0648\u06CC\u0627\u062A \u0631\u0627 \u067E\u0627\u06A9 \u0645\u06CC \u06A9\u0646\u06CC\u062F\u061F",
-toolbar_focus:"\u067E\u0631\u0634 \u0628\u0647 \u06A9\u0644\u06CC\u062F\u0647\u0627\u06CC \u0627\u0628\u0632\u0627\u0631 - Alt+Q, \u067E\u0631\u0634 \u0628\u0647 \u0648\u06CC\u0631\u0627\u06CC\u0634\u06AF\u0631 - Alt-Z, \u067E\u0631\u0634 \u0628\u0647 \u0645\u0633\u06CC\u0631 \u0639\u0646\u0635\u0631 - Alt-X",
-more_colors:"\u0631\u0646\u06AF\u200C\u0647\u0627\u06CC \u0628\u06CC\u0634\u062A\u0631"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/fa_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/fa_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('fa.advanced_dlg',{
-about_title:"About TinyMCE",
-about_general:"\u062F\u0631\u0628\u0627\u0631\u0647",
-about_help:"\u0631\u0627\u0647\u0646\u0645\u0627",
-about_license:"\u0627\u062C\u0627\u0632\u0647 \u0646\u0627\u0645\u0647",
-about_plugins:"Plugins",
-about_plugin:"Plugin",
-about_author:"Author",
-about_version:"\u0646\u06AF\u0627\u0631\u0634",
-about_loaded:"Loaded plugins",
-anchor_title:"\u062F\u0631\u062C/\u0648\u06CC\u0631\u0627\u06CC\u0634 \u0645\u0631\u062C\u0639",
-anchor_name:"\u0646\u0627\u0645 \u0645\u0631\u062C\u0639",
-code_title:"HTML Source Editor",
-code_wordwrap:"Word wrap",
-colorpicker_title:"\u0631\u0646\u06AF\u06CC \u0631\u0627 \u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F",
-colorpicker_picker_tab:"Picker",
-colorpicker_picker_title:"Color picker",
-colorpicker_palette_tab:"Palette",
-colorpicker_palette_title:"Palette colors",
-colorpicker_named_tab:"Named",
-colorpicker_named_title:"Named colors",
-colorpicker_color:"\u0631\u0646\u06AF:",
-colorpicker_name:"\u0646\u0627\u0645:",
-charmap_title:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631 \u062F\u0644\u062E\u0648\u0627\u0647 \u0631\u0627 \u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F",
-image_title:"\u062F\u0631\u062C/\u0648\u06CC\u0631\u0627\u06CC\u0634 \u062A\u0635\u0648\u06CC\u0631",
-image_src:"\u062A\u0635\u0648\u06CC\u0631 URL",
-image_alt:"\u062A\u0648\u0636\u06CC\u062D\u0627\u062A \u062A\u0635\u0648\u06CC\u0631",
-image_list:"Image list",
-image_border:"\u062D\u0627\u0634\u06CC\u0647",
-image_dimensions:"\u0627\u0628\u0639\u0627\u062F",
-image_vspace:"\u0641\u0636\u0627\u06CC \u0639\u0645\u0648\u062F\u06CC",
-image_hspace:"\u0641\u0636\u0627\u06CC \u0627\u0641\u0642\u06CC",
-image_align:"\u062A\u0631\u0627\u0632",
-image_align_baseline:"\u062E\u0637 \u0632\u0645\u06CC\u0646\u0647",
-image_align_top:"\u0628\u0627\u0644\u0627",
-image_align_middle:"\u0648\u0633\u0637",
-image_align_bottom:"\u067E\u0627\u06CC\u06CC\u0646",
-image_align_texttop:"Text top",
-image_align_textbottom:"Text bottom",
-image_align_left:"\u0686\u067E",
-image_align_right:"\u0631\u0627\u0633\u062A",
-link_title:"\u062F\u0631\u062C/\u0648\u06CC\u0631\u0627\u06CC\u0634 \u0644\u06CC\u0646\u06A9",
-link_url:"\u0644\u06CC\u0646\u06A9 URL",
-link_target:"\u0647\u062F\u0641",
-link_target_same:"\u0628\u0627\u0632\u0634\u062F\u0646 \u062F\u0631 \u0647\u0645\u0627\u0646 \u067E\u0646\u062C\u0631\u0647",
-link_target_blank:"\u0628\u0627\u0632\u0634\u062F\u0646 \u062F\u0631 \u067E\u0646\u062C\u0631\u0647 \u062C\u062F\u06CC\u062F",
-link_titlefield:"\u0639\u0646\u0648\u0627\u0646",
-link_is_email:"The URL you entered seems to be an email address, do you want to add the required mailto: prefix?",
-link_is_external:"The URL you entered seems to external link, do you want to add the required http:// prefix?",
-link_list:"Link list"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/fi.js b/chrome/content/zotero/tinymce/themes/advanced/langs/fi.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('fi.advanced',{
-style_select:"Tyylit",
-font_size:"Fonttikoko",
-fontdefault:"Fontti",
-block:"Muotoilu",
-paragraph:"Kappale",
-div:"Div",
-address:"Osoite",
-pre:"Esimuotoiltu (pre)",
-h1:"Otsikko 1",
-h2:"Otsikko 2",
-h3:"Otsikko 3",
-h4:"Otsikko 4",
-h5:"Otsikko 5",
-h6:"Otsikko 6",
-blockquote:"Pitk\u00E4 lainaus",
-code:"Koodi",
-samp:"Koodi esimerkki",
-dt:"M\u00E4\u00E4rittelyn ehto ",
-dd:"M\u00E4\u00E4rittelyn kuvaus",
-bold_desc:"Lihavoitu (Ctrl+B)",
-italic_desc:"Kursivoitu (Ctrl+I)",
-underline_desc:"Alleviivattu (Ctrl+U)",
-striketrough_desc:"Yliviivattu",
-justifyleft_desc:"Tasaus vasemmalle",
-justifycenter_desc:"Keskitetty",
-justifyright_desc:"Tasaus oikealle",
-justifyfull_desc:"Tasattu",
-bullist_desc:"J\u00E4rjest\u00E4m\u00E4t\u00F6n lista",
-numlist_desc:"J\u00E4rjestetty lista",
-outdent_desc:"V\u00E4henn\u00E4 sisennyst\u00E4",
-indent_desc:"Sisenn\u00E4",
-undo_desc:"Peru (Ctrl+Z)",
-redo_desc:"Tee uudelleen (Ctrl+Y)",
-link_desc:"Lis\u00E4\u00E4/muuta linkki",
-unlink_desc:"Poista linkki",
-image_desc:"Lis\u00E4\u00E4/muuta kuva",
-cleanup_desc:"Siisti sekainen koodi",
-code_desc:"Editoi HTML-koodia",
-sub_desc:"Alaindeksi",
-sup_desc:"Yl\u00E4indeksi",
-hr_desc:"Lis\u00E4\u00E4 vaakasuora viivain",
-removeformat_desc:"Poista muotoilu",
-custom1_desc:"Oma kuvauksesi t\u00E4h\u00E4n",
-forecolor_desc:"Valitse tekstin v\u00E4ri",
-backcolor_desc:"Valitse taustan v\u00E4ri",
-charmap_desc:"Lis\u00E4\u00E4 erikoismerkki",
-visualaid_desc:"Suuntaviivat/N\u00E4kym\u00E4tt\u00F6m\u00E4t elementit",
-anchor_desc:"Lis\u00E4\u00E4/Muokkaa ankkuri",
-cut_desc:"Leikkaa",
-copy_desc:"Kopioi",
-paste_desc:"Liit\u00E4",
-image_props_desc:"Kuvan ominaisuudet",
-newdocument_desc:"Uusi tiedosto",
-help_desc:"Ohje",
-blockquote_desc:"Pitk\u00E4 lainaus",
-clipboard_msg:"Kopioi/Leikkaa/Liit\u00E4 -painikkeet eiv\u00E4t toimi Mozilla ja Firefox-selaimilla. Voit kuitenkin k\u00E4ytt\u00E4\u00E4 n\u00E4pp\u00E4inyhdistelmi\u00E4 kopioimiseen (ctrl+c), leikkaamiseen (ctrl+x) ja liitt\u00E4miseen (ctrl+v).\r\nHalutatko lis\u00E4\u00E4 tietoa?",
-path:"Polku",
-newdocument:"Haluatko varmasti tyhjent\u00E4\u00E4 kaiken sis\u00E4ll\u00F6n?",
-toolbar_focus:"Siirry ty\u00F6kaluihin - Alt+Q, Siirry tekstieditoriin - Alt-Z, Siirry elementin polkuun - Alt-X",
-more_colors:"Enemm\u00E4n v\u00E4rej\u00E4"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/fi_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/fi_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('fi.advanced_dlg',{
-about_title:"Tietoja TinyMCE:st\u00E4",
-about_general:"Tietoja",
-about_help:"Ohje",
-about_license:"Lisenssi",
-about_plugins:"Lis\u00E4osat",
-about_plugin:"Lis\u00E4osa",
-about_author:"Kirjoittaja",
-about_version:"Versio",
-about_loaded:"Ladatut lis\u00E4osat",
-anchor_title:"Liit\u00E4/muokkaa ankkuria",
-anchor_name:"Ankkurin nimi",
-code_title:"HTML-koodin muokkaus",
-code_wordwrap:"Automaattinen rivinvaihto",
-colorpicker_title:"Valitse v\u00E4ri",
-colorpicker_picker_tab:"Valitsin",
-colorpicker_picker_title:"V\u00E4rin valitsin",
-colorpicker_palette_tab:"Paletti",
-colorpicker_palette_title:"V\u00E4ripalette",
-colorpicker_named_tab:"Nimetty",
-colorpicker_named_title:"Nimetyt v\u00E4rit",
-colorpicker_color:"V\u00E4ri:",
-colorpicker_name:"Nimi:",
-charmap_title:"Valitse erikoismerkki",
-image_title:"Lis\u00E4\u00E4/muokkaa kuvaa",
-image_src:"Kuvan osoite",
-image_alt:"Kuvan kuvaus",
-image_list:"Kuvalista",
-image_border:"Reunus",
-image_dimensions:"Mitat",
-image_vspace:"Pystysuuntainen tila",
-image_hspace:"Vaakasuuntainen tila",
-image_align:"Tasaus",
-image_align_baseline:"Tekstin tasossa",
-image_align_top:"Yl\u00F6s",
-image_align_middle:"Keskelle",
-image_align_bottom:"Alas",
-image_align_texttop:"Tekstin yl\u00E4osaan",
-image_align_textbottom:"Tekstin alaosaan",
-image_align_left:"Vasemmalle",
-image_align_right:"Oikealle",
-link_title:"Lis\u00E4\u00E4/muuta linkki",
-link_url:"Linkin osoite",
-link_target:"Kohde",
-link_target_same:"Avaa linkki samassa ikkunassa",
-link_target_blank:"Avaa linkki uuteen ikkunaan",
-link_titlefield:"Otsikko",
-link_is_email:"Antamasi osoite n\u00E4ytt\u00E4\u00E4 olevan s\u00E4\u00E4hk\u00F6postiosoite. Haluatko lis\u00E4t\u00E4 siihen mailto:-etuliitteen?",
-link_is_external:"Antamasi osoite n\u00E4ytt\u00E4\u00E4 johtavan ulkopuoliselle sivustolle. Haluatko lis\u00E4t\u00E4 linkin eteen http://-etuliitteen? (suositus)",
-link_list:"Linkkilista"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/fr.js b/chrome/content/zotero/tinymce/themes/advanced/langs/fr.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('fr.advanced',{
-style_select:"Styles",
-font_size:"Taille de la police",
-fontdefault:"Famille de police",
-block:"Format",
-paragraph:"Paragraphe",
-div:"Div",
-address:"Adresse",
-pre:"Preformatt\u00E9",
-h1:"Titre 1",
-h2:"Titre 2",
-h3:"Titre 3",
-h4:"Titre 4",
-h5:"Titre 5",
-h6:"Titre 6",
-blockquote:"Citation",
-code:"Code",
-samp:"Exemple de code",
-dt:"Terme \u00E0 d\u00E9finir",
-dd:"D\u00E9finition du terme",
-bold_desc:"Gras (Ctrl+B)",
-italic_desc:"Italique (Ctrl+I)",
-underline_desc:"Soulign\u00E9 (Ctrl+U)",
-striketrough_desc:"Barr\u00E9",
-justifyleft_desc:"Align\u00E9 \u00E0 gauche",
-justifycenter_desc:"Centr\u00E9",
-justifyright_desc:"Align\u00E9 \u00E0 droite",
-justifyfull_desc:"Justifi\u00E9",
-bullist_desc:"Liste non-num\u00E9rot\u00E9e",
-numlist_desc:"Liste num\u00E9rot\u00E9e",
-outdent_desc:"Retirer l'indentation",
-indent_desc:"Indenter",
-undo_desc:"D\u00E9faire (Ctrl+Z)",
-redo_desc:"Refaire (Ctrl+Y)",
-link_desc:"Ins\u00E9rer/\u00C9diter le lien",
-unlink_desc:"D\u00E9lier",
-image_desc:"Ins\u00E9rer/\u00C9diter l'image",
-cleanup_desc:"Nettoyer le code non propre",
-code_desc:"\u00C9diter source HTML",
-sub_desc:"Indice",
-sup_desc:"Exposant",
-hr_desc:"Ins\u00E9rer trait horizontal",
-removeformat_desc:"Enlever formattage",
-custom1_desc:"Votre description personnalis\u00E9e ici",
-forecolor_desc:"Choisir la couleur du texte",
-backcolor_desc:"Choisir la couleur de surlignage",
-charmap_desc:"Ins\u00E9rer caract\u00E8res sp\u00E9ciaux",
-visualaid_desc:"Activer/d\u00E9sactiver les guides et les \u00E9l\u00E9ments invisibles",
-anchor_desc:"Ins\u00E9rer/\u00C9diter ancre",
-cut_desc:"Couper",
-copy_desc:"Copier",
-paste_desc:"Coller",
-image_props_desc:"Propri\u00E9t\u00E9s de l'image",
-newdocument_desc:"Nouveau document",
-help_desc:"Aide",
-blockquote_desc:"Citation",
-clipboard_msg:"Copier/Couper/Coller n'est pas disponible sous Mozilla et sous Firefox.\n\r\n Voulez-vous plus d'information sur ce probl\u00E8me\u00A0?",
-path:"Chemin",
-newdocument:"\u00CAtes-vous s\u00FBr de vouloir effacer l'enti\u00E8ret\u00E9 du document\u00A0?",
-toolbar_focus:"Aller aux boutons de l'\u00E9diteur - Alt+Q, Aller \u00E0 l'\u00E9diteur - Alt-Z, Aller au chemin de l'\u00E9l\u00E9ment - Alt-X",
-more_colors:"Plus de couleurs"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/fr_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/fr_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('fr.advanced_dlg',{
-about_title:"\u00C0 propos de TinyMCE",
-about_general:"\u00C0 propos",
-about_help:"Aide",
-about_license:"Licence",
-about_plugins:"Plugins",
-about_plugin:"Plugin",
-about_author:"Auteur",
-about_version:"Version",
-about_loaded:"Plugins charg\u00E9s",
-anchor_title:"Ins\u00E9rer/\u00C9diter ancre",
-anchor_name:"Nom de l'ancre",
-code_title:"\u00C9diteur de la source HTML",
-code_wordwrap:"Rupture de ligne",
-colorpicker_title:"Choisir une couleur",
-colorpicker_picker_tab:"Nuancier",
-colorpicker_picker_title:"Nuancier",
-colorpicker_palette_tab:"Palette",
-colorpicker_palette_title:"Couleurs de la palette",
-colorpicker_named_tab:"Noms",
-colorpicker_named_title:"Couleurs nomm\u00E9es",
-colorpicker_color:"Couleur :",
-colorpicker_name:"Nom :",
-charmap_title:"Choisir le caract\u00E8re \u00E0 ins\u00E9rer",
-image_title:"Ins\u00E9rer/\u00C9diter image",
-image_src:"URL de l'image",
-image_alt:"Description de l'image",
-image_list:"Liste d'images",
-image_border:"Bordure",
-image_dimensions:"Dimensions",
-image_vspace:"Espacement vertical",
-image_hspace:"Espacement horizontal",
-image_align:"Alignement",
-image_align_baseline:"Base",
-image_align_top:"Sommet",
-image_align_middle:"Milieu",
-image_align_bottom:"Bas",
-image_align_texttop:"Haut du texte",
-image_align_textbottom:"Bas du texte",
-image_align_left:"Gauche",
-image_align_right:"Droite",
-link_title:"Ins\u00E9rer/\u00C9diter lien",
-link_url:"URL du lien",
-link_target:"Cible",
-link_target_same:"Ouvrir dans la m\u00EAme fen\u00EAtre",
-link_target_blank:"Ouvrir dans une nouvelle fen\u00EAtre",
-link_titlefield:"Titre",
-link_is_email:"L'url que vous avez entr\u00E9 semble \u00EAtre une adresse e-mail, voulez-vous ajouter le pr\u00E9fixe mailto:\u00A0?",
-link_is_external:"L'url que vous avez entr\u00E9 semble \u00EAtre une adresse web externe, voulez-vous ajouter le pr\u00E9fixe http://\u00A0?",
-link_list:"Liste de liens"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/gl.js b/chrome/content/zotero/tinymce/themes/advanced/langs/gl.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('gl.advanced',{
-style_select:"Estilos",
-font_size:"Tama\u00F1o",
-fontdefault:"Fonte",
-block:"Formato",
-paragraph:"P\u00E1rrafo",
-div:"Div",
-address:"Enderezo",
-pre:"Pre-formateado",
-h1:"Encabezamento 1",
-h2:"Encabezamento 2",
-h3:"Encabezamento 3",
-h4:"Encabezamento 4",
-h5:"Encabezamento 5",
-h6:"Encabezamento 6",
-blockquote:"Bloque de cita",
-code:"C\u00F3digo",
-samp:"Mostra de c\u00F3digo",
-dt:"Termo de definici\u00F3n",
-dd:"Descripci\u00F3n de definici\u00F3n",
-bold_desc:"Negrita (Ctrl+B)",
-italic_desc:"Cursiva (Ctrl+I)",
-underline_desc:"Subli\u00F1ado (Ctrl+U)",
-striketrough_desc:"Tachado",
-justifyleft_desc:"Ali\u00F1ar \u00E1 esquerda",
-justifycenter_desc:"Ali\u00F1ar \u00F3 centro",
-justifyright_desc:"Ali\u00F1ar \u00E1 dereita",
-justifyfull_desc:"Xustificar",
-bullist_desc:"Lista desordenada",
-numlist_desc:"Lista ordenada",
-outdent_desc:"Reducir sangr\u00EDa",
-indent_desc:"Aumentar sangr\u00EDa",
-undo_desc:"Desfacer (Ctrl+Z)",
-redo_desc:"Re-facer (Ctrl+Y)",
-link_desc:"Insertar/editar hiperv\u00EDnculo",
-unlink_desc:"Quitar hiperv\u00EDnculo",
-image_desc:"Insertar/editar imaxe",
-cleanup_desc:"Limpiar lixo no c\u00F3digo",
-code_desc:"Editar c\u00F3digo HTML",
-sub_desc:"Sub\u00EDndice",
-sup_desc:"Super\u00EDndice",
-hr_desc:"Insertar regra horizontal",
-removeformat_desc:"quitar formato",
-custom1_desc:"A s\u00FAa descripci\u00F3n persoal aqu\u00ED",
-forecolor_desc:"Seleccionar cor do texto",
-backcolor_desc:"Seleccionar cor do fondo",
-charmap_desc:"Insertar caracteres persoalizados",
-visualaid_desc:"Mostrar/ocultar li\u00F1a de gu\u00EDa/elementos invisibres",
-anchor_desc:"Insertar/editar \u00E1ncora",
-cut_desc:"Cortar",
-copy_desc:"Copiar",
-paste_desc:"Pegar",
-image_props_desc:"Propiedades de imaxe",
-newdocument_desc:"Novo documento",
-help_desc:"Axuda",
-blockquote_desc:"Cita",
-clipboard_msg:"Copiar/Cortar/Pegar non est\u00E1 disponible en Mozilla e Firefox.\r\n\u00BFDesexa obter mais informaci\u00F3n sobre de este asunto?",
-path:"Ruta",
-newdocument:"\u00BFSeguro que desexa limpar todo o contido?",
-toolbar_focus:"Ir \u00F3s bot\u00F3ns de ferramentas - Alt+Q, Ir \u00F3 editor - Alt-Z, Ir \u00E1 ruta do elemento - Alt-X",
-more_colors:"M\u00E1is cores"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/gl_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/gl_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('gl.advanced_dlg',{
-about_title:"Sobre TinyMCE",
-about_general:"Sobre",
-about_help:"Axuda",
-about_license:"Licencia",
-about_plugins:"Comprementos",
-about_plugin:"Compremento",
-about_author:"Autor",
-about_version:"Versi\u00F3n",
-about_loaded:"Comprementos cargados",
-anchor_title:"Insertar/editar \u00E1ncora",
-anchor_name:"Nome da \u00E1ncora",
-code_title:"Editor HTML",
-code_wordwrap:"Cortar li\u00F1as autom\u00E1ticamente",
-colorpicker_title:"Seleccionar cor",
-colorpicker_picker_tab:"Selector",
-colorpicker_picker_title:"Selector de cores",
-colorpicker_palette_tab:"Paleta",
-colorpicker_palette_title:"Paleta de cores",
-colorpicker_named_tab:"Nomeados",
-colorpicker_named_title:"Cores nomeados",
-colorpicker_color:"Cor:",
-colorpicker_name:"Nome:",
-charmap_title:"Seleccionar caracter personalizado",
-image_title:"Insertar/editar imaxe",
-image_src:"URL da imaxe",
-image_alt:"Descripci\u00F3n da imaxe",
-image_list:"Lista de Imaxes",
-image_border:"Borde",
-image_dimensions:"Dimensi\u00F3n",
-image_vspace:"Espacio vertical",
-image_hspace:"Espacio horizontal",
-image_align:"Ali\u00F1aci\u00F3n",
-image_align_baseline:"Li\u00F1a base",
-image_align_top:"Arriba",
-image_align_middle:"Medio",
-image_align_bottom:"Abaixo",
-image_align_texttop:"Texto arriba",
-image_align_textbottom:"Texto abaixo",
-image_align_left:"Esquerda",
-image_align_right:"Dereita",
-link_title:"Insertar/editar enlace",
-link_url:"URL do enlace",
-link_target:"Obxetivo",
-link_target_same:"Abrir v\u00EDnculo na mesma vent\u00E1",
-link_target_blank:"Abrir v\u00EDnculo nunha vent\u00E1 nova",
-link_titlefield:"T\u00EDtulo",
-link_is_email:"A URL introducida semella ser un enderezo de e-mail, \u00BFDesexa engadi-lo prefixo necesario mailto:?",
-link_is_external:"A URL introducida semella ser un v\u00EDnculo externo, \u00BFDesexa engadi-lo prefixo necesario http://?",
-link_list:"Lista de hiperv\u00EDnculos"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/he.js b/chrome/content/zotero/tinymce/themes/advanced/langs/he.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('he.advanced',{
-style_select:"\u05E1\u05D2\u05E0\u05D5\u05E0\u05D5\u05EA",
-font_size:"\u05D2\u05D5\u05D3\u05DC \u05D2\u05D5\u05E4\u05DF",
-fontdefault:"\u05D2\u05D5\u05E4\u05DF",
-block:"\u05E2\u05D9\u05E6\u05D5\u05D1",
-paragraph:"\u05E4\u05E1\u05E7\u05D4",
-div:"Div",
-address:"\u05DB\u05EA\u05D5\u05D1\u05EA",
-pre:"Preformatted",
-h1:"\u05DB\u05D5\u05EA\u05E8\u05EA 1",
-h2:"\u05DB\u05D5\u05EA\u05E8\u05EA 2",
-h3:"\u05DB\u05D5\u05EA\u05E8\u05EA 3",
-h4:"\u05DB\u05D5\u05EA\u05E8\u05EA 4",
-h5:"\u05DB\u05D5\u05EA\u05E8\u05EA 5",
-h6:"\u05DB\u05D5\u05EA\u05E8\u05EA 6",
-blockquote:"\u05E6\u05D9\u05D8\u05D5\u05D8 \u05D1\u05DC\u05D5\u05E7",
-code:"\u05E7\u05D5\u05D3",
-samp:"\u05D3\u05D5\u05D2\u05DE\u05EA \u05E7\u05D5\u05D3",
-dt:"\u05DE\u05D5\u05E9\u05D2",
-dd:"\u05D4\u05D2\u05D3\u05E8\u05EA \u05D4\u05DE\u05D5\u05E9\u05D2",
-bold_desc:"\u05DE\u05D5\u05D3\u05D2\u05E9 (Ctrl+B)",
-italic_desc:"\u05E0\u05D8\u05D5\u05D9 (Ctrl+I)",
-underline_desc:"\u05E7\u05D5 \u05EA\u05D7\u05EA\u05D5\u05DF(Ctrl+U)",
-striketrough_desc:"\u05E7\u05D5 \u05D7\u05D5\u05E6\u05D4",
-justifyleft_desc:"\u05D9\u05D9\u05E9\u05D5\u05E8 \u05D8\u05E7\u05E1\u05D8 \u05DC\u05E9\u05DE\u05D0\u05DC",
-justifycenter_desc:"\u05DE\u05E8\u05DB\u05D6",
-justifyright_desc:"\u05D9\u05D9\u05E9\u05D5\u05E8 \u05D8\u05E7\u05E1\u05D8 \u05DC\u05D9\u05DE\u05D9\u05DF",
-justifyfull_desc:"\u05D9\u05D9\u05E9\u05D5\u05E8 \u05DC\u05E9\u05E0\u05D9 \u05D4\u05E6\u05D3\u05D3\u05D9\u05DD",
-bullist_desc:"\u05EA\u05D1\u05DC\u05D9\u05D8\u05D9\u05DD",
-numlist_desc:"\u05DE\u05E1\u05E4\u05D5\u05E8",
-outdent_desc:"\u05D4\u05D2\u05D3\u05DC\u05EA \u05DB\u05E0\u05D9\u05E1\u05D4",
-indent_desc:"\u05D4\u05E7\u05D8\u05E0\u05EA \u05DB\u05E0\u05D9\u05E1\u05D4",
-undo_desc:"\u05D1\u05D9\u05D8\u05D5\u05DC \u05E4\u05E2\u05D5\u05DC\u05D4 (Ctrl+Z)",
-redo_desc:"\u05D7\u05D6\u05E8\u05D4 \u05E2\u05DC \u05E4\u05E2\u05D5\u05DC\u05D4 (Ctrl+Y)",
-link_desc:"\u05D4\u05D5\u05E1\u05E4\u05D4/\u05E2\u05E8\u05D9\u05DB\u05EA \u05D4\u05D9\u05E4\u05E8-\u05E7\u05D9\u05E9\u05D5\u05E8",
-unlink_desc:"\u05D4\u05E1\u05E8\u05EA \u05D4\u05D9\u05E4\u05E8-\u05E7\u05D9\u05E9\u05D5\u05E8",
-image_desc:"\u05D4\u05D5\u05E1\u05E4\u05D4/\u05E2\u05E8\u05D9\u05DB\u05EA \u05D3\u05E3 \u05EA\u05DE\u05D5\u05E0\u05D4",
-cleanup_desc:"\u05E0\u05D9\u05E7\u05D5\u05D9 \u05E7\u05D5\u05D3",
-code_desc:"\u05E2\u05E8\u05D9\u05DB\u05EA \u05E7\u05D5\u05D3 HTML",
-sub_desc:"\u05DB\u05EA\u05D1 \u05E2\u05D9\u05DC\u05D9",
-sup_desc:"\u05DB\u05EA\u05D1 \u05EA\u05D7\u05EA\u05D9",
-hr_desc:"\u05D4\u05D5\u05E1\u05E4\u05EA \u05E7\u05D5 \u05DE\u05EA\u05D7",
-removeformat_desc:"\u05D4\u05E1\u05E8\u05EA \u05E2\u05D9\u05E6\u05D5\u05D1",
-custom1_desc:"\u05D4\u05EA\u05D0\u05D5\u05E8 \u05E9\u05DC\u05DA \u05DB\u05D0\u05D5",
-forecolor_desc:"\u05D1\u05D7\u05D9\u05E8\u05EA \u05E6\u05D1\u05E2 \u05D2\u05D5\u05E4\u05DF",
-backcolor_desc:"\u05D1\u05D7\u05D9\u05E8\u05EA \u05E6\u05D1\u05E2 \u05E8\u05E7\u05E2",
-charmap_desc:"\u05D4\u05D5\u05E1\u05E4\u05EA \u05E1\u05D9\u05DE\u05DF",
-visualaid_desc:"\u05D4\u05E6\u05D2\u05D4 \u05D0\u05D5 \u05D4\u05E1\u05EA\u05E8\u05D4 \u05E9\u05DC \u05E1\u05D9\u05DE\u05D5\u05E0\u05D9 \u05E2\u05D9\u05E6\u05D5\u05D1",
-anchor_desc:"\u05D4\u05D5\u05E1\u05E4\u05D4/\u05E2\u05E8\u05D9\u05DB\u05EA \u05E1\u05D9\u05DE\u05E0\u05D9\u05D4",
-cut_desc:"\u05D2\u05D6\u05D9\u05E8\u05D4",
-copy_desc:"\u05D4\u05E2\u05EA\u05E7\u05D4",
-paste_desc:"\u05D4\u05D3\u05D1\u05E7\u05D4",
-image_props_desc:"\u05DE\u05D0\u05E4\u05D9\u05D9\u05E0\u05D9 \u05D4\u05EA\u05DE\u05D5\u05E0\u05D4",
-newdocument_desc:"\u05DE\u05E1\u05DE\u05DA \u05D7\u05D3\u05E9",
-help_desc:"\u05E2\u05D6\u05E8\u05D4",
-blockquote_desc:"\u05E6\u05D9\u05D8\u05D5\u05D8",
-clipboard_msg:"\u05D4\u05E2\u05EA\u05E7/\u05D2\u05D6\u05D5\u05E8/\u05D4\u05D3\u05D1\u05E7 \u05DC\u05D0 \u05D6\u05DE\u05D9\u05E0\u05D9\u05DD \u05D1 Mozilla \u05D5\u05D1-Firefox.\r\n \u05D4\u05D0\u05DD \u05D1\u05E8\u05E6\u05D5\u05E0\u05DA \u05DC\u05E7\u05D1\u05DC \u05DE\u05D9\u05D3\u05E2 \u05E0\u05D5\u05E1\u05E3 \u05E2\u05DC \u05D4\u05E0\u05D5\u05E9\u05D0?",
-path:"path",
-newdocument:"\u05D4\u05D0\u05DD \u05D1\u05E8\u05E6\u05D5\u05E0\u05DA \u05DC\u05DE\u05D7\u05D5\u05E7 \u05D0\u05EA \u05DB\u05DC \u05D4\u05EA\u05D5\u05DB\u05DF?",
-toolbar_focus:"\u05D4\u05E2\u05D1\u05E8\u05D4 \u05DC\u05E1\u05E8\u05D2\u05DC \u05D4\u05DB\u05DC\u05D9\u05DD - Alt+Q, \u05D4\u05E2\u05D1\u05E8\u05D4 \u05DC\u05DE\u05E2\u05D1\u05D3 \u05EA\u05DE\u05DC\u05D9\u05DC\u05D9\u05DD - Alt-Z, \u05D4\u05E2\u05D1\u05E8\u05D4 \u05DC\u05E0\u05EA\u05D9\u05D1 \u05D4\u05D0\u05DC\u05DE\u05D8\u05D9\u05DD - Alt-X",
-more_colors:"\u05E2\u05D5\u05D3 \u05E6\u05D1\u05E2\u05D9\u05DD"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/he_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/he_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('he.advanced_dlg',{
-about_title:"\u05D0\u05D5\u05D3\u05D5\u05EA TinyMCE",
-about_general:"\u05D0\u05D5\u05D3\u05D5\u05EA",
-about_help:"\u05E2\u05D6\u05E8\u05D4",
-about_license:"\u05E8\u05E9\u05D9\u05D5\u05DF",
-about_plugins:"\u05EA\u05D5\u05E1\u05E4\u05D5\u05EA",
-about_plugin:"\u05EA\u05D5\u05E1\u05E4\u05EA",
-about_author:"\u05D9\u05D5\u05E6\u05E8",
-about_version:"\u05D2\u05D9\u05E8\u05E1\u05D4",
-about_loaded:"\u05EA\u05D5\u05E1\u05E4\u05D5\u05EA \u05E4\u05E2\u05D9\u05DC\u05D5\u05EA",
-anchor_title:"\u05D4\u05D5\u05E1\u05E4\u05D4/\u05E2\u05E8\u05D9\u05DB\u05EA \u05E1\u05D9\u05DE\u05E0\u05D9\u05D4",
-anchor_name:"\u05E9\u05DD \u05D4\u05E1\u05D9\u05DE\u05E0\u05D9\u05D4",
-code_title:"\u05E2\u05D5\u05E8\u05DA \u05D4-HTML",
-code_wordwrap:"\u05D4\u05E2\u05D1\u05E8\u05EA \u05DE\u05D9\u05DC\u05D9\u05DD",
-colorpicker_title:"\u05D1\u05D7\u05D9\u05E8\u05EA \u05E6\u05D1\u05E2",
-colorpicker_picker_tab:"\u05D1\u05D5\u05E8\u05E8",
-colorpicker_picker_title:"\u05D1\u05D5\u05E8\u05E8 \u05D4\u05E6\u05D1\u05E2\u05D9\u05DD",
-colorpicker_palette_tab:"\u05DC\u05D5\u05D7 \u05E6\u05D1\u05E2\u05D9\u05DD",
-colorpicker_palette_title:"\u05DC\u05D5\u05D7 \u05E6\u05D1\u05E2\u05D9\u05DD",
-colorpicker_named_tab:"\u05DB\u05E0\u05D5\u05D9",
-colorpicker_named_title:"\u05E6\u05D1\u05E2\u05D9\u05DD \u05DB\u05E0\u05D5\u05D9\u05DD",
-colorpicker_color:"\u05E6\u05D1\u05E2:",
-colorpicker_name:"\u05E9\u05DD:",
-charmap_title:"\u05D1\u05D7\u05D9\u05E8\u05EA \u05E1\u05D9\u05DE\u05DF",
-image_title:"\u05D4\u05D5\u05E1\u05E4\u05D4/\u05E2\u05E8\u05D9\u05DB\u05EA \u05EA\u05DE\u05D5\u05E0\u05D4",
-image_src:"\u05DB\u05EA\u05D5\u05D1\u05EA:",
-image_alt:"\u05EA\u05D9\u05D0\u05D5\u05E8",
-image_list:"\u05E8\u05E9\u05D9\u05DE\u05D4",
-image_border:"\u05D2\u05D1\u05D5\u05DC",
-image_dimensions:"\u05D2\u05D5\u05D3\u05DC",
-image_vspace:"\u05E8\u05D5\u05D5\u05D7 \u05D0\u05E0\u05DB\u05D9",
-image_hspace:"\u05E8\u05D5\u05D5\u05D7 \u05D0\u05D5\u05E4\u05E7\u05D9",
-image_align:"\u05D9\u05D9\u05E9\u05D5\u05E8",
-image_align_baseline:"\u05E7\u05D5 \u05D4\u05D4\u05EA\u05D7\u05DC\u05D4",
-image_align_top:"\u05E7\u05E6\u05D4 \u05D4\u05E2\u05DC\u05D9\u05D5\u05DF",
-image_align_middle:"\u05D0\u05DE\u05E6\u05E2",
-image_align_bottom:"\u05E7\u05E6\u05D4 \u05D4\u05EA\u05D7\u05EA\u05D5\u05DF",
-image_align_texttop:"\u05E7\u05E6\u05D4 \u05D4\u05E2\u05DC\u05D9\u05D5\u05DF \u05E9\u05DC \u05D4\u05D8\u05E7\u05E1\u05D8",
-image_align_textbottom:"\u05E7\u05E6\u05D4 \u05D4\u05EA\u05D7\u05EA\u05D5\u05DF \u05E9\u05DC \u05D4\u05D8\u05E7\u05E1\u05D8",
-image_align_left:"\u05E9\u05DE\u05D0\u05DC",
-image_align_right:"\u05D9\u05DE\u05D9\u05DF",
-link_title:"\u05D4\u05D5\u05E1\u05E4\u05D4/\u05E2\u05E8\u05D9\u05DB\u05EA \u05E7\u05D9\u05E9\u05D5\u05E8",
-link_url:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D4\u05D4\u05D9\u05E4\u05E8-\u05E7\u05D9\u05E9\u05D5\u05E8",
-link_target:"\u05D9\u05E2\u05D3",
-link_target_same:"\u05E4\u05EA\u05D7 \u05E7\u05D9\u05E9\u05D5\u05E8 \u05D1\u05D0\u05D5\u05EA\u05D5 \u05D7\u05DC\u05D5\u05DF",
-link_target_blank:"\u05E4\u05EA\u05D7 \u05E7\u05D9\u05E9\u05D5\u05E8 \u05D1\u05D7\u05DC\u05D5\u05DF \u05D7\u05D3\u05E9",
-link_titlefield:"\u05DB\u05D5\u05EA\u05E8\u05EA",
-link_is_email:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D4-URL \u05E9\u05D4\u05D5\u05DB\u05E0\u05E1\u05D4 \u05D4\u05D9\u05D0 \u05DB\u05DB\u05DC \u05D4\u05E0\u05E8\u05D0\u05D4 \u05DB\u05EA\u05D5\u05D1\u05EA \u05DE\u05D9\u05D9\u05DC \u05D4\u05D0\u05DD \u05D1\u05E8\u05E6\u05D5\u05E0\u05DA \u05DC\u05D4\u05D5\u05E1\u05D9\u05E3 \u05D0\u05EA \u05D4\u05E7\u05D9\u05D3\u05D5\u05DE\u05EA MAILTO \u05D4\u05E0\u05D3\u05E8\u05E9\u05EA?",
-link_is_external:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D4-URL \u05E9\u05D4\u05D5\u05DB\u05E0\u05E1\u05D4 \u05D4\u05D9\u05D0 \u05DB\u05DB\u05DC \u05D4\u05E0\u05E8\u05D0\u05D4 \u05E7\u05D9\u05E9\u05D5\u05E8 \u05D7\u05D9\u05E6\u05D5\u05E0\u05D9 \u05D4\u05D0\u05DD \u05D1\u05E8\u05E6\u05D5\u05E0\u05DA \u05DC\u05D4\u05D5\u05E1\u05D9\u05E3 \u05D0\u05EA \u05D4\u05E7\u05D9\u05D3\u05D5\u05DE\u05EA http:// \u05D4\u05E0\u05D3\u05E8\u05E9\u05EA?",
-link_list:"\u05E8\u05E9\u05D9\u05DE\u05EA \u05E7\u05D9\u05E9\u05D5\u05E8\u05D9\u05DD"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/hr.js b/chrome/content/zotero/tinymce/themes/advanced/langs/hr.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('hr.advanced',{
-style_select:"Stilovi",
-font_size:"Veli\u010Dina pisma",
-fontdefault:"Vrsta pisma",
-block:"Format",
-paragraph:"Paragraf",
-div:"Div",
-address:"Adresa",
-pre:"Oblikovano",
-h1:"Naslov 1",
-h2:"Naslov 2",
-h3:"Naslov 3",
-h4:"Naslov 4",
-h5:"Naslov 5",
-h6:"Naslov 6",
-blockquote:"Citat",
-code:"Kod",
-samp:"Primjer koda",
-dt:"Definicija pojma",
-dd:"Opis definicije",
-bold_desc:"Podebljaj (Ctrl+B)",
-italic_desc:"Kurziv (Ctrl+I)",
-underline_desc:"Podcrtaj (Ctrl+U)",
-striketrough_desc:"Precrtaj",
-justifyleft_desc:"Poravnaj lijevo",
-justifycenter_desc:"Centriraj",
-justifyright_desc:"Poravnaj desno",
-justifyfull_desc:"Poravnaj potpuno",
-bullist_desc:"Neure\u0111ena lista",
-numlist_desc:"Ure\u0111ena lista",
-outdent_desc:"Uvuci",
-indent_desc:"Izvuci",
-undo_desc:"Poni\u0161ti (Ctrl+Z)",
-redo_desc:"Ponovi (Ctrl+Y)",
-link_desc:"Umetni/uredi poveznicu",
-unlink_desc:"Poni\u0161ti poveznicu",
-image_desc:"Umetni/uredi sliku",
-cleanup_desc:"Po\u010Disti kod",
-code_desc:"Uredi HTML izvor",
-sub_desc:"Indeks",
-sup_desc:"Eksponent",
-hr_desc:"Umetni vodoravnu crtu",
-removeformat_desc:"Poni\u0161ti oblikovanje",
-custom1_desc:"Vlastiti opis ovdje",
-forecolor_desc:"Odaberite boju teksta",
-backcolor_desc:"Odaberite boju pozadine",
-charmap_desc:"Umetni vlastiti znak",
-visualaid_desc:"Vodilice/nevidljivi elementi",
-anchor_desc:"Umetni/uredi sidro",
-cut_desc:"Izre\u017Ei",
-copy_desc:"Kopiraj",
-paste_desc:"Zalijepi",
-image_props_desc:"Svojstva slike",
-newdocument_desc:"Novi dokument",
-help_desc:"Pomo\u0107",
-blockquote_desc:"Citiraj",
-clipboard_msg:"Kopiraj/Izre\u017Ei/Zalijepi nije dostupno u Mozilla i Firefox preglednicima. Vi\u0161e informacija?",
-path:"Staza",
-newdocument:"Jeste li sigurni da \u017Eelite izbrisati cijeli sadr\u017Eaj?",
-toolbar_focus:"Prije\u0111i na alatnu traku - Alt+Q, prije\u0111i na ure\u0111iva\u010D - Alt-Z, prije\u0111i na element path - Alt-X",
-more_colors:"Vi\u0161e boja"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/hr_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/hr_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('hr.advanced_dlg',{
-about_title:"TinyMCE",
-about_general:"O programu",
-about_help:"Pomo\u0107",
-about_license:"Licenca",
-about_plugins:"Dodaci",
-about_plugin:"Dodatak",
-about_author:"Autor",
-about_version:"Verzija",
-about_loaded:"Postoje\u0107i dodaci",
-anchor_title:"Umetni/uredi sidro",
-anchor_name:"Ime sidra",
-code_title:"HTML ure\u0111iva\u010D",
-code_wordwrap:"Omatanje teksta",
-colorpicker_title:"Izbor boje",
-colorpicker_picker_tab:"Odabir",
-colorpicker_picker_title:"Odabir boje",
-colorpicker_palette_tab:"Paleta",
-colorpicker_palette_title:"Paleta boja",
-colorpicker_named_tab:"Imenovano",
-colorpicker_named_title:"Imenovane boje",
-colorpicker_color:"Boja:",
-colorpicker_name:"Naziv:",
-charmap_title:"Odaberite znak",
-image_title:"Umetni/uredi sliku",
-image_src:"URL slike",
-image_alt:"Opis slike",
-image_list:"Lista slika",
-image_border:"Obrub",
-image_dimensions:"Dimenzije",
-image_vspace:"Okomiti razmak",
-image_hspace:"Vodoravni razmak",
-image_align:"Poravnavanje",
-image_align_baseline:"Osnovna linija",
-image_align_top:"Vrh",
-image_align_middle:"Sredina",
-image_align_bottom:"Dno",
-image_align_texttop:"Vrh teksta",
-image_align_textbottom:"Dno teksta",
-image_align_left:"Lijevo",
-image_align_right:"Desno",
-link_title:"Umetni/uredi poveznicu",
-link_url:"URL poveznice",
-link_target:"Meta",
-link_target_same:"Otvori poveznicu u istom prozoru",
-link_target_blank:"Otvori poveznicu u novom prozoru",
-link_titlefield:"Naslov",
-link_is_email:"URL koji ste unijeli izgleda kao e-mail adresa, \u017Eelite li dodati potrebni mailto: prefiks?",
-link_is_external:"URL koji ste unijeli izgleda kao vanjska poveznica, \u017Eelite li dodati potrebni http:// prefiks?",
-link_list:"Lista poveznica"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/hu.js b/chrome/content/zotero/tinymce/themes/advanced/langs/hu.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('hu.advanced',{
-style_select:"St\u00EDlusok",
-font_size:"Bet\u0171m\u00E9ret",
-fontdefault:"Bet\u0171t\u00EDpus",
-block:"Form\u00E1tum",
-paragraph:"Bekezd\u00E9s",
-div:"Div",
-address:"C\u00EDm",
-pre:"El\u0151form\u00E1zott",
-h1:"C\u00EDmsor 1",
-h2:"C\u00EDmsor 2",
-h3:"C\u00EDmsor 3",
-h4:"C\u00EDmsor 4",
-h5:"C\u00EDmsor 5",
-h6:"C\u00EDmsor 6",
-blockquote:"Id\u00E9zet",
-code:"K\u00F3d",
-samp:"K\u00F3d minta",
-dt:"Defini\u00E1lt kifejez\u00E9s a defin\u00EDci\u00F3s list\u00E1ban",
-dd:"Defin\u00EDci\u00F3 a defin\u00EDci\u00F3s list\u00E1ban",
-bold_desc:"F\u00E9lk\u00F6v\u00E9r (Ctrl+B)",
-italic_desc:"D\u0151lt (Ctrl+I)",
-underline_desc:"Al\u00E1h\u00FAzott (Ctrl+U)",
-striketrough_desc:"\u00C1th\u00FAzott",
-justifyleft_desc:"Balra z\u00E1rt",
-justifycenter_desc:"K\u00F6z\u00E9pre z\u00E1rt",
-justifyright_desc:"Jobbra z\u00E1rt",
-justifyfull_desc:"Sorkiz\u00E1rt",
-bullist_desc:"Rendezetlen lista",
-numlist_desc:"Rendezett lista",
-outdent_desc:"Beh\u00FAz\u00E1s cs\u00F6kkent\u00E9se",
-indent_desc:"Beh\u00FAz\u00E1s n\u00F6vel\u00E9se",
-undo_desc:"Visszavon (Ctrl+Z)",
-redo_desc:"M\u00E9gis v\u00E9grehajt (Ctrl+Y)",
-link_desc:"Link besz\u00FAr\u00E1sa/szerkeszt\u00E9se",
-unlink_desc:"Link megsz\u00FCntet\u00E9se",
-image_desc:"K\u00E9p besz\u00FAr\u00E1sa/szerkeszt\u00E9se",
-cleanup_desc:"Rendetlen k\u00F3d takar\u00EDt\u00E1sa",
-code_desc:"HTML forr\u00E1s szerkeszt\u00E9se",
-sub_desc:"Als\u00F3 index",
-sup_desc:"Fels\u0151 index",
-hr_desc:"V\u00EDzszintes elv\u00E1laszt\u00F3 besz\u00FAr\u00E1sa",
-removeformat_desc:"Form\u00E1z\u00E1s elt\u00E1vol\u00EDt\u00E1sa",
-custom1_desc:"Az \u00F6n egyedi le\u00EDr\u00E1sa",
-forecolor_desc:"Sz\u00F6vegsz\u00EDn v\u00E1laszt\u00E1sa",
-backcolor_desc:"H\u00E1tt\u00E9rsz\u00EDn v\u00E1laszt\u00E1sa",
-charmap_desc:"Speci\u00E1lis karakter besz\u00FAr\u00E1sa",
-visualaid_desc:"Vezet\u0151vonalak/nem l\u00E1that\u00F3 elemek ki-/bekapcsol\u00E1sa",
-anchor_desc:"Horgony besz\u00FAr\u00E1sa/szerkeszt\u00E9se",
-cut_desc:"Kiv\u00E1g\u00E1s",
-copy_desc:"M\u00E1sol\u00E1s",
-paste_desc:"Besz\u00FAr\u00E1s",
-image_props_desc:"K\u00E9p tulajdons\u00E1gai",
-newdocument_desc:"\u00DAj dokumentum",
-help_desc:"Seg\u00EDts\u00E9g",
-blockquote_desc:"Id\u00E9zet",
-clipboard_msg:"A M\u00E1sol\u00E1s/Kiv\u00E1g\u00E1s/Besz\u00FAr\u00E1s funkci\u00F3k nem el\u00E9rhet\u0151k Mozilla \u00E9s Firefox alatt. K\u00EDv\u00E1n t\u00F6bbet tudni err\u0151l a t\u00E9m\u00E1r\u00F3l?",
-path:"\u00DAtvonal",
-newdocument:"Biztosan t\u00F6rli az eddigi tartalmat?",
-toolbar_focus:"Eszk\u00F6zgombokra ugr\u00E1s - Alt+Q, Szerkeszt\u0151h\u00F6z ugr\u00E1s - Alt-Z, Elem\u00FAtvonalhoz ugr\u00E1s - Alt-X",
-more_colors:"T\u00F6bb sz\u00EDn"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/hu_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/hu_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('hu.advanced_dlg',{
-about_title:"A TinyMCE-r\u0151l",
-about_general:"R\u00F3lunk",
-about_help:"Seg\u00EDts\u00E9g",
-about_license:"Licensz",
-about_plugins:"Pluginok",
-about_plugin:"Plugin",
-about_author:"Szerz\u0151",
-about_version:"Verzi\u00F3",
-about_loaded:"Bet\u00F6lt\u00F6tt pluginok",
-anchor_title:"Horgony besz\u00FAr\u00E1sa/szerkeszt\u00E9se",
-anchor_name:"Horgonyn\u00E9v",
-code_title:"HTML forr\u00E1s szerkeszt\u00E9se",
-code_wordwrap:"Sz\u00F6veg t\u00F6rdel\u00E9se",
-colorpicker_title:"Sz\u00EDnv\u00E1laszt\u00E1s",
-colorpicker_picker_tab:"V\u00E1laszt\u00F3",
-colorpicker_picker_title:"Sz\u00EDnv\u00E1laszt\u00F3",
-colorpicker_palette_tab:"Paletta",
-colorpicker_palette_title:"Paletta sz\u00EDnek",
-colorpicker_named_tab:"Elnevezettek",
-colorpicker_named_title:"Elnevezett sz\u00EDnek",
-colorpicker_color:"Sz\u00EDn:",
-colorpicker_name:"N\u00E9v:",
-charmap_title:"Egyedi karakter v\u00E1laszt\u00E1sa",
-image_title:"K\u00E9p besz\u00FAr\u00E1sa/szerkeszt\u00E9se",
-image_src:"K\u00E9p URL",
-image_alt:"K\u00E9p le\u00EDr\u00E1s",
-image_list:"K\u00E9p lista",
-image_border:"Keret",
-image_dimensions:"Dimenzi\u00F3k",
-image_vspace:"F\u00FCgg\u0151leges t\u00E1v",
-image_hspace:"V\u00EDzszintes t\u00E1v",
-image_align:"Igaz\u00EDt\u00E1s",
-image_align_baseline:"Alapvonalhoz",
-image_align_top:"Fentre",
-image_align_middle:"K\u00F6z\u00E9pre",
-image_align_bottom:"Lentre",
-image_align_texttop:"Sz\u00F6veg tetej\u00E9hez",
-image_align_textbottom:"Sz\u00F6veg alj\u00E1hoz",
-image_align_left:"Balra",
-image_align_right:"Jobbra",
-link_title:"Link besz\u00FAr\u00E1sa/szerkeszt\u00E9se",
-link_url:"Link URL",
-link_target:"Target",
-link_target_same:"Link azonos ablakba nyit\u00E1sa",
-link_target_blank:"Link \u00FAj ablakba nyit\u00E1sa",
-link_titlefield:"C\u00EDm",
-link_is_email:"A be\u00EDrt URL e-mail c\u00EDmnek t\u0171nik, k\u00EDv\u00E1nja a sz\u00FCks\u00E9ges mailto:-t el\u00E9 tenni?",
-link_is_external:"A be\u00EDrt URL k\u00FCls\u0151 hivatkoz\u00E1snak t\u0171nik, k\u00EDv\u00E1nja a sz\u00FCks\u00E9ges http://-t el\u00E9 tenni?",
-link_list:"Link lista"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/ia.js b/chrome/content/zotero/tinymce/themes/advanced/langs/ia.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('ia.advanced',{
-style_select:"\u6837\u5F0F",
-font_size:"\u5B57\u4F53\u5927\u5C0F",
-fontdefault:"\u5B57\u4F53",
-block:"\u683C\u5F0F",
-paragraph:"\u6BB5\u843D",
-div:"Div",
-address:"\u5730\u5740",
-pre:"\u9ED8\u8BA4\u683C\u5F0F",
-h1:"\u6807\u9898 1",
-h2:"\u6807\u9898 2",
-h3:"\u6807\u9898 3",
-h4:"\u6807\u9898 4",
-h5:"\u6807\u9898 5",
-h6:"\u6807\u9898 6",
-blockquote:"\u5F15\u7528",
-code:"\u4EE3\u7801",
-samp:"\u7A0B\u5E8F\u8303\u4F8B",
-dt:"\u540D\u8BCD\u5B9A\u4E49",
-dd:"\u540D\u8BCD\u89E3\u91CA",
-bold_desc:"\u7C97\u4F53 (Ctrl+B)",
-italic_desc:"\u659C\u4F53 (Ctrl+I)",
-underline_desc:"\u5E95\u7EBF (Ctrl+U)",
-striketrough_desc:"\u4E2D\u5212\u7EBF",
-justifyleft_desc:"\u5DE6\u5BF9\u9F50",
-justifycenter_desc:"\u5C45\u4E2D",
-justifyright_desc:"\u53F3\u5BF9\u9F50",
-justifyfull_desc:"\u4E24\u7AEF\u5BF9\u9F50",
-bullist_desc:"\u6E05\u5355\u7B26\u53F7",
-numlist_desc:"\u7F16\u53F7",
-outdent_desc:"\u51CF\u5C11\u7F29\u8FDB",
-indent_desc:"\u589E\u52A0\u7F29\u8FDB",
-undo_desc:"\u64A4\u9500 (Ctrl+Z)",
-redo_desc:"\u6062\u590D (Ctrl+Y)",
-link_desc:"\u63D2\u5165/\u7F16\u8F91 \u8FDE\u7ED3",
-unlink_desc:"\u53D6\u6D88\u8FDE\u7ED3",
-image_desc:"\u63D2\u5165/\u7F16\u8F91 \u56FE\u7247",
-cleanup_desc:"\u5220\u9664\u5197\u4F59\u7801",
-code_desc:"\u7F16\u8F91 HTML \u539F\u59CB\u7A0B\u5E8F\u4EE3\u7801",
-sub_desc:"\u4E0B\u6807",
-sup_desc:"\u4E0A\u6807",
-hr_desc:"\u63D2\u5165\u6C34\u5E73\u7EBF",
-removeformat_desc:"\u6E05\u9664\u6837\u5F0F",
-custom1_desc:"\u5728\u6B64\u8F93\u5165\u60A8\u7684\u81EA\u8BA2\u63CF\u8FF0",
-forecolor_desc:"\u9009\u62E9\u6587\u5B57\u989C\u8272",
-backcolor_desc:"\u9009\u62E9\u80CC\u666F\u989C\u8272",
-charmap_desc:"\u63D2\u5165\u7279\u6B8A\u7B26\u53F7",
-visualaid_desc:"\u7F51\u683C/\u9690\u85CF\u7EC4\u4EF6\uFF1F",
-anchor_desc:"\u63D2\u5165/\u7F16\u8F91 \u951A\u70B9",
-cut_desc:"\u526A\u5207 (Ctrl+X)",
-copy_desc:"\u590D\u5236 (Ctrl+C)",
-paste_desc:"\u7C98\u8D34 (Ctrl+V)",
-image_props_desc:"\u56FE\u7247\u5C5E\u6027",
-newdocument_desc:"\u65B0\u5EFA\u6587\u4EF6",
-help_desc:"\u5E2E\u52A9",
-blockquote_desc:"\u5F15\u7528",
-clipboard_msg:"\u590D\u5236\u3001\u526A\u5207\u548C\u7C98\u8D34\u529F\u80FD\u5728Mozilla \u548C Firefox\u4E2D\u65E0\u6CD5\u4F7F\u7528",
-path:"\u8DEF\u5F84",
-newdocument:"\u60A8\u786E\u8BA4\u8981\u5220\u9664\u5168\u90E8\u5185\u5BB9\u5417\uFF1F",
-toolbar_focus:"\u5DE5\u5177\u5217 - Alt+Q, \u7F16\u8F91\u5668 - Alt-Z, \u7EC4\u4EF6\u8DEF\u5F84 - Alt-X",
-more_colors:"\u66F4\u591A\u989C\u8272"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/ia_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/ia_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('ia.advanced_dlg',{
-about_title:"\u5173\u4E8E TinyMCE",
-about_general:"\u5173\u4E8E",
-about_help:"\u5E2E\u52A9",
-about_license:"\u6388\u6743",
-about_plugins:"\u5168\u90E8\u5916\u6302\u7A0B\u5E8F",
-about_plugin:"\u5916\u6302\u7A0B\u5E8F",
-about_author:"\u4F5C\u8005",
-about_version:"\u7248\u672C",
-about_loaded:"\u5DF2\u52A0\u8F7D\u7684\u5916\u6302\u7A0B\u5E8F",
-anchor_title:"\u63D2\u5165/\u7F16\u8F91 \u951A\u70B9",
-anchor_name:"\u951A\u70B9\u540D\u79F0",
-code_title:"HTML \u539F\u59CB\u7A0B\u5E8F\u4EE3\u7801\u7F16\u8F91\u5668",
-code_wordwrap:"\u81EA\u52A8\u6362\u884C",
-colorpicker_title:"\u9009\u62E9\u989C\u8272",
-colorpicker_picker_tab:"\u9009\u62E9\u5668",
-colorpicker_picker_title:"\u53D6\u8272\u5668",
-colorpicker_palette_tab:"\u8272\u8C31",
-colorpicker_palette_title:"\u8272\u8C31\u989C\u8272",
-colorpicker_named_tab:"\u9ED8\u8BA4\u503C",
-colorpicker_named_title:"\u9ED8\u8BA4\u7684\u989C\u8272",
-colorpicker_color:"\u989C\u8272:",
-colorpicker_name:"\u8272\u540D:",
-charmap_title:"\u63D2\u5165\u7279\u6B8A\u7B26\u53F7",
-image_title:"\u63D2\u5165/\u7F16\u8F91 \u56FE\u7247",
-image_src:"\u56FE\u7247\u7F51\u5740",
-image_alt:"\u56FE\u7247\u8BF4\u660E",
-image_list:"\u56FE\u7247\u6E05\u5355",
-image_border:"\u8FB9\u6846",
-image_dimensions:"\u5C3A\u5BF8",
-image_vspace:"\u5782\u76F4\u95F4\u8DDD",
-image_hspace:"\u6C34\u5E73\u95F4\u8DDD",
-image_align:"\u5BF9\u9F50\u65B9\u5F0F",
-image_align_baseline:"\u57FA\u7EBF",
-image_align_top:"\u9876\u90E8\u5BF9\u9F50",
-image_align_middle:"\u4E2D\u90E8\u5BF9\u9F50",
-image_align_bottom:"\u5E95\u90E8\u5BF9\u9F50",
-image_align_texttop:"\u6587\u5B57\u4E0A\u65B9",
-image_align_textbottom:"\u6587\u5B57\u4E0B\u65B9",
-image_align_left:"\u5DE6\u5BF9\u9F50",
-image_align_right:"\u53F3\u5BF9\u9F50",
-link_title:"\u63D2\u5165/\u7F16\u8F91 \u8FDE\u7ED3",
-link_url:"\u8FDE\u7ED3\u7F51\u5740",
-link_target:"\u76EE\u6807",
-link_target_same:"\u5F53\u524D\u7A97\u53E3\u6253\u5F00",
-link_target_blank:"\u65B0\u7A97\u53E3\u6253\u5F00",
-link_titlefield:"\u6807\u9898",
-link_is_email:"\u60A8\u8F93\u5165\u7684\u5E94\u8BE5\u662F\u4E00\u4E2A\u7535\u5B50\u90AE\u5BC4\u5730\u5740\uFF0C\u662F\u5426\u9700\u8981\u5728\u7F51\u5740\u524D\u52A0\u4E0A mailto: ? ",
-link_is_external:"\u60A8\u8F93\u5165\u7684\u7F51\u5740\u5E94\u8BE5\u662F\u4E00\u4E2A\u5916\u90E8\u8FDE\u7ED3\uFF0C\u662F\u5426\u9700\u8981\u5728\u7F51\u5740\u524D\u52A0\u4E0A http:// ?",
-link_list:"\u8FDE\u7ED3\u6E05\u5355"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/ii.js b/chrome/content/zotero/tinymce/themes/advanced/langs/ii.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('ii.advanced',{
-style_select:"\u6837\u5F0F",
-font_size:"\u5B57\u4F53\u5927\u5C0F",
-fontdefault:"\u5B57\u578B",
-block:"\u683C\u5F0F",
-paragraph:"\u6BB5\u843D",
-div:"Div",
-address:"\u5730\u5740",
-pre:"\u539F\u59CB\u683C\u5F0F",
-h1:"\u6807\u9898 1",
-h2:"\u6807\u9898 2",
-h3:"\u6807\u9898 3",
-h4:"\u6807\u9898 4",
-h5:"\u6807\u9898 5",
-h6:"\u6807\u9898 6",
-blockquote:"\u5F15\u7528",
-code:"\u4EE3\u7801",
-samp:"\u7A0B\u5E8F\u8303\u4F8B",
-dt:"\u540D\u8BCD\u5B9A\u4E49",
-dd:"\u540D\u8BCD\u89E3\u91CA",
-bold_desc:"\u7C97\u4F53 (Ctrl+B)",
-italic_desc:"\u659C\u4F53 (Ctrl+I)",
-underline_desc:"\u5E95\u7EBF (Ctrl+U)",
-striketrough_desc:"\u5220\u9664\u7EBF",
-justifyleft_desc:"\u9760\u5DE6\u5BF9\u9F50",
-justifycenter_desc:"\u5C45\u4E2D",
-justifyright_desc:"\u9760\u53F3\u5BF9\u9F50",
-justifyfull_desc:"\u5DE6\u53F3\u5BF9\u9F50",
-bullist_desc:"\u9879\u76EE\u65B9\u5F0F\u5217\u8868",
-numlist_desc:"\u7F16\u53F7\u65B9\u5F0F\u5217\u8868",
-outdent_desc:"\u51CF\u5C11\u7F29\u8FDB",
-indent_desc:"\u589E\u52A0\u7F29\u8FDB",
-undo_desc:"\u8FD8\u539F (Ctrl+Z)",
-redo_desc:"\u91CD\u505A (Ctrl+Y)",
-link_desc:"\u63D2\u5165/\u7F16\u8F91 \u94FE\u63A5",
-unlink_desc:"\u53D6\u6D88\u94FE\u63A5",
-image_desc:"\u63D2\u5165/\u7F16\u8F91 \u56FE\u7247",
-cleanup_desc:"\u6E05\u9664\u5197\u4F59\u4EE3\u7801",
-code_desc:"\u7F16\u8F91 HTML \u539F\u59CB\u6587\u4EF6",
-sub_desc:"\u4E0B\u6807",
-sup_desc:"\u4E0A\u6807",
-hr_desc:"\u63D2\u5165\u6C34\u5E73\u5206\u5272\u7EBF",
-removeformat_desc:"\u6E05\u9664\u6837\u5F0F",
-custom1_desc:"\u5728\u6B64\u8F93\u5165\u81EA\u8BA2\u63CF\u8FF0",
-forecolor_desc:"\u9009\u62E9\u6587\u5B57\u989C\u8272",
-backcolor_desc:"\u9009\u62E9\u80CC\u666F\u989C\u8272",
-charmap_desc:"\u63D2\u5165\u81EA\u5B9A\u4E49\u7B26\u53F7",
-visualaid_desc:"\u5207\u6362\u53EF\u89C1/\u9690\u85CF\u5143\u7D20",
-anchor_desc:"\u63D2\u5165/\u7F16\u8F91 \u951A\u70B9",
-cut_desc:"\u526A\u5207 (Ctrl+X)",
-copy_desc:"\u590D\u5236 (Ctrl+C)",
-paste_desc:"\u7C98\u8D34 (Ctrl+V)",
-image_props_desc:"\u56FE\u7247\u5C5E\u6027",
-newdocument_desc:"\u65B0\u6587\u4EF6",
-help_desc:"\u8BF4\u660E",
-blockquote_desc:"\u5F15\u7528",
-clipboard_msg:"\u590D\u5236/\u526A\u5207/\u7C98\u8D34\u529F\u80FD\u5728 Mozilla \u548C Firefox \u4E2D\u65E0\u6CD5\u4F7F\u7528",
-path:"\u8DEF\u5F84",
-newdocument:"\u4F60\u786E\u5B9A\u8981\u6E05\u9664\u6240\u6709\u5185\u5BB9\u5417\uFF1F",
-toolbar_focus:"\u79FB\u81F3\u5DE5\u5177\u680F - Alt+Q, \u79FB\u81F3\u7F16\u8F91\u5668 - Alt-Z, \u79FB\u81F3\u5143\u7D20\u8DEF\u5F84 - Alt-X",
-more_colors:"\u66F4\u591A\u989C\u8272"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/ii_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/ii_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('ii.advanced_dlg',{
-about_title:"\u5173\u4E8ETinyMCE",
-about_general:"\u5173\u4E8E",
-about_help:"\u8BF4\u660E",
-about_license:"\u6388\u6743",
-about_plugins:"\u5916\u6302\u7EC4\u4EF6",
-about_plugin:"\u5916\u6302\u7EC4\u4EF6",
-about_author:"\u4F5C\u8005",
-about_version:"\u7248\u672C",
-about_loaded:"\u5DF2\u52A0\u8F7D\u7684\u5916\u6302\u7EC4\u4EF6",
-anchor_title:"\u63D2\u5165/\u7F16\u8F91 \u951A\u70B9",
-anchor_name:"\u951A\u70B9\u540D\u79F0",
-code_title:"HTML \u539F\u59CB\u7801\u7F16\u8F91\u5668",
-code_wordwrap:"\u81EA\u52A8\u6362\u884C",
-colorpicker_title:"\u9009\u62E9\u989C\u8272",
-colorpicker_picker_tab:"\u9009\u8272\u5668",
-colorpicker_picker_title:"\u9009\u8272\u5668",
-colorpicker_palette_tab:"\u8272\u76D8",
-colorpicker_palette_title:"\u8272\u76D8\u989C\u8272",
-colorpicker_named_tab:"\u8272\u540D",
-colorpicker_named_title:"\u989C\u8272\u540D\u79F0",
-colorpicker_color:"\u989C\u8272\uFF1A",
-colorpicker_name:"\u540D\u79F0\uFF1A",
-charmap_title:"\u9009\u62E9\u81EA\u5B9A\u4E49\u5B57\u7B26\u7B26\u53F7",
-image_title:"\u63D2\u5165/\u7F16\u8F91 \u56FE\u6863",
-image_src:"\u56FE\u6863URL",
-image_alt:"\u56FE\u6863\u8BF4\u660E",
-image_list:"\u56FE\u6587\u4EF6\u6E05\u5355",
-image_border:"\u8FB9\u6846",
-image_dimensions:"\u5C3A\u5BF8",
-image_vspace:"\u5782\u76F4\u95F4\u8DDD",
-image_hspace:"\u6C34\u5E73\u95F4\u8DDD",
-image_align:"\u5BF9\u9F50\u65B9\u5F0F",
-image_align_baseline:"\u57FA\u7EBF",
-image_align_top:"\u7F6E\u9876\u5BF9\u9F50",
-image_align_middle:"\u7F6E\u4E2D",
-image_align_bottom:"\u7F6E\u5E95\u5BF9\u9F50",
-image_align_texttop:"\u6587\u5B57\u4E0A\u65B9",
-image_align_textbottom:"\u6587\u5B57\u4E0B\u65B9",
-image_align_left:"\u9760\u5DE6\u5BF9\u9F50",
-image_align_right:"\u9760\u53F3\u5BF9\u9F50",
-link_title:"\u63D2\u5165/\u7F16\u8F91 \u94FE\u63A5",
-link_url:"\u94FE\u63A5URL",
-link_target:"\u76EE\u6807",
-link_target_same:"\u76EE\u524D\u7A97\u53E3\u5F00\u542F\u94FE\u63A5",
-link_target_blank:"\u65B0\u7A97\u53E3\u5F00\u542F\u94FE\u63A5",
-link_titlefield:"\u6807\u9898",
-link_is_email:"\u4F60\u8F93\u5165\u7684URL\u4F3C\u4E4E\u662F\u4E00\u4E2Aemail\u5730\u5740\uFF0C\u662F\u5426\u8981\u52A0\u4E0A\u524D\u81F4\u8BCD mailto: ?",
-link_is_external:"\u4F60\u8F93\u5165\u7684URL\u4F3C\u4E4E\u662F\u4E00\u4E2A\u5916\u90E8\u94FE\u63A5\uFF0C\u662F\u5426\u8981\u52A0\u4E0A\u524D\u81F4\u8BCD http:// ?",
-link_list:"\u94FE\u63A5\u6E05\u5355"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/is.js b/chrome/content/zotero/tinymce/themes/advanced/langs/is.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('is.advanced',{
-style_select:"St\u00EDlsni\u00F0",
-font_size:"Leturst\u00E6r\u00F0",
-fontdefault:"Leturger\u00F0",
-block:"Format",
-paragraph:"M\u00E1lsgrein",
-div:"Div",
-address:"Heimilisfang",
-pre:"Forsni\u00F0i\u00F0",
-h1:"Fyrirs\u00F6gn 1",
-h2:"Fyrirs\u00F6gn 2",
-h3:"Fyrirs\u00F6gn 3",
-h4:"Fyrirs\u00F6gn 4",
-h5:"Fyrirs\u00F6gn 5",
-h6:"Fyrirs\u00F6gn 6",
-blockquote:"Blockquote",
-code:"K\u00F3\u00F0i",
-samp:"K\u00F3\u00F0ad\u00E6mi",
-dt:"Definition term ",
-dd:"Definition description",
-bold_desc:"Feitletra (Ctrl+B)",
-italic_desc:"Sk\u00E1letra (Ctrl+I)",
-underline_desc:"Undirstrika (Ctrl+U)",
-striketrough_desc:"Yfirstrika",
-justifyleft_desc:"Vinstrijafna",
-justifycenter_desc:"Mi\u00F0jujafna",
-justifyright_desc:"H\u00E6grijafna",
-justifyfull_desc:"Jafna",
-bullist_desc:"B\u00F3lulisti",
-numlist_desc:"N\u00FAmera\u00F0ur listi",
-outdent_desc:"Draga \u00FAt",
-indent_desc:"Draga inn",
-undo_desc:"Taka til baka (Ctrl+Z)",
-redo_desc:"Endurtaka (Ctrl+Y)",
-link_desc:"Setja inn/breyta hlekk",
-unlink_desc:"Afhlekkja",
-image_desc:"Setja inn/breyta mynd",
-cleanup_desc:"Hreinsa sk\u00EDtugan k\u00F3\u00F0a",
-code_desc:"Breyta HTML k\u00F3\u00F0a",
-sub_desc:"Subscript",
-sup_desc:"Superscript",
-hr_desc:"Setja inn l\u00E1r\u00E9tta l\u00EDnu",
-removeformat_desc:"Hreinsa sni\u00F0",
-custom1_desc:"L\u00FDsingin \u00FE\u00EDn h\u00E9r",
-forecolor_desc:"Veldu lit texta",
-backcolor_desc:"Veldu bakgrunnslit",
-charmap_desc:"Setja inn t\u00E1kn",
-visualaid_desc:"Toggle guidelines/invisible elements",
-anchor_desc:"Setja inn/breyta akkeri",
-cut_desc:"Klippa",
-copy_desc:"Afrita",
-paste_desc:"L\u00EDma",
-image_props_desc:"Stillingar myndar",
-newdocument_desc:"N\u00FDtt skjal",
-help_desc:"Hj\u00E1lp",
-blockquote_desc:"Blockquote",
-clipboard_msg:"Afrita/Klippa/L\u00EDma er ekki a\u00F0gengilegt \u00ED Mozilla og Firefox eins og er.\nViltu f\u00E1 n\u00E1nari uppl\u00FDsingar?",
-path:"Sl\u00F3\u00F0",
-newdocument:"Ertu viss um a\u00F0 \u00FE\u00FA viljir hreinsa allt?",
-toolbar_focus:"Hoppa \u00ED t\u00F3lastiku - Alt+Q, Hoppa \u00ED ritil - Alt-Z, Hoppa \u00ED sl\u00F3\u00F0 - Alt-X",
-more_colors:"Fleiri litir"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/is_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/is_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('is.advanced_dlg',{
-about_title:"Um TinyMCE",
-about_general:"Um",
-about_help:"Hj\u00E1lp",
-about_license:"Leyfi",
-about_plugins:"Vi\u00F0b\u00E6tur",
-about_plugin:"Vi\u00F0b\u00E6tur",
-about_author:"H\u00F6fundur",
-about_version:"\u00DAtg\u00E1fa",
-about_loaded:"Vi\u00F0b\u00E6tur \u00ED notkun",
-anchor_title:"Setja inn/breyta akkeri",
-anchor_name:"Nafn akkeris",
-code_title:"HTML k\u00F3\u00F0a ritill",
-code_wordwrap:"Word wrap",
-colorpicker_title:"Veldu lit",
-colorpicker_picker_tab:"Veljari",
-colorpicker_picker_title:"Litaveljari",
-colorpicker_palette_tab:"Litaspjald",
-colorpicker_palette_title:"Litir litaspjalds",
-colorpicker_named_tab:"Nefndir",
-colorpicker_named_title:"Nefndir litir",
-colorpicker_color:"Litur:",
-colorpicker_name:"Nafn:",
-charmap_title:"Veldu t\u00E1kn",
-image_title:"Setja inn/breyta mynd",
-image_src:"Sl\u00F3\u00F0 myndar",
-image_alt:"L\u00FDsing myndar",
-image_list:"Myndalisti",
-image_border:"Rammi",
-image_dimensions:"St\u00E6r\u00F0ir",
-image_vspace:"L\u00F3\u00F0r\u00E9tt loftun",
-image_hspace:"L\u00E1r\u00E9tt loftun",
-image_align:"J\u00F6fnun",
-image_align_baseline:"Baseline",
-image_align_top:"Toppur",
-image_align_middle:"Mi\u00F0ja",
-image_align_bottom:"Botn",
-image_align_texttop:"Toppur texta",
-image_align_textbottom:"Botn texta",
-image_align_left:"Vinstri",
-image_align_right:"H\u00E6gri",
-link_title:"Setja inn/breyta hlekk",
-link_url:"Sl\u00F3\u00F0 hlekks",
-link_target:"Target",
-link_target_same:"Opna hlekk \u00ED sama glugga",
-link_target_blank:"Opna hlekk \u00ED n\u00FDjum glugga",
-link_titlefield:"Titill",
-link_is_email:"Sl\u00F3\u00F0in sem \u00FE\u00FA sl\u00F3st inn vir\u00F0ist vera netfang, viltu b\u00E6ta vi\u00F0 mailto: forskeytinu?",
-link_is_external:"Sl\u00F3\u00F0in sem \u00FE\u00FA sl\u00F3st inn vir\u00F0ist vera utana\u00F0komandi, viltu b\u00E6ta vi\u00F0 http:// forskeytinu?",
-link_list:"Hlekkjalisti"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/it.js b/chrome/content/zotero/tinymce/themes/advanced/langs/it.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('it.advanced',{
-style_select:"Stili",
-font_size:"Grandezza carattere",
-fontdefault:"Famiglia carattere",
-block:"Formato",
-paragraph:"Paragrafo",
-div:"Div",
-address:"Indirizzo",
-pre:"Preformattato",
-h1:"Intestazione 1",
-h2:"Intestazione 2",
-h3:"Intestazione 3",
-h4:"Intestazione 4",
-h5:"Intestazione 5",
-h6:"Intestazione 6",
-blockquote:"Testo quotato",
-code:"Codice",
-samp:"Esempio codice",
-dt:"Termine definizione",
-dd:"Descrizione definizione",
-bold_desc:"Grassetto (Ctrl+B)",
-italic_desc:"Corsivo (Ctrl+I)",
-underline_desc:"Sottolineato (Ctrl+U)",
-striketrough_desc:"Barrato",
-justifyleft_desc:"Allinea a sinistra",
-justifycenter_desc:"Centra",
-justifyright_desc:"Allinea a destra",
-justifyfull_desc:"Giustifica",
-bullist_desc:"Lista non ordinata",
-numlist_desc:"Lista ordinata",
-outdent_desc:"Sposta verso esterno",
-indent_desc:"Sposta verso interno",
-undo_desc:"Annulla (Ctrl+Z)",
-redo_desc:"Ripristina (Ctrl+Y)",
-link_desc:"Inserisci/modifica collegamento",
-unlink_desc:"Togli collegamento",
-image_desc:"Inserisci/modifica immagine",
-cleanup_desc:"Pulisci codice disordinato",
-code_desc:"Modifica sorgente HTML",
-sub_desc:"Pedice",
-sup_desc:"Apice",
-hr_desc:"Inserisci riga orizzontale",
-removeformat_desc:"Rimuovi formattazione",
-custom1_desc:"La tua descrizione personalizzata qui",
-forecolor_desc:"Seleziona colore testo",
-backcolor_desc:"Seleziona colore sfondo",
-charmap_desc:"Inserisci carattere speciale",
-visualaid_desc:"Mostra/nascondi linee guida/elementi invisibili",
-anchor_desc:"Inserisci/modifica ancora",
-cut_desc:"Taglia",
-copy_desc:"Copia",
-paste_desc:"Incolla",
-image_props_desc:"Propriet\u00E0 immagine",
-newdocument_desc:"Nuovo documento",
-help_desc:"Aiuto",
-blockquote_desc:"Testo quotato",
-clipboard_msg:"Copia/Taglia/Incolla non \u00E8 disponibile in Mozilla e Firefox..\r\nSi desidera avere maggiori informazioni su questo problema?",
-path:"Percorso",
-newdocument:"Sei sicuro di voler cancellare tutti i contenuti?",
-toolbar_focus:"Vai ai pulsanti strumento - Alt+Q, Vai all'editor - Alt-Z, Vai al percorso dell'elemento - Alt-X",
-more_colors:"Colori aggiuntivi"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/it_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/it_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('it.advanced_dlg',{
-about_title:"Informazioni su TinyMCE",
-about_general:"Informazioni",
-about_help:"Aiuto",
-about_license:"Licenza",
-about_plugins:"Plugins",
-about_plugin:"Plugin",
-about_author:"Autore",
-about_version:"Versione",
-about_loaded:"Plugin caricati",
-anchor_title:"Inserisci/modifica ancora",
-anchor_name:"Nome ancora",
-code_title:"Editor sorgente HTML",
-code_wordwrap:"A capo automatico",
-colorpicker_title:"Seleziona un colore",
-colorpicker_picker_tab:"Selettore",
-colorpicker_picker_title:"Selettore colori",
-colorpicker_palette_tab:"Tavolozza",
-colorpicker_palette_title:"Tavolozza dei colori",
-colorpicker_named_tab:"Per nome",
-colorpicker_named_title:"Colori per nome",
-colorpicker_color:"Colore:",
-colorpicker_name:"Nome:",
-charmap_title:"Seleziona carattere speciale",
-image_title:"Inserisci/modifica immagine",
-image_src:"URL immagine",
-image_alt:"Descrizione immagine",
-image_list:"Lista immagini",
-image_border:"Bordo",
-image_dimensions:"Dimensioni",
-image_vspace:"Spaziatura verticale",
-image_hspace:"Spaziatura orizzontale",
-image_align:"Allineamentot",
-image_align_baseline:"Alla base",
-image_align_top:"In alto",
-image_align_middle:"In mezzo",
-image_align_bottom:"In basso",
-image_align_texttop:"In alto al testo",
-image_align_textbottom:"In basso al testo",
-image_align_left:"A sinistra",
-image_align_right:"A destra",
-link_title:"Inserisci/modifica collegamento",
-link_url:"URL collegamento",
-link_target:"Target",
-link_target_same:"Apri link nella stessa finestra",
-link_target_blank:"Apri link in una nuova finestra",
-link_titlefield:"Titolo",
-link_is_email:"L'URL inserito sembra essere un indirizzo email. Aggiungere il necessario prefisso mailto: ?",
-link_is_external:"L'URL inserito sembra essere un link esterno. Aggiungere il necessario prefisso http:// ?",
-link_list:"Lista collegamenti"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/ja.js b/chrome/content/zotero/tinymce/themes/advanced/langs/ja.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('ja.advanced',{
-style_select:"\u30B9\u30BF\u30A4\u30EB",
-font_size:"\u30D5\u30A9\u30F3\u30C8\u30B5\u30A4\u30BA",
-fontdefault:"\u30D5\u30A9\u30F3\u30C8",
-block:"\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8",
-paragraph:"\u6BB5\u843D",
-div:"Div",
-address:"\u4F4F\u6240",
-pre:"\u6574\u5F62\u6E08\u307F",
-h1:"\u898B\u51FA\u30571",
-h2:"\u898B\u51FA\u30572",
-h3:"\u898B\u51FA\u30573",
-h4:"\u898B\u51FA\u30574",
-h5:"\u898B\u51FA\u30575",
-h6:"\u898B\u51FA\u30576",
-blockquote:"\u5F15\u7528",
-code:"\u30BD\u30FC\u30B9\u30B3\u30FC\u30C9",
-samp:"\u30B3\u30FC\u30C9\u30B5\u30F3\u30D7\u30EB",
-dt:"\u8A9E\u53E5\u5B9A\u7FA9",
-dd:"\u8A9E\u53E5\u8AAC\u660E",
-bold_desc:"\u592A\u5B57 (Ctrl+B)",
-italic_desc:"\u659C\u4F53 (Ctrl+I)",
-underline_desc:"\u4E0B\u7DDA (Ctrl+U)",
-striketrough_desc:"\u6253\u6D88\u3057\u7DDA",
-justifyleft_desc:"\u5DE6\u63C3\u3048",
-justifycenter_desc:"\u4E2D\u592E\u63C3\u3048",
-justifyright_desc:"\u53F3\u63C3\u3048",
-justifyfull_desc:"\u5747\u7B49\u5272\u4ED8",
-bullist_desc:"\u756A\u53F7\u306A\u3057\u30EA\u30B9\u30C8",
-numlist_desc:"\u756A\u53F7\u3064\u304D\u30EA\u30B9\u30C8",
-outdent_desc:"\u30A4\u30F3\u30C7\u30F3\u30C8\u89E3\u9664",
-indent_desc:"\u30A4\u30F3\u30C7\u30F3\u30C8",
-undo_desc:"\u5143\u306B\u623B\u3059 (Ctrl+Z)",
-redo_desc:"\u3084\u308A\u76F4\u3059 (Ctrl+Y)",
-link_desc:"\u30EA\u30F3\u30AF\u306E\u633F\u5165/\u7DE8\u96C6",
-unlink_desc:"\u30EA\u30F3\u30AF\u89E3\u9664",
-image_desc:"\u753B\u50CF\u306E\u633F\u5165/\u7DE8\u96C6",
-cleanup_desc:"\u30B3\u30FC\u30C9\u6574\u5F62",
-code_desc:"HTML\u30BD\u30FC\u30B9\u7DE8\u96C6",
-sub_desc:"\u4E0B\u4ED8\u304D",
-sup_desc:"\u4E0A\u4ED8\u304D",
-hr_desc:"\u6C34\u5E73\u7DDA",
-removeformat_desc:"\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8\u89E3\u9664",
-custom1_desc:"\u8AAC\u660E\u6587\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
-forecolor_desc:"\u6587\u5B57\u8272",
-backcolor_desc:"\u80CC\u666F\u8272",
-charmap_desc:"\u7279\u6B8A\u6587\u5B57",
-visualaid_desc:"\u30AC\u30A4\u30C9\u30E9\u30A4\u30F3\u3068\u975E\u8868\u793A\u9805\u76EE\u306E\u8868\u793A\u5207\u66FF",
-anchor_desc:"\u30A2\u30F3\u30AB\u30FC\u306E\u633F\u5165/\u7DE8\u96C6",
-cut_desc:"\u5207\u308A\u53D6\u308A",
-copy_desc:"\u30B3\u30D4\u30FC",
-paste_desc:"\u8CBC\u308A\u4ED8\u3051",
-image_props_desc:"\u753B\u50CF\u306E\u30D7\u30ED\u30D1\u30C6\u30A3",
-newdocument_desc:"\u65B0\u898F\u4F5C\u6210",
-help_desc:"\u30D8\u30EB\u30D7",
-blockquote_desc:"\u5F15\u7528",
-clipboard_msg:"\u30B3\u30D4\u30FC/\u5207\u308A\u53D6\u308A/\u8CBC\u308A\u4ED8\u3051\u306FMozilla\u53CA\u3073Firefox\u3067\u306F\u4F7F\u7528\u3067\u304D\u307E\u305B\u3093\u3002\n\u8A73\u7D30\u306F\u3053\u3061\u3089",
-path:"\u30D1\u30B9",
-newdocument:"\u7DE8\u96C6\u4E2D\u306E\u30C7\u30FC\u30BF\u3092\u7834\u68C4\u3057\u3066\u3082\u3088\u308D\u3057\u3044\u3067\u3059\u304B\uFF1F",
-toolbar_focus:"\u30C4\u30FC\u30EB\u30DC\u30BF\u30F3\u3078\u30B8\u30E3\u30F3\u30D7 - Alt+Q, \u30A8\u30C7\u30A3\u30BF\u306B\u30B8\u30E3\u30F3\u30D7 - Alt-Z, \u30A8\u30EC\u30E1\u30F3\u30C8\u30D1\u30B9\u3078\u30B8\u30E3\u30F3\u30D7 - Alt-X",
-more_colors:"\u305D\u306E\u4ED6\u306E\u8272"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/ja_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/ja_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('ja.advanced_dlg',{
-about_title:"TinyMCE\u306B\u3064\u3044\u3066",
-about_general:"\u8A73\u7D30",
-about_help:"\u30D8\u30EB\u30D7",
-about_license:"\u30E9\u30A4\u30BB\u30F3\u30B9",
-about_plugins:"\u30D7\u30E9\u30B0\u30A4\u30F3",
-about_plugin:"\u30D7\u30E9\u30B0\u30A4\u30F3",
-about_author:"\u4F5C\u8005",
-about_version:"\u30D0\u30FC\u30B8\u30E7\u30F3",
-about_loaded:"\u8AAD\u8FBC\u6E08\u307F\u30D7\u30E9\u30B0\u30A4\u30F3",
-anchor_title:"\u30A2\u30F3\u30AB\u30FC\u306E\u633F\u5165/\u7DE8\u96C6",
-anchor_name:"\u30A2\u30F3\u30AB\u30FC\u540D",
-code_title:"HTML\u30BD\u30FC\u30B9\u30A8\u30C7\u30A3\u30BF",
-code_wordwrap:"\u6298\u308A\u8FD4\u3057",
-colorpicker_title:"\u8272\u306E\u9078\u629E",
-colorpicker_picker_tab:"\u30AB\u30E9\u30FC\u30D4\u30C3\u30AB\u30FC",
-colorpicker_picker_title:"\u30AB\u30E9\u30FC\u30D4\u30C3\u30AB\u30FC",
-colorpicker_palette_tab:"\u30D1\u30EC\u30C3\u30C8",
-colorpicker_palette_title:"\u30D1\u30EC\u30C3\u30C8",
-colorpicker_named_tab:"\u65E2\u5B9A\u8272",
-colorpicker_named_title:"\u65E2\u5B9A\u8272",
-colorpicker_color:"\u30AB\u30E9\u30FC:",
-colorpicker_name:"\u540D\u524D:",
-charmap_title:"\u7279\u6B8A\u6587\u5B57",
-image_title:"\u753B\u50CF\u306E\u633F\u5165/\u7DE8\u96C6",
-image_src:"\u753B\u50CFURL",
-image_alt:"\u753B\u50CF\u306E\u8AAC\u660E",
-image_list:"\u4E00\u89A7\u304B\u3089\u9078\u3076",
-image_border:"\u67A0\u7DDA",
-image_dimensions:"\u30B5\u30A4\u30BA",
-image_vspace:"\u4E0A\u4E0B\u4F59\u767D",
-image_hspace:"\u5DE6\u53F3\u4F59\u767D",
-image_align:"\u914D\u7F6E",
-image_align_baseline:"Baseline",
-image_align_top:"Top",
-image_align_middle:"Middle",
-image_align_bottom:"Bottom",
-image_align_texttop:"Text top",
-image_align_textbottom:"Text bottom",
-image_align_left:"Left",
-image_align_right:"Right",
-link_title:"\u30EA\u30F3\u30AF\u306E\u633F\u5165/\u7DE8\u96C6",
-link_url:"\u30EA\u30F3\u30AFURL",
-link_target:"\u30BF\u30FC\u30B2\u30C3\u30C8",
-link_target_same:"\u540C\u3058\u30A6\u30A4\u30F3\u30C9\u30A6\u3067\u958B\u304F",
-link_target_blank:"\u65B0\u3057\u3044\u30A6\u30A4\u30F3\u30C9\u30A6\u3067\u958B\u304F",
-link_titlefield:"\u30BF\u30A4\u30C8\u30EB",
-link_is_email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F\u3002\u30EA\u30F3\u30AF\u306Bmailto:\u3092\u4ED8\u52A0\u3057\u307E\u3059\u304B\uFF1F",
-link_is_external:"\u30EA\u30F3\u30AF\u306Bhttp://\u3092\u4ED8\u52A0\u3057\u307E\u3059\u304B\uFF1F",
-link_list:"\u4E00\u89A7\u304B\u3089\u9078\u3076"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/ko.js b/chrome/content/zotero/tinymce/themes/advanced/langs/ko.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('ko.advanced',{
-style_select:"\uC2A4\uD0C0\uC77C",
-font_size:"\uAE00\uAF34 \uD06C\uAE30",
-fontdefault:"\uAE00\uAF34",
-block:"\uD3EC\uB9F7",
-paragraph:"\uB2E8\uB77D",
-div:"Div",
-address:"\uC8FC\uC18C",
-pre:"pre",
-h1:"\uD45C\uC81C1",
-h2:"\uD45C\uC81C2",
-h3:"\uD45C\uC81C3",
-h4:"\uD45C\uC81C4",
-h5:"\uD45C\uC81C5",
-h6:"\uD45C\uC81C6",
-blockquote:"\uC778\uC6A9\uBB38",
-code:"\uCF54\uB4DC",
-samp:"\uC0D8\uD50C\uCF54\uB4DC",
-dt:"\uC5B4\uAD6C \uC815\uC758",
-dd:"\uC815\uC758 \uC124\uBA85",
-bold_desc:"\uAD75\uC740 \uAE00\uC528(Ctrl+B)",
-italic_desc:"\uC774\uD0E4\uB9AD(Ctrl+I)",
-underline_desc:"\uBC11\uC904(Ctrl+U)",
-striketrough_desc:"\uCDE8\uC18C\uC120",
-justifyleft_desc:"\uC67C\uCABD \uC815\uB82C",
-justifycenter_desc:"\uAC00\uC6B4\uB370 \uC815\uB82C",
-justifyright_desc:"\uC624\uB978\uCABD \uC815\uB82C",
-justifyfull_desc:"\uBC30\uBD84 \uC815\uB82C",
-bullist_desc:"\uBE44\uC21C\uCC28\uBAA9\uB85D",
-numlist_desc:"\uC21C\uCC28\uBAA9\uB85D",
-outdent_desc:"\uB0B4\uC5B4\uC4F0\uAE30",
-indent_desc:"\uB4E4\uC5EC\uC4F0\uAE30",
-undo_desc:"\uC2E4\uD589\uCDE8\uC18C(Ctrl+Z)",
-redo_desc:"\uB2E4\uC2DC\uC2E4\uD589(Ctrl+Y)",
-link_desc:"\uB9C1\uD06C\uC758 \uC0BD\uC785/\uD3B8\uC9D1",
-unlink_desc:"\uB9C1\uD06C \uC0AD\uC81C",
-image_desc:"\uC774\uBBF8\uC9C0 \uC0BD\uC785/\uD3B8\uC9D1",
-cleanup_desc:"\uC9C0\uC800\uBD84\uD55C \uCF54\uB4DC \uC0AD\uC81C",
-code_desc:"HTML \uD3B8\uC9D1",
-sub_desc:"\uC544\uB798\uCCA8\uC790",
-sup_desc:"\uC704\uCCA8\uC790",
-hr_desc:"\uAD6C\uBD84\uC120",
-removeformat_desc:"\uC11C\uC2DD \uD574\uC81C",
-custom1_desc:"\uCEE4\uC2A4\uD140 \uC124\uBA85",
-forecolor_desc:"\uAE00\uC790\uC0C9",
-backcolor_desc:"\uBC30\uACBD\uC0C9",
-charmap_desc:"\uD2B9\uC218 \uBB38\uC790",
-visualaid_desc:"\uAC00\uC774\uB4DC\uB77C\uC778 \uD45C\uC2DC/\uBE44\uD45C\uC2DC",
-anchor_desc:"\uC5E5\uCEE4 \uC0BD\uC785/\uD3B8\uC9D1",
-cut_desc:"\uC798\uB77C\uB0B4\uAE30",
-copy_desc:"\uBCF5\uC0AC",
-paste_desc:"\uBD99\uC774\uAE30",
-image_props_desc:"\uC774\uBBF8\uC9C0\uC18D\uC131",
-newdocument_desc:"\uC2E0\uADDC\uAE00 \uC791\uC131",
-help_desc:"\uB3C4\uC6C0\uB9D0",
-blockquote_desc:"\uC778\uC6A9\uBB38",
-clipboard_msg:"\uBCF5\uC0AC/\uC798\uB77C\uB0B4\uAE30/\uBD99\uC774\uAE30\uB294 Mozilla \uBC0FFirefox \uC5D0\uC11C \uC0AC\uC6A9\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.\n\uC0C1\uC138\uC815\uBCF4\uB97C \uD45C\uC2DC\uD569\uB2C8\uAE4C?",
-path:"Path",
-newdocument:"\uD3B8\uC9D1\uC911\uC758 \uB370\uC774\uD130\uB97C \uBAA8\uB450 \uC783\uC5B4\uB3C4 \uAD1C\uCC2E\uC2B5\uB2C8\uAE4C?",
-toolbar_focus:"\uBC84\uD2BC\uC73C\uB85C \uC810\uD504 - Alt+Q, \uC5D0\uB514\uD130\uB85C \uC810\uD504 - Alt-Z, Jump to element path - Alt-X",
-more_colors:"\uADF8 \uC678\uC758 \uC0C9"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/ko_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/ko_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('ko.advanced_dlg',{
-about_title:"TinyMCE\uC5D0 \uB300\uD558\uC5EC",
-about_general:"About",
-about_help:"\uB3C4\uC6C0\uB9D0",
-about_license:"\uB77C\uC774\uC13C\uC2A4",
-about_plugins:"\uD50C\uB7EC\uADF8\uC778",
-about_plugin:"\uD50C\uB7EC\uADF8\uC778",
-about_author:"\uC81C\uC791\uC790",
-about_version:"\uBC84\uC83C",
-about_loaded:"\uC2E4\uD589\uB41C \uD50C\uB7EC\uADF8\uC778",
-anchor_title:"\uC5E5\uCEE4 \uC0BD\uC785/\uD3B8\uC9D1",
-anchor_name:"\uC5E5\uCEE4\uBA85",
-code_title:"\uC18C\uC2A4 \uD3B8\uC9D1",
-code_wordwrap:"\uC6CC\uB4DC\uB7A9",
-colorpicker_title:"\uC0C9\uC744 \uC120\uD0DD",
-colorpicker_picker_tab:"\uD53D\uCEE4",
-colorpicker_picker_title:"\uCEEC\uB7EC \uD53D\uCEE4",
-colorpicker_palette_tab:"\uD314\uB808\uD2B8",
-colorpicker_palette_title:"\uD314\uB808\uD2B8 \uC0C9",
-colorpicker_named_tab:"\uC0C9 \uC774\uB984",
-colorpicker_named_title:"\uC0C9",
-colorpicker_color:"Color:",
-colorpicker_name:"\uC0C9 \uC774\uB984:",
-charmap_title:"\uD2B9\uC218 \uBB38\uC790",
-image_title:"\uC774\uBBF8\uC9C0\uC758 \uC0BD\uC785/\uD3B8\uC9D1",
-image_src:"\uC774\uBBF8\uC9C0 URL",
-image_alt:"\uC774\uBBF8\uC9C0 \uC124\uBA85",
-image_list:"\uC774\uBBF8\uC9C0 \uBAA9\uB85D",
-image_border:"\uD14C\uB450\uB9AC\uC120",
-image_dimensions:"\uD06C\uAE30",
-image_vspace:"\uC0C1\uD558 \uC5EC\uBC31",
-image_hspace:"\uC88C\uC6B0 \uC5EC\uBC31",
-image_align:"\uC815\uB82C",
-image_align_baseline:"\uAE30\uC900\uC120",
-image_align_top:"Top",
-image_align_middle:"Middle",
-image_align_bottom:"Bottom",
-image_align_texttop:"Text top",
-image_align_textbottom:"Text bottom",
-image_align_left:"Left",
-image_align_right:"Right",
-link_title:"\uB9C1\uD06C\uC758 \uC0BD\uC785/\uD3B8\uC9D1",
-link_url:"\uB9C1\uD06C URL",
-link_target:"Target",
-link_target_same:"\uAC19\uC740\uCC3D",
-link_target_blank:"\uC0C8\uCC3D",
-link_titlefield:"\uC81C\uBAA9",
-link_is_email:"\uBA54\uC77C\uC8FC\uC18C\uAC00 \uC785\uB825\uB418\uC5C8\uC2B5\uB2C8\uB2E4.\n\uBA54\uC77C\uC8FC\uC18C\uC758 \uC55E\uC5D0 mailto:\uB97C \uBD99\uC785\uB2C8\uAE4C?",
-link_is_external:"\uC678\uBD80URL\uC774 \uC785\uB825\uB418\uC5C8\uC2B5\uB2C8\uB2E4.\nURL\uC758 \uC55E\uC5D0 http://\uB97C \uBD99\uC785\uB2C8\uAE4C?",
-link_list:"\uB9C1\uD06C \uBAA9\uB85D"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/lt.js b/chrome/content/zotero/tinymce/themes/advanced/langs/lt.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('lt.advanced',{
-style_select:"Stiliai",
-font_size:"\u0160rifto dydis",
-fontdefault:"\u0160rifto \u0161eima",
-block:"Formatas",
-paragraph:"Paragrafas",
-div:"Div \u017Eym\u0117",
-address:"Adresas",
-pre:"Preformatuotas tekstas",
-h1:"Antra\u0161t\u0117 1",
-h2:"Antra\u0161t\u0117 2",
-h3:"Antra\u0161t\u0117 3",
-h4:"Antra\u0161t\u0117 4",
-h5:"Antra\u0161t\u0117 5",
-h6:"Antra\u0161t\u0117 6",
-blockquote:"Citatos blokas",
-code:"Kodas",
-samp:"Kodo pavyzdys",
-dt:"Apibr\u0117\u017Eimo terminas",
-dd:"Apibr\u0117\u017Eimo apra\u0161ymas",
-bold_desc:"Storas (Ctrl+B)",
-italic_desc:"Pasvir\u0119s (Ctrl+I)",
-underline_desc:"Pabrauktas (Ctrl+U)",
-striketrough_desc:"Perbrauktas",
-justifyleft_desc:"Lygiuoti pagal kair\u0119",
-justifycenter_desc:"Centruoti",
-justifyright_desc:"Lygiuoti pagal de\u0161in\u0119",
-justifyfull_desc:"Lygiuoti pagal abu kra\u0161tus",
-bullist_desc:"Ner\u016B\u0161uotas s\u0105ra\u0161as",
-numlist_desc:"R\u016B\u0161uotas skai\u010Diais s\u0105ra\u0161as",
-outdent_desc:"Stumti prie kairiojo kra\u0161to",
-indent_desc:"Stumti nuo kairiojo kra\u0161to",
-undo_desc:"Atstatyti (Ctrl+Z)",
-redo_desc:"Perdaryti (Ctrl+Y)",
-link_desc:"\u012Eterpti/redaguoti nuorod\u0105",
-unlink_desc:"Pa\u0161alinti nuorod\u0105",
-image_desc:"\u012Eterpti/redaguoti paveiksl\u0117l\u012F",
-cleanup_desc:"I\u0161valyti netvarking\u0105 kod\u0105",
-code_desc:"Redaguoti HTML i\u0161eities kod\u0105",
-sub_desc:"Apatinis indeksas",
-sup_desc:"Vir\u0161utinis indeksas",
-hr_desc:"\u012Eterpti horizontali\u0105 linij\u0105",
-removeformat_desc:"Pa\u0161alinti formatavim\u0105",
-custom1_desc:"J\u016Bs\u0173 apra\u0161ymas \u010Dia",
-forecolor_desc:"Parinkti teksto spalv\u0105",
-backcolor_desc:"Parinkti fono spalv\u0105",
-charmap_desc:"\u012Eterpti nestandartin\u012F simbol\u012F",
-visualaid_desc:"Kaitalioti gaires/nematom\u0173 element\u0173 rodym\u0105",
-anchor_desc:"\u012Eterpti/redaguoti inkar\u0105",
-cut_desc:"I\u0161kirpti",
-copy_desc:"Kopijuoti",
-paste_desc:"\u012Eklijuoti",
-image_props_desc:"Paveiksl\u0117lio nustatymai",
-newdocument_desc:"Naujas dokumentas",
-help_desc:"Pagalba",
-blockquote_desc:"Citatos blokas",
-clipboard_msg:"Kopijavimas/I\u0161kirpimas/\u012Eklijavimas negalimas Mozilla ir Firefox nar\u0161ykl\u0117se.\r\nAr norite daugiau informacijos apie \u0161i\u0105 problem\u0105?",
-path:"Kelias",
-newdocument:"Ar tikrai norite i\u0161trinti vis\u0105 turin\u012F?",
-toolbar_focus:"Per\u0161okimas prie \u012Franki\u0173 juostos mygtuk\u0173 - Alt+Q, Per\u0161okimas prie redaktoriaus - Alt-Z, Per\u0161okimas prie element\u0173 kelio - Alt-X",
-more_colors:"Daugiau spalv\u0173"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/lt_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/lt_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('lt.advanced_dlg',{
-about_title:"Apie TinyMCE",
-about_general:"Apie",
-about_help:"Pagalba",
-about_license:"Licenzija",
-about_plugins:"\u012Eskiepiai",
-about_plugin:"\u012Eskiepis",
-about_author:"Autorius",
-about_version:"Versija",
-about_loaded:"U\u017Ekrauti \u012Fskiepiai",
-anchor_title:"\u012Eterpti/redaguoti inkar\u0105",
-anchor_name:"Inkaro vardas",
-code_title:"HTML i\u0161eities kodo redaktorius",
-code_wordwrap:"\u017Dod\u017Eio lau\u017Eymas",
-colorpicker_title:"Pasirinkti spalv\u0105",
-colorpicker_picker_tab:"Parink\u0117jas",
-colorpicker_picker_title:"Spalvos parink\u0117jas",
-colorpicker_palette_tab:"Palet\u0117",
-colorpicker_palette_title:"Paletin\u0117s spalvos",
-colorpicker_named_tab:"\u012Evardintosios",
-colorpicker_named_title:"\u012Evardintosios spalvos",
-colorpicker_color:"Spalva:",
-colorpicker_name:"Pavadinimas:",
-charmap_title:"Pasirinkti nestandartin\u012F simbol\u012F",
-image_title:"\u012Eterpti/redaguoti paveiksl\u0117l\u012F",
-image_src:"Paveiksl\u0117lio URL adresas",
-image_alt:"Paveiksl\u0117lio apra\u0161ymas",
-image_list:"Paveiksl\u0117li\u0173 s\u0105ra\u0161as",
-image_border:"R\u0117melis",
-image_dimensions:"I\u0161matavimai",
-image_vspace:"Vertikalus tarpas",
-image_hspace:"Horizontalus tarpas",
-image_align:"Lygiavimas",
-image_align_baseline:"Pradiniame ta\u0161ke",
-image_align_top:"Vir\u0161uje",
-image_align_middle:"Viduryje",
-image_align_bottom:"Apa\u010Dioje",
-image_align_texttop:"Teksto vir\u0161uje",
-image_align_textbottom:"Teksto apa\u010Dioje",
-image_align_left:"Kair\u0117je",
-image_align_right:"De\u0161in\u0117je",
-link_title:"\u012Eterpti/redaguoti nuorod\u0105",
-link_url:"Nuorodos URL adresas",
-link_target:"Taikinys",
-link_target_same:"Atidaryti tame pa\u010Diame lange",
-link_target_blank:"Atidaryti naujame lange",
-link_titlefield:"Pavadinimas",
-link_is_email:"URL adresas, kur\u012F \u012Fved\u0117te yra e-pa\u0161to adresas, ar norite prid\u0117ti reikaling\u0105 mailto: prefiks\u0105?",
-link_is_external:"URL adresas, kur\u012F \u012Fved\u0117te yra i\u0161orin\u0117 nuoroda, ar norite prid\u0117ti reikaling\u0105 http:// prefiks\u0105?",
-link_list:"Nuorod\u0173 s\u0105ra\u0161as"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/lv.js b/chrome/content/zotero/tinymce/themes/advanced/langs/lv.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('lv.advanced',{
-style_select:"Stili",
-font_size:"Fonta lielums",
-fontdefault:"Fonta veids",
-block:"Form\u0101ts",
-paragraph:"Rindkopa",
-div:"Div\u012Bzija",
-address:"Adrese",
-pre:"Priek\u0161format\u0113ts",
-h1:"Virsraksts 1",
-h2:"Virsraksts 2",
-h3:"Virsraksts 3",
-h4:"Virsraksts 4",
-h5:"Virsraksts 5",
-h6:"Virsraksts 6",
-blockquote:"Cit\u0101ts",
-code:"Kods",
-samp:"Koda piem\u0113rs",
-dt:"Defin\u012Bcijas termins ",
-dd:"Defin\u012Bcijas apraksts",
-bold_desc:"Treknraksts (Ctrl+B)",
-italic_desc:"Sl\u012Bpraksts (Ctrl+I)",
-underline_desc:"Pasv\u012Btrojums (Ctrl+U)",
-striketrough_desc:"P\u0101rsv\u012Btrojums",
-justifyleft_desc:"Novietot pa kreisi",
-justifycenter_desc:"Centr\u0113t",
-justifyright_desc:"Novietot pa labi",
-justifyfull_desc:"Nol\u012Bdzin\u0101t malas",
-bullist_desc:"Nenumur\u0113ts saraksts",
-numlist_desc:"Numur\u0113ts saraksts",
-outdent_desc:"Uzk\u0101pe",
-indent_desc:"Atk\u0101pe",
-undo_desc:"Atsaukt (Ctrl+Z)",
-redo_desc:"Atatsaukt (Ctrl+Y)",
-link_desc:"Ievietot/Redi\u0123\u0113t saiti",
-unlink_desc:"Atsait\u0113t",
-image_desc:"Ievietot/Redi\u0123\u0113t att\u0113lu",
-cleanup_desc:"Izt\u012Br\u012Bt nek\u0101rt\u012Bgu kodu",
-code_desc:"Redi\u0123\u0113t HTML kodu",
-sub_desc:"Apak\u0161raksts",
-sup_desc:"Aug\u0161raksts",
-hr_desc:"Ievietot horizont\u0101lu sv\u012Btru",
-removeformat_desc:"Izdz\u0113st format\u0113to",
-custom1_desc:"Tevis izdom\u0101ts apraksts \u0161eit",
-forecolor_desc:"Uzst\u0101d\u012Bt teksta kr\u0101su",
-backcolor_desc:"Uzst\u0101d\u012Bt fona kr\u0101su",
-charmap_desc:"Ievietot simbolu",
-visualaid_desc:"Uzlikt/Nov\u0101kt pal\u012Bgsv\u012Btras/neredzamos elementus",
-anchor_desc:"Ievietot/Redi\u0123\u0113t enkursaiti",
-cut_desc:"Izgriezt",
-copy_desc:"Kop\u0113t",
-paste_desc:"Iekop\u0113t",
-image_props_desc:"Bildes iestat\u012Bjumi",
-newdocument_desc:"Jauns dokuments",
-help_desc:"Pal\u012Bdz\u012Bba",
-blockquote_desc:"Cit\u0101ts",
-clipboard_msg:"Iesp\u0113ja Kop\u0113t/Izgriezt/Iekop\u0113t nav pieejama p\u0101rl\u016Bkiem Mozilla and Firefox.\r\nVai J\u016Bs v\u0113laties uzzin\u0101t vair\u0101k par \u0161o probl\u0113mu?",
-path:"Atra\u0161an\u0101s vieta",
-newdocument:"Vai J\u016Bs esat p\u0101rliecin\u0101ti, ka v\u0113laties izdz\u0113st visu saturu?",
-toolbar_focus:"Iet uz r\u012Bkpog\u0101m - Alt+Q, Iet uz redaktoru - Alt-Z, Iet uz elementa atra\u0161an\u0101s vietu - Alt-X",
-more_colors:"Vair\u0101k kr\u0101su"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/lv_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/lv_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('lv.advanced_dlg',{
-about_title:"Par TinyMCE",
-about_general:"Par",
-about_help:"Pal\u012Bdz\u012Bba",
-about_license:"Licence",
-about_plugins:"Papildmodu\u013Ci",
-about_plugin:"Papildmodulis",
-about_author:"Autors",
-about_version:"Versija",
-about_loaded:"Iestat\u012Btie papildmodu\u013Ci",
-anchor_title:"Ievietot/Redi\u0123\u0113t enkursaiti",
-anchor_name:"Enkursaites nosaukums",
-code_title:"HTML koda redaktors",
-code_wordwrap:"V\u0101rdu p\u0101rne\u0161ana jaun\u0101 rind\u0101",
-colorpicker_title:"Izv\u0113l\u0113ties kr\u0101su",
-colorpicker_picker_tab:"Izv\u0113lnis",
-colorpicker_picker_title:"Kr\u0101su izv\u0113lnis",
-colorpicker_palette_tab:"Palete",
-colorpicker_palette_title:"Kr\u0101su palete",
-colorpicker_named_tab:"Nosaukts",
-colorpicker_named_title:"Nosaukt\u0101s kr\u0101sas",
-colorpicker_color:"Kr\u0101sa:",
-colorpicker_name:"Nosaukums:",
-charmap_title:"Izv\u0113lies simbolu",
-image_title:"Ievietot/Redi\u0123\u0113t att\u0113lu",
-image_src:"Att\u0113la URL",
-image_alt:"Att\u0113la apraksts",
-image_list:"Att\u0113lu saraksts",
-image_border:"Apmale",
-image_dimensions:"Izm\u0113ri",
-image_vspace:"Vertik\u0101l\u0101 atstarpe",
-image_hspace:"Horizont\u0101l\u0101 atstarpe",
-image_align:"Novietojums",
-image_align_baseline:"Pati apak\u0161a",
-image_align_top:"Aug\u0161a",
-image_align_middle:"Vidus",
-image_align_bottom:"Apak\u0161a",
-image_align_texttop:"Teksta aug\u0161a",
-image_align_textbottom:"Teksta apak\u0161a",
-image_align_left:"Pa kreisi",
-image_align_right:"Pa labi",
-link_title:"Ievietot/Redi\u0123\u0113t saiti",
-link_url:"Saites URL",
-link_target:"M\u0113r\u0137is",
-link_target_same:"Atv\u0113rt saiti \u0161ai pa\u0161\u0101 log\u0101",
-link_target_blank:"Atv\u0113rt saiti jaun\u0101 log\u0101",
-link_titlefield:"Nosaukums",
-link_is_email:"Ievad\u012Btais URL \u0161\u0137iet ir e-pasta adrese, vai tu v\u0113lies pirms t\u0101s pievienot mailto: pried\u0113kli? ",
-link_is_external:"Ievad\u012Btais URL \u0161\u0137iet ir \u0101r\u0113j\u0101 saite, vai tu v\u0113lies pirms t\u0101s pievienot http:// pried\u0113kli?",
-link_list:"Sai\u0161u saraksts"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/mk.js b/chrome/content/zotero/tinymce/themes/advanced/langs/mk.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('mk.advanced',{
-style_select:"Stilovi",
-font_size:"Veli\u010Dina pisma",
-fontdefault:"Vrsta pisma",
-block:"Format",
-paragraph:"Paragraf",
-div:"Div",
-address:"Adresa",
-pre:"Oblikovano",
-h1:"\u041D\u0430\u0441\u043B\u043E\u0432 1",
-h2:"\u041D\u0430\u0441\u043B\u043E\u0432 2",
-h3:"\u041D\u0430\u0441\u043B\u043E\u0432 3",
-h4:"\u041D\u0430\u0441\u043B\u043E\u0432 4",
-h5:"\u041D\u0430\u0441\u043B\u043E\u0432 5",
-h6:"\u041D\u0430\u0441\u043B\u043E\u0432 6",
-blockquote:"Citat",
-code:"Kod",
-samp:"Primjer koda",
-dt:"Definicija pojma",
-dd:"Opis definicije",
-bold_desc:"Podebljaj (Ctrl+B)",
-italic_desc:"Kurziv (Ctrl+I)",
-underline_desc:"Podcrtaj (Ctrl+U)",
-striketrough_desc:"Precrtaj",
-justifyleft_desc:"Poravnaj levo",
-justifycenter_desc:"Centriraj",
-justifyright_desc:"Poravnaj desno",
-justifyfull_desc:"Poravnaj potpuno",
-bullist_desc:"Neure\u0111ena lista",
-numlist_desc:"Ure\u0111ena lista",
-outdent_desc:"Uvuci",
-indent_desc:"Izvuci",
-undo_desc:"Poni\u0161ti (Ctrl+Z)",
-redo_desc:"Ponovi (Ctrl+Y)",
-link_desc:"\u0412\u043C\u0435\u0442\u043D\u0438/uredi poveznicu",
-unlink_desc:"Poni\u0161ti poveznicu",
-image_desc:"\u0412\u043C\u0435\u0442\u043D\u0438/uredi sliku",
-cleanup_desc:"Po\u010Disti kod",
-code_desc:"Uredi HTML izvor",
-sub_desc:"Indeks",
-sup_desc:"Eksponent",
-hr_desc:"\u0412\u043C\u0435\u0442\u043D\u0438 vodoravnu crtu",
-removeformat_desc:"Poni\u0161ti oblikovanje",
-custom1_desc:"Vlastiti opis ovdje",
-forecolor_desc:"Odaberite boju teksta",
-backcolor_desc:"Odaberite boju pozadine",
-charmap_desc:"\u0412\u043C\u0435\u0442\u043D\u0438 vlastiti znak",
-visualaid_desc:"Vodilice/nevidljivi elementi",
-anchor_desc:"\u0412\u043C\u0435\u0442\u043D\u0438/uredi sidro",
-cut_desc:"Izre\u017Ei",
-copy_desc:"Kopiraj",
-paste_desc:"Zalepi",
-image_props_desc:"Svojstva slike",
-newdocument_desc:"Novi dokument",
-help_desc:"Pomo\u0107",
-blockquote_desc:"Citiraj",
-clipboard_msg:"Kopiraj/Izre\u017Ei/Zalepi nije dostupno u Mozilla i Firefox preglednicima. Vi\u0161e informacija?",
-path:"Staza",
-newdocument:"Jeste li sigurni da \u017Eelite izbrisati celi sadr\u017Eaj?",
-toolbar_focus:"Pre\u0111i na alatnu traku - Alt+Q, pre\u0111i na ure\u0111iva\u010D - Alt-Z, pre\u0111i na element path - Alt-X",
-more_colors:"Vi\u0161e boja"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/mk_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/mk_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('mk.advanced_dlg',{
-about_title:"TinyMCE",
-about_general:"\u0417\u0430 \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u0430\u0442\u0430",
-about_help:"\u041F\u043E\u043C\u043E\u0448",
-about_license:"\u041B\u0438\u0446\u0435\u043D\u0446\u0430",
-about_plugins:"\u0414\u043E\u0434\u0430\u0442\u043E\u0446\u0438",
-about_plugin:"\u0414\u043E\u0434\u0430\u0442\u043E\u043A",
-about_author:"\u0410\u0432\u0442\u043E\u0440",
-about_version:"\u0412\u0435\u0440\u0437\u0438\u0458\u0430",
-about_loaded:"\u041F\u043E\u0441\u0442\u043E\u0435\u0447\u043A\u0438 \u0434\u043E\u0434\u0430\u0442\u043E\u0446\u0438",
-anchor_title:"\u0412\u043C\u0435\u0442\u043D\u0438/\u0441\u0440\u0435\u0434\u0438 \u0441\u0438\u0434\u0440\u043E",
-anchor_name:"\u0418\u043C\u0435 \u043D\u0430 \u0441\u0438\u0434\u0440\u043E\u0442\u043E",
-code_title:"HTML \u0441\u0440\u0435\u0434\u0443\u0432\u0430\u0447",
-code_wordwrap:"\u041F\u0440\u0435\u043A\u043B\u043E\u043F\u0443\u0432\u0430\u045A\u0435 \u043D\u0430 \u0442\u0435\u043A\u0441\u0442\u043E\u0442",
-colorpicker_title:"\u0418\u0437\u0431\u043E\u0440 \u043D\u0430 \u0431\u043E\u0438",
-colorpicker_picker_tab:"\u041E\u0434\u0431\u0435\u0440\u0438",
-colorpicker_picker_title:"\u041E\u0434\u0431\u0435\u0440\u0438 \u0431\u043E\u0438",
-colorpicker_palette_tab:"\u041F\u0430\u043B\u0435\u0442\u0430",
-colorpicker_palette_title:"\u041F\u0430\u043B\u0435\u0442\u0430 \u043D\u0430 \u0431\u043E\u0438",
-colorpicker_named_tab:"\u0418\u043C\u0435\u043D\u0443\u0432\u0430\u043D\u043E",
-colorpicker_named_title:"\u0418\u043C\u0435\u043D\u0443\u0432\u0430\u043D\u0438 \u0431\u043E\u0438",
-colorpicker_color:"\u0411\u043E\u0458\u0430:",
-colorpicker_name:"\u0418\u043C\u0435:",
-charmap_title:"\u041E\u0434\u0431\u0435\u0440\u0435\u0442\u0435 \u0437\u043D\u0430\u043A",
-image_title:"\u0412\u043C\u0435\u0442\u043D\u0438/\u0441\u0440\u0435\u0434\u0438 \u0441\u043B\u0438\u043A\u0438",
-image_src:"\u041B\u0438\u043D\u043A \u043D\u0430 \u0441\u043B\u0438\u043A\u0430\u0442\u0430",
-image_alt:"\u041E\u043F\u0438\u0441 \u043D\u0430 \u0441\u043B\u0438\u043A\u0430\u0442\u0430",
-image_list:"\u041B\u0438\u0441\u0442\u0430 \u043D\u0430 \u0441\u043B\u0438\u043A\u0438\u0442\u0435",
-image_border:"\u0420\u0430\u0431",
-image_dimensions:"\u0414\u0438\u043C\u0435\u043D\u0437\u0438\u0438",
-image_vspace:"\u0412\u0435\u0440\u0442\u0438\u043A\u0430\u043B\u0435\u043D \u043F\u0440\u043E\u0441\u0442\u043E\u0440",
-image_hspace:"\u0425\u043E\u0440\u0438\u0437\u043E\u043D\u0442\u0430\u043B\u0435\u043D \u043F\u0440\u043E\u0441\u0442\u043E\u0440",
-image_align:"\u041F\u043E\u0440\u0430\u043C\u043D\u0443\u0432\u0430\u045A\u0435",
-image_align_baseline:"\u041E\u0441\u043D\u043E\u0432\u043D\u0430 \u043B\u0438\u043D\u0438\u0458\u0430",
-image_align_top:"\u0412\u0440\u0432",
-image_align_middle:"\u0421\u0440\u0435\u0434\u0438\u043D\u0430",
-image_align_bottom:"\u0414\u043D\u043E",
-image_align_texttop:"\u0412\u0440\u0432 \u043D\u0430 \u0442\u0435\u043A\u0441\u0442\u043E\u0442",
-image_align_textbottom:"\u0414\u043D\u043E \u043D\u0430 \u0442\u0435\u043A\u0441\u0442\u043E\u0442",
-image_align_left:"\u041B\u0435\u0432\u043E",
-image_align_right:"\u0414\u0435\u0441\u043D\u043E",
-link_title:"\u0412\u043C\u0435\u0442\u043D\u0438/\u0441\u0440\u0435\u0434\u0438 \u043B\u0438\u043D\u043A",
-link_url:"URL poveznice",
-link_target:"Meta",
-link_target_same:"Otvori poveznicu u istom prozoru",
-link_target_blank:"Otvori poveznicu u novom prozoru",
-link_titlefield:"\u041D\u0430\u0441\u043B\u043E\u0432",
-link_is_email:"URL koji ste uneli izgleda kao e-mail adresa, \u017Eelite li dodati potrebni mailto: prefiks?",
-link_is_external:"URL koji ste uneli izgleda kao vanjska poveznica, \u017Eelite li dodati potrebni http:// prefiks?",
-link_list:"Lista poveznica"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/ms.js b/chrome/content/zotero/tinymce/themes/advanced/langs/ms.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('ms.advanced',{
-style_select:"Gaya",
-font_size:"Saiz Huruf",
-fontdefault:"Jenis Huruf",
-block:"Format",
-paragraph:"Perenggan",
-div:"Div",
-address:"Alamat",
-pre:"Telah diformatkan",
-h1:"Tajuk 1",
-h2:"Tajuk 2",
-h3:"Tajuk 3",
-h4:"Tajuk 4",
-h5:"Tajuk 5",
-h6:"Tajuk 6",
-blockquote:"Petikan blok",
-code:"Kod",
-samp:"Contoh kod",
-dt:"Maksud terma",
-dd:"Maksud huraian",
-bold_desc:"Tebal (Ctrl+B)",
-italic_desc:"Condong (Ctrl+I)",
-underline_desc:"Garis bawah (Ctrl+U)",
-striketrough_desc:"Garis tengah",
-justifyleft_desc:"Selari kekiri",
-justifycenter_desc:"Selari ketengah",
-justifyright_desc:"Selari kekanan",
-justifyfull_desc:"Selari penuh",
-bullist_desc:"Senarai tidak tertib",
-numlist_desc:"Senarai tertib",
-outdent_desc:"Lekuk kebelakang",
-indent_desc:"Lekuk kedepan",
-undo_desc:"Undur (Ctrl+Z)",
-redo_desc:"Maju (Ctrl+Y)",
-link_desc:"Sisip/sunting pautan",
-unlink_desc:"Tiada pautan",
-image_desc:"Sisip/sunting imej",
-cleanup_desc:"Bersihkan kod",
-code_desc:"Sunting kod HTML",
-sub_desc:"Subskrip",
-sup_desc:"Superskrip",
-hr_desc:"Sisip pembaris mengufuk",
-removeformat_desc:"Alih format",
-custom1_desc:"Huraian anda di sini",
-forecolor_desc:"Pilih warna teks",
-backcolor_desc:"Pilih warna latar belakang",
-charmap_desc:"Sisip aksara",
-visualaid_desc:"Alih garis panduan/unsur tak nampak",
-anchor_desc:"Sisip/sunting anchor",
-cut_desc:"Potong",
-copy_desc:"Salin",
-paste_desc:"Tempel",
-image_props_desc:"Alatan imej",
-newdocument_desc:"Dokumen baru",
-help_desc:"Bantuan",
-blockquote_desc:"Petikan blok",
-clipboard_msg:"Salin/Potong/Tempel tidak disokong dalam Mozilla dan Firefox.\r\nAdakah anda mahu informasi lanjut tentang isu ini?",
-path:"Laluan",
-newdocument:"Hapus semua kandungan?",
-toolbar_focus:"Lompat ke butang alatan - Alt+Q, Lompat ke editor - Alt-Z, Lompat ke unsur laluan - Alt-X",
-more_colors:"Warna lain"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/ms_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/ms_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('ms.advanced_dlg',{
-about_title:"Perihal TinyMCE",
-about_general:"Perihal",
-about_help:"Bantuan",
-about_license:"Lesen",
-about_plugins:"Plugins",
-about_plugin:"Plugin",
-about_author:"Pengarang",
-about_version:"Versi",
-about_loaded:"Muatan plugins",
-anchor_title:"Sisip/sunting sauh",
-anchor_name:"Nama sauh",
-code_title:"Penyunting HTML",
-code_wordwrap:"Sisip perkataan",
-colorpicker_title:"Pilih warna",
-colorpicker_picker_tab:"Pemungut",
-colorpicker_picker_title:"Pemungut warna",
-colorpicker_palette_tab:"Palet",
-colorpicker_palette_title:"Palet warna",
-colorpicker_named_tab:"Dinamakan",
-colorpicker_named_title:"Warna telah dinamakan",
-colorpicker_color:"Warna:",
-colorpicker_name:"Nama:",
-charmap_title:"Pilih aksara sendiri",
-image_title:"Sisip/sunting imej",
-image_src:"Imej URL",
-image_alt:"Huraian imej",
-image_list:"Senarai imej",
-image_border:"Sempadan",
-image_dimensions:"Dimensi",
-image_vspace:"Ruangan tegak",
-image_hspace:"Ruangan ufuk",
-image_align:"Penyelarian",
-image_align_baseline:"Garis pangkal",
-image_align_top:"Atas",
-image_align_middle:"Tengah",
-image_align_bottom:"Bawah",
-image_align_texttop:"Teks atas",
-image_align_textbottom:"Teks bawah",
-image_align_left:"Kiri",
-image_align_right:"Kanan",
-link_title:"Sisip/sunting pautan",
-link_url:"Pautan URL",
-link_target:"Sasaran",
-link_target_same:"Buka pautan dalam tetingkap yang sama",
-link_target_blank:"Buka pautan dalam tetingkap yang sama",
-link_titlefield:"Tajuk",
-link_is_email:"URL yang anda masukkan adalah alamat emel, tambah \"mailto\": di awalan?",
-link_is_external:"URL yang anda masukkan adalah pautan luar, tambah \"http://\" di awalan?",
-link_list:"Senarai pautan"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/nb.js b/chrome/content/zotero/tinymce/themes/advanced/langs/nb.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('nb.advanced',{
-style_select:"Stiler",
-font_size:"Skriftst\u00F8rrelse",
-fontdefault:"Skriftfamilie",
-block:"Format",
-paragraph:"Avsnitt",
-div:"Div",
-address:"Adresse",
-pre:"Pre-formatert",
-h1:"Overskrift 1",
-h2:"Overskrift 2",
-h3:"Overskrift 3",
-h4:"Overskrift 4",
-h5:"Overskrift 5",
-h6:"Overskrift 6",
-blockquote:"Innrykkinnrykk",
-code:"Kode",
-samp:"Kodeeksempel",
-dt:"Definisjonsuttrykk",
-dd:"Definisjonsbeskrivelse",
-bold_desc:"Fet",
-italic_desc:"Kursiv",
-underline_desc:"Understreking",
-striketrough_desc:"Gjennomstreking",
-justifyleft_desc:"Venstrejuster",
-justifycenter_desc:"Midtstill",
-justifyright_desc:"H\u00F8yrejuster",
-justifyfull_desc:"Blokkjuster",
-bullist_desc:"Punktliste",
-numlist_desc:"Nummerliste",
-outdent_desc:"Reduser innrykk",
-indent_desc:"\u00D8k innrykk",
-undo_desc:"Angre",
-redo_desc:"Gj\u00F8r om",
-link_desc:"Sett inn / endre lenke",
-unlink_desc:"Fjern lenke",
-image_desc:"Sett inn / endre bilde",
-cleanup_desc:"Rens ukurant kode",
-code_desc:"Redigere HTML-koden",
-sub_desc:"Senket skrift",
-sup_desc:"Hevet skrift",
-hr_desc:"Sett inn horisontal linje",
-removeformat_desc:"Fjern formatering",
-custom1_desc:"Beskrivelse av spesialfunksjon",
-forecolor_desc:"Velg skriftfarge",
-backcolor_desc:"Velg bakgrunnsfarge",
-charmap_desc:"Sett inn spesialtegn",
-visualaid_desc:"Sl\u00E5 av/p\u00E5 usynlige elementer",
-anchor_desc:"Sett inn / endre anker",
-cut_desc:"Klipp ut",
-copy_desc:"Kopier",
-paste_desc:"Lim inn",
-image_props_desc:"Bildeegenskaper",
-newdocument_desc:"Nytt dokument",
-help_desc:"Hjelp",
-blockquote_desc:"Innrykk",
-clipboard_msg:"Klipp ut / Kopier /Lim inn fungerer ikke i Mozilla og Firefox. \r\n Vil du vite mer om dette?",
-path:"Sti",
-newdocument:"Er du sikker p\u00E5 at du vil slette alt innhold?",
-toolbar_focus:"Skift til verkt\u00F8yknapper - Alt+Q, Skift til editor - Alt-Z, Skift til elementsti - Alt-",
-more_colors:"Flere farger"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/nb_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/nb_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('nb.advanced_dlg',{
-about_title:"Om TinyMCE",
-about_general:"Om",
-about_help:"Hjelp",
-about_license:"Lisens",
-about_plugins:"Programtillegg",
-about_plugin:"Programtillegg",
-about_author:"Utvikler",
-about_version:"Versjon",
-about_loaded:"Lastede programtillegg",
-anchor_title:"Sett inn / endre anker",
-anchor_name:"Ankernavn",
-code_title:"HTML-editor",
-code_wordwrap:"Tekstbryting",
-colorpicker_title:"Velg en farge",
-colorpicker_picker_tab:"Velg farge",
-colorpicker_picker_title:"Fargevalg",
-colorpicker_palette_tab:"Palett",
-colorpicker_palette_title:"Palettfarger",
-colorpicker_named_tab:"Navnevalg",
-colorpicker_named_title:"Fargenavn",
-colorpicker_color:"Farge:",
-colorpicker_name:"Navn:",
-charmap_title:"Velg spesialtegn",
-image_title:"Sett inn / endre bilde",
-image_src:"Bildets URL",
-image_alt:"Bildebeskrivelse",
-image_list:"Bildeliste",
-image_border:"Ramme",
-image_dimensions:"Dimensjoner",
-image_vspace:"Vertikal avstand",
-image_hspace:"Horisontal avstand",
-image_align:"Justering",
-image_align_baseline:"Bunnlinje",
-image_align_top:"Topp",
-image_align_middle:"Midtstilt",
-image_align_bottom:"Bunn",
-image_align_texttop:"Teksttopp",
-image_align_textbottom:"Tekstbunn",
-image_align_left:"Venstre",
-image_align_right:"H\u00F8yre",
-link_title:"Sett inn /endre lenke",
-link_url:"Lenkens URL",
-link_target:"M\u00E5lside",
-link_target_same:"\u00C5pne i dette vinduet",
-link_target_blank:"\u00C5pne i nytt vindu",
-link_titlefield:"Tittel",
-link_is_email:"Nettadressen du skrev inn ser ut til \u00E5 v\u00E6re en e-postadresse. \u00D8nsker du \u00E5 legge til det p\u00E5krevde mailto:-prefikset?",
-link_is_external:"Nettadressen du skrev inn ser ut til \u00E5 v\u00E6re en ekstern nettadresse. \u00D8nsker du \u00E5 legge til det p\u00E5krevde http://-prefikset?",
-link_list:"Lenkeliste"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/nl.js b/chrome/content/zotero/tinymce/themes/advanced/langs/nl.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('nl.advanced',{
-style_select:"Stijlen",
-font_size:"Tekengrootte",
-fontdefault:"Lettertype",
-block:"Opmaak",
-paragraph:"Alinea",
-div:"Div",
-address:"Adres",
-pre:"Vaste opmaak",
-h1:"Kop 1",
-h2:"Kop 2",
-h3:"Kop 3",
-h4:"Kop 4",
-h5:"Kop 5",
-h6:"Kop 6",
-blockquote:"Citaat",
-code:"Code",
-samp:"Codevoorbeeld",
-dt:"Definitieterm",
-dd:"Definitiebeschrijving",
-bold_desc:"Vet (Ctrl+B)",
-italic_desc:"Cursief (Ctrl+I)",
-underline_desc:"Onderstrepen (Ctrl+U)",
-striketrough_desc:"Doorhalen",
-justifyleft_desc:"Links uitlijnen",
-justifycenter_desc:"Centreren",
-justifyright_desc:"Rechts uitlijnen",
-justifyfull_desc:"Uitvullen",
-bullist_desc:"Opsommingstekens",
-numlist_desc:"Nummering",
-outdent_desc:"Inspringing verkleinen",
-indent_desc:"Inspringing vergroten",
-undo_desc:"Ongedaan maken (Ctrl+Z)",
-redo_desc:"Herhalen (Ctrl+Y)",
-link_desc:"Link invoegen/bewerken",
-unlink_desc:"Link verwijderen",
-image_desc:"Afbeelding invoegen/bewerken",
-cleanup_desc:"Code opruimen",
-code_desc:"HTML bron bewerken",
-sub_desc:"Subscript",
-sup_desc:"Superscript",
-hr_desc:"Scheidingslijn invoegen",
-removeformat_desc:"Opmaak verwijderen",
-custom1_desc:"Uw eigen beschrijving hier",
-forecolor_desc:"Tekstkleur",
-backcolor_desc:"Tekstmarkeringskleur",
-charmap_desc:"Symbool invoegen",
-visualaid_desc:"Hulplijnen weergeven",
-anchor_desc:"Anker invoegen/bewerken",
-cut_desc:"Knippen",
-copy_desc:"Kopi\u00EBren",
-paste_desc:"Plakken",
-image_props_desc:"Afbeeldingseigenschappen",
-newdocument_desc:"Nieuw document",
-help_desc:"Help",
-blockquote_desc:"Citaat",
-clipboard_msg:"Kopi\u00EBren/knippen/plakken is niet beschikbaar in Mozilla en Firefox.\nWilt u meer informatie over deze beperking?",
-path:"Pad",
-newdocument:"Weet u zeker dat u alle inhoud wilt wissen?",
-toolbar_focus:"Spring naar werkbalk - Alt+Q, Spring naar tekst - Alt-Z, Spring naar elementpad - Alt-X",
-more_colors:"Meer kleuren"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/nl_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/nl_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('nl.advanced_dlg',{
-about_title:"Over TinyMCE",
-about_general:"Info",
-about_help:"Help",
-about_license:"Licentie",
-about_plugins:"Invoegtoepassingen",
-about_plugin:"Invoegtoepassing",
-about_author:"Auteur",
-about_version:"Versie",
-about_loaded:"Geladen Invoegtoepassingen",
-anchor_title:"Anker invoegen/bewerken",
-anchor_name:"Ankernaam",
-code_title:"HTML Bron",
-code_wordwrap:"Automatische terugloop",
-colorpicker_title:"Kleuren",
-colorpicker_picker_tab:"Alle kleuren",
-colorpicker_picker_title:"Alle kleuren",
-colorpicker_palette_tab:"Palet",
-colorpicker_palette_title:"Paletkleuren",
-colorpicker_named_tab:"Benoemd",
-colorpicker_named_title:"Benoemde kleuren",
-colorpicker_color:"Kleur:",
-colorpicker_name:"Naam:",
-charmap_title:"Symbolen",
-image_title:"Afbeelding invoegen/bewerken",
-image_src:"Bestand/URL",
-image_alt:"Beschrijving",
-image_list:"Lijst",
-image_border:"Rand",
-image_dimensions:"Afmetingen",
-image_vspace:"Verticale ruimte",
-image_hspace:"Horizontale ruimte",
-image_align:"Uitlijning",
-image_align_baseline:"Basislijn",
-image_align_top:"Boven",
-image_align_middle:"Midden",
-image_align_bottom:"Onder",
-image_align_texttop:"Bovenkant tekst",
-image_align_textbottom:"Onderkant tekst",
-image_align_left:"Links",
-image_align_right:"Rechts",
-link_title:"Link invoegen/bewerken",
-link_url:"URL",
-link_target:"Doel",
-link_target_same:"Link in hetzelfde venster openen",
-link_target_blank:"Link in een nieuw venster openen",
-link_titlefield:"Titel",
-link_is_email:"De ingevoerde URL lijkt op een e-mailadres. Wilt u de vereiste mailto: tekst voorvoegen?",
-link_is_external:"De ingevoerde URL lijkt op een externe link. Wilt u de vereiste http:// tekst voorvoegen?",
-link_list:"Link lijst"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/nn.js b/chrome/content/zotero/tinymce/themes/advanced/langs/nn.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('nn.advanced',{
-style_select:"Stilar",
-font_size:"Skriftstorleik",
-fontdefault:"Skriftfamilie",
-block:"Format",
-paragraph:"Avsnitt",
-div:"Div",
-address:"Adresse",
-pre:"Pre-formatert",
-h1:"Overskrift 1",
-h2:"Overskrift 2",
-h3:"Overskrift 3",
-h4:"Overskrift 4",
-h5:"Overskrift 5",
-h6:"Overskrift 6",
-blockquote:"Innrykk",
-code:"Kode",
-samp:"Kodeeksempel",
-dt:"Definisjonsuttrykk",
-dd:"Definisjonsbeskrivelse",
-bold_desc:"Feit",
-italic_desc:"Kursiv",
-underline_desc:"Understreking",
-striketrough_desc:"Gjennomstreking",
-justifyleft_desc:"Venstrejustert",
-justifycenter_desc:"Midtstilt",
-justifyright_desc:"H\u00F8grejustert",
-justifyfull_desc:"Blokkjustert",
-bullist_desc:"Punktliste",
-numlist_desc:"Nummerliste",
-outdent_desc:"Reduser innrykk",
-indent_desc:"Auk innrykk",
-undo_desc:"Angre",
-redo_desc:"Gjer om",
-link_desc:"Set inn / endre lenkje",
-unlink_desc:"Fjern lenkje",
-image_desc:"Set inn / endre bilete",
-cleanup_desc:"Rens grisete kode",
-code_desc:"Redigere HTML-koden",
-sub_desc:"Senka skrift",
-sup_desc:"Heva skrift",
-hr_desc:"Set inn horisontal linje",
-removeformat_desc:"Fjern formatering",
-custom1_desc:"Din spesialfunksjondefinisjon her",
-forecolor_desc:"Vel skriftfarge",
-backcolor_desc:"Vel bakgrunnsfarge",
-charmap_desc:"Set inn spesialteikn",
-visualaid_desc:"Sl\u00E5 av/p\u00E5 usynlige element",
-anchor_desc:"Set inn / endre anker",
-cut_desc:"Klipp ut",
-copy_desc:"Kopier",
-paste_desc:"Lim inn",
-image_props_desc:"Eigenskaper for bilete",
-newdocument_desc:"Nytt dokument",
-help_desc:"Hjelp",
-blockquote_desc:"Innrykk",
-clipboard_msg:"Klipp ut / Kopier /Lim inn fungerer ikkje i Mozilla og Firefox. \r\n Vil du vite meir om dette?",
-path:"Sti",
-newdocument:"Er du sikker p\u00E5 at du vil slette alt innhald?",
-toolbar_focus:"Skift til verktyknappar - Alt+Q, Skift til editor - Alt-Z, Skift til elementsti - Alt-",
-more_colors:"Fleire fargar"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/nn_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/nn_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('nn.advanced_dlg',{
-about_title:"Om TinyMCE",
-about_general:"Om",
-about_help:"Hjelp",
-about_license:"Lisens",
-about_plugins:"Programtillegg",
-about_plugin:"Programtillegg",
-about_author:"Utviklar",
-about_version:"Versjon",
-about_loaded:"Lasta programtillegg",
-anchor_title:"Set inn / endre anker",
-anchor_name:"Ankernamn",
-code_title:"HTML-editor",
-code_wordwrap:"Tekstbryting",
-colorpicker_title:"Vel ein farge",
-colorpicker_picker_tab:"Vel farge",
-colorpicker_picker_title:"Fargeval",
-colorpicker_palette_tab:"Palett",
-colorpicker_palette_title:"Palettfargar",
-colorpicker_named_tab:"Namneval",
-colorpicker_named_title:"Fargenamn",
-colorpicker_color:"Farge:",
-colorpicker_name:"Namn:",
-charmap_title:"Vel spesialteikn",
-image_title:"Set inn / endre bilete",
-image_src:"Bilete-URL",
-image_alt:"Bileteomtale",
-image_list:"Liste med bilete",
-image_border:"Ramme",
-image_dimensions:"Dimensjonar",
-image_vspace:"Vertikal avstand",
-image_hspace:"Horisontal avstand",
-image_align:"Justering",
-image_align_baseline:"Botnlinje",
-image_align_top:"Topp",
-image_align_middle:"Midtstilt",
-image_align_bottom:"Botn",
-image_align_texttop:"Teksttopp",
-image_align_textbottom:"Tekstbotn",
-image_align_left:"Venstre",
-image_align_right:"H\u00F8gre",
-link_title:"Set inn / endre lenkje",
-link_url:"Lenkje-URL",
-link_target:"Vindauge",
-link_target_same:"Opne i dette vindauget",
-link_target_blank:"Opne i nytt vindauget",
-link_titlefield:"Tittel",
-link_is_email:"Nettadressa du skreiv inn ser ut til \u00E5 vere ein e-postadresse. \u00D8nskjer du \u00E5 leggje til det obligatoriske mailto:-prefikset?",
-link_is_external:"Nettadressa du skreiv inn ser ut til \u00E5 vere ein ekstern nettadresse. \u00D8nskjer du \u00E5 leggje til det obligatoriske http://-prefikset?",
-link_list:"Lenkjeliste"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/pl.js b/chrome/content/zotero/tinymce/themes/advanced/langs/pl.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('pl.advanced',{
-style_select:"Styl",
-font_size:"Rozmiar czcionki",
-fontdefault:"Rodzaj czcionki",
-block:"Format",
-paragraph:"Paragraf",
-div:"Div",
-address:"Adres",
-pre:"Czcionka o sta\u0142ej szeroko\u015Bci",
-h1:"Nag\u0142\u00F3wek 1",
-h2:"Nag\u0142\u00F3wek 2",
-h3:"Nag\u0142\u00F3wek 3",
-h4:"Nag\u0142\u00F3wek 4",
-h5:"Nag\u0142\u00F3wek 5",
-h6:"Nag\u0142\u00F3wek 6",
-blockquote:"Wydzielony blok",
-code:"Kod",
-samp:"Pr\u00F3bka kodu",
-dt:"Definicja terminu ",
-dd:"Opis terminu",
-bold_desc:"Pogrubienie (Ctrl+B)",
-italic_desc:"Kursywa (Ctrl+I)",
-underline_desc:"Podkre\u015Blenie (Ctrl+U)",
-striketrough_desc:"Przekre\u015Blenia",
-justifyleft_desc:"Wyr\u00F3wnaj do lewej",
-justifycenter_desc:"Wycentruj",
-justifyright_desc:"Wyr\u00F3wnaj do prawej",
-justifyfull_desc:"R\u00F3wnanie do prawej i lewej",
-bullist_desc:"Lista nienumerowana",
-numlist_desc:"Lista numerowana",
-outdent_desc:"Cofnij wci\u0119cie",
-indent_desc:"Wci\u0119cie",
-undo_desc:"Cofnij (Ctrl+Z)",
-redo_desc:"Pon\u00F3w (Ctrl+Y)",
-link_desc:"Wstaw/edytuj link",
-unlink_desc:"Usu\u0144 link",
-image_desc:"Wstaw/edytuj obraz",
-cleanup_desc:"Wyczy\u015B\u0107 nieuporz\u0105dkowany kod",
-code_desc:"Edytuj \u017Ar\u00F3d\u0142o HTML",
-sub_desc:"Indeks dolny",
-sup_desc:"Indeks g\u00F3rny",
-hr_desc:"Wstaw poziom\u0105 lini\u0119",
-removeformat_desc:"Usu\u0144 formatowanie",
-custom1_desc:"Tw\u00F3j niestandardowy opis tutaj",
-forecolor_desc:"Wybierz kolor tekstu",
-backcolor_desc:"Wybierz kolor t\u0142a",
-charmap_desc:"Wstaw niestandardowy znak",
-visualaid_desc:"Prze\u0142\u0105cz widoczno\u015B\u0107 wska\u017Anik\u00F3w i niewidzialnych element\u00F3w",
-anchor_desc:"Wstaw/edytuj kotwic\u0119",
-cut_desc:"Wytnij",
-copy_desc:"Kopiuj",
-paste_desc:"Wklej",
-image_props_desc:"W\u0142a\u015Bciwo\u015Bci obrazka",
-newdocument_desc:"Nowy dokument",
-help_desc:"Pomoc",
-blockquote_desc:"Blok cytatu",
-clipboard_msg:"Akcje Kopiuj/Wytnij/Wklej nie s\u0105 dost\u0119pne w Mozilli i Firefox.\nCzy chcesz wi\u0119cej informacji o tym problemie?",
-path:"\u015Acie\u017Cka",
-newdocument:"Czy jeste\u015B pewnien, ze chcesz wyczy\u015Bci\u0107 ca\u0142\u0105 zawarto\u015B\u0107?",
-toolbar_focus:"Przeskocz do przycisk\u00F3w narz\u0119dzi - Alt+Q, Przeskocz do edytora - Alt-Z, Przeskocz do elementu \u015Bcie\u017Cki - Alt-X",
-more_colors:"Wi\u0119cej kolor\u00F3w"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/pl_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/pl_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('pl.advanced_dlg',{
-about_title:"O TinyMCE",
-about_general:"O TinyMCE",
-about_help:"Pomoc",
-about_license:"Licencja",
-about_plugins:"Wtyczki",
-about_plugin:"Wtyczka",
-about_author:"Autor",
-about_version:"Wersja",
-about_loaded:"Za\u0142adowane wtyczki",
-anchor_title:"Wstaw/Edytuj zakotwiczenie",
-anchor_name:"Nazwa zakotwiczenia",
-code_title:"Edytor \u017Ar\u00F3d\u0142a HTML",
-code_wordwrap:"Zawijanie s\u0142\u00F3w",
-colorpicker_title:"Wybierz kolor",
-colorpicker_picker_tab:"Wybieranie",
-colorpicker_picker_title:"Wybieranie kolor\u00F3w",
-colorpicker_palette_tab:"Paleta",
-colorpicker_palette_title:"Paleta kolor\u00F3w",
-colorpicker_named_tab:"Nazwane",
-colorpicker_named_title:"Nazwane kolory",
-colorpicker_color:"Kolor:",
-colorpicker_name:"Nazwa:",
-charmap_title:"Wybierz niestandardowy znak",
-image_title:"Wstaw/Edytuj obraz",
-image_src:"URL obrazka",
-image_alt:"Opis obrazka",
-image_list:"Lista obrazk\u00F3w",
-image_border:"Ramka",
-image_dimensions:"Rozmiary",
-image_vspace:"Pionowy odst\u0119p",
-image_hspace:"Poziomy odst\u0119p",
-image_align:"Wyr\u00F3wnanie",
-image_align_baseline:"Linia bazowa",
-image_align_top:"G\u00F3ra",
-image_align_middle:"\u015Arodek",
-image_align_bottom:"Dolny",
-image_align_texttop:"G\u00F3rny tekst",
-image_align_textbottom:"Dolny tekst",
-image_align_left:"Lewy",
-image_align_right:"Prawy",
-link_title:"Wstaw/edytuj link",
-link_url:"Link URL",
-link_target:"Cel",
-link_target_same:"Otw\u00F3rz link w tym samym oknie",
-link_target_blank:"Otw\u00F3rz link w nowym oknie",
-link_titlefield:"Tytu\u0142",
-link_is_email:"URL kt\u00F3ry otworzy\u0142e\u015B wydaje si\u0119 by\u0107 adresem mailowym, czy chcesz doda\u0107 odpowiedni prefix mailto: ?",
-link_is_external:"URL kt\u00F3ry otworzy\u0142e\u015B wydaje si\u0119 by\u0107 zewn\u0119trznym linkiem, czy chcesz doda\u0107 wymagany prefix http:// ?",
-link_list:"Lista link\u00F3w"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/pt.js b/chrome/content/zotero/tinymce/themes/advanced/langs/pt.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('pt.advanced',{
-style_select:"Estilos",
-font_size:"Tamanho",
-fontdefault:"Fam\u00EDlia(Fonte)",
-block:"Formata\u00E7\u00E3o",
-paragraph:"Par\u00E1grafo",
-div:"Div",
-address:"Endere\u00E7o",
-pre:"Pr\u00E9-formatado",
-h1:"Cabe\u00E7alho 1",
-h2:"Cabe\u00E7alho 2",
-h3:"Cabe\u00E7alho 3",
-h4:"Cabe\u00E7alho 4",
-h5:"Cabe\u00E7alho 5",
-h6:"Cabe\u00E7alho 6",
-blockquote:"Cita\u00E7\u00E3o em bloco",
-code:"C\u00F3digo",
-samp:"Amostra de c\u00F3digo",
-dt:"Termo de defini\u00E7\u00E3o",
-dd:"Descri\u00E7\u00E3o de defini\u00E7\u00E3o",
-bold_desc:"Negrito (Ctrl+B)",
-italic_desc:"It\u00E1lico (Ctrl+I)",
-underline_desc:"Sublinhado (Ctrl+U)",
-striketrough_desc:"Texto Riscado",
-justifyleft_desc:"Alinhar \u00E0\u00A0 esquerda",
-justifycenter_desc:"Centralizar",
-justifyright_desc:"Alinhar \u00E0\u00A0 direita",
-justifyfull_desc:"Justificar",
-bullist_desc:"Marcadores",
-numlist_desc:"Numera\u00E7\u00E3o",
-outdent_desc:"Diminuir recuo",
-indent_desc:"Aumentar recuo",
-undo_desc:"Desfazer (Ctrl+Z)",
-redo_desc:"Refazer (Ctrl+Y)",
-link_desc:"Inserir/editar hyperlink",
-unlink_desc:"Remover hyperlink",
-image_desc:"Inserir/editar imagem",
-cleanup_desc:"Limpar c\u00F3digo incorreto",
-code_desc:"Editar c\u00F3digo de fonte",
-sub_desc:"Subscrito",
-sup_desc:"Superscrito",
-hr_desc:"Inserir separador horizontal",
-removeformat_desc:"Remover formata\u00E7\u00E3o",
-custom1_desc:"Sua descri\u00E7\u00E3o personalizada aqui",
-forecolor_desc:"Selecionar cor do texto",
-backcolor_desc:"Selecionar cor de fundo",
-charmap_desc:"Inserir caracteres especiais",
-visualaid_desc:"Alternar guias/elementos invis\u00EDveis",
-anchor_desc:"Inserir/editar \u00E2ncora",
-cut_desc:"Cortar",
-copy_desc:"Copiar",
-paste_desc:"Colar",
-image_props_desc:"Propriedades de imagem",
-newdocument_desc:"Novo documento",
-help_desc:"Ajuda",
-blockquote_desc:"Cita\u00E7\u00E3o em bloco",
-clipboard_msg:"Copiar/cortar/colar n\u00E3o est\u00E1 dispon\u00EDvel em Mozilla e Firefox. Deseja mais informa\u00E7\u00F5es sobre isso?",
-path:"Endere\u00E7o",
-newdocument:"Tem certeza de que deseja apagar tudo?",
-toolbar_focus:"Ir para ferramentas - Alt+Q, Ir para o editor - Alt-Z, Ir para endere\u00E7o do elemento - Alt-X",
-more_colors:"Mais cores"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/pt_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/pt_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('pt.advanced_dlg',{
-about_title:"Sobre o TinyMCE",
-about_general:"Sobre",
-about_help:"Ajuda",
-about_license:"Licen\u00E7a",
-about_plugins:"Plugins",
-about_plugin:"Plugin",
-about_author:"Autor",
-about_version:"Vers\u00E3o",
-about_loaded:"Plugins Instalados",
-anchor_title:"Inserir/editar \u00E2ncora",
-anchor_name:"Nome da \u00E2ncora",
-code_title:"Editor HTML",
-code_wordwrap:"Quebra autom\u00E1tica de linha",
-colorpicker_title:"Selecione uma cor",
-colorpicker_picker_tab:"Editor",
-colorpicker_picker_title:"Editor de Cores",
-colorpicker_palette_tab:"Palheta",
-colorpicker_palette_title:"Palheta de Cores",
-colorpicker_named_tab:"Personalizadas",
-colorpicker_named_title:"Cores Personalizadas",
-colorpicker_color:"Cor:",
-colorpicker_name:"Nome:",
-charmap_title:"Selecionar caracteres personalizados",
-image_title:"Inserir/editar imagem",
-image_src:"Endere\u00E7o da imagem",
-image_alt:"Descri\u00E7\u00E3o da imagem",
-image_list:"Lista de imagens",
-image_border:"Borda",
-image_dimensions:"Dimens\u00F5es",
-image_vspace:"Espa\u00E7o Vertical",
-image_hspace:"Espa\u00E7o Horizontal",
-image_align:"Alinhamento",
-image_align_baseline:"Sobre a linha de texto",
-image_align_top:"Topo",
-image_align_middle:"Meio",
-image_align_bottom:"Embaixo",
-image_align_texttop:"Topo do texto",
-image_align_textbottom:"Base do texto",
-image_align_left:"Esquerda",
-image_align_right:"Direita",
-link_title:"Inserir/editar hyperlink",
-link_url:"URL do hyperink",
-link_target:"Alvo",
-link_target_same:"Abrir hyperlink na mesma janela",
-link_target_blank:"Abrir hyperlink em nova janela",
-link_titlefield:"T\u00EDtulo",
-link_is_email:"A URL digitada parece ser um endere\u00E7o de e-mail. Deseja acrescentar o (necess\u00E1rio) prefixo mailto:?",
-link_is_external:"A URL digitada parece conduzir a um link externo. Deseja acrescentar o (necess\u00E1rio) prefixo http://?",
-link_list:"Lista de Links"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/ro.js b/chrome/content/zotero/tinymce/themes/advanced/langs/ro.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('ro.advanced',{
-style_select:"Stiluri",
-font_size:"M\u0103rime font",
-fontdefault:"Font",
-block:"Format",
-paragraph:"Paragraf",
-div:"Div",
-address:"Adres\u0103",
-pre:"Preformatat",
-h1:"Titlu 1",
-h2:"Titlu 2",
-h3:"Titlu 3",
-h4:"Titlu 4",
-h5:"Titlu 5",
-h6:"Titlu 6",
-blockquote:"Citat",
-code:"Cod",
-samp:"Mostr\u0103 de cod",
-dt:"Termen definit ",
-dd:"Defini\u0163ie",
-bold_desc:"\u00CEngro\u015Fat (Ctrl+B)",
-italic_desc:"Italic (Ctrl+I)",
-underline_desc:"Subliniat (Ctrl+U)",
-striketrough_desc:"T\u0103iat",
-justifyleft_desc:"Aliniere la st\u00E2nga",
-justifycenter_desc:"Centrare",
-justifyright_desc:"Aliniere la dreapta",
-justifyfull_desc:"Aliniere \"justify\"",
-bullist_desc:"List\u0103 neordonat\u0103",
-numlist_desc:"List\u0103 ordonat\u0103",
-outdent_desc:"Outdenteaz\u0103",
-indent_desc:"Indenteaz\u0103",
-undo_desc:"Undo (Ctrl+Z)",
-redo_desc:"Ref\u0103 (Ctrl+Y)",
-link_desc:"Inserare/editare leg\u0103tur\u0103",
-unlink_desc:"\u015Eterge link",
-image_desc:"Inserare/editare imagine",
-cleanup_desc:"Cur\u0103\u0163are cod",
-code_desc:"Editare surs\u0103 HTML",
-sub_desc:"Subscript",
-sup_desc:"Superscript",
-hr_desc:"Insereaz\u0103 linie orizontal\u0103",
-removeformat_desc:"Anuleaz\u0103 formatarea",
-custom1_desc:"Descriere ...",
-forecolor_desc:"Culoare text",
-backcolor_desc:"Culoare fundal",
-charmap_desc:"Inserare caracter special",
-visualaid_desc:"Toggle guidelines/invisible elements",
-anchor_desc:"Inserare/editare ancor\u0103",
-cut_desc:"Taie",
-copy_desc:"Copiaz\u0103",
-paste_desc:"Lipe\u015Fte",
-image_props_desc:"Detalii imagine",
-newdocument_desc:"Document nou",
-help_desc:"Autor",
-blockquote_desc:"Citat",
-clipboard_msg:"Copiere/T\u0103iere/Lipire nu sunt disponibile \u00EEn Mozilla \u015Fi Firefox.\nDori\u0163i mai multe informa\u0163ii despre aceast\u0103 problem\u0103?",
-path:"Cale",
-newdocument:"Sigur dori\u0163i s\u0103 \u015Fterge\u0163i tot?",
-toolbar_focus:"S\u0103ri\u0163i la instrumente - Alt+Q, S\u0103ri\u0163i la editor - Alt-Z, S\u0103ri\u0163i la cale - Alt-X",
-more_colors:"Mai multe culori"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/ro_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/ro_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('ro.advanced_dlg',{
-about_title:"Despre TinyMCE",
-about_general:"Despre",
-about_help:"Ajutor",
-about_license:"Licen\u0163\u0103",
-about_plugins:"Module",
-about_plugin:"Modul",
-about_author:"Autor",
-about_version:"Versiune",
-about_loaded:"Module \u00EEnc\u0103rcate",
-anchor_title:"Inserare/editare ancor\u0103",
-anchor_name:"Nume ancor\u0103",
-code_title:"Editor surs\u0103 HTML",
-code_wordwrap:"Word wrap",
-colorpicker_title:"Alege\u0163i o culoare",
-colorpicker_picker_tab:"Picker",
-colorpicker_picker_title:"Color picker",
-colorpicker_palette_tab:"Palet\u0103",
-colorpicker_palette_title:"Palet\u0103 de culori",
-colorpicker_named_tab:"Named",
-colorpicker_named_title:"Culori denumite",
-colorpicker_color:"Culoare:",
-colorpicker_name:"Nume:",
-charmap_title:"Alege\u0163i un caracter special",
-image_title:"Insereaz\u0103/editeaz\u0103 imagine",
-image_src:"URL imagine",
-image_alt:"Descriere imagine",
-image_list:"List\u0103 de imagini",
-image_border:"Bordur\u0103",
-image_dimensions:"Dimensiuni",
-image_vspace:"Spa\u0163iu vertical",
-image_hspace:"Spa\u0163iu orizontal",
-image_align:"Aliniere",
-image_align_baseline:"Baseline",
-image_align_top:"Sus",
-image_align_middle:"La mijloc",
-image_align_bottom:"Jos",
-image_align_texttop:"Textul sus",
-image_align_textbottom:"Textul la mijloc",
-image_align_left:"St\u00E2nga",
-image_align_right:"Dreapta",
-link_title:"Insereaz\u0103/editeaz\u0103 link",
-link_url:"URL link",
-link_target:"\u0162int\u0103",
-link_target_same:"Deschide link \u00EEn aceea\u015Fi fereastr\u0103",
-link_target_blank:"Deschide link \u00EEn fereastr\u0103 nou\u0103",
-link_titlefield:"Titlu",
-link_is_email:"URL-ul pe care l-a\u0163i introdus pare a fi o adres\u0103 de email, dori\u0163i s\u0103 adaug \u015Fi prefixul mailto: necesar?",
-link_is_external:"URL-ul pe care l-a\u0163i introdus pare a fi un link extern, dori\u0163i s\u0103 adaug \u015Fi prefixul http:// necesar?",
-link_list:"Lista de linkuri"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/ru.js b/chrome/content/zotero/tinymce/themes/advanced/langs/ru.js
@@ -1,63 +0,0 @@
-tinyMCE.addI18n('ru.advanced',{
-style_select:"\u0421\u0442\u0438\u043B\u0438",
-font_size:"\u0420\u0430\u0437\u043C\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430",
-fontdefault:"\u0428\u0440\u0438\u0444\u0442",
-block:"\u0424\u043E\u0440\u043C\u0430\u0442",
-paragraph:"\u0410\u0431\u0437\u0430\u0446",
-div:"\u0420\u0430\u0437\u0434\u0435\u043B",
-address:"\u0410\u0434\u0440\u0435\u0441",
-pre:"\u041E\u0442\u0444\u043E\u0440\u043C\u0430\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0442\u0435\u043A\u0441\u0442",
-h1:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A 1",
-h2:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A 2",
-h3:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A 3",
-h4:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A 4",
-h5:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A 5",
-h6:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A 6",
-blockquote:"\u0411\u043B\u043E\u043A \u0446\u0438\u0442\u0430\u0442\u044B",
-code:"\u041A\u043E\u0434",
-samp:"\u041F\u0440\u0438\u043C\u0435\u0440 \u043A\u043E\u0434\u0430",
-dt:"\u041E\u043F\u0440\u0435\u0434\u0435\u043B\u044F\u0435\u043C\u044B\u0439 \u0442\u0435\u0440\u043C\u0438\u043D",
-dd:"\u041E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u0438\u0435 \u0442\u0435\u0440\u043C\u0438\u043D\u0430",
-bold_desc:"\u041F\u043E\u043B\u0443\u0436\u0438\u0440\u043D\u044B\u0439 (Ctrl+B)",
-italic_desc:"\u041A\u0443\u0440\u0441\u0438\u0432 (Ctrl+I)",
-underline_desc:"\u041F\u043E\u0434\u0447\u0451\u0440\u043A\u043D\u0443\u0442\u044B\u0439 (Ctrl+U)",
-striketrough_desc:"\u041F\u0435\u0440\u0435\u0447\u0451\u0440\u043A\u043D\u0443\u0442\u044B\u0439",
-justifyleft_desc:"\u0412\u044B\u0440\u0430\u0432\u043D\u0438\u0432\u0430\u043D\u0438\u0435 \u0432\u043B\u0435\u0432\u043E",
-justifycenter_desc:"\u0412\u044B\u0440\u0430\u0432\u043D\u0438\u0432\u0430\u043D\u0438\u0435 \u043F\u043E \u0446\u0435\u043D\u0442\u0440\u0443",
-justifyright_desc:"\u0412\u044B\u0440\u0430\u0432\u043D\u0438\u0432\u0430\u043D\u0438\u0435 \u0432\u043F\u0440\u0430\u0432\u043E",
-justifyfull_desc:"\u0412\u044B\u0440\u0430\u0432\u043D\u0438\u0432\u0430\u043D\u0438\u0435 \u043F\u043E \u0448\u0438\u0440\u0438\u043D\u0435",
-bullist_desc:"\u041C\u0430\u0440\u043A\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u043F\u0438\u0441\u043E\u043A",
-numlist_desc:"\u041D\u0443\u043C\u0435\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u043F\u0438\u0441\u043E\u043A",
-outdent_desc:"\u0423\u043C\u0435\u043D\u044C\u0448\u0438\u0442\u044C \u043E\u0442\u0441\u0442\u0443\u043F",
-indent_desc:"\u0423\u0432\u0435\u043B\u0438\u0447\u0438\u0442\u044C \u043E\u0442\u0441\u0442\u0443\u043F",
-undo_desc:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C (Ctrl+Z)",
-redo_desc:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C (Ctrl+Y)",
-link_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C/\u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443",
-unlink_desc:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443",
-image_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C/\u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435",
-cleanup_desc:"\u041F\u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u043A\u0440\u0438\u0432\u043E\u0439 \u043A\u043E\u0434",
-code_desc:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C HTML-\u0438\u0441\u0445\u043E\u0434\u043D\u0438\u043A",
-sub_desc:"\u041D\u0438\u0436\u043D\u0438\u0439 \u0438\u043D\u0434\u0435\u043A\u0441",
-sup_desc:"\u0412\u0435\u0440\u0445\u043D\u0438\u0439 \u0438\u043D\u0434\u0435\u043A\u0441",
-hr_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0433\u043E\u0440\u0438\u0437\u043E\u043D\u0442\u0430\u043B\u044C\u043D\u0443\u044E \u043B\u0438\u043D\u0438\u044E",
-removeformat_desc:"\u0423\u0431\u0440\u0430\u0442\u044C \u0444\u043E\u0440\u043C\u0430\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435",
-custom1_desc:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0432\u0430\u0448\u0435 \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u0435",
-forecolor_desc:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0446\u0432\u0435\u0442 \u0442\u0435\u043A\u0441\u0442\u0430",
-backcolor_desc:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0446\u0432\u0435\u0442 \u0444\u043E\u043D\u0430",
-charmap_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0439 \u0441\u0438\u043C\u0432\u043E\u043B",
-visualaid_desc:"\u0412\u043A\u043B\u044E\u0447\u0438\u0442\u044C/\u0432\u044B\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u043D\u0430\u043F\u0440\u0430\u0432\u043B\u044F\u044E\u0449\u0438\u0435/\u043D\u0435\u0432\u0438\u0434\u0438\u043C\u044B\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",
-anchor_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C/\u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u044F\u043A\u043E\u0440\u044C",
-cut_desc:"\u0412\u044B\u0440\u0435\u0437\u0430\u0442\u044C",
-copy_desc:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C",
-paste_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C",
-image_props_desc:"\u0421\u0432\u043E\u0439\u0441\u0442\u0432\u0430 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F",
-newdocument_desc:"\u041D\u043E\u0432\u044B\u0439 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442",
-help_desc:"\u041F\u043E\u043C\u043E\u0449\u044C",
-blockquote_desc:"\u0411\u043B\u043E\u043A \u0446\u0438\u0442\u0430\u0442\u044B",
-clipboard_msg:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435/\u0412\u0441\u0442\u0430\u0432\u043A\u0430 \u043D\u0435 \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442 \u0432 Mozilla \u0438 Firefox.\r\n\u0425\u043E\u0442\u0438\u0442\u0435 \u043F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435 \u0443\u0437\u043D\u0430\u0442\u044C, \u0432 \u0447\u0451\u043C \u0434\u0435\u043B\u043E?",
-path:"\u041F\u0443\u0442\u044C",
-newdocument:"\u0412\u044B \u0443\u0432\u0435\u0440\u0435\u043D\u044B, \u0447\u0442\u043E \u0445\u043E\u0442\u0438\u0442\u0435 \u043E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0432\u0441\u0451 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435?",
-toolbar_focus:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043A\u043D\u043E\u043F\u043A\u0430\u043C \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432 - Alt+Q, \u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0440\u0435\u0434\u0430\u043A\u0442\u043E\u0440\u0443 - Alt-Z, \u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u043F\u0443\u0442\u0438 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430 - Alt-X",
-more_colors:"\u0415\u0449\u0451 \u0446\u0432\u0435\u0442\u0430",
-image_delta_width:"65"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/ru_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/ru_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('ru.advanced_dlg',{
-about_title:"\u041E TinyMCE",
-about_general:"\u041E \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0435",
-about_help:"\u041F\u043E\u043C\u043E\u0449\u044C",
-about_license:"\u041B\u0438\u0446\u0435\u043D\u0437\u0438\u044F",
-about_plugins:"\u041F\u043B\u0430\u0433\u0438\u043D\u044B",
-about_plugin:"\u041F\u043B\u0430\u0433\u0438\u043D",
-about_author:"\u0410\u0432\u0442\u043E\u0440",
-about_version:"\u0412\u0435\u0440\u0441\u0438\u044F",
-about_loaded:"\u0417\u0430\u0433\u0440\u0443\u0436\u0435\u043D\u043D\u044B\u0435 \u043F\u043B\u0430\u0433\u0438\u043D\u044B",
-anchor_title:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C/\u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u044F\u043A\u043E\u0440\u044C",
-anchor_name:"\u0418\u043C\u044F \u044F\u043A\u043E\u0440\u044F",
-code_title:"\u0420\u0435\u0434\u0430\u043A\u0442\u043E\u0440 HTML-\u0438\u0441\u0445\u043E\u0434\u043D\u0438\u043A\u0430",
-code_wordwrap:"\u041F\u0435\u0440\u0435\u043D\u043E\u0441 \u0441\u043B\u043E\u0432",
-colorpicker_title:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0446\u0432\u0435\u0442",
-colorpicker_picker_tab:"\u0412\u044B\u0431\u043E\u0440",
-colorpicker_picker_title:"\u0412\u044B\u0431\u043E\u0440 \u0446\u0432\u0435\u0442\u0430",
-colorpicker_palette_tab:"\u041F\u0430\u043B\u0438\u0442\u0440\u0430",
-colorpicker_palette_title:"\u0426\u0432\u0435\u0442\u0430 \u043F\u0430\u043B\u0438\u0442\u0440\u044B",
-colorpicker_named_tab:"\u0418\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u043D\u044B\u0439",
-colorpicker_named_title:"\u0418\u043C\u0435\u043D\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0446\u0432\u0435\u0442\u0430",
-colorpicker_color:"\u0426\u0432\u0435\u0442:",
-colorpicker_name:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435:",
-charmap_title:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0439 \u0441\u0438\u043C\u0432\u043E\u043B",
-image_title:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C/\u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435",
-image_src:"\u0410\u0434\u0440\u0435\u0441 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F",
-image_alt:"\u041E\u043F\u0438\u0441\u0430\u043D\u0438\u0435 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F",
-image_list:"\u0421\u043F\u0438\u0441\u043E\u043A \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0439",
-image_border:"\u0413\u0440\u0430\u043D\u0438\u0446\u0430",
-image_dimensions:"\u0420\u0430\u0437\u043C\u0435\u0440\u044B",
-image_vspace:"\u0412\u0435\u0440\u0442\u0438\u043A\u0430\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u043E",
-image_hspace:"\u0413\u043E\u0440\u0438\u0437\u043E\u043D\u0442\u0430\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u043E",
-image_align:"\u0412\u044B\u0440\u0430\u0432\u043D\u0438\u0432\u0430\u043D\u0438\u0435",
-image_align_baseline:"\u041F\u043E \u0431\u0430\u0437\u0438\u0441\u043D\u043E\u0439 \u043B\u0438\u043D\u0438\u0438",
-image_align_top:"\u041F\u043E \u0432\u0435\u0440\u0445\u0443",
-image_align_middle:"\u041F\u043E \u0446\u0435\u043D\u0442\u0440\u0443",
-image_align_bottom:"\u041F\u043E \u043D\u0438\u0437\u0443",
-image_align_texttop:"\u041F\u043E \u0432\u0435\u0440\u0445\u0443 \u0442\u0435\u043A\u0441\u0442\u0430",
-image_align_textbottom:"\u041F\u043E \u043D\u0438\u0437\u0443 \u0442\u0435\u043A\u0441\u0442\u0430",
-image_align_left:"\u0412\u043B\u0435\u0432\u043E",
-image_align_right:"\u0412\u043F\u0440\u0430\u0432\u043E",
-link_title:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044C/\u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443",
-link_url:"\u0410\u0434\u0440\u0435\u0441 \u0441\u0441\u044B\u043B\u043A\u0438",
-link_target:"\u0426\u0435\u043B\u044C",
-link_target_same:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u0432 \u0442\u043E\u043C \u0436\u0435 \u043E\u043A\u043D\u0435",
-link_target_blank:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0441\u0441\u044B\u043B\u043A\u0443 \u0432 \u043D\u043E\u0432\u043E\u043C \u043E\u043A\u043D\u0435",
-link_titlefield:"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435",
-link_is_email:"\u0412\u0432\u0435\u0434\u0451\u043D\u043D\u044B\u0439 \u0430\u0434\u0440\u0435\u0441 \u043F\u043E\u0445\u043E\u0436 \u043D\u0430 email, \u0432\u044B \u0445\u043E\u0442\u0438\u0442\u0435 \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0440\u0435\u0444\u0438\u043A\u0441 mailto:?",
-link_is_external:"\u0412\u0432\u0435\u0434\u0451\u043D\u043D\u044B\u0439 \u0430\u0434\u0440\u0435\u0441 \u043F\u043E\u0445\u043E\u0436 \u043D\u0430 \u0432\u043D\u0435\u0448\u043D\u044E\u044E \u0441\u0441\u044B\u043B\u043A\u0443, \u0432\u044B \u0445\u043E\u0442\u0438\u0442\u0435 \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043F\u0440\u0435\u0444\u0438\u043A\u0441 http://?",
-link_list:"\u0421\u043F\u0438\u0441\u043E\u043A \u0441\u0441\u044B\u043B\u043E\u043A"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/sc.js b/chrome/content/zotero/tinymce/themes/advanced/langs/sc.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('sc.advanced',{
-style_select:"\u6837\u5F0F",
-font_size:"\u5B57\u4F53\u5927\u5C0F",
-fontdefault:"\u5B57\u4F53",
-block:"\u683C\u5F0F",
-paragraph:"\u6BB5\u843D",
-div:"Div",
-address:"\u5730\u5740",
-pre:"\u4FDD\u7559\u539F\u683C\u5F0F",
-h1:"\u4E00\u7EA7\u6807\u9898",
-h2:"\u4E8C\u7EA7\u6807\u9898",
-h3:"\u4E09\u7EA7\u6807\u9898",
-h4:"\u56DB\u7EA7\u6807\u9898",
-h5:"\u4E94\u7EA7\u6807\u9898",
-h6:"\u516D\u7EA7\u6807\u9898",
-blockquote:"\u5F15\u7528",
-code:"\u7A0B\u5E8F\u4EE3\u7801",
-samp:"\u8303\u4F8B",
-dt:"\u540D\u8BCD\u5B9A\u4E49",
-dd:"\u540D\u8BCD\u89E3\u91CA",
-bold_desc:"\u7C97\u4F53 (Ctrl+B)",
-italic_desc:"\u659C\u4F53 (Ctrl+I)",
-underline_desc:"\u4E0B\u5212\u7EBF (Ctrl+U)",
-striketrough_desc:"\u4E2D\u5212\u7EBF",
-justifyleft_desc:"\u5DE6\u5BF9\u9F50",
-justifycenter_desc:"\u5C45\u4E2D",
-justifyright_desc:"\u53F3\u5BF9\u9F50",
-justifyfull_desc:"\u4E24\u7AEF\u5BF9\u9F50",
-bullist_desc:"\u65E0\u5E8F\u5217\u8868",
-numlist_desc:"\u6709\u5E8F\u5217\u8868",
-outdent_desc:"\u51CF\u5C11\u7F29\u8FDB",
-indent_desc:"\u589E\u52A0\u7F29\u8FDB",
-undo_desc:"\u64A4\u9500(Ctrl+Z)",
-redo_desc:"\u6062\u590D(Ctrl+Y)",
-link_desc:"\u63D2\u5165/\u7F16\u8F91 \u94FE\u63A5",
-unlink_desc:"\u53D6\u6D88\u94FE\u63A5",
-image_desc:"\u63D2\u5165/\u7F16\u8F91 \u56FE\u7247",
-cleanup_desc:"\u5220\u9664\u5197\u4F59\u7801",
-code_desc:"\u7F16\u8F91HTM\u4EE3\u7801",
-sub_desc:"\u4E0B\u6807",
-sup_desc:"\u4E0A\u6807",
-hr_desc:"\u63D2\u5165\u6C34\u5E73\u7EBF",
-removeformat_desc:"\u5220\u9664\u683C\u5F0F",
-custom1_desc:"\u5728\u6B64\u8F93\u5165\u63CF\u8FF0",
-forecolor_desc:"\u9009\u62E9\u6587\u5B57\u989C\u8272",
-backcolor_desc:"\u9009\u62E9\u80CC\u666F\u989C\u8272",
-charmap_desc:"\u63D2\u5165\u7279\u6B8A\u7B26\u53F7",
-visualaid_desc:"\u663E\u793A/\u9690\u85CF\u5143\u7D20\u8FB9\u754C",
-anchor_desc:"\u63D2\u5165/\u7F16\u8F91 \u951A\u70B9",
-cut_desc:"\u526A\u5207(Ctrl+X)",
-copy_desc:"\u590D\u5236(Ctrl+C)",
-paste_desc:"\u7C98\u8D34(Ctrl+V)",
-image_props_desc:"\u56FE\u7247\u5C5E\u6027",
-newdocument_desc:"\u65B0\u5EFA\u6587\u4EF6",
-help_desc:"\u5E2E\u52A9",
-blockquote_desc:"\u5F15\u7528",
-clipboard_msg:"\u590D\u5236\u3001\u526A\u5207\u548C\u7C98\u8D34\u529F\u80FD\u5728Mozilla \u548C Firefox\u4E2D\u65E0\u6CD5\u4F7F\u7528",
-path:"\u8DEF\u5F84",
-newdocument:"\u60A8\u786E\u8BA4\u8981\u5220\u9664\u5168\u90E8\u5185\u5BB9\u5417\uFF1F",
-toolbar_focus:"\u5DE5\u5177\u680F(Alt + Q), \u7F16\u8F91\u6846(Alt - Z), \u8DEF\u5F84\u680F(Alt - X)",
-more_colors:"\u66F4\u591A\u989C\u8272"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/sc_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/sc_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('sc.advanced_dlg',{
-about_title:"\u5173\u4E8ETinyMCE",
-about_general:"\u5173\u4E8E",
-about_help:"\u5E2E\u52A9",
-about_license:"\u8BB8\u53EF\u8BC1",
-about_plugins:"\u63D2\u4EF6",
-about_plugin:"\u63D2\u4EF6",
-about_author:"\u4F5C\u8005",
-about_version:"\u7248\u672C",
-about_loaded:"\u5DF2\u52A0\u8F7D\u63D2\u4EF6",
-anchor_title:"\u63D2\u5165/\u7F16\u8F91 \u951A\u70B9",
-anchor_name:"\u951A\u70B9\u540D\u79F0",
-code_title:"HTML\u4EE3\u7801\u7F16\u8F91\u5668",
-code_wordwrap:"\u81EA\u52A8\u6362\u884C",
-colorpicker_title:"\u9009\u62E9\u989C\u8272",
-colorpicker_picker_tab:"\u53D6\u8272\u5668",
-colorpicker_picker_title:"\u53D6\u8272\u5668",
-colorpicker_palette_tab:"\u8C03\u8272\u677F",
-colorpicker_palette_title:"\u989C\u8272\u5757",
-colorpicker_named_tab:"\u6709\u540D\u989C\u8272",
-colorpicker_named_title:"\u989C\u8272\u5757",
-colorpicker_color:"\u989C\u8272:",
-colorpicker_name:"\u989C\u8272\u540D:",
-charmap_title:"\u63D2\u5165\u7279\u6B8A\u7B26\u53F7",
-image_title:"\u63D2\u5165/\u7F16\u8F91 \u56FE\u7247",
-image_src:"\u56FE\u7247\u7F51\u5740",
-image_alt:"\u56FE\u7247\u8BF4\u660E",
-image_list:"\u56FE\u7247\u5217\u8868",
-image_border:"\u8FB9\u6846",
-image_dimensions:"\u5C3A\u5BF8",
-image_vspace:"\u5782\u76F4\u95F4\u8DDD",
-image_hspace:"\u6C34\u5E73\u95F4\u8DDD",
-image_align:"\u5BF9\u9F50\u65B9\u5F0F",
-image_align_baseline:"\u57FA\u7EBF",
-image_align_top:"\u9876\u90E8\u5BF9\u9F50",
-image_align_middle:"\u4E2D\u90E8\u5BF9\u9F50",
-image_align_bottom:"\u5E95\u90E8\u5BF9\u9F50",
-image_align_texttop:"\u6587\u5B57\u4E0A\u65B9",
-image_align_textbottom:"\u6587\u5B57\u4E0B\u65B9",
-image_align_left:"\u5DE6\u5BF9\u9F50",
-image_align_right:"\u53F3\u5BF9\u9F50",
-link_title:"\u63D2\u5165/\u7F16\u8F91 \u94FE\u63A5",
-link_url:"\u94FE\u63A5\u7F51\u5740",
-link_target:"\u76EE\u6807",
-link_target_same:"\u5F53\u524D\u7A97\u53E3\u6253\u5F00",
-link_target_blank:"\u65B0\u7A97\u53E3\u6253\u5F00",
-link_titlefield:"\u6807\u9898",
-link_is_email:"\u4F60\u8F93\u5165\u7684\u662F\u7535\u5B50\u90AE\u7BB1\u5730\u5740\uFF0C\u662F\u5426\u52A0\u5165\u524D\u7F00\uFF1Amailto: ?",
-link_is_external:"\u4F60\u8F93\u5165\u7684\u662F\u5916\u90E8\u94FE\u63A5\u5730\u5740, \u662F\u5426\u52A0\u5165\u524D\u7F00\uFF1Ahttp:// ?",
-link_list:"\u94FE\u63A5\u5217\u8868"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/se.js b/chrome/content/zotero/tinymce/themes/advanced/langs/se.js
@@ -1,60 +0,0 @@
-tinyMCE.addI18n('se.advanced',{
-style_select:"Stilar",
-font_size:"Fontstorlek",
-fontdefault:"Fontfamilj",
-block:"Format",
-paragraph:"Paragraf",
-div:"Div",
-address:"Adress",
-pre:"F\u00F6rformaterad",
-h1:"Rubrik 1",
-h2:"Rubrik 2",
-h3:"Rubrik 3",
-h4:"Rubrik 4",
-h5:"Rubrik 5",
-h6:"Rubrik 6",
-blockquote:"Blockcitat",
-code:"Kodblock",
-samp:"Kodexempel",
-dt:"Definitionsterm",
-dd:"Definitionsbeskrivning",
-bold_desc:"Fet (Ctrl+B)",
-italic_desc:"Kursiv (Ctrl+I)",
-underline_desc:"Understruken (Ctrl+U)",
-striketrough_desc:"Genomstruken",
-justifyleft_desc:"V\u00E4nsterst\u00E4lld",
-justifycenter_desc:"Centrera",
-justifyright_desc:"H\u00F6gerst\u00E4lld",
-justifyfull_desc:"Justera",
-bullist_desc:"Punktlista",
-numlist_desc:"Nummerlista",
-outdent_desc:"Drag tillbaka",
-indent_desc:"Indrag",
-undo_desc:"\u00C5ngra (Ctrl+Z)",
-redo_desc:"G\u00F6r om (Ctrl+Y)",
-link_desc:"Infoga/redigera l\u00E4nk",
-unlink_desc:"Ta bort l\u00E4nk",
-image_desc:"Infoga/redigera bild",
-cleanup_desc:"St\u00E4da upp i k\u00E4llkoden",
-code_desc:"Redigera HTML k\u00E4llkoden",
-sub_desc:"Subscript",
-sup_desc:"Superscript",
-hr_desc:"Infoga horisontell skiljelinje",
-removeformat_desc:"Ta bort formatering",
-forecolor_desc:"V\u00E4lj textf\u00E4rg",
-backcolor_desc:"V\u00E4lj bakgrundsf\u00E4rg",
-charmap_desc:"Infoga specialtecken",
-visualaid_desc:"Visa/d\u00F6lj visuella hj\u00E4lpmedel",
-anchor_desc:"Infoga/redigera bokm\u00E4rke",
-cut_desc:"Klipp ut",
-copy_desc:"Kopiera",
-paste_desc:"Klistra in",
-image_props_desc:"Bildinst\u00E4llningar",
-newdocument_desc:"Nytt dokument",
-help_desc:"Hj\u00E4lp",
-blockquote_desc:"Blockcitat",
-clipboard_msg:"Kopiera/klipp ut/klistra in \u00E4r inte tillg\u00E4ngligt i din webbl\u00E4sare.\nVill du veta mer om detta?",
-path:"Element",
-newdocument:"\u00C4r du s\u00E4ker p\u00E5 att du vill radera allt inneh\u00E5ll?",
-toolbar_focus:"Hoppa till verktygsf\u00E4ltet - Alt+Q, Hoppa till redigeraren - Alt-Z, Hoppa till element listan - Alt-X"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/se_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/se_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('se.advanced_dlg',{
-about_title:"Om TinyMCE",
-about_general:"Om",
-about_help:"Hj\u00E4lp",
-about_license:"Licens",
-about_plugins:"Om plug-in",
-about_plugin:"Om plug-in",
-about_author:"Utvecklare",
-about_version:"Version",
-about_loaded:"Laddade plug-ins",
-anchor_title:"Infoga/redigera bokm\u00E4rke",
-anchor_name:"Namn",
-code_title:"HTML k\u00E4llkodsl\u00E4ge",
-code_wordwrap:"Bryt ord",
-colorpicker_title:"V\u00E4lj en f\u00E4rg",
-colorpicker_picker_tab:"V\u00E4ljare",
-colorpicker_picker_title:"F\u00E4rgv\u00E4ljare",
-colorpicker_palette_tab:"Palett",
-colorpicker_palette_title:"Palettf\u00E4rger",
-colorpicker_named_tab:"Namngivna",
-colorpicker_named_title:"Namngivna f\u00E4rger",
-colorpicker_color:"F\u00E4rg:",
-colorpicker_name:"Namn:",
-charmap_title:"V\u00E4lj ett specialtecken",
-image_title:"Infoga/redigera bild",
-image_src:"Bildens URL",
-image_alt:"Bildens beskrivning",
-image_list:"Bildlista",
-image_border:"Ram",
-image_dimensions:"Dimensioner",
-image_vspace:"Vertikalrymd",
-image_hspace:"Horisontalrymd",
-image_align:"Justering",
-image_align_baseline:"Baslinje",
-image_align_top:"Toppen",
-image_align_middle:"Mitten",
-image_align_bottom:"Botten",
-image_align_texttop:"Toppen av texten",
-image_align_textbottom:"Botten av texten",
-image_align_left:"H\u00F6ger",
-image_align_right:"V\u00E4nster",
-link_title:"Infoga/redigera l\u00E4nk",
-link_url:"L\u00E4nkens URL",
-link_target:"M\u00E5l",
-link_target_same:"\u00D6ppna l\u00E4nken i samma f\u00F6nster",
-link_target_blank:"\u00D6ppna l\u00E4nken i ett nytt f\u00F6nster",
-link_titlefield:"Titel",
-link_is_email:"L\u00E4nken du angav verkar vara en e-post adress. Vill du infoga mailto: prefixet p\u00E5 l\u00E4nken?",
-link_is_external:"L\u00E4nken du angav verkar vara en extern adress. Vill du infoga http:// prefixet p\u00E5 l\u00E4nken?",
-link_list:"L\u00E4nklista"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/si.js b/chrome/content/zotero/tinymce/themes/advanced/langs/si.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('si.advanced',{
-style_select:"Styles",
-font_size:"Font size",
-fontdefault:"Font family",
-block:"Format",
-paragraph:"Paragraph",
-div:"Div",
-address:"Address",
-pre:"Preformatted",
-h1:"Heading 1",
-h2:"Heading 2",
-h3:"Heading 3",
-h4:"Heading 4",
-h5:"Heading 5",
-h6:"Heading 6",
-blockquote:"Blockquote",
-code:"Code",
-samp:"Code sample",
-dt:"Definition term ",
-dd:"Definition description",
-bold_desc:"Bold (Ctrl+B)",
-italic_desc:"Italic (Ctrl+I)",
-underline_desc:"Underline (Ctrl+U)",
-striketrough_desc:"Strikethrough",
-justifyleft_desc:"Align left",
-justifycenter_desc:"Align center",
-justifyright_desc:"Align right",
-justifyfull_desc:"Align full",
-bullist_desc:"Unordered list",
-numlist_desc:"Ordered list",
-outdent_desc:"Outdent",
-indent_desc:"Indent",
-undo_desc:"Undo (Ctrl+Z)",
-redo_desc:"Redo (Ctrl+Y)",
-link_desc:"Insert/edit link",
-unlink_desc:"Unlink",
-image_desc:"Insert/edit image",
-cleanup_desc:"Cleanup messy code",
-code_desc:"Edit HTML Source",
-sub_desc:"Subscript",
-sup_desc:"Superscript",
-hr_desc:"Insert horizontal ruler",
-removeformat_desc:"Remove formatting",
-custom1_desc:"Your custom description here",
-forecolor_desc:"Select text color",
-backcolor_desc:"Select background color",
-charmap_desc:"Insert custom character",
-visualaid_desc:"Toggle guidelines/invisible elements",
-anchor_desc:"Insert/edit anchor",
-cut_desc:"Cut",
-copy_desc:"Copy",
-paste_desc:"Paste",
-image_props_desc:"Image properties",
-newdocument_desc:"New document",
-help_desc:"Help",
-blockquote_desc:"Blockquote",
-clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.\r\nDo you want more information about this issue?",
-path:"Path",
-newdocument:"Are you sure you want clear all contents?",
-toolbar_focus:"Jump to tool buttons - Alt+Q, Jump to editor - Alt-Z, Jump to element path - Alt-X",
-more_colors:"More colors"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/si_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/si_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('si.advanced_dlg',{
-about_title:"About TinyMCE",
-about_general:"About",
-about_help:"Help",
-about_license:"License",
-about_plugins:"Plugins",
-about_plugin:"Plugin",
-about_author:"Author",
-about_version:"Version",
-about_loaded:"Loaded plugins",
-anchor_title:"Insert/edit anchor",
-anchor_name:"Anchor name",
-code_title:"HTML Source Editor",
-code_wordwrap:"Word wrap",
-colorpicker_title:"Select a color",
-colorpicker_picker_tab:"Picker",
-colorpicker_picker_title:"Color picker",
-colorpicker_palette_tab:"Palette",
-colorpicker_palette_title:"Palette colors",
-colorpicker_named_tab:"Named",
-colorpicker_named_title:"Named colors",
-colorpicker_color:"Color:",
-colorpicker_name:"Name:",
-charmap_title:"Select custom character",
-image_title:"Insert/edit image",
-image_src:"Image URL",
-image_alt:"Image description",
-image_list:"Image list",
-image_border:"Border",
-image_dimensions:"Dimensions",
-image_vspace:"Vertical space",
-image_hspace:"Horizontal space",
-image_align:"Alignment",
-image_align_baseline:"Baseline",
-image_align_top:"Top",
-image_align_middle:"Middle",
-image_align_bottom:"Bottom",
-image_align_texttop:"Text top",
-image_align_textbottom:"Text bottom",
-image_align_left:"Left",
-image_align_right:"Right",
-link_title:"Insert/edit link",
-link_url:"Link URL",
-link_target:"Target",
-link_target_same:"Open link in the same window",
-link_target_blank:"Open link in a new window",
-link_titlefield:"Title",
-link_is_email:"The URL you entered seems to be an email address, do you want to add the required mailto: prefix?",
-link_is_external:"The URL you entered seems to external link, do you want to add the required http:// prefix?",
-link_list:"Link list"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/sk.js b/chrome/content/zotero/tinymce/themes/advanced/langs/sk.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('sk.advanced',{
-style_select:"- \u0160t\u00FDly -",
-font_size:"- Ve\u013Ekos\u0165 p\u00EDsma -",
-fontdefault:"- Typ p\u00EDsma -",
-block:"- Form\u00E1t -",
-paragraph:"Odstavec [p]",
-div:"Div",
-address:"Adresa [address]",
-pre:"Predform\u00E1t [pre]",
-h1:"Nadpis 1 [h1]",
-h2:"Nadpis 2 [h2]",
-h3:"Nadpis 3 [h3]",
-h4:"Nadpis 4 [h4]",
-h5:"Nadpis 5 [h5]",
-h6:"Nadpis 6 [h6]",
-blockquote:"Odsadenie",
-code:"K\u00F3d",
-samp:"Uk\u00E1\u017Eka k\u00F3du",
-dt:"Defin\u00EDcia podmienky",
-dd:"Defin\u00EDcia popisu",
-bold_desc:"Tu\u010Dn\u00FD text (Ctrl+B)",
-italic_desc:"\u0160ikm\u00FD text (kurziv\u00E1) (Ctrl+I)",
-underline_desc:"Pod\u010Diarknut\u00FD text (Ctrl+U)",
-striketrough_desc:"Pre\u0161krtnut\u00FD text",
-justifyleft_desc:"Zarovna\u0165 v\u013Eavo",
-justifycenter_desc:"Zarovna\u0165 na stred",
-justifyright_desc:"Zarovna\u0165 vpravo",
-justifyfull_desc:"Zarovna\u0165 do bloku",
-bullist_desc:"Zoznam s odr\u00E1\u017Ekami",
-numlist_desc:"\u010C\u00EDslovan\u00FD zoznam",
-outdent_desc:"Zmen\u0161i\u0165 odsadenie",
-indent_desc:"Zv\u00E4\u010D\u0161i\u0165 odsadenie",
-undo_desc:"Sp\u00E4\u0165 (Ctrl+Z)",
-redo_desc:"Znovu (Ctrl+Y)",
-link_desc:"Vlo\u017Ei\u0165/upravi\u0165 odkaz",
-unlink_desc:"Zru\u0161i\u0165 odkaz",
-image_desc:"Vlo\u017Ei\u0165/upravi\u0165 obr\u00E1zok",
-cleanup_desc:"Vy\u010Disti\u0165 neusporiadan\u00FD k\u00F3d",
-code_desc:"Zobrazi\u0165 HTML zdroj",
-sub_desc:"Doln\u00FD index",
-sup_desc:"Horn\u00FD index",
-hr_desc:"Vlo\u017Ei\u0165 vodorovn\u00FD odde\u013Eova\u010D",
-removeformat_desc:"Odstr\u00E1ni\u0165 form\u00E1tovanie",
-custom1_desc:"\u013Dubovoln\u00FD popisok",
-forecolor_desc:"Vyber farbu textu",
-backcolor_desc:"Vyber farbu pozadia",
-charmap_desc:"Vlo\u017Ei\u0165 vlastn\u00FD znak",
-visualaid_desc:"Zobrazi\u0165 pomocn\u00E9/skryt\u00E9 prvky",
-anchor_desc:"Vlo\u017Ei\u0165/upravi\u0165 n\u00E1zov kotvy",
-cut_desc:"Vystrihn\u00FA\u0165",
-copy_desc:"Kop\u00EDrova\u0165",
-paste_desc:"Vlo\u017Ei\u0165",
-image_props_desc:"Vlastnosti obr\u00E1zka",
-newdocument_desc:"Nov\u00FD dokument",
-help_desc:"N\u00E1poveda",
-blockquote_desc:"Citovan\u00FD text",
-clipboard_msg:"Funkcie Kop\u00EDrova\u0165/vysrihn\u00FA\u0165/vlo\u017Ei\u0165 nie su podporovan\u00E9 prehliada\u010Dmi Mozilla a Firefox. Chce\u0161 viac inform\u00E1ci\u00ED o tomto probl\u00E9me?",
-path:"Cesta",
-newdocument:"Naozaj chce\u0161 vy\u010Disti\u0165 v\u0161etok obsah?",
-toolbar_focus:"Prejdi na n\u00E1strojov\u00E9 tla\u010Didl\u00E1 - Alt+Q, Prejdi na editor - Alt-Z, Prejdi na cestu elementov - Alt-X",
-more_colors:"Viac farieb"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/sk_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/sk_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('sk.advanced_dlg',{
-about_title:"O TinyMCE",
-about_general:"O Programe",
-about_help:"N\u00E1poveda",
-about_license:"Licencia",
-about_plugins:"Pluginy",
-about_plugin:"Plugin",
-about_author:"Autor",
-about_version:"Verzia",
-about_loaded:"Na\u010D\u00EDtan\u00E9 pluginy",
-anchor_title:"Vlo\u017Ei\u0165/upravi\u0165 n\u00E1zov kotvy",
-anchor_name:"N\u00E1zov kotvy",
-code_title:"Editor HTML k\u00F3du",
-code_wordwrap:"Zalamova\u0165 riadky",
-colorpicker_title:"Vyber farbu",
-colorpicker_picker_tab:"Mie\u0161a\u010D",
-colorpicker_picker_title:"Mie\u0161a\u010D farieb",
-colorpicker_palette_tab:"Paleta",
-colorpicker_palette_title:"Paleta farieb",
-colorpicker_named_tab:"N\u00E1zvoslovia",
-colorpicker_named_title:"N\u00E1zvy farieb",
-colorpicker_color:"Farba:",
-colorpicker_name:"N\u00E1zov:",
-charmap_title:"Vyber \u0161peci\u00E1lny znak",
-image_title:"Vlo\u017Ei\u0165/editova\u0165 obr\u00E1zok",
-image_src:"URL obr\u00E1zka",
-image_alt:"Popis obr\u00E1zka",
-image_list:"Zoznam obr\u00E1zkov",
-image_border:"Okraj",
-image_dimensions:"Rozmery",
-image_vspace:"Vertik\u00E1lna medzera",
-image_hspace:"Horizont\u00E1lna medzera",
-image_align:"Usporiadanie",
-image_align_baseline:"Z\u00E1klad\u0148a",
-image_align_top:"Hore",
-image_align_middle:"Uprostred",
-image_align_bottom:"Dolu",
-image_align_texttop:"Text hore",
-image_align_textbottom:"Text dolu",
-image_align_left:"V\u013Eavo",
-image_align_right:"Vpravo",
-link_title:"Vlo\u017Ei\u0165/editova\u0165 odkaz",
-link_url:"URL odkazu",
-link_target:"Cie\u013E odkazu",
-link_target_same:"Otvori\u0165 odkaz v rovnakom okne",
-link_target_blank:"Otvori\u0165 odkaz v novom okne",
-link_titlefield:"N\u00E1zov",
-link_is_email:"Zd\u00E1 sa, \u017Ee zadan\u00E1 URL je emailov\u00E1 adresa. Chce\u0161 vlo\u017Ei\u0165 povinn\u00FD prefix mailto: ?",
-link_is_external:"Zd\u00E1 sa, \u017Ee zadan\u00E1 URL je extern\u00FD odkaz. Chce\u0161 vlo\u017Ei\u0165 povinn\u00FD prefix http:// ?",
-link_list:"Zoznam odkazov"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/sl.js b/chrome/content/zotero/tinymce/themes/advanced/langs/sl.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('sl.advanced',{
-style_select:"Izberite slog",
-font_size:"Velikost pisave",
-fontdefault:"Dru\u017Eina pisave",
-block:"oblika",
-paragraph:"odstavek",
-div:"blok",
-address:"naslov",
-pre:"predoblikovano",
-h1:"naslov 1",
-h2:"naslov 2",
-h3:"naslov 3",
-h4:"naslov 4",
-h5:"naslov 5",
-h6:"naslov 6",
-blockquote:"citat",
-code:"koda",
-samp:"kodni zgled",
-dt:"definicija - izraz",
-dd:"definicija - opis",
-bold_desc:"Krepko (Ctrl+B)",
-italic_desc:"Po\u0161evno (Ctrl+I)",
-underline_desc:"Pod\u010Drtano (Ctrl+U)",
-striketrough_desc:"Pre\u010Drtano",
-justifyleft_desc:"Poravnava levo",
-justifycenter_desc:"Poravnava na sredino",
-justifyright_desc:"Poravnava desno",
-justifyfull_desc:"Polna poravnava",
-bullist_desc:"Alineje",
-numlist_desc:"Na\u0161tevanje",
-outdent_desc:"Zamakni",
-indent_desc:"Odmakni ven",
-undo_desc:"Razveljavi (Ctrl+Z)",
-redo_desc:"Uveljavi (Ctrl+Y)",
-link_desc:"Vstavi/uredi povezavo",
-unlink_desc:"Odstrani povezavo",
-image_desc:"Vstavi/uredi sliko",
-cleanup_desc:"Pre\u010Disti kodo",
-code_desc:"Uredi kodo HTML",
-sub_desc:"Podpisano",
-sup_desc:"Nadpisano",
-hr_desc:"Vstavi \u010Drto",
-removeformat_desc:"Odstrani oblikovanje",
-custom1_desc:"Opis tule",
-forecolor_desc:"Izberite barvo pisave",
-backcolor_desc:"Izberite barvo ozadja",
-charmap_desc:"Vstavi posebni znak",
-visualaid_desc:"Preklop prikaza vodil",
-anchor_desc:"Vstavi/uredi sidro",
-cut_desc:"Izre\u017Ei",
-copy_desc:"Kopiraj",
-paste_desc:"Prilepi",
-image_props_desc:"Lastnosti slike",
-newdocument_desc:"Nov dokument",
-help_desc:"Pomo\u010D",
-blockquote_desc:"Citat",
-clipboard_msg:"Delo z odlo\u017Ei\u0161\u010Dem ni mogo\u010De v tem brskalniku. Lahko uporabljate kombinacije tipk Ctrl+X, Ctrl+C, Ctrl+V.\n\u017Delite ve\u010D informacij o tem?",
-path:"Pot",
-newdocument:"Ste prepri\u010Dani, da \u017Eelite odstraniti vsebino?",
-toolbar_focus:"Preskok na orodjarno - Alt+Q, Preskok v urejevalnik - Alt-Z, Preskok na pot elementa - Alt-X",
-more_colors:"Ve\u010D barv"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/sl_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/sl_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('sl.advanced_dlg',{
-about_title:"O TinyMCE",
-about_general:"Vizitka",
-about_help:"Pomo\u010D",
-about_license:"Licenca",
-about_plugins:"Vsadki",
-about_plugin:"Vsadek",
-about_author:"Avtor",
-about_version:"Verzija",
-about_loaded:"Nalo\u017Eeni vsadki",
-anchor_title:"Vstavi/uredi sidro",
-anchor_name:"Ime sidra",
-code_title:"Urejevalnik kode HTML",
-code_wordwrap:"Prelomi vrstice",
-colorpicker_title:"Izberite barvo",
-colorpicker_picker_tab:"Izbor",
-colorpicker_picker_title:"Izbor barve",
-colorpicker_palette_tab:"Paleta",
-colorpicker_palette_title:"Barve palete",
-colorpicker_named_tab:"Poimenovane",
-colorpicker_named_title:"Poimenovane barve",
-colorpicker_color:"Barva:",
-colorpicker_name:"Ime:",
-charmap_title:"Izberite posebni znak",
-image_title:"Vstavi/uredi sliko",
-image_src:"Naslov URL slike",
-image_alt:"Opis slike",
-image_list:"Seznam slik",
-image_border:"Obroba",
-image_dimensions:"Dimenzije",
-image_vspace:"Prostor zg/sp",
-image_hspace:"Prostor le/de",
-image_align:"Poravnava",
-image_align_baseline:"osnovna \u010Drta",
-image_align_top:"vrh",
-image_align_middle:"sredina",
-image_align_bottom:"dno",
-image_align_texttop:"vrh besedila",
-image_align_textbottom:"dno besedila",
-image_align_left:"levo, plavajo\u010De",
-image_align_right:"desno, plavajo\u010De",
-link_title:"Vstavi/uredi povezavo",
-link_url:"Naslov URL",
-link_target:"Ime cilja",
-link_target_same:"odpri povezavo v istem oknu",
-link_target_blank:"odpri povezavo v novem oknu",
-link_titlefield:"Naslov",
-link_is_email:"Vneseni naslov verjetno prestavlja e-naslov, \u017Eelite da dodam zahtevano predpono \'mailto:\'?",
-link_is_external:"Vneseni naslov verjetno predstavlja zunanjo povezavo, \u017Eelite da dodam zahtevano predpono \'http://\'?",
-link_list:"Seznam povezav"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/sq.js b/chrome/content/zotero/tinymce/themes/advanced/langs/sq.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('sq.advanced',{
-style_select:"Stilet",
-font_size:"Madh\u00EBsia e tekstit",
-fontdefault:"Familja e tekstit",
-block:"Formati",
-paragraph:"Paragraf",
-div:"Div",
-address:"Adres\u00EB",
-pre:"Para formatuar",
-h1:"Kok\u00EB 1",
-h2:"Kok\u00EB 2",
-h3:"Kok\u00EB 3",
-h4:"Kok\u00EB 4",
-h5:"Kok\u00EB 5",
-h6:"Kok\u00EB 6",
-blockquote:"Bllok",
-code:"Kod",
-samp:"Shembull kodi",
-dt:"Terma p\u00EBrcaktimit ",
-dd:"P\u00EBrshkrimi p\u00EBrcaktimit",
-bold_desc:"I Trash\u00EB (Ctrl+B)",
-italic_desc:"I Pjerr\u00EBt (Ctrl+I)",
-underline_desc:"I N\u00EBnvizuar (Ctrl+U)",
-striketrough_desc:"Vij\u00EB n\u00EB mes",
-justifyleft_desc:"Drejtimi majtas",
-justifycenter_desc:"Drejtimi qend\u00EBr",
-justifyright_desc:"Drejtimi djathtas",
-justifyfull_desc:"Drejtim i plot\u00EB",
-bullist_desc:"List\u00EB e parregullt",
-numlist_desc:"List\u00EB e rregullt",
-outdent_desc:"Hiq kryerradh\u00EB",
-indent_desc:"Vendos kryerradh\u00EB",
-undo_desc:"\u00E7b\u00EBj (Ctrl+Z)",
-redo_desc:"Rib\u00EBj (Ctrl+Y)",
-link_desc:"Fut/edito lidhje",
-unlink_desc:"Hiq lidhje",
-image_desc:"Fut/edito foto",
-cleanup_desc:"Pastro kodin",
-code_desc:"Edito kodin HTML",
-sub_desc:"N\u00EBn shkrim",
-sup_desc:"Mbi shkrim",
-hr_desc:"Fut linj\u00EB horizontale",
-removeformat_desc:"Fshi formatimin",
-custom1_desc:"P\u00EBshkrimi personalizuar k\u00EBtu",
-forecolor_desc:"Zgjidh ngjyr\u00EBn e tekstit",
-backcolor_desc:"Zgjidh ngjyr\u00EBn e fush\u00EBs",
-charmap_desc:"Fut karakter t\u00EB personalizuar",
-visualaid_desc:"Shfaq/Fshih vijat ndihm\u00EBse dhe element\u00EBt e paduksh\u00EBm",
-anchor_desc:"Fut/edito lidhje",
-cut_desc:"Prit",
-copy_desc:"Kopjo",
-paste_desc:"Ngjit",
-image_props_desc:"Opsionet e fotos",
-newdocument_desc:"Dokument i Ri",
-help_desc:"Ndihm\u00EB",
-blockquote_desc:"Bllok",
-clipboard_msg:"Kopja/Prerja/Ngjitja nuk suportohen n\u00EB Mozilla dhe Firefox.\nD\u00EBshironi m\u00EB shum\u00EB informacione p\u00EBr k\u00EBt\u00EB \u00E7\u00EBshtje?",
-path:"Rruga",
-newdocument:"Jeni t\u00EB sigurt q\u00EB doni t'a fshini p\u00EBrmbajtjen?",
-toolbar_focus:"Shko tek butonat - Alt+Q, Shko tek editori - Alt-Z, Shko tek rruga e elementit - Alt-X",
-more_colors:"M\u00EB shum\u00EB ngjyra"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/sq_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/sq_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('sq.advanced_dlg',{
-about_title:"Rreth TinyMCE",
-about_general:"Rreh",
-about_help:"Ndihm\u00EB",
-about_license:"Li\u00E7enca",
-about_plugins:"Plugins",
-about_plugin:"Plugin",
-about_author:"Autori",
-about_version:"Versioni",
-about_loaded:"Plugin t\u00EB ngarkuara",
-anchor_title:"Fut/edito lidhje",
-anchor_name:"Emri i lidhjes",
-code_title:"Edituesi kodit HTML",
-code_wordwrap:"Word wrap",
-colorpicker_title:"Zgjidh nj\u00EB ngjyr\u00EB",
-colorpicker_picker_tab:"Zgjedh\u00EBsi",
-colorpicker_picker_title:"Zgjedh\u00EBsi ngjyr\u00EBs",
-colorpicker_palette_tab:"Librari",
-colorpicker_palette_title:"Ngjyrat e Palette",
-colorpicker_named_tab:"Em\u00EBruar",
-colorpicker_named_title:"Ngjyrat e em\u00EBruara",
-colorpicker_color:"Ngjyra:",
-colorpicker_name:"Emri:",
-charmap_title:"Zgjidh karakter t\u00EB personalizuar",
-image_title:"Fut/edio foto",
-image_src:"URL e fotos",
-image_alt:"P\u00EBrshkrimi i fotos",
-image_list:"Lista e fotove",
-image_border:"Korniza",
-image_dimensions:"P\u00EBrmasat",
-image_vspace:"Hap\u00EBsira Vertikale",
-image_hspace:"Hap\u00EBsira Horizontale",
-image_align:"Drejtimi",
-image_align_baseline:"Vij\u00EB fundore",
-image_align_top:"Krye",
-image_align_middle:"Mes",
-image_align_bottom:"Fund",
-image_align_texttop:"N\u00EB krye t\u00EB tekstit",
-image_align_textbottom:"N\u00EB fund t\u00EB tekstit",
-image_align_left:"Majtas",
-image_align_right:"Djathtas",
-link_title:"Fut/edito lidhje",
-link_url:"URL e lidhjes",
-link_target:"Sh\u00EBnjestra",
-link_target_same:"Hape lidhjen n\u00EB t\u00EB nj\u00EBjt\u00EBn dritare",
-link_target_blank:"Hape lidhjen n\u00EB dritare t\u00EB re",
-link_titlefield:"Titulli",
-link_is_email:"Lidhja q\u00EB keni futur duket si adres\u00EB emaili. Doni t\u00EB shtoni prefiksin mailto:?",
-link_is_external:"Lidhja q\u00EB keni futur duket si lidhje e jasht\u00EBme. Doni t\u00EB shtoni prefiksin http://?",
-link_list:"Lista e lidhjeve"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/sr.js b/chrome/content/zotero/tinymce/themes/advanced/langs/sr.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('sr.advanced',{
-style_select:"Stilovi",
-font_size:"Veli\u010Dina pisma",
-fontdefault:"Vrsta pisma",
-block:"Format",
-paragraph:"Paragraf",
-div:"Div",
-address:"Adresa",
-pre:"Oblikovano",
-h1:"Naslov 1",
-h2:"Naslov 2",
-h3:"Naslov 3",
-h4:"Naslov 4",
-h5:"Naslov 5",
-h6:"Naslov 6",
-blockquote:"Citat",
-code:"Kod",
-samp:"Primjer koda",
-dt:"Definicija pojma",
-dd:"Opis definicije",
-bold_desc:"Podebljaj (Ctrl+B)",
-italic_desc:"Kurziv (Ctrl+I)",
-underline_desc:"Podcrtaj (Ctrl+U)",
-striketrough_desc:"Precrtaj",
-justifyleft_desc:"Poravnaj levo",
-justifycenter_desc:"Centriraj",
-justifyright_desc:"Poravnaj desno",
-justifyfull_desc:"Poravnaj potpuno",
-bullist_desc:"Neure\u0111ena lista",
-numlist_desc:"Ure\u0111ena lista",
-outdent_desc:"Uvuci",
-indent_desc:"Izvuci",
-undo_desc:"Poni\u0161ti (Ctrl+Z)",
-redo_desc:"Ponovi (Ctrl+Y)",
-link_desc:"Umetni/uredi poveznicu",
-unlink_desc:"Poni\u0161ti poveznicu",
-image_desc:"Umetni/uredi sliku",
-cleanup_desc:"Po\u010Disti kod",
-code_desc:"Uredi HTML izvor",
-sub_desc:"Indeks",
-sup_desc:"Eksponent",
-hr_desc:"Umetni vodoravnu crtu",
-removeformat_desc:"Poni\u0161ti oblikovanje",
-custom1_desc:"Vlastiti opis ovdje",
-forecolor_desc:"Odaberite boju teksta",
-backcolor_desc:"Odaberite boju pozadine",
-charmap_desc:"Umetni vlastiti znak",
-visualaid_desc:"Vodilice/nevidljivi elementi",
-anchor_desc:"Umetni/uredi sidro",
-cut_desc:"Izre\u017Ei",
-copy_desc:"Kopiraj",
-paste_desc:"Zalepi",
-image_props_desc:"Svojstva slike",
-newdocument_desc:"Novi dokument",
-help_desc:"Pomo\u0107",
-blockquote_desc:"Citiraj",
-clipboard_msg:"Kopiraj/Izre\u017Ei/Zalepi nije dostupno u Mozilla i Firefox preglednicima. Vi\u0161e informacija?",
-path:"Staza",
-newdocument:"Jeste li sigurni da \u017Eelite izbrisati celi sadr\u017Eaj?",
-toolbar_focus:"Pre\u0111i na alatnu traku - Alt+Q, pre\u0111i na ure\u0111iva\u010D - Alt-Z, pre\u0111i na element path - Alt-X",
-more_colors:"Vi\u0161e boja"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/sr_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/sr_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('sr.advanced_dlg',{
-about_title:"TinyMCE",
-about_general:"O programu",
-about_help:"Pomo\u0107",
-about_license:"Licenca",
-about_plugins:"Dodaci",
-about_plugin:"Dodatak",
-about_author:"Autor",
-about_version:"Verzija",
-about_loaded:"Postoje\u0107i dodaci",
-anchor_title:"Umetni/uredi sidro",
-anchor_name:"Ime sidra",
-code_title:"HTML ure\u0111iva\u010D",
-code_wordwrap:"Omatanje teksta",
-colorpicker_title:"Izbor boje",
-colorpicker_picker_tab:"Odabir",
-colorpicker_picker_title:"Odabir boje",
-colorpicker_palette_tab:"Paleta",
-colorpicker_palette_title:"Paleta boja",
-colorpicker_named_tab:"Imenovano",
-colorpicker_named_title:"Imenovane boje",
-colorpicker_color:"Boja:",
-colorpicker_name:"Naziv:",
-charmap_title:"Odaberite znak",
-image_title:"Umetni/uredi sliku",
-image_src:"URL slike",
-image_alt:"Opis slike",
-image_list:"Lista slika",
-image_border:"Obrub",
-image_dimensions:"Dimenzije",
-image_vspace:"Okomiti razmak",
-image_hspace:"Vodoravni razmak",
-image_align:"Poravnavanje",
-image_align_baseline:"Osnovna linija",
-image_align_top:"Vrh",
-image_align_middle:"Sredina",
-image_align_bottom:"Dno",
-image_align_texttop:"Vrh teksta",
-image_align_textbottom:"Dno teksta",
-image_align_left:"Levo",
-image_align_right:"Desno",
-link_title:"Umetni/uredi poveznicu",
-link_url:"URL poveznice",
-link_target:"Meta",
-link_target_same:"Otvori poveznicu u istom prozoru",
-link_target_blank:"Otvori poveznicu u novom prozoru",
-link_titlefield:"Naslov",
-link_is_email:"URL koji ste uneli izgleda kao e-mail adresa, \u017Eelite li dodati potrebni mailto: prefiks?",
-link_is_external:"URL koji ste uneli izgleda kao vanjska poveznica, \u017Eelite li dodati potrebni http:// prefiks?",
-link_list:"Lista poveznica"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/sv.js b/chrome/content/zotero/tinymce/themes/advanced/langs/sv.js
@@ -1,60 +0,0 @@
-tinyMCE.addI18n('sv.advanced',{
-style_select:"Stilar",
-font_size:"Fontstorlek",
-fontdefault:"Fontfamilj",
-block:"Format",
-paragraph:"Paragraf",
-div:"Div",
-address:"Adress",
-pre:"F\u00F6rformaterad",
-h1:"Rubrik 1",
-h2:"Rubrik 2",
-h3:"Rubrik 3",
-h4:"Rubrik 4",
-h5:"Rubrik 5",
-h6:"Rubrik 6",
-blockquote:"Blockcitat",
-code:"Kodblock",
-samp:"Kodexempel",
-dt:"Definitionsterm",
-dd:"Definitionsbeskrivning",
-bold_desc:"Fet (Ctrl+B)",
-italic_desc:"Kursiv (Ctrl+I)",
-underline_desc:"Understruken (Ctrl+U)",
-striketrough_desc:"Genomstruken",
-justifyleft_desc:"V\u00E4nsterst\u00E4lld",
-justifycenter_desc:"Centrera",
-justifyright_desc:"H\u00F6gerst\u00E4lld",
-justifyfull_desc:"Justera",
-bullist_desc:"Punktlista",
-numlist_desc:"Nummerlista",
-outdent_desc:"Drag tillbaka",
-indent_desc:"Indrag",
-undo_desc:"\u00C5ngra (Ctrl+Z)",
-redo_desc:"G\u00F6r om (Ctrl+Y)",
-link_desc:"Infoga/redigera l\u00E4nk",
-unlink_desc:"Ta bort l\u00E4nk",
-image_desc:"Infoga/redigera bild",
-cleanup_desc:"St\u00E4da upp i k\u00E4llkoden",
-code_desc:"Redigera HTML k\u00E4llkoden",
-sub_desc:"Subscript",
-sup_desc:"Superscript",
-hr_desc:"Infoga horisontell skiljelinje",
-removeformat_desc:"Ta bort formatering",
-forecolor_desc:"V\u00E4lj textf\u00E4rg",
-backcolor_desc:"V\u00E4lj bakgrundsf\u00E4rg",
-charmap_desc:"Infoga specialtecken",
-visualaid_desc:"Visa/d\u00F6lj visuella hj\u00E4lpmedel",
-anchor_desc:"Infoga/redigera bokm\u00E4rke",
-cut_desc:"Klipp ut",
-copy_desc:"Kopiera",
-paste_desc:"Klistra in",
-image_props_desc:"Bildinst\u00E4llningar",
-newdocument_desc:"Nytt dokument",
-help_desc:"Hj\u00E4lp",
-blockquote_desc:"Blockcitat",
-clipboard_msg:"Kopiera/klipp ut/klistra in \u00E4r inte tillg\u00E4ngligt i din webbl\u00E4sare.\nVill du veta mer om detta?",
-path:"Element",
-newdocument:"\u00C4r du s\u00E4ker p\u00E5 att du vill radera allt inneh\u00E5ll?",
-toolbar_focus:"Hoppa till verktygsf\u00E4ltet - Alt+Q, Hoppa till redigeraren - Alt-Z, Hoppa till element listan - Alt-X"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/sv_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/sv_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('sv.advanced_dlg',{
-about_title:"Om TinyMCE",
-about_general:"Om",
-about_help:"Hj\u00E4lp",
-about_license:"Licens",
-about_plugins:"Om plug-in",
-about_plugin:"Om plug-in",
-about_author:"Utvecklare",
-about_version:"Version",
-about_loaded:"Laddade plug-ins",
-anchor_title:"Infoga/redigera bokm\u00E4rke",
-anchor_name:"Namn",
-code_title:"HTML k\u00E4llkodsl\u00E4ge",
-code_wordwrap:"Bryt ord",
-colorpicker_title:"V\u00E4lj en f\u00E4rg",
-colorpicker_picker_tab:"V\u00E4ljare",
-colorpicker_picker_title:"F\u00E4rgv\u00E4ljare",
-colorpicker_palette_tab:"Palett",
-colorpicker_palette_title:"Palettf\u00E4rger",
-colorpicker_named_tab:"Namngivna",
-colorpicker_named_title:"Namngivna f\u00E4rger",
-colorpicker_color:"F\u00E4rg:",
-colorpicker_name:"Namn:",
-charmap_title:"V\u00E4lj ett specialtecken",
-image_title:"Infoga/redigera bild",
-image_src:"Bildens URL",
-image_alt:"Bildens beskrivning",
-image_list:"Bildlista",
-image_border:"Ram",
-image_dimensions:"Dimensioner",
-image_vspace:"Vertikalrymd",
-image_hspace:"Horisontalrymd",
-image_align:"Justering",
-image_align_baseline:"Baslinje",
-image_align_top:"Toppen",
-image_align_middle:"Mitten",
-image_align_bottom:"Botten",
-image_align_texttop:"Toppen av texten",
-image_align_textbottom:"Botten av texten",
-image_align_left:"V\u00E4nster",
-image_align_right:"H\u00F6ger",
-link_title:"Infoga/redigera l\u00E4nk",
-link_url:"L\u00E4nkens URL",
-link_target:"M\u00E5l",
-link_target_same:"\u00D6ppna l\u00E4nken i samma f\u00F6nster",
-link_target_blank:"\u00D6ppna l\u00E4nken i ett nytt f\u00F6nster",
-link_titlefield:"Titel",
-link_is_email:"L\u00E4nken du angav verkar vara en e-post adress. Vill du infoga mailto: prefixet p\u00E5 l\u00E4nken?",
-link_is_external:"L\u00E4nken du angav verkar vara en extern adress. Vill du infoga http:// prefixet p\u00E5 l\u00E4nken?",
-link_list:"L\u00E4nklista"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/tr.js b/chrome/content/zotero/tinymce/themes/advanced/langs/tr.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('tr.advanced',{
-style_select:"Stiller",
-font_size:"Yaz\u0131 boyutu",
-fontdefault:"Yaz\u0131 tipi",
-block:"Bi\u00E7im",
-paragraph:"Paragraf",
-div:"B\u00F6l\u00FCm",
-address:"Adres",
-pre:"\u00D6nformatl\u0131",
-h1:"Ba\u015Fl\u0131k 1",
-h2:"Ba\u015Fl\u0131k 2",
-h3:"Ba\u015Fl\u0131k 3",
-h4:"Ba\u015Fl\u0131k 4",
-h5:"Ba\u015Fl\u0131k 5",
-h6:"Ba\u015Fl\u0131k 6",
-blockquote:"Al\u0131nt\u0131",
-code:"Kod",
-samp:"Kod \u00F6rne\u011Fi",
-dt:"Tan\u0131m terimi ",
-dd:"Tan\u0131m a\u00E7\u0131klamas\u0131",
-bold_desc:"Kal\u0131n (Ctrl+B)",
-italic_desc:"E\u011Fik (Ctrl+I)",
-underline_desc:"Alt\u0131 \u00E7izgili (Ctrl+U)",
-striketrough_desc:"Ortas\u0131 \u00E7izgili",
-justifyleft_desc:"Sola yasla",
-justifycenter_desc:"Ortala",
-justifyright_desc:"Sa\u011Fa yasla",
-justifyfull_desc:"\u0130ki yana yasla",
-bullist_desc:"S\u0131ras\u0131z liste",
-numlist_desc:"S\u0131ral\u0131 liste",
-outdent_desc:"D\u0131\u015Fa kayd\u0131r",
-indent_desc:"\u0130\u00E7e kayd\u0131r",
-undo_desc:"Geri al (Ctrl+Z)",
-redo_desc:"Tekrarla (Ctrl+Y)",
-link_desc:"Ba\u011Flant\u0131 ekle/d\u00FCzenle",
-unlink_desc:"Ba\u011Flant\u0131y\u0131 sil",
-image_desc:"Resim ekle/d\u00FCzenle",
-cleanup_desc:"Da\u011F\u0131n\u0131k kodu temizle",
-code_desc:"HTML Kayna\u011F\u0131n\u0131 D\u00FCzenle",
-sub_desc:"Altsimge",
-sup_desc:"\u00DCstsimge",
-hr_desc:"Yatay \u00E7izgi ekle",
-removeformat_desc:"Bi\u00E7imi kald\u0131r",
-custom1_desc:"\u00D6zel a\u00E7\u0131klaman\u0131z\u0131 buraya girin",
-forecolor_desc:"Metin rengi se\u00E7",
-backcolor_desc:"Arkaplan rengi se\u00E7",
-charmap_desc:"\u00D6zel karakter ekle",
-visualaid_desc:"Y\u00F6nergeleri ve g\u00F6r\u00FCnmez elemanlar\u0131 a\u00E7/kapa",
-anchor_desc:"\u00C7engel noktas\u0131 ekle",
-cut_desc:"Kes",
-copy_desc:"Kopyala",
-paste_desc:"Yap\u0131\u015Ft\u0131r",
-image_props_desc:"Resim \u00F6zellikleri",
-newdocument_desc:"Yeni belge",
-help_desc:"Yard\u0131m",
-blockquote_desc:"Al\u0131nt\u0131",
-clipboard_msg:"Kopyala/Kes/Yap\u0131\u015Ft\u0131r Mozilla ve Firefox'ta kullan\u0131lamaz.\r\nBu konuda daha fazla bilgi edinmek ister misiniz?",
-path:"Yol",
-newdocument:"T\u00FCm i\u00E7eri\u011Fi bo\u015Faltmak istedinizden emin misiniz?",
-toolbar_focus:"Ara\u00E7 d\u00FC\u011Fmelerine atla - Alt+Q, Edit\u00F6re atla - Alt-Z, Eleman yoluna atla - Alt-X",
-more_colors:"Daha fazla renk"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/tr_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/tr_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('tr.advanced_dlg',{
-about_title:"TinyMCE Hakk\u0131nda",
-about_general:"Hakk\u0131nda",
-about_help:"Yard\u0131m",
-about_license:"Lisans",
-about_plugins:"Eklentiler",
-about_plugin:"Eklenti",
-about_author:"Yazar",
-about_version:"S\u00FCr\u00FCm",
-about_loaded:"Y\u00FCkl\u00FC eklentiler",
-anchor_title:"\u00C7engel noktas\u0131 ekle/d\u00FCzenle",
-anchor_name:"\u00C7engel noktas\u0131 ad\u0131",
-code_title:"HTML Kaynak Edit\u00F6r\u00FC",
-code_wordwrap:"S\u00F6zc\u00FCk kayd\u0131r",
-colorpicker_title:"Bir renk se\u00E7",
-colorpicker_picker_tab:"Se\u00E7ici",
-colorpicker_picker_title:"Renk se\u00E7ici",
-colorpicker_palette_tab:"Palet",
-colorpicker_palette_title:"Palet renkleri",
-colorpicker_named_tab:"\u0130simli",
-colorpicker_named_title:"\u0130simli renkler",
-colorpicker_color:"Renk:",
-colorpicker_name:"\u0130sim:",
-charmap_title:"\u00D6zel karakter se\u00E7",
-image_title:"Resim ekle/d\u00FCzenle",
-image_src:"Resim URL",
-image_alt:"Resim tan\u0131m\u0131",
-image_list:"Resim listesi",
-image_border:"Kenarl\u0131k",
-image_dimensions:"Boyutlar",
-image_vspace:"Dikey bo\u015Fluk",
-image_hspace:"Yatay bo\u015Fluk",
-image_align:"Hizalama",
-image_align_baseline:"Taban \u00E7izgisi",
-image_align_top:"\u00DCst",
-image_align_middle:"Orta",
-image_align_bottom:"Alt",
-image_align_texttop:"Metin \u00FCstte",
-image_align_textbottom:"Metin altta",
-image_align_left:"Sola",
-image_align_right:"Sa\u011Fa",
-link_title:"Ba\u011Flant\u0131 ekle/d\u00FCzenle",
-link_url:"Ba\u011Flant\u0131 URL",
-link_target:"Hedef",
-link_target_same:"Ba\u011Flant\u0131y\u0131 ayn\u0131 pencerede a\u00E7",
-link_target_blank:"Ba\u011Flant\u0131y\u0131 yeni pencerede a\u00E7",
-link_titlefield:"Ba\u015Fl\u0131k",
-link_is_email:"Girdi\u011Finiz URL bir e-posta adresi gibi g\u00F6z\u00FCk\u00FCyor, gerekli olan mailto: \u00F6nekinin eklenmesini ister misiniz?",
-link_is_external:"Girdi\u011Finiz URL d\u0131\u015F bir ba\u011Flant\u0131 gibi g\u00F6z\u00FCk\u00FCyor, gerekli olan http:// \u00F6nekinin eklenmesini ister misiniz?",
-link_list:"Ba\u011Flant\u0131 listesi"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/tt.js b/chrome/content/zotero/tinymce/themes/advanced/langs/tt.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('tt.advanced',{
-style_select:"\u6A23\u5F0F",
-font_size:"\u5B57\u9AD4\u5927\u5C0F",
-fontdefault:"\u5B57\u9AD4",
-block:"\u683C\u5F0F",
-paragraph:"\u6BB5\u843D",
-div:"Div",
-address:"\u5730\u5740",
-pre:"\u9810\u8A2D\u683C\u5F0F",
-h1:"\u6A19\u984C 1",
-h2:"\u6A19\u984C 2",
-h3:"\u6A19\u984C 3",
-h4:"\u6A19\u984C 4",
-h5:"\u6A19\u984C 5",
-h6:"\u6A19\u984C 6",
-blockquote:"\u5F15\u7528",
-code:"\u4EE3\u78BC",
-samp:"\u7A0B\u5F0F\u7BC4\u4F8B",
-dt:"\u540D\u8A5E\u5B9A\u7FA9",
-dd:"\u540D\u8A5E\u89E3\u91CB",
-bold_desc:"\u7C97\u9AD4 (Ctrl+B)",
-italic_desc:"\u659C\u9AD4 (Ctrl+I)",
-underline_desc:"\u5E95\u7DDA (Ctrl+U)",
-striketrough_desc:"\u4E2D\u5283\u7DDA",
-justifyleft_desc:"\u9760\u5DE6\u5C0D\u9F4A",
-justifycenter_desc:"\u7F6E\u4E2D",
-justifyright_desc:"\u9760\u53F3\u5C0D\u9F4A",
-justifyfull_desc:"\u5169\u7AEF\u5C0D\u9F4A",
-bullist_desc:"\u6E05\u55AE\u7B26\u865F",
-numlist_desc:"\u7DE8\u865F",
-outdent_desc:"\u6E1B\u5C11\u7E2E\u6392",
-indent_desc:"\u589E\u52A0\u7E2E\u6392",
-undo_desc:"\u53D6\u6D88\u8B8A\u66F4 (Ctrl+Z)",
-redo_desc:"\u91CD\u4F5C\u8B8A\u66F4 (Ctrl+Y)",
-link_desc:"\u63D2\u5165/\u7DE8\u8F2F \u9023\u7D50",
-unlink_desc:"\u53D6\u6D88\u9023\u7D50",
-image_desc:"\u63D2\u5165/\u7DE8\u8F2F \u5716\u7247",
-cleanup_desc:"\u6E05\u9664\u5167\u5BB9",
-code_desc:"\u7DE8\u8F2F HTML \u539F\u59CB\u7A0B\u5F0F\u78BC",
-sub_desc:"\u4E0B\u6A19",
-sup_desc:"\u4E0A\u6A19",
-hr_desc:"\u63D2\u5165\u6C34\u5E73\u7DDA",
-removeformat_desc:"\u6E05\u9664\u6A23\u5F0F",
-custom1_desc:"\u5728\u6B64\u8F38\u5165\u60A8\u7684\u81EA\u8A02\u63CF\u8FF0",
-forecolor_desc:"\u9078\u64C7\u6587\u5B57\u9854\u8272",
-backcolor_desc:"\u9078\u64C7\u80CC\u666F\u9854\u8272",
-charmap_desc:"\u63D2\u5165\u7279\u6B8A\u7B26\u865F",
-visualaid_desc:"\u7DB2\u683C/\u96B1\u85CF\u5143\u4EF6\uFF1F",
-anchor_desc:"\u63D2\u5165/\u7DE8\u8F2F \u9328\u9EDE",
-cut_desc:"\u526A\u4E0B (Ctrl+X)",
-copy_desc:"\u8907\u88FD (Ctrl+C)",
-paste_desc:"\u8CBC\u4E0A (Ctrl+V)",
-image_props_desc:"\u5716\u7247\u5C6C\u6027",
-newdocument_desc:"\u65B0\u589E\u6587\u4EF6",
-help_desc:"\u8AAA\u660E",
-blockquote_desc:"\u5F15\u7528",
-clipboard_msg:"\u8907\u88FD\u3001\u526A\u4E0B\u548C\u8CBC\u4E0A\u529F\u80FD\u5728Mozilla \u548C Firefox\u4E2D\u7121\u6CD5\u4F7F\u7528",
-path:"\u8DEF\u5F91",
-newdocument:"\u60A8\u78BA\u8A8D\u8981\u522A\u9664\u5168\u90E8\u5167\u5BB9\u55CE\uFF1F",
-toolbar_focus:"\u5DE5\u5177\u5217 - Alt+Q, \u7DE8\u8F2F\u5668 - Alt-Z, \u5143\u4EF6\u8DEF\u5F91 - Alt-X",
-more_colors:"\u66F4\u591A\u9854\u8272"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/tt_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/tt_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('tt.advanced_dlg',{
-about_title:"\u95DC\u65BC TinyMCE",
-about_general:"\u95DC\u65BC",
-about_help:"\u8AAA\u660E",
-about_license:"\u6388\u6B0A",
-about_plugins:"\u5168\u90E8\u5916\u639B\u7A0B\u5F0F",
-about_plugin:"\u5916\u639B\u7A0B\u5F0F",
-about_author:"\u4F5C\u8005",
-about_version:"\u7248\u672C",
-about_loaded:"\u5DF2\u8F09\u5165\u7684\u5916\u639B\u7A0B\u5F0F",
-anchor_title:"\u63D2\u5165/\u7DE8\u8F2F \u9328\u9EDE",
-anchor_name:"\u9328\u9EDE\u540D\u7A31",
-code_title:"HTML \u539F\u59CB\u7A0B\u5F0F\u78BC\u7DE8\u8F2F\u5668",
-code_wordwrap:"\u81EA\u52D5\u63DB\u884C",
-colorpicker_title:"\u9078\u64C7\u9854\u8272",
-colorpicker_picker_tab:"\u9078\u64C7\u5668",
-colorpicker_picker_title:"\u53D6\u8272\u5668",
-colorpicker_palette_tab:"\u8272\u8B5C",
-colorpicker_palette_title:"\u8272\u8B5C\u9854\u8272",
-colorpicker_named_tab:"\u9810\u8A2D\u503C",
-colorpicker_named_title:"\u9810\u8A2D\u7684\u9854\u8272",
-colorpicker_color:"\u9854\u8272:",
-colorpicker_name:"\u8272\u540D:",
-charmap_title:"\u63D2\u5165\u7279\u6B8A\u7B26\u865F",
-image_title:"\u63D2\u5165/\u7DE8\u8F2F \u5716\u7247",
-image_src:"\u5716\u7247\u7DB2\u5740",
-image_alt:"\u5716\u7247\u8AAA\u660E",
-image_list:"\u5716\u7247\u6E05\u55AE",
-image_border:"\u908A\u6846",
-image_dimensions:"\u5C3A\u5BF8",
-image_vspace:"\u5782\u76F4\u9593\u8DDD",
-image_hspace:"\u6C34\u5E73\u9593\u8DDD",
-image_align:"\u5C0D\u9F4A\u65B9\u5F0F",
-image_align_baseline:"\u57FA\u7DDA",
-image_align_top:"\u9802\u90E8\u5C0D\u9F4A",
-image_align_middle:"\u4E2D\u90E8\u5C0D\u9F4A",
-image_align_bottom:"\u5E95\u90E8\u5C0D\u9F4A",
-image_align_texttop:"\u6587\u5B57\u4E0A\u65B9",
-image_align_textbottom:"\u6587\u5B57\u4E0B\u65B9",
-image_align_left:"\u9760\u5DE6\u5C0D\u9F4A",
-image_align_right:"\u9760\u53F3\u5C0D\u9F4A",
-link_title:"\u63D2\u5165/\u7DE8\u8F2F \u9023\u7D50",
-link_url:"\u9023\u7D50\u7DB2\u5740",
-link_target:"\u76EE\u6A19",
-link_target_same:"\u7576\u524D\u7A97\u53E3\u6253\u958B",
-link_target_blank:"\u65B0\u7A97\u53E3\u6253\u958B",
-link_titlefield:"\u6A19\u984C",
-link_is_email:"\u60A8\u8F38\u5165\u7684\u61C9\u8A72\u662F\u4E00\u500B\u96FB\u5B50\u90F5\u4EF6\u5730\u5740\uFF0C\u662F\u5426\u9700\u8981\u5728\u7DB2\u5740\u524D\u52A0\u4E0A mailto: ? ",
-link_is_external:"\u60A8\u8F38\u5165\u7684\u7DB2\u5740\u61C9\u8A72\u662F\u4E00\u500B\u5916\u90E8\u9023\u7D50\uFF0C\u662F\u5426\u9700\u8981\u5728\u7DB2\u5740\u524D\u52A0\u4E0A http:// ?",
-link_list:"\u9023\u7D50\u6E05\u55AE"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/tw.js b/chrome/content/zotero/tinymce/themes/advanced/langs/tw.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('tw.advanced',{
-style_select:"\u6A23\u5F0F",
-font_size:"\u5B57\u9AD4\u5927\u5C0F",
-fontdefault:"\u5B57\u9AD4",
-block:"\u683C\u5F0F",
-paragraph:"\u6BB5\u843D",
-div:"Div",
-address:"\u5730\u5740",
-pre:"\u9810\u8A2D\u683C\u5F0F",
-h1:"\u6A19\u984C 1",
-h2:"\u6A19\u984C 2",
-h3:"\u6A19\u984C 3",
-h4:"\u6A19\u984C 4",
-h5:"\u6A19\u984C 5",
-h6:"\u6A19\u984C 6",
-blockquote:"\u5F15\u7528",
-code:"\u4EE3\u78BC",
-samp:"\u7A0B\u5F0F\u7BC4\u4F8B",
-dt:"\u540D\u8A5E\u5B9A\u7FA9",
-dd:"\u540D\u8A5E\u89E3\u91CB",
-bold_desc:"\u7C97\u9AD4 (Ctrl+B)",
-italic_desc:"\u659C\u9AD4 (Ctrl+I)",
-underline_desc:"\u5E95\u7DDA (Ctrl+U)",
-striketrough_desc:"\u522A\u9664\u7DDA",
-justifyleft_desc:"\u9760\u5DE6\u5C0D\u9F4A",
-justifycenter_desc:"\u5C45\u4E2D",
-justifyright_desc:"\u9760\u53F3\u5C0D\u9F4A",
-justifyfull_desc:"\u5169\u7AEF\u5C0D\u9F4A",
-bullist_desc:"\u6E05\u55AE\u7B26\u865F",
-numlist_desc:"\u7DE8\u865F",
-outdent_desc:"\u6E1B\u5C11\u7E2E\u6392",
-indent_desc:"\u589E\u52A0\u7E2E\u6392",
-undo_desc:"\u5FA9\u539F (Ctrl+Z)",
-redo_desc:"\u53D6\u6D88\u5FA9\u539F (Ctrl+Y)",
-link_desc:"\u63D2\u5165/\u7DE8\u8F2F \u8D85\u9023\u7D50",
-unlink_desc:"\u53D6\u6D88\u8D85\u9023\u7D50",
-image_desc:"\u63D2\u5165/\u7DE8\u8F2F \u5716\u7247",
-cleanup_desc:"\u522A\u9664\u5197\u9918\u78BC",
-code_desc:"\u7DE8\u8F2F HTML \u539F\u59CB\u7A0B\u5F0F\u78BC",
-sub_desc:"\u4E0B\u6A19",
-sup_desc:"\u4E0A\u6A19",
-hr_desc:"\u63D2\u5165\u6C34\u5E73\u7DDA",
-removeformat_desc:"\u6E05\u9664\u6A23\u5F0F",
-custom1_desc:"\u5728\u6B64\u8F38\u5165\u60A8\u7684\u81EA\u8A02\u63CF\u8FF0",
-forecolor_desc:"\u9078\u64C7\u6587\u5B57\u984F\u8272",
-backcolor_desc:"\u9078\u64C7\u80CC\u666F\u984F\u8272",
-charmap_desc:"\u63D2\u5165\u7279\u6B8A\u7B26\u865F",
-visualaid_desc:"\u7DB2\u683C/\u96B1\u85CF\u7D44\u4EF6\uFF1F",
-anchor_desc:"\u63D2\u5165/\u7DE8\u8F2F \u9328\u9EDE",
-cut_desc:"\u526A\u4E0B (Ctrl+X)",
-copy_desc:"\u8907\u88FD (Ctrl+C)",
-paste_desc:"\u8CBC\u4E0A (Ctrl+V)",
-image_props_desc:"\u5716\u7247\u5C6C\u6027",
-newdocument_desc:"\u65B0\u5EFA\u6587\u4EF6",
-help_desc:"\u8AAC\u660E",
-blockquote_desc:"\u5F15\u7528",
-clipboard_msg:"\u8907\u88FD\u3001\u526A\u4E0B\u548C\u8CBC\u4E0A\u529F\u80FD\u5728Mozilla \u548C Firefox\u4E2D\u7121\u6CD5\u4F7F\u7528",
-path:"\u8DEF\u5F91",
-newdocument:"\u60A8\u78BA\u8A8D\u8981\u522A\u9664\u5168\u90E8\u5167\u5BB9\u55CE\uFF1F",
-toolbar_focus:"\u5DE5\u5177\u6B04 - Alt+Q, \u7DE8\u8F2F\u5668 - Alt-Z, \u5143\u4EF6\u8DEF\u5F91 - Alt-X",
-more_colors:"\u66F4\u591A\u984F\u8272"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/tw_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/tw_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('tw.advanced_dlg',{
-about_title:"\u95DC\u65BC TinyMCE",
-about_general:"\u95DC\u65BC",
-about_help:"\u8AAC\u660E",
-about_license:"\u6388\u6B0A",
-about_plugins:"\u5168\u90E8\u5916\u639B\u7A0B\u5F0F",
-about_plugin:"\u5916\u639B\u7A0B\u5F0F",
-about_author:"\u4F5C\u8005",
-about_version:"\u7248\u672C",
-about_loaded:"\u5DF2\u8F09\u5165\u7684\u5916\u639B\u7A0B\u5F0F",
-anchor_title:"\u63D2\u5165/\u7DE8\u8F2F \u9328\u9EDE",
-anchor_name:"\u9328\u9EDE\u540D\u7A31",
-code_title:"HTML \u539F\u59CB\u7A0B\u5F0F\u78BC\u7DE8\u8F2F\u5668",
-code_wordwrap:"\u81EA\u52D5\u63DB\u884C",
-colorpicker_title:"\u9078\u64C7\u984F\u8272",
-colorpicker_picker_tab:"\u9078\u64C7\u5668",
-colorpicker_picker_title:"\u53D6\u8272\u5668",
-colorpicker_palette_tab:"\u8272\u8B5C",
-colorpicker_palette_title:"\u8272\u8B5C\u984F\u8272",
-colorpicker_named_tab:"\u9810\u8A2D\u503C",
-colorpicker_named_title:"\u9810\u8A2D\u7684\u984F\u8272",
-colorpicker_color:"\u984F\u8272:",
-colorpicker_name:"\u8272\u540D:",
-charmap_title:"\u63D2\u5165\u7279\u6B8A\u7B26\u865F",
-image_title:"\u63D2\u5165/\u7DE8\u8F2F \u5716\u7247",
-image_src:"\u5716\u7247\u7DB2\u5740",
-image_alt:"\u5716\u7247\u8AAA\u660E",
-image_list:"\u5716\u7247\u6E05\u55AE",
-image_border:"\u908A\u6846",
-image_dimensions:"\u5C3A\u5BF8",
-image_vspace:"\u5782\u76F4\u9593\u8DDD",
-image_hspace:"\u6C34\u6E96\u9593\u8DDD",
-image_align:"\u5C0D\u9F4A\u65B9\u5F0F",
-image_align_baseline:"\u57FA\u7DDA",
-image_align_top:"\u9802\u90E8\u5C0D\u9F4A",
-image_align_middle:"\u4E2D\u90E8\u5C0D\u9F4A",
-image_align_bottom:"\u5E95\u90E8\u5C0D\u9F4A",
-image_align_texttop:"\u6587\u5B57\u4E0A\u65B9",
-image_align_textbottom:"\u6587\u5B57\u4E0B\u65B9",
-image_align_left:"\u5DE6\u5C0D\u9F4A",
-image_align_right:"\u53F3\u5C0D\u9F4A",
-link_title:"\u63D2\u5165/\u7DE8\u8F2F \u8D85\u9023\u7D50",
-link_url:"\u9023\u7D50\u7DB2\u5740",
-link_target:"\u76EE\u6A19",
-link_target_same:"\u7576\u524D\u8996\u7A97\u6253\u958B",
-link_target_blank:"\u65B0\u8996\u7A97\u6253\u958B",
-link_titlefield:"\u6A19\u984C",
-link_is_email:"\u60A8\u8F38\u5165\u7684\u61C9\u8A72\u662F\u4E00\u500B\u96FB\u5B50\u90F5\u4EF6\u4F4D\u5740\uFF0C\u662F\u5426\u9700\u8981\u5728\u7DB2\u5740\u524D\u52A0\u4E0A mailto: ?",
-link_is_external:"\u60A8\u8F38\u5165\u7684\u7DB2\u5740\u61C9\u8A72\u662F\u4E00\u500B\u5916\u90E8\u9023\u7D50\uFF0C\u662F\u5426\u9700\u8981\u5728\u7DB2\u5740\u524D\u52A0\u4E0A http:// ?",
-link_list:"\u9023\u7D50\u6E05\u55AE"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/uk.js b/chrome/content/zotero/tinymce/themes/advanced/langs/uk.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('uk.advanced',{
-style_select:"\u0421\u0442\u0438\u043B\u0456",
-font_size:"\u0420\u043E\u0437\u043C\u0456\u0440 \u0448\u0440\u0438\u0444\u0442\u0443",
-fontdefault:"\u0428\u0440\u0438\u0444\u0442",
-block:"\u0424\u043E\u0440\u043C\u0430\u0442",
-paragraph:"\u0410\u0431\u0437\u0430\u0446",
-div:"Div",
-address:"\u0421\u0442\u0438\u043B\u044C \u0430\u0434\u0440\u0435\u0441\u0438",
-pre:"\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u044C\u043E \u0444\u043E\u0440\u043C\u0430\u0442\u043E\u0432\u0430\u043D\u0438\u0439",
-h1:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A 1",
-h2:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A 2",
-h3:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A 3",
-h4:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A 4",
-h5:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A 5",
-h6:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A 6",
-blockquote:"\u0426\u0438\u0442\u0430\u0442\u0430",
-code:"\u041A\u043E\u0434",
-samp:"\u041F\u0440\u0438\u043A\u043B\u0430\u0434 \u043A\u043E\u0434\u0443",
-dt:"\u0414\u043E\u0432\u0456\u0434\u043D\u0438\u043A \u0442\u0435\u0440\u043C\u0456\u043D ",
-dd:"\u0414\u043E\u0432\u0456\u0434\u043D\u0438\u043A \u043E\u043F\u0438\u0441 ",
-bold_desc:"\u0416\u0438\u0440\u043D\u0438\u0439 (Ctrl+B)",
-italic_desc:"\u041A\u0443\u0440\u0441\u0438\u0432 (Ctrl+I)",
-underline_desc:"\u041F\u0456\u0434\u043A\u0440\u0435\u0441\u043B\u0435\u043D\u0438\u0439 (Ctrl+U)",
-striketrough_desc:"\u0417\u0430\u043A\u0440\u0435\u0441\u043B\u0435\u043D\u0438\u0439",
-justifyleft_desc:"\u041F\u043E \u043B\u0456\u0432\u043E\u043C\u0443 \u043A\u0440\u0430\u044E",
-justifycenter_desc:"\u041F\u043E \u0446\u0435\u043D\u0442\u0440\u0443",
-justifyright_desc:"\u041F\u043E \u043F\u0440\u0430\u0432\u043E\u043C\u0443 \u043A\u0440\u0430\u044E",
-justifyfull_desc:"\u041F\u043E \u0448\u0438\u0440\u0438\u043D\u0456",
-bullist_desc:"\u0421\u043F\u0438\u0441\u043E\u043A",
-numlist_desc:"\u041D\u0443\u043C\u0435\u0440\u043E\u0432\u0430\u043D\u0438\u0439 \u0441\u043F\u0438\u0441\u043E\u043A",
-outdent_desc:"\u0417\u043C\u0435\u043D\u0448\u0442\u0438\u0442\u0438 \u0432\u0456\u0434\u0441\u0442\u0443\u043F",
-indent_desc:"\u0417\u0431\u0456\u043B\u044C\u0448\u0438\u0442\u0438 \u0432\u0456\u0434\u0441\u0442\u0443\u043F",
-undo_desc:"\u0412\u0456\u0434\u043C\u0456\u043D\u0438\u0442\u0438 (Ctrl+Z)",
-redo_desc:"\u041F\u043E\u0432\u0435\u0440\u043D\u0443\u0442\u0438 (Ctrl+Y)",
-link_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438/\u0437\u043C\u0456\u043D\u0438\u0442\u0438 \u043F\u043E\u0441\u0438\u043B\u0430\u043D\u043D\u044F",
-unlink_desc:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u043F\u043E\u0441\u0438\u043B\u0430\u043D\u043D\u044F",
-image_desc:"\u0414\u043E\u0434\u0430\u0442\u0438/\u0437\u043C\u0456\u043D\u0438\u0442\u0438 \u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u043D\u044F",
-cleanup_desc:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u0437\u0430\u0439\u0432\u044B\u0439 \u043A\u043E\u0434",
-code_desc:"\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 HTML \u043A\u043E\u0434",
-sub_desc:"\u041D\u0438\u0436\u043D\u0456\u0439 \u0456\u043D\u0434\u0435\u043A\u0441",
-sup_desc:"\u0412\u0435\u0440\u0445\u043D\u0456\u0439 \u0456\u043D\u0434\u0435\u043A\u0441",
-hr_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0433\u043E\u0440\u0438\u0437\u043E\u043D\u0442\u0430\u043B\u044C\u043D\u0438\u0439 \u0440\u043E\u0437\u0434\u0456\u043B\u044C\u043D\u0438\u043A",
-removeformat_desc:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u0444\u043E\u0440\u043C\u0430\u0442\u0443\u0432\u0430\u043D\u043D\u044F",
-custom1_desc:"\u0412\u0430\u0448 \u0434\u043E\u0432\u0456\u043B\u044C\u043D\u0438\u0439 \u043E\u043F\u0438\u0441 \u0442\u0443\u0442",
-forecolor_desc:"\u0412\u0438\u0431\u0440\u0430\u0442\u0438 \u043A\u043E\u043B\u0456\u0440 \u0442\u0435\u043A\u0441\u0442\u0443",
-backcolor_desc:"\u0412\u0438\u0431\u0440\u0430\u0442\u0438 \u043A\u043E\u043B\u0456\u0440 \u0444\u043E\u043D\u0443",
-charmap_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0441\u0438\u043C\u0432\u043E\u043B",
-visualaid_desc:"Toggle guidelines/invisible elements",
-anchor_desc:"\u0414\u043E\u0434\u0430\u0442\u0438/\u0437\u043C\u0456\u043D\u0438\u0442\u0438 \u044F\u043A\u0456\u0440",
-cut_desc:"\u0412\u0438\u0440\u0456\u0437\u0430\u0442\u0438",
-copy_desc:"\u041A\u043E\u043F\u0456\u044E\u0432\u0430\u0442\u0438",
-paste_desc:"\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438",
-image_props_desc:"\u0412\u043B\u0430\u0441\u0442\u0438\u0432\u043E\u0441\u0442\u0456 \u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u043D\u044F",
-newdocument_desc:"\u041D\u043E\u0432\u0438\u0439 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442",
-help_desc:"\u0414\u043E\u043F\u043E\u043C\u043E\u0433\u0430",
-blockquote_desc:"\u0426\u0438\u0442\u0430\u0442\u0430",
-clipboard_msg:"\u041A\u043E\u043F\u0456\u044E\u0432\u0430\u0442\u0438/\u0412\u0438\u0440\u0456\u0437\u0430\u0442\u0438/\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u043D\u0435 \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0456 \u0432 Mozilla \u0438 Firefox.\n\u0412\u0430\u043C \u0446\u0456\u043A\u0430\u0432\u0430 \u0456\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0456\u044F \u043F\u0440\u043E \u0446\u0435?",
-path:"\u0428\u043B\u044F\u0445",
-newdocument:"\u0412\u0438 \u043F\u0435\u0432\u043D\u0456, \u0449\u043E \u0431\u0430\u0436\u0430\u0454\u0442\u0435 \u0432\u0441\u0435 \u0432\u0438\u0434\u0430\u043B\u0438\u0442\u0438?",
-toolbar_focus:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u043F\u0430\u043D\u0435\u043B\u044C \u043A\u043D\u043E\u043F\u043E\u043A - Alt+Q, \u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0434\u043E \u0440\u0435\u0434\u0430\u043A\u0442\u043E\u0440\u0443 - Alt-Z, \u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u044D\u043B\u0435\u043C\u0435\u043D\u0442 \u0448\u043B\u044F\u0445\u0443 - Alt-X",
-more_colors:"\u0411\u0456\u043B\u044C\u0448\u0435 \u043A\u043E\u043B\u044C\u043E\u0440\u0456\u0432"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/uk_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/uk_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('uk.advanced_dlg',{
-about_title:"\u041F\u0440\u043E \u043F\u0440\u043E\u0434\u0443\u043A\u0442 TinyMCE",
-about_general:"\u041F\u0440\u043E \u043F\u0440\u043E\u0434\u0443\u043A\u0442...",
-about_help:"\u0414\u043E\u043F\u043E\u043C\u043E\u0433\u0430",
-about_license:"\u041B\u0456\u0446\u0435\u043D\u0437\u0456\u044F",
-about_plugins:"\u041F\u043B\u0430\u0433\u0456\u043D\u0438",
-about_plugin:"\u041F\u043B\u0430\u0433\u0456\u043D",
-about_author:"\u0410\u0432\u0442\u043E\u0440",
-about_version:"\u0412\u0435\u0440\u0441\u0456\u044F",
-about_loaded:"\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u0456 \u043F\u043B\u0430\u0433\u0456\u043D\u0438",
-anchor_title:"\u0414\u043E\u0434\u0430\u0442\u0438/\u0437\u043C\u0456\u043D\u0438\u0442\u0438 \u044F\u043A\u0456\u0440",
-anchor_name:"\u041D\u0430\u0437\u0432\u0430 \u044F\u043A\u043E\u0440\u044F",
-code_title:"\u0420\u0435\u0434\u0430\u043A\u0442\u043E\u0440 HTML \u043A\u043E\u0434\u0443",
-code_wordwrap:"\u041F\u0435\u0440\u0435\u043D\u043E\u0441\u0438\u0442\u0438 \u0441\u043B\u043E\u0432\u0430",
-colorpicker_title:"\u0412\u0438\u0431\u0440\u0430\u0442\u0438 \u043A\u043E\u043B\u0456\u0440",
-colorpicker_picker_tab:"\u041F\u0456\u043F\u0435\u0442\u043A\u0430",
-colorpicker_picker_title:"\u041F\u0456\u043F\u0435\u0442\u043A\u0430 \u043A\u043E\u043B\u044C\u043E\u0440\u0443",
-colorpicker_palette_tab:"\u041F\u0430\u043B\u0456\u0442\u0440\u0430",
-colorpicker_palette_title:"\u041F\u0430\u043B\u0456\u0442\u0440\u0430 \u043A\u043E\u043B\u044C\u043E\u0440\u0456\u0432",
-colorpicker_named_tab:"\u0417\u0430 \u043D\u0430\u0437\u0432\u043E\u044E",
-colorpicker_named_title:"\u0417\u0430 \u043D\u0430\u0437\u0432\u043E\u044E",
-colorpicker_color:"\u041A\u043E\u043B\u0456\u0440:",
-colorpicker_name:"\u041D\u0430\u0439\u043C\u0435\u043D\u0443\u0432\u0430\u043D\u043D\u044F:",
-charmap_title:"\u0412\u0438\u0431\u0440\u0430\u0442\u0438 \u0434\u043E\u0432\u0456\u043B\u044C\u043D\u0438\u0439 \u0441\u0438\u043C\u0432\u043E\u043B",
-image_title:"\u0414\u043E\u0434\u0430\u0442\u0438/\u0437\u043C\u0456\u043D\u0438\u0442\u0438 \u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u043D\u044F",
-image_src:"\u0410\u0434\u0440\u0435\u0441\u0430",
-image_alt:"\u041E\u043F\u0438\u0441",
-image_list:"\u0421\u043F\u0438\u0441\u043E\u043A \u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u044C",
-image_border:"\u0413\u0440\u0430\u043D\u0438\u0446\u044F",
-image_dimensions:"\u0420\u043E\u0437\u043C\u0456\u0440\u0438",
-image_vspace:"\u0412\u0435\u0440\u0442. \u0432\u0456\u0434\u0441\u0442\u0443\u043F",
-image_hspace:"\u0413\u043E\u0440\u0438\u0437. \u0432\u0456\u0434\u0441\u0442\u0443\u043F",
-image_align:"\u0412\u0438\u0440\u0456\u0432\u043D\u044E\u0432\u0430\u043D\u043D\u044F",
-image_align_baseline:"\u041F\u043E \u0431\u0430\u0437\u043E\u0432\u0456\u0439 \u043B\u0438\u043D\u0456\u0457",
-image_align_top:"\u041F\u043E \u0432\u0435\u0440\u0445\u043D\u044C\u043E\u043C\u0443 \u043A\u0440\u0430\u044E",
-image_align_middle:"\u041F\u043E \u0446\u0435\u043D\u0442\u0440\u0443",
-image_align_bottom:"\u041F\u043E \u043D\u0438\u0436\u043D\u044C\u043E\u043C\u0443 \u043A\u0440\u0430\u044E",
-image_align_texttop:"\u041F\u043E \u0432\u0435\u0440\u0445\u043D\u044C\u043E\u043C\u0443 \u043A\u0440\u0430\u044E \u0442\u0435\u043A\u0441\u0442\u0443",
-image_align_textbottom:"\u041F\u043E \u043D\u0438\u0436\u043D\u044C\u043E\u043C\u0443 \u043A\u0440\u0430\u044E \u0442\u0435\u043A\u0441\u0442\u0443",
-image_align_left:"\u041F\u043E \u043B\u0456\u0432\u043E\u043C\u0443 \u043A\u0440\u0430\u044E",
-image_align_right:"\u041F\u043E \u043F\u0440\u0430\u0432\u043E\u043C\u0443 \u043A\u0440\u0430\u044E",
-link_title:"\u0414\u043E\u0434\u0430\u0442\u0438/\u0437\u043C\u0456\u043D\u0438\u0442\u0438 \u043F\u043E\u0441\u0438\u043B\u0430\u043D\u043D\u044F",
-link_url:"\u0410\u0434\u0440\u0435\u0441\u0430 \u043F\u043E\u0441\u0438\u043B\u0430\u043D\u043D\u044F",
-link_target:"\u0412\u0456\u0434\u043A\u0440\u0438\u0442\u0438 \u0432...",
-link_target_same:"\u0446\u044C\u043E\u043C\u0443 \u0436\u0435 \u0432\u0456\u043A\u043D\u0456",
-link_target_blank:"\u043D\u043E\u0432\u043E\u043C\u0443 \u0432\u0456\u043A\u043D\u0456",
-link_titlefield:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A",
-link_is_email:"\u0412\u0432\u0435\u0434\u0435\u043D\u0438\u0439 URL \u0441\u0445\u043E\u0436\u0438\u0439 \u043D\u0430 email \u0430\u0434\u0440\u0435\u0441\u0443, \u0432\u0438 \u0431\u0430\u0436\u0430\u0454\u0442\u0435 \u0434\u043E\u0434\u0430\u0442\u0438 \u043D\u0435\u043E\u0431\u0445\u0456\u0434\u043D\u0438\u0439 \u043F\u0440\u0435\u0444\u0456\u043A\u0441 mailto:?",
-link_is_external:"\u0412\u0432\u0435\u0434\u0435\u043D\u0438\u0439 URL \u0441\u0445\u043E\u0436\u0438\u0439 \u043D\u0430 \u0437\u043E\u0432\u043D\u0456\u0448\u043D\u0454 \u043F\u043E\u0441\u0438\u043B\u0430\u043D\u043D\u044F, \u0432\u0438 \u0431\u0430\u0436\u0430\u0454\u0442\u0435 \u0434\u043E\u0434\u0430\u0442\u0438 \u043D\u0435\u043E\u0431\u0445\u0456\u0434\u043D\u0438\u0439 \u043F\u0440\u0435\u0444\u0456\u043A\u0441 http://?",
-link_list:"\u0421\u043F\u0438\u0441\u043E\u043A \u043F\u043E\u0441\u0438\u043B\u0430\u043D\u044C"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/vi.js b/chrome/content/zotero/tinymce/themes/advanced/langs/vi.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('vi.advanced',{
-style_select:"Ki\u1EC3u",
-font_size:"C\u1EE1 ch\u1EEF",
-fontdefault:"Ph\u00F4ng ch\u1EEF",
-block:"\u0110\u1ECBnh d\u1EA1ng",
-paragraph:"\u0110o\u1EA1n v\u0103n b\u1EA3n",
-div:"Div",
-address:"\u0110\u1ECBa ch\u1EC9",
-pre:"Kh\u00F4ng \u0111\u1ECBnh d\u1EA1ng",
-h1:"Ti\u00EAu \u0111\u1EC1 1",
-h2:"Ti\u00EAu \u0111\u1EC1 2",
-h3:"Ti\u00EAu \u0111\u1EC1 3",
-h4:"Ti\u00EAu \u0111\u1EC1 4",
-h5:"Ti\u00EAu \u0111\u1EC1 5",
-h6:"Ti\u00EAu \u0111\u1EC1 6",
-blockquote:"\u0110\u1ECBnh d\u1EA1ng kh\u1ED1i",
-code:"M\u00E3",
-samp:"M\u00E3 v\u00ED d\u1EE5",
-dt:"T\u00EAn \u0111\u1ECBnh ngh\u0129a ",
-dd:"M\u00F4 t\u1EA3 \u0111\u1ECBnh ngh\u0129a",
-bold_desc:"\u0110\u1EADm (Ctrl+B)",
-italic_desc:"Nghi\u00EAng (Ctrl+I)",
-underline_desc:"G\u1EA1ch ch\u00E2n (Ctrl+U)",
-striketrough_desc:"G\u1EA1ch x\u00F3a",
-justifyleft_desc:"C\u0103n tr\u00E1i",
-justifycenter_desc:"C\u0103n gi\u1EEFa",
-justifyright_desc:"C\u0103n ph\u1EA3i",
-justifyfull_desc:"C\u0103n \u0111\u1EC1u",
-bullist_desc:"Danh s\u00E1ch",
-numlist_desc:"Danh s\u00E1ch th\u1EE9 t\u1EF1",
-outdent_desc:"Gi\u1EA3m l\u1EC1 tr\u00E1i",
-indent_desc:"T\u0103ng l\u1EC1 tr\u00E1i",
-undo_desc:"Kh\u00F4i ph\u1EE5c (Ctrl+Z)",
-redo_desc:"L\u1EB7p l\u1EA1i (Ctrl+Y)",
-link_desc:"Ch\u00E8n/thay \u0111\u1ED5i li\u00EAn k\u1EBFt",
-unlink_desc:"X\u00F3a li\u00EAn k\u1EBFt",
-image_desc:"Ch\u00E8n/s\u1EEDa h\u00ECnh \u1EA3nh",
-cleanup_desc:"D\u1ECDn d\u1EB9p m\u00E3 l\u1ED9n x\u1ED9n",
-code_desc:"S\u1EEDa m\u00E3 ngu\u1ED3n HTML",
-sub_desc:"Subscript",
-sup_desc:"Superscript",
-hr_desc:"Ch\u00E8n thanh ngang",
-removeformat_desc:"X\u00F3a \u0111\u1ECBnh d\u1EA1ng",
-custom1_desc:"M\u00F4 t\u1EA3 c\u1EE7a b\u1EA1n \u1EDF \u0111\u00E2y",
-forecolor_desc:"Ch\u1ECDn m\u00E0u ch\u1EEF",
-backcolor_desc:"Ch\u1ECDn m\u00E0u n\u1EC1n",
-charmap_desc:"Ch\u00E8n k\u00FD t\u1EF1 \u0111\u1EB7c bi\u1EC7t",
-visualaid_desc:"B\u1EADt/t\u1EAFt c\u00E1c ph\u1EA7n t\u1EED \u1EA9n",
-anchor_desc:"Ch\u00E8n/s\u1EEDa m\u1ED1c (anchor)",
-cut_desc:"C\u1EAFt",
-copy_desc:"Sao ch\u00E9p",
-paste_desc:"D\u00E1n",
-image_props_desc:"Thu\u1ED9c t\u00EDnh h\u00ECnh \u1EA3nh",
-newdocument_desc:"V\u0103n b\u1EA3n m\u1EDBi",
-help_desc:"Gi\u00FAp \u0111\u1EE1",
-blockquote_desc:"\u0110\u1ECBnh d\u1EA1ng kh\u1ED1i",
-clipboard_msg:"Sao ch\u00E9p/C\u1EAFt/D\u00E1n kh\u00F4ng ho\u1EA1t \u0111\u1ED9ng tr\u00EAn Mozilla v\u00E0 Firefox.\nB\u1EA1n mu\u1ED1n xem th\u00EAm th\u00F4ng tin v\u1EC1 v\u1EA5n \u0111\u1EC1 n\u00E0y?",
-path:"\u0110\u01B0\u1EDDng d\u1EABn",
-newdocument:"B\u1EA1n c\u00F3 ch\u1EAFc ch\u1EAFn mu\u1ED1n x\u00F3a t\u1EA5t c\u1EA3 n\u1ED9i dung \u0111\u00E3 so\u1EA1n?",
-toolbar_focus:"Nh\u1EA3y \u0111\u1EBFn thanh c\u00F4ng c\u1EE5 - Alt+Q, Nh\u1EA3y \u0111\u1EBFn \u00F4 so\u1EA1n th\u1EA3o - Alt-Z, Nh\u1EA3y \u0111\u1EBFn \u0111\u01B0\u1EDDng d\u1EABn - Alt-X",
-more_colors:"Nhi\u1EC1u m\u00E0u h\u01A1n"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/vi_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/vi_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('vi.advanced_dlg',{
-about_title:"Gi\u1EDBi thi\u1EC7u TinyMCE",
-about_general:"Gi\u1EDBi thi\u1EC7u",
-about_help:"Gi\u00FAp \u0111\u1EE1",
-about_license:"Gi\u1EA5y ph\u00E9p",
-about_plugins:"C\u00E1c ph\u1EA7n m\u1EDF r\u1ED9ng",
-about_plugin:"Ph\u1EA7n m\u1EDF r\u1ED9ng",
-about_author:"T\u00E1c gi\u1EA3",
-about_version:"Phi\u00EAn b\u1EA3n",
-about_loaded:"C\u00E1c ph\u1EA7n m\u1EDF r\u1ED9ng \u0111\u00E3 n\u1EA1p",
-anchor_title:"Ch\u00E8n/s\u1EEDa m\u1ED1c (anchor)",
-anchor_name:"T\u00EAn m\u1ED1c (anchor)",
-code_title:"So\u1EA1n M\u00E3 HTML",
-code_wordwrap:"Xu\u1ED1ng d\u00F2ng",
-colorpicker_title:"Ch\u1ECDn m\u1ED9t m\u00E0u",
-colorpicker_picker_tab:"B\u1ED9 ch\u1ECDn",
-colorpicker_picker_title:"B\u1ED9 ch\u1ECDn m\u00E0u",
-colorpicker_palette_tab:"B\u1EA3ng",
-colorpicker_palette_title:"B\u1EA3ng m\u00E0u",
-colorpicker_named_tab:"\u0110\u00E3 c\u00F3 t\u00EAn",
-colorpicker_named_title:"M\u00E0u \u0111\u00E3 c\u00F3 t\u00EAn",
-colorpicker_color:"M\u00E0u:",
-colorpicker_name:"T\u00EAn:",
-charmap_title:"Ch\u1ECDn k\u00FD t\u1EF1 \u0111\u1EB7c bi\u1EC7t",
-image_title:"Ch\u00E8n/s\u1EEDa h\u00ECnh \u1EA3nh",
-image_src:"D\u01B0\u1EDDng d\u1EABn \u0111\u1EBFn h\u00ECnh \u1EA3nh",
-image_alt:"M\u00F4 t\u1EA3 h\u00ECnh \u1EA3nh",
-image_list:"Danh s\u00E1ch h\u00ECnh \u1EA3nh",
-image_border:"Vi\u1EC1n",
-image_dimensions:"K\u00EDch th\u01B0\u1EDBc",
-image_vspace:"Kho\u1EA3ng c\u00E1ch d\u1ECDc",
-image_hspace:"Kho\u1EA3ng c\u00E1ch ngang",
-image_align:"C\u0103n l\u1EC1",
-image_align_baseline:"\u0110\u01B0\u1EDDng c\u01A1 b\u1EA3n",
-image_align_top:"Tr\u00EAn",
-image_align_middle:"Gi\u1EEFa",
-image_align_bottom:"\u0110\u00E1y",
-image_align_texttop:"Tr\u00EAn c\u1EE7a ch\u1EEF",
-image_align_textbottom:"\u0110\u00E1y c\u1EE7a ch\u1EEF",
-image_align_left:"Tr\u00E1i",
-image_align_right:"Ph\u1EA3i",
-link_title:"Ch\u00E8n/s\u1EEDa li\u00EAn k\u1EBFt",
-link_url:"Li\u00EAn k\u1EBFt",
-link_target:"\u0110\u00EDch",
-link_target_same:"M\u1EDF li\u00EAn k\u1EBFt trong c\u00F9ng c\u1EEDa s\u1ED5",
-link_target_blank:"M\u1EDF li\u00EAn k\u1EBFt trong c\u1EEDa s\u1ED5 m\u1EDBi",
-link_titlefield:"Ti\u00EAu \u0111\u1EC1",
-link_is_email:"Li\u00EAn k\u1EBFt b\u1EA1n nh\u1EADp c\u00F3 v\u1EBB nh\u01B0 l\u00E0 m\u1ED9t \u0111\u1ECBa ch\u1EC9 email, b\u1EA1n c\u00F3 mu\u1ED1n th\u00EAm ph\u1EA7n mailto: v\u00E0o tr\u01B0\u1EDBc li\u00EAn k\u1EBFt?",
-link_is_external:"Li\u00EAn k\u1EBFt b\u1EA1n nh\u1EADp c\u00F3 v\u1EBB nh\u01B0 l\u00E0 m\u1ED9t trang web ngo\u00E0i, b\u1EA1n c\u00F3 mu\u1ED1n th\u00EAm ph\u1EA7n http:// v\u00E0o tr\u01B0\u1EDBc li\u00EAn k\u1EBFt?",
-link_list:"Danh s\u00E1ch li\u00EAn k\u1EBFt"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/zh.js b/chrome/content/zotero/tinymce/themes/advanced/langs/zh.js
@@ -1,62 +0,0 @@
-tinyMCE.addI18n('zh.advanced',{
-style_select:"\u6A23\u5F0F",
-font_size:"\u5B57\u865F",
-fontdefault:"\u5B57\u9AD4",
-block:"\u683C\u5F0F",
-paragraph:"\u6BB5\u843D",
-div:"\u5716\u5C64",
-address:"\u5730\u5740",
-pre:"\u9810\u5B9A\u7FA9\u683C\u5F0F",
-h1:"\u6A19\u984C1",
-h2:"\u6A19\u984C2",
-h3:"\u6A19\u984C3",
-h4:"\u6A19\u984C4",
-h5:"\u6A19\u984C5",
-h6:"\u6A19\u984C6",
-blockquote:"\u5F15\u7528",
-code:"\u4EE3\u78BC",
-samp:"\u4EE3\u78BC\u7BC4\u4F8B",
-dt:"\u540D\u8A5E\u5B9A\u7FA9",
-dd:"\u540D\u8A5E\u89E3\u91CB",
-bold_desc:"\u7C97\u9AD4(Ctrl+B)",
-italic_desc:"\u659C\u9AD4(Ctrl+I)",
-underline_desc:"\u5E95\u7DDA(Ctrl+U)",
-striketrough_desc:"\u522A\u9664\u7DDA",
-justifyleft_desc:"\u5C45\u5DE6",
-justifycenter_desc:"\u5C45\u4E2D",
-justifyright_desc:"\u5C45\u53F3",
-justifyfull_desc:"\u5DE6\u53F3\u5C0D\u9F4A",
-bullist_desc:"\u9805\u76EE\u7B26\u865F\u5217\u8868",
-numlist_desc:"\u7DE8\u865F\u5217\u8868",
-outdent_desc:"\u6E1B\u5C11\u7E2E\u6392",
-indent_desc:"\u589E\u52A0\u7E2E\u6392",
-undo_desc:"\u64A4\u92B7(Ctrl+Z)",
-redo_desc:"\u91CD\u505A(Ctrl+Y)",
-link_desc:"\u63D2\u5165/\u7DE8\u8F2F\u9023\u7D50",
-unlink_desc:"\u522A\u9664\u9023\u7D50",
-image_desc:"\u63D2\u5165/\u7DE8\u8F2F\u5716\u7247",
-cleanup_desc:"\u6E05\u9664\u6A19\u7C64",
-code_desc:"\u4EE3\u78BC\u8996\u5716",
-sub_desc:"\u4E0B\u6A19",
-sup_desc:"\u4E0A\u6A19",
-hr_desc:"\u63D2\u5165\u6C34\u5E73\u7DDA",
-removeformat_desc:"\u6E05\u9664\u6A23\u5F0F",
-custom1_desc:"\u5728\u6B64\u8F38\u5165\u63CF\u8FF0",
-forecolor_desc:"\u80CC\u666F\u984F\u8272",
-backcolor_desc:"\u80CC\u666F\u984F\u8272",
-charmap_desc:"\u63D2\u5165\u7279\u6B8A\u7B26\u865F",
-visualaid_desc:"\u986F\u793A/\u96B1\u85CF\u5C0D\u50CF",
-anchor_desc:"\u63D2\u5165/\u7DE8\u8F2F\u9328\u9EDE",
-cut_desc:"\u526A\u8CBC(Ctrl+X)",
-copy_desc:"\u8907\u88FD(Ctrl+C)",
-paste_desc:"\u7C98\u8CBC(Ctrl+V)",
-image_props_desc:"\u5716\u7247\u5C6C\u6027",
-newdocument_desc:"\u5EFA\u7ACB",
-help_desc:"\u5E6B\u52A9",
-blockquote_desc:"\u5F15\u7528",
-clipboard_msg:"\u8907\u88FD\u3001\u526A\u4E0B\u548C\u8CBC\u4E0A\u529F\u80FD\u5728Mozilla\u548CFirefox\u4E2D\u7121\u6CD5\u4F7F\u7528\u3002 \n\u4F60\u9700\u8981\u4E86\u89E3\u66F4\u591A\u8A0A\u606F\u55CE\uFF1F ",
-path:"\u8DEF\u5F91",
-newdocument:"\u78BA\u5B9A\u8981\u522A\u9664\u6240\u6709\u5167\u5BB9\u4E26\u5EFA\u7ACB\u4E00\u500B\u7A7A\u767D\u6587\u4EF6\u9EBC\uFF1F ",
-toolbar_focus:"\u5B9A\u4F4D\u5230\u5DE5\u5177\u6B04- Alt+Q\uFF0C\u5B9A\u4F4D\u5230\u7DE8\u8F2F\u5340- Alt-Z\uFF0C\u5B9A\u4F4D\u5230\u5143\u7D20\u8DEF\u5F91- Alt-X\u3002 ",
-more_colors:"\u66F4\u591A\u984F\u8272.."
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/langs/zh_dlg.js b/chrome/content/zotero/tinymce/themes/advanced/langs/zh_dlg.js
@@ -1,51 +0,0 @@
-tinyMCE.addI18n('zh.advanced_dlg',{
-about_title:"\u95DC\u65BCTinyMCE",
-about_general:"\u95DC\u65BC",
-about_help:"\u8AAA\u660E",
-about_license:"\u6388\u6B0A",
-about_plugins:"\u63D2\u4EF6\u5217\u8868",
-about_plugin:"\u63D2\u4EF6",
-about_author:"\u4F5C\u8005",
-about_version:"\u7248\u672C",
-about_loaded:"\u5DF2\u52A0\u8F09\u63D2\u4EF6",
-anchor_title:"\u63D2\u5165/\u7DE8\u8F2F\u9328\u9EDE",
-anchor_name:"\u9328\u9EDE\u540D\u7A31",
-code_title:"\u4EE3\u78BC\u8996\u5716",
-code_wordwrap:"\u81EA\u52D5\u63DB\u884C",
-colorpicker_title:"\u9078\u64C7\u984F\u8272",
-colorpicker_picker_tab:"\u8ABF\u8272\u76E4",
-colorpicker_picker_title:"\u8ABF\u8272\u76E4",
-colorpicker_palette_tab:"\u5B89\u5168\u8272",
-colorpicker_palette_title:"\u7DB2\u9801\u5B89\u5168\u8272",
-colorpicker_named_tab:"\u547D\u540D\u8272\u5F69",
-colorpicker_named_title:"\u547D\u540D\u8272\u5F69",
-colorpicker_color:"\u984F\u8272\uFF1A",
-colorpicker_name:"\u540D\u7A31\uFF1A",
-charmap_title:"\u63D2\u5165\u7279\u6B8A\u7B26\u865F",
-image_title:"\u63D2\u5165/\u7DE8\u8F2F\u5716\u7247",
-image_src:"\u5716\u7247\u5730\u5740",
-image_alt:"\u5716\u7247\u8AAA\u660E",
-image_list:"\u5716\u7247\u6E05\u55AE",
-image_border:"\u908A\u6846",
-image_dimensions:"\u5C3A\u5BF8",
-image_vspace:"\u5782\u76F4\u9593\u8DDD",
-image_hspace:"\u6C34\u5E73\u9593\u8DDD",
-image_align:"\u5C0D\u9F4A\u65B9\u5F0F",
-image_align_baseline:"\u57FA\u6E96\u7DDA",
-image_align_top:"\u9802\u90E8\u5C0D\u9F4A",
-image_align_middle:"\u7F6E\u4E2D\u5C0D\u9F4A",
-image_align_bottom:"\u5E95\u90E8\u5C0D\u9F4A",
-image_align_texttop:"\u6587\u5B57\u4E0A\u65B9",
-image_align_textbottom:"\u6587\u5B57\u4E0B\u65B9",
-image_align_left:"\u5C45\u5DE6",
-image_align_right:"\u5C45\u53F3",
-link_title:"\u63D2\u5165/\u7DE8\u8F2F\u9023\u7D50",
-link_url:"\u93C8\u63A5",
-link_target:"\u76EE\u6A19",
-link_target_same:"\u7576\u524D\u7A97\u53E3\u6253\u958B\u9023\u7D50",
-link_target_blank:"\u65B0\u7A97\u53E3\u6253\u958B\u9023\u7D50",
-link_titlefield:"\u6A19\u984C",
-link_is_email:"\u4F60\u8F38\u5165\u7684\u7DB2\u5740\u4F3C\u4E4E\u662F\u4E00\u500B\u96FB\u5B50\u90F5\u4EF6\u4F4D\u5740\uFF0C\uFF0C\u662F\u5426\u8981\u52A0\u5E6B\u7260\u52A0\u4E0A\u9023\u7D50\uFF1F ",
-link_is_external:"\u4F60\u8F38\u5165\u7684\u7DB2\u5740\u4F3C\u4E4E\u662F\u4E00\u500B\u7DB2\u7AD9\u9023\u7D50\uFF0C\u662F\u5426\u8981\u52A0\u5E6B\u7260\u52A0\u4E0A\u9023\u7D50\uFF1F ",
-link_list:"\u9023\u7D50\u6E05\u55AE"
-});
-\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/themes/advanced/link.htm b/chrome/content/zotero/tinymce/themes/advanced/link.htm
@@ -18,34 +18,33 @@
<div class="panel_wrapper">
<div id="general_panel" class="panel current">
-
- <table border="0" cellpadding="4" cellspacing="0">
- <tr>
- <td class="nowrap"><label for="href">{#advanced_dlg.link_url}</label></td>
- <td><table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td><input id="href" name="href" type="text" class="mceFocus" value="" style="width: 200px" onchange="LinkDialog.checkPrefix(this);" /></td>
- <td id="hrefbrowsercontainer"> </td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td><label for="link_list">{#advanced_dlg.link_list}</label></td>
- <td><select id="link_list" name="link_list" onchange="document.getElementById('href').value=this.options[this.selectedIndex].value;"></select></td>
- </tr>
- <tr>
- <td><label id="targetlistlabel" for="targetlist">{#advanced_dlg.link_target}</label></td>
- <td><select id="target_list" name="target_list"></select></td>
- </tr>
- <tr>
- <td class="nowrap"><label for="linktitle">{#advanced_dlg.link_titlefield}</label></td>
- <td><input id="linktitle" name="linktitle" type="text" value="" style="width: 200px" /></td>
- </tr>
- <tr>
- <td><label for="class_list">{#class_name}</label></td>
- <td><select id="class_list" name="class_list"></select></td>
- </tr>
- </table>
+ <table border="0" cellpadding="4" cellspacing="0">
+ <tr>
+ <td class="nowrap"><label for="href">{#advanced_dlg.link_url}</label></td>
+ <td><table border="0" cellspacing="0" cellpadding="0">
+ <tr>
+ <td><input id="href" name="href" type="text" class="mceFocus" value="" style="width: 200px" onchange="LinkDialog.checkPrefix(this);" /></td>
+ <td id="hrefbrowsercontainer"> </td>
+ </tr>
+ </table></td>
+ </tr>
+ <tr>
+ <td><label for="link_list">{#advanced_dlg.link_list}</label></td>
+ <td><select id="link_list" name="link_list" onchange="document.getElementById('href').value=this.options[this.selectedIndex].value;"></select></td>
+ </tr>
+ <tr>
+ <td><label id="targetlistlabel" for="targetlist">{#advanced_dlg.link_target}</label></td>
+ <td><select id="target_list" name="target_list"></select></td>
+ </tr>
+ <tr>
+ <td class="nowrap"><label for="linktitle">{#advanced_dlg.link_titlefield}</label></td>
+ <td><input id="linktitle" name="linktitle" type="text" value="" style="width: 200px" /></td>
+ </tr>
+ <tr>
+ <td><label for="class_list">{#class_name}</label></td>
+ <td><select id="class_list" name="class_list"></select></td>
+ </tr>
+ </table>
</div>
</div>
diff --git a/chrome/content/zotero/tinymce/themes/advanced/skins/default/content.css b/chrome/content/zotero/tinymce/themes/advanced/skins/default/content.css
@@ -1,6 +1,7 @@
body, td, pre {color:#000; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; margin:8px;}
body {background:#FFF;}
body.mceForceColors {background:#FFF; color:#000;}
+body.mceBrowserDefaults {background:transparent; color:inherit; font-size:inherit; font-family:inherit;}
h1 {font-size: 2em}
h2 {font-size: 1.5em}
h3 {font-size: 1.17em}
@@ -8,11 +9,11 @@ h4 {font-size: 1em}
h5 {font-size: .83em}
h6 {font-size: .75em}
.mceItemTable, .mceItemTable td, .mceItemTable th, .mceItemTable caption, .mceItemVisualAid {border: 1px dashed #BBB;}
-a.mceItemAnchor {display:inline-block; width:11px !important; height:11px !important; background:url(img/items.gif) no-repeat 0 0;}
+a.mceItemAnchor {display:inline-block; -webkit-user-select:all; -webkit-user-modify:read-only; -moz-user-select:all; -moz-user-modify:read-only; width:11px !important; height:11px !important; background:url(img/items.gif) no-repeat center center}
span.mceItemNbsp {background: #DDD}
td.mceSelected, th.mceSelected {background-color:#3399ff !important}
img {border:0;}
-table {cursor:default}
+table, img, hr, .mceItemAnchor {cursor:default}
table td, table th {cursor:text}
ins {border-bottom:1px solid green; text-decoration: none; color:green}
del {color:red; text-decoration:line-through}
@@ -34,3 +35,16 @@ scrollbar-track-color:#F5F5F5;
img:-moz-broken {-moz-force-broken-image-icon:1; width:24px; height:24px}
font[face=mceinline] {font-family:inherit !important}
+*[contentEditable]:focus {outline:0}
+
+.mceItemMedia {border:1px dotted #cc0000; background-position:center; background-repeat:no-repeat; background-color:#ffffcc}
+.mceItemShockWave {background-image:url(../../img/shockwave.gif)}
+.mceItemFlash {background-image:url(../../img/flash.gif)}
+.mceItemQuickTime {background-image:url(../../img/quicktime.gif)}
+.mceItemWindowsMedia {background-image:url(../../img/windowsmedia.gif)}
+.mceItemRealMedia {background-image:url(../../img/realmedia.gif)}
+.mceItemVideo {background-image:url(../../img/video.gif)}
+.mceItemAudio {background-image:url(../../img/video.gif)}
+.mceItemEmbeddedAudio {background-image:url(../../img/video.gif)}
+.mceItemIframe {background-image:url(../../img/iframe.gif)}
+.mcePageBreak {display:block;border:0;width:100%;height:12px;border-top:1px dotted #ccc;margin-top:15px;background:#fff url(../../img/pagebreak.gif) no-repeat center top;}
diff --git a/chrome/content/zotero/tinymce/themes/advanced/skins/default/dialog.css b/chrome/content/zotero/tinymce/themes/advanced/skins/default/dialog.css
@@ -105,11 +105,12 @@ h3 {font-size:14px;}
#plugintable, #about #plugintable td {border:1px solid #919B9C;}
#plugintable {width:96%; margin-top:10px;}
#pluginscontainer {height:290px; overflow:auto;}
-#colorpicker #preview {float:right; width:50px; height:14px;line-height:1px; border:1px solid black; margin-left:5px;}
+#colorpicker #preview {display:inline-block; padding-left:40px; height:14px; border:1px solid black; margin-left:5px; margin-right: 5px}
+#colorpicker #previewblock {position: relative; top: -3px; padding-left:5px; padding-top: 0px; display:inline}
+#colorpicker #preview_wrapper { text-align:center; padding-top:4px; white-space: nowrap}
#colorpicker #colors {float:left; border:1px solid gray; cursor:crosshair;}
#colorpicker #light {border:1px solid gray; margin-left:5px; float:left;width:15px; height:150px; cursor:crosshair;}
#colorpicker #light div {overflow:hidden;}
-#colorpicker #previewblock {float:right; padding-left:10px; height:20px;}
#colorpicker .panel_wrapper div.current {height:175px;}
#colorpicker #namedcolors {width:150px;}
#colorpicker #namedcolors a {display:block; float:left; width:10px; height:10px; margin:1px 1px 0 0; overflow:hidden;}
diff --git a/chrome/content/zotero/tinymce/themes/advanced/skins/default/img/buttons.png b/chrome/content/zotero/tinymce/themes/advanced/skins/default/img/buttons.png
Binary files differ.
diff --git a/chrome/content/zotero/tinymce/themes/advanced/skins/default/img/items.gif b/chrome/content/zotero/tinymce/themes/advanced/skins/default/img/items.gif
Binary files differ.
diff --git a/chrome/content/zotero/tinymce/themes/advanced/skins/default/img/menu_arrow.gif b/chrome/content/zotero/tinymce/themes/advanced/skins/default/img/menu_arrow.gif
Binary files differ.
diff --git a/chrome/content/zotero/tinymce/themes/advanced/skins/default/img/menu_check.gif b/chrome/content/zotero/tinymce/themes/advanced/skins/default/img/menu_check.gif
Binary files differ.
diff --git a/chrome/content/zotero/tinymce/themes/advanced/skins/default/img/progress.gif b/chrome/content/zotero/tinymce/themes/advanced/skins/default/img/progress.gif
Binary files differ.
diff --git a/chrome/content/zotero/tinymce/themes/advanced/skins/default/img/tabs.gif b/chrome/content/zotero/tinymce/themes/advanced/skins/default/img/tabs.gif
Binary files differ.
diff --git a/chrome/content/zotero/tinymce/themes/advanced/skins/default/ui.css b/chrome/content/zotero/tinymce/themes/advanced/skins/default/ui.css
@@ -4,8 +4,8 @@
.defaultSkin table td {vertical-align:middle}
/* Containers */
-.defaultSkin table {direction:ltr; background:#F0F0EE}
-.defaultSkin iframe {display:block; background:#FFF}
+.defaultSkin table {direction:ltr;background:transparent}
+.defaultSkin iframe {display:block;}
.defaultSkin .mceToolbar {height:26px}
.defaultSkin .mceLeft {text-align:left}
.defaultSkin .mceRight {text-align:right}
@@ -20,9 +20,9 @@
.defaultSkin table.mceLayout tr.mceFirst td {border-top:1px solid #CCC}
.defaultSkin table.mceLayout tr.mceLast td {border-bottom:1px solid #CCC}
.defaultSkin table.mceToolbar, .defaultSkin tr.mceFirst .mceToolbar tr td, .defaultSkin tr.mceLast .mceToolbar tr td {border:0; margin:0; padding:0;}
-.defaultSkin td.mceToolbar {padding-top:1px; vertical-align:top}
+.defaultSkin td.mceToolbar {background:#F0F0EE; padding-top:1px; vertical-align:top}
.defaultSkin .mceIframeContainer {border-top:1px solid #CCC; border-bottom:1px solid #CCC}
-.defaultSkin .mceStatusbar {font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:9pt; line-height:16px; overflow:visible; color:#000; display:block; height:20px}
+.defaultSkin .mceStatusbar {background:#F0F0EE; font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:9pt; line-height:16px; overflow:visible; color:#000; display:block; height:20px}
.defaultSkin .mceStatusbar div {float:left; margin:2px}
.defaultSkin .mceStatusbar a.mceResize {display:block; float:right; background:url(../../img/icons.gif) -800px 0; width:20px; height:20px; cursor:se-resize; outline:0}
.defaultSkin .mceStatusbar a:hover {text-decoration:underline}
@@ -83,7 +83,7 @@
.defaultSkin .mce_forecolor span.mceAction, .defaultSkin .mce_backcolor span.mceAction {overflow:hidden; height:16px}
/* Menu */
-.defaultSkin .mceMenu {position:absolute; left:0; top:0; z-index:1000; border:1px solid #D4D0C8}
+.defaultSkin .mceMenu {position:absolute; left:0; top:0; z-index:1000; border:1px solid #D4D0C8; direction:ltr}
.defaultSkin .mceNoIcons span.mceIcon {width:0;}
.defaultSkin .mceNoIcons a .mceText {padding-left:10px}
.defaultSkin .mceMenu table {background:#FFF}
@@ -103,11 +103,16 @@
.defaultSkin .mceNoIcons .mceMenuItemSelected a {background:url(img/menu_arrow.gif) no-repeat -6px center}
.defaultSkin .mceMenu span.mceMenuLine {display:none}
.defaultSkin .mceMenuItemSub a {background:url(img/menu_arrow.gif) no-repeat top right;}
+.defaultSkin .mceMenuItem td, .defaultSkin .mceMenuItem th {line-height: normal}
/* Progress,Resize */
.defaultSkin .mceBlocker {position:absolute; left:0; top:0; z-index:1000; opacity:0.5; -ms-filter:'alpha(opacity=50)'; filter:alpha(opacity=50); background:#FFF}
.defaultSkin .mceProgress {position:absolute; left:0; top:0; z-index:1001; background:url(img/progress.gif) no-repeat; width:32px; height:32px; margin:-16px 0 0 -16px}
+/* Rtl */
+.mceRtl .mceListBox .mceText {text-align: right; padding: 0 4px 0 0}
+.mceRtl .mceMenuItem .mceText {text-align: right}
+
/* Formats */
.defaultSkin .mce_formatPreview a {font-size:10px}
.defaultSkin .mce_p span.mceText {}
@@ -211,3 +216,4 @@
.defaultSkin span.mce_pagebreak {background-position:0 -40px}
.defaultSkin span.mce_restoredraft {background-position:-20px -40px}
.defaultSkin span.mce_spellchecker {background-position:-540px -20px}
+.defaultSkin span.mce_visualblocks {background-position: -40px -40px}
diff --git a/chrome/content/zotero/tinymce/themes/advanced/source_editor.htm b/chrome/content/zotero/tinymce/themes/advanced/source_editor.htm
@@ -4,9 +4,9 @@
<script type="text/javascript" src="../../tiny_mce_popup.js"></script>
<script type="text/javascript" src="js/source_editor.js"></script>
</head>
-<body onresize="resizeInputs();" style="display:none; overflow:hidden;">
+<body onresize="resizeInputs();" style="display:none; overflow:hidden;" spellcheck="false">
<form name="source" onsubmit="saveContent();return false;" action="#">
- <div style="float: left" class="title">{#advanced_dlg.code_title}</div>
+ <div style="float: left" class="title"><label for="htmlSource">{#advanced_dlg.code_title}</label></div>
<div id="wrapline" style="float: right">
<input type="checkbox" name="wraped" id="wraped" onclick="toggleWordWrap(this);" class="wordWrapCode" /><label for="wraped">{#advanced_dlg.code_wordwrap}</label>
@@ -17,8 +17,8 @@
<textarea name="htmlSource" id="htmlSource" rows="15" cols="100" style="width: 100%; height: 100%; font-family: 'Courier New',Courier,monospace; font-size: 12px;" dir="ltr" wrap="off" class="mceFocus"></textarea>
<div class="mceActionPanel">
- <input type="submit" name="insert" value="{#update}" id="insert" />
- <input type="button" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" id="cancel" />
+ <input type="submit" role="button" name="insert" value="{#update}" id="insert" />
+ <input type="button" role="button" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" id="cancel" />
</div>
</form>
</body>
diff --git a/chrome/content/zotero/tinymce/tiny_mce.js b/chrome/content/zotero/tinymce/tiny_mce.js
@@ -1,15 +1,14 @@
-// Contains modifications by Dan S./Zotero
-
+// FILE IS GENERATED BY COMBINING THE SOURCES IN THE "classes" DIRECTORY SO DON'T MODIFY THIS FILE DIRECTLY
(function(win) {
var whiteSpaceRe = /^\s*|\s*$/g,
- undefined, isRegExpBroken = 'B'.replace(/A(.)|B/, '$1') === '$1';
+ undef, isRegExpBroken = 'B'.replace(/A(.)|B/, '$1') === '$1';
var tinymce = {
majorVersion : '3',
- minorVersion : '3.9.2',
+ minorVersion : '5.7',
- releaseDate : '2010-09-29',
+ releaseDate : '2012-09-20',
_init : function() {
var t = this, d = document, na = navigator, ua = na.userAgent, i, nl, n, base, p, v;
@@ -22,6 +21,12 @@
t.isIE6 = t.isIE && /MSIE [56]/.test(ua);
+ t.isIE7 = t.isIE && /MSIE [7]/.test(ua);
+
+ t.isIE8 = t.isIE && /MSIE [8]/.test(ua);
+
+ t.isIE9 = t.isIE && /MSIE [9]/.test(ua);
+
t.isGecko = !t.isWebKit && /Gecko/.test(ua);
t.isMac = ua.indexOf('Mac') != -1;
@@ -29,6 +34,8 @@
t.isAir = /adobeair/i.test(ua);
t.isIDevice = /(iPad|iPhone)/.test(ua);
+
+ t.isIOS5 = t.isIDevice && ua.match(/AppleWebKit\/(\d*)/)[1]>=534;
// TinyMCE .NET webcontrol might be setting the values for TinyMCE
if (win.tinyMCEPreInit) {
@@ -44,7 +51,8 @@
// If base element found, add that infront of baseURL
nl = d.getElementsByTagName('base');
for (i=0; i<nl.length; i++) {
- if (v = nl[i].href) {
+ v = nl[i].href;
+ if (v) {
// Host only value like http://site.com or http://site.com:8008
if (/^https?:\/\/[^\/]+$/.test(v))
v += '/';
@@ -97,14 +105,36 @@
is : function(o, t) {
if (!t)
- return o !== undefined;
+ return o !== undef;
- if (t == 'array' && (o.hasOwnProperty && o instanceof Array))
+ if (t == 'array' && tinymce.isArray(o))
return true;
return typeof(o) == t;
},
+ isArray: Array.isArray || function(obj) {
+ return Object.prototype.toString.call(obj) === "[object Array]";
+ },
+
+ makeMap : function(items, delim, map) {
+ var i;
+
+ items = items || [];
+ delim = delim || ',';
+
+ if (typeof(items) == "string")
+ items = items.split(delim);
+
+ map = map || {};
+
+ i = items.length;
+ while (i--)
+ map[items[i]] = {};
+
+ return map;
+ },
+
each : function(o, cb, s) {
var n, l;
@@ -113,7 +143,7 @@
s = s || o;
- if (o.length !== undefined) {
+ if (o.length !== undef) {
// Indexed arrays, needed for Safari
for (n=0, l = o.length; n < l; n++) {
if (cb.call(s, o[n], n, o) === false)
@@ -167,19 +197,23 @@
return -1;
},
- extend : function(o, e) {
- var i, l, a = arguments;
+ extend : function(obj, ext) {
+ var i, l, name, args = arguments, value;
- for (i = 1, l = a.length; i < l; i++) {
- e = a[i];
+ for (i = 1, l = args.length; i < l; i++) {
+ ext = args[i];
+ for (name in ext) {
+ if (ext.hasOwnProperty(name)) {
+ value = ext[name];
- tinymce.each(e, function(v, n) {
- if (v !== undefined)
- o[n] = v;
- });
+ if (value !== undef) {
+ obj[name] = value;
+ }
+ }
+ }
}
- return o;
+ return obj;
},
@@ -187,7 +221,7 @@
return (s ? '' + s : '').replace(whiteSpaceRe, '');
},
- create : function(s, p) {
+ create : function(s, p, root) {
var t = this, sp, ns, cn, scn, c, de = 0;
// Parse : <prefix> <class>:<super class>
@@ -195,7 +229,7 @@
cn = s[3].match(/(^|\.)(\w+)$/i)[2]; // Class name
// Create namespace for new class
- ns = t.createNS(s[3].replace(/\.\w+$/, ''));
+ ns = t.createNS(s[3].replace(/\.\w+$/, ''), root);
// Class already exists
if (ns[cn])
@@ -322,69 +356,69 @@
},
addUnload : function(f, s) {
- var t = this;
+ var t = this, unload;
- f = {func : f, scope : s || this};
+ unload = function() {
+ var li = t.unloads, o, n;
- if (!t.unloads) {
- function unload() {
- var li = t.unloads, o, n;
+ if (li) {
+ // Call unload handlers
+ for (n in li) {
+ o = li[n];
- if (li) {
- // Call unload handlers
- for (n in li) {
- o = li[n];
+ if (o && o.func)
+ o.func.call(o.scope, 1); // Send in one arg to distinct unload and user destroy
+ }
- if (o && o.func)
- o.func.call(o.scope, 1); // Send in one arg to distinct unload and user destroy
- }
+ // Detach unload function
+ if (win.detachEvent) {
+ win.detachEvent('onbeforeunload', fakeUnload);
+ win.detachEvent('onunload', unload);
+ } else if (win.removeEventListener)
+ win.removeEventListener('unload', unload, false);
- // Detach unload function
- if (win.detachEvent) {
- win.detachEvent('onbeforeunload', fakeUnload);
- win.detachEvent('onunload', unload);
- } else if (win.removeEventListener)
- win.removeEventListener('unload', unload, false);
+ // Destroy references
+ t.unloads = o = li = w = unload = 0;
- // Destroy references
- t.unloads = o = li = w = unload = 0;
+ // Run garbarge collector on IE
+ if (win.CollectGarbage)
+ CollectGarbage();
+ }
+ };
- // Run garbarge collector on IE
- if (win.CollectGarbage)
- CollectGarbage();
- }
- };
+ function fakeUnload() {
+ var d = document;
- function fakeUnload() {
- var d = document;
+ function stop() {
+ // Prevent memory leak
+ d.detachEvent('onstop', stop);
- // Is there things still loading, then do some magic
- if (d.readyState == 'interactive') {
- function stop() {
- // Prevent memory leak
- d.detachEvent('onstop', stop);
+ // Call unload handler
+ if (unload)
+ unload();
- // Call unload handler
- if (unload)
- unload();
+ d = 0;
+ };
- d = 0;
- };
+ // Is there things still loading, then do some magic
+ if (d.readyState == 'interactive') {
+ // Fire unload when the currently loading page is stopped
+ if (d)
+ d.attachEvent('onstop', stop);
- // Fire unload when the currently loading page is stopped
+ // Remove onstop listener after a while to prevent the unload function
+ // to execute if the user presses cancel in an onbeforeunload
+ // confirm dialog and then presses the browser stop button
+ win.setTimeout(function() {
if (d)
- d.attachEvent('onstop', stop);
+ d.detachEvent('onstop', stop);
+ }, 0);
+ }
+ };
- // Remove onstop listener after a while to prevent the unload function
- // to execute if the user presses cancel in an onbeforeunload
- // confirm dialog and then presses the browser stop button
- win.setTimeout(function() {
- if (d)
- d.detachEvent('onstop', stop);
- }, 0);
- }
- };
+ f = {func : f, scope : s || this};
+ if (!t.unloads) {
// Attach unload handler
if (win.attachEvent) {
win.attachEvent('onunload', unload);
@@ -415,7 +449,11 @@
},
explode : function(s, d) {
- return s ? tinymce.map(s.split(d || ','), tinymce.trim) : s;
+ if (!s || tinymce.is(s, 'array')) {
+ return s;
+ }
+
+ return tinymce.map(s.split(d || ','), tinymce.trim);
},
_addVer : function(u) {
@@ -441,7 +479,7 @@
var val = replace, args = arguments, i;
for (i = 0; i < args.length - 2; i++) {
- if (args[i] === undefined) {
+ if (args[i] === undef) {
val = val.replace(new RegExp('\\$' + i, 'g'), '');
} else {
val = val.replace(new RegExp('\\$' + i, 'g'), args[i]);
@@ -462,58 +500,74 @@
// Expose tinymce namespace to the global namespace (window)
win.tinymce = win.tinyMCE = tinymce;
-})(window);
+
+ // Describe the different namespaces
+
+ })(window);
+
tinymce.create('tinymce.util.Dispatcher', {
scope : null,
listeners : null,
+ inDispatch: false,
- Dispatcher : function(s) {
- this.scope = s || this;
+ Dispatcher : function(scope) {
+ this.scope = scope || this;
this.listeners = [];
},
- add : function(cb, s) {
- this.listeners.push({cb : cb, scope : s || this.scope});
+ add : function(callback, scope) {
+ this.listeners.push({cb : callback, scope : scope || this.scope});
- return cb;
+ return callback;
},
- addToTop : function(cb, s) {
- this.listeners.unshift({cb : cb, scope : s || this.scope});
+ addToTop : function(callback, scope) {
+ var self = this, listener = {cb : callback, scope : scope || self.scope};
+
+ // Create new listeners if addToTop is executed in a dispatch loop
+ if (self.inDispatch) {
+ self.listeners = [listener].concat(self.listeners);
+ } else {
+ self.listeners.unshift(listener);
+ }
- return cb;
+ return callback;
},
- remove : function(cb) {
- var l = this.listeners, o = null;
+ remove : function(callback) {
+ var listeners = this.listeners, output = null;
- tinymce.each(l, function(c, i) {
- if (cb == c.cb) {
- o = cb;
- l.splice(i, 1);
+ tinymce.each(listeners, function(listener, i) {
+ if (callback == listener.cb) {
+ output = listener;
+ listeners.splice(i, 1);
return false;
}
});
- return o;
+ return output;
},
dispatch : function() {
- var s, a = arguments, i, li = this.listeners, c;
+ var self = this, returnValue, args = arguments, i, listeners = self.listeners, listener;
+ self.inDispatch = true;
+
// Needs to be a real loop since the listener count might change while looping
// And this is also more efficient
- for (i = 0; i<li.length; i++) {
- c = li[i];
- s = c.cb.apply(c.scope, a);
+ for (i = 0; i < listeners.length; i++) {
+ listener = listeners[i];
+ returnValue = listener.cb.apply(listener.scope, args.length > 0 ? args : [listener.scope]);
- if (s === false)
+ if (returnValue === false)
break;
}
- return s;
+ self.inDispatch = false;
+
+ return returnValue;
}
});
@@ -523,7 +577,7 @@ tinymce.create('tinymce.util.Dispatcher', {
tinymce.create('tinymce.util.URI', {
URI : function(u, s) {
- var t = this, o, a, b;
+ var t = this, o, a, b, base_url;
// Trim whitespace
u = tinymce.trim(u);
@@ -531,59 +585,48 @@ tinymce.create('tinymce.util.Dispatcher', {
// Default settings
s = t.settings = s || {};
- // Strange app protocol or local anchor
- if (/^(mailto|tel|news|javascript|about|data):/i.test(u) || /^\s*#/.test(u)) {
+ // Strange app protocol that isn't http/https or local anchor
+ // For example: mailto,skype,tel etc.
+ if (/^([\w\-]+):([^\/]{2})/i.test(u) || /^\s*#/.test(u)) {
t.source = u;
return;
}
- // Added by Dan S./Zotero
- u = u.replace("jar:file", "jarfile");
- u = u.replace("zotero@chnm.gmu.edu", "zotero.chnm.gmu.edu");
-
// Absolute path with no host, fake host and protocol
if (u.indexOf('/') === 0 && u.indexOf('//') !== 0)
u = (s.base_uri ? s.base_uri.protocol || 'http' : 'http') + '://mce_host' + u;
// Relative path http:// or protocol relative //path
- if (!/^\w*:?\/\//.test(u))
- // Modified by Dan S./Zotero
- //u = (s.base_uri.protocol || 'http') + '://mce_host' + t.toAbsPath(s.base_uri.path, u);
- u = s.base_uri.protocol + '://' + s.base_uri.path + '/' + u;
-
- // Added by Dan S./Zotero
- u = u.replace("jar:file", "jarfile");
- u = u.replace("zotero@chnm.gmu.edu", "zotero.chnm.gmu.edu");
+ if (!/^[\w\-]*:?\/\//.test(u)) {
+ base_url = s.base_uri ? s.base_uri.path : new tinymce.util.URI(location.href).directory;
+ u = ((s.base_uri && s.base_uri.protocol) || 'http') + '://mce_host' + t.toAbsPath(base_url, u);
+ }
// Parse URL (Credits goes to Steave, http://blog.stevenlevithan.com/archives/parseuri)
u = u.replace(/@@/g, '(mce_at)'); // Zope 3 workaround, they use @@something
- u = /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(u);
+ u = /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(u);
each(["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"], function(v, i) {
var s = u[i];
- // Modified by Dan S./Zotero
- if (s) {
- // Zope 3 workaround, they use @@something
+ // Zope 3 workaround, they use @@something
+ if (s)
s = s.replace(/\(mce_at\)/g, '@@');
-
- s = s.replace("jarfile", "jar:file");
- s = s.replace("zotero.chnm.gmu.edu", "zotero@chnm.gmu.edu");
- }
t[v] = s;
});
- if (b = s.base_uri) {
+ b = s.base_uri;
+ if (b) {
if (!t.protocol)
t.protocol = b.protocol;
if (!t.userInfo)
t.userInfo = b.userInfo;
- if (!t.port && t.host == 'mce_host')
+ if (!t.port && t.host === 'mce_host')
t.port = b.port;
- if (!t.host || t.host == 'mce_host')
+ if (!t.host || t.host === 'mce_host')
t.host = b.host;
t.source = '';
@@ -619,6 +662,12 @@ tinymce.create('tinymce.util.Dispatcher', {
if ((u.host != 'mce_host' && t.host != u.host && u.host) || t.port != u.port || t.protocol != u.protocol)
return u.getURI();
+ var tu = t.getURI(), uu = u.getURI();
+
+ // Allow usage of the base_uri when relative_urls = true
+ if(tu == uu || (tu.charAt(tu.length - 1) == "/" && tu.substr(0, tu.length - 1) == uu))
+ return tu;
+
o = t.toRelPath(t.path, u.path);
// Add query
@@ -633,7 +682,7 @@ tinymce.create('tinymce.util.Dispatcher', {
},
toAbsolute : function(u, nh) {
- var u = new tinymce.util.URI(u, {base_uri : this});
+ u = new tinymce.util.URI(u, {base_uri : this});
return u.getURI(this.host == u.host && this.protocol == u.protocol ? nh : 0);
},
@@ -664,7 +713,7 @@ tinymce.create('tinymce.util.Dispatcher', {
}
}
- if (bp == 1)
+ if (bp === 1)
return path;
for (i = 0, l = base.length - (bp - 1); i < l; i++)
@@ -699,11 +748,11 @@ tinymce.create('tinymce.util.Dispatcher', {
// Merge relURLParts chunks
for (i = path.length - 1, o = []; i >= 0; i--) {
// Ignore empty or .
- if (path[i].length == 0 || path[i] == ".")
+ if (path[i].length === 0 || path[i] === ".")
continue;
// Is parent
- if (path[i] == '..') {
+ if (path[i] === '..') {
nb++;
continue;
}
@@ -814,7 +863,7 @@ tinymce.create('tinymce.util.Dispatcher', {
if (b == -1) {
b = c.indexOf(p);
- if (b != 0)
+ if (b !== 0)
return null;
} else
b += 2;
@@ -835,19 +884,21 @@ tinymce.create('tinymce.util.Dispatcher', {
((s) ? "; secure" : "");
},
- remove : function(n, p) {
- var d = new Date();
+ remove : function(name, path, domain) {
+ var date = new Date();
- d.setTime(d.getTime() - 1000);
+ date.setTime(date.getTime() - 1000);
- this.set(n, '', d, p, d);
+ this.set(name, '', date, path, domain);
}
});
})();
-tinymce.create('static tinymce.util.JSON', {
- serialize : function(o) {
- var i, v, s = tinymce.util.JSON.serialize, t;
+(function() {
+ function serialize(o, quote) {
+ var i, v, t, name;
+
+ quote = quote || '"';
if (o == null)
return 'null';
@@ -857,7 +908,11 @@ tinymce.create('static tinymce.util.JSON', {
if (t == 'string') {
v = '\bb\tt\nn\ff\rr\""\'\'\\\\';
- return '"' + o.replace(/([\u0080-\uFFFF\x00-\x1f\"])/g, function(a, b) {
+ return quote + o.replace(/([\u0080-\uFFFF\x00-\x1f\"\'\\])/g, function(a, b) {
+ // Make sure single quotes never get encoded inside double quotes for JSON compatibility
+ if (quote === '"' && a === "'")
+ return a;
+
i = v.indexOf(b);
if (i + 1)
@@ -866,42 +921,61 @@ tinymce.create('static tinymce.util.JSON', {
a = b.charCodeAt().toString(16);
return '\\u' + '0000'.substring(a.length) + a;
- }) + '"';
+ }) + quote;
}
if (t == 'object') {
- if (o.hasOwnProperty && o instanceof Array) {
+ if (o.hasOwnProperty && Object.prototype.toString.call(o) === '[object Array]') {
for (i=0, v = '['; i<o.length; i++)
- v += (i > 0 ? ',' : '') + s(o[i]);
+ v += (i > 0 ? ',' : '') + serialize(o[i], quote);
return v + ']';
}
v = '{';
- for (i in o)
- v += typeof o[i] != 'function' ? (v.length > 1 ? ',"' : '"') + i + '":' + s(o[i]) : '';
+ for (name in o) {
+ if (o.hasOwnProperty(name)) {
+ v += typeof o[name] != 'function' ? (v.length > 1 ? ',' + quote : quote) + name + quote +':' + serialize(o[name], quote) : '';
+ }
+ }
return v + '}';
}
return '' + o;
- },
+ };
- parse : function(s) {
- try {
- return eval('(' + s + ')');
- } catch (ex) {
- // Ignore
+ tinymce.util.JSON = {
+ serialize: serialize,
+
+ parse: function(s) {
+ try {
+ return eval('(' + s + ')');
+ } catch (ex) {
+ // Ignore
+ }
}
- }
- });
+ };
+})();
tinymce.create('static tinymce.util.XHR', {
send : function(o) {
var x, t, w = window, c = 0;
+ function ready() {
+ if (!o.async || x.readyState == 4 || c++ > 10000) {
+ if (o.success && c < 10000 && x.status == 200)
+ o.success.call(o.success_scope, '' + x.responseText, x, o);
+ else if (o.error)
+ o.error.call(o.error_scope, c > 10000 ? 'TIMED_OUT' : 'GENERAL', x, o);
+
+ x = null;
+ } else
+ w.setTimeout(ready, 10);
+ };
+
// Default settings
o.scope = o.scope || this;
o.success_scope = o.success_scope || o.scope;
@@ -935,19 +1009,6 @@ tinymce.create('static tinymce.util.XHR', {
x.send(o.data);
- function ready() {
- if (!o.async || x.readyState == 4 || c++ > 10000) {
- // Modified by Dan S./Zotero
- if (o.success && c < 10000 && (x.status == 200 || x.status == 0))
- o.success.call(o.success_scope, '' + x.responseText, x, o);
- else if (o.error)
- o.error.call(o.error_scope, c > 10000 ? 'TIMED_OUT' : 'GENERAL', x, o);
-
- x = null;
- } else
- w.setTimeout(ready, 10);
- };
-
// Syncronous request
if (!o.async)
return ready();
@@ -989,7 +1050,8 @@ tinymce.create('static tinymce.util.XHR', {
};
o.error = function(ty, x) {
- ecb.call(o.error_scope || o.scope, ty, x);
+ if (ecb)
+ ecb.call(o.error_scope || o.scope, ty, x);
};
o.data = JSON.serialize({
@@ -1011,5820 +1073,9617 @@ tinymce.create('static tinymce.util.XHR', {
}
});
}());
-(function(tinymce) {
- // Shorten names
- var each = tinymce.each,
- is = tinymce.is,
- isWebKit = tinymce.isWebKit,
- isIE = tinymce.isIE,
- blockRe = /^(H[1-6R]|P|DIV|ADDRESS|PRE|FORM|T(ABLE|BODY|HEAD|FOOT|H|R|D)|LI|OL|UL|CAPTION|BLOCKQUOTE|CENTER|DL|DT|DD|DIR|FIELDSET|NOSCRIPT|MENU|ISINDEX|SAMP)$/,
- boolAttrs = makeMap('checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected'),
- mceAttribs = makeMap('src,href,style,coords,shape'),
- encodedChars = {'&' : '&', '"' : '"', '<' : '<', '>' : '>'},
- encodeCharsRe = /[<>&\"]/g,
- simpleSelectorRe = /^([a-z0-9],?)+$/i,
- tagRegExp = /<(\w+)((?:\s+\w+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)(\s*\/?)>/g,
- attrRegExp = /(\w+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g;
+(function(tinymce){
+ tinymce.VK = {
+ BACKSPACE: 8,
+ DELETE: 46,
+ DOWN: 40,
+ ENTER: 13,
+ LEFT: 37,
+ RIGHT: 39,
+ SPACEBAR: 32,
+ TAB: 9,
+ UP: 38,
+
+ modifierPressed: function (e) {
+ return e.shiftKey || e.ctrlKey || e.altKey;
+ },
+
+ metaKeyPressed: function(e) {
+ // Check if ctrl or meta key is pressed also check if alt is false for Polish users
+ return tinymce.isMac ? e.metaKey : e.ctrlKey && !e.altKey;
+ }
+ };
+})(tinymce);
- function makeMap(str) {
- var map = {}, i;
+tinymce.util.Quirks = function(editor) {
+ var VK = tinymce.VK, BACKSPACE = VK.BACKSPACE, DELETE = VK.DELETE, dom = editor.dom, selection = editor.selection,
+ settings = editor.settings, parser = editor.parser, serializer = editor.serializer;
+
+ function setEditorCommandState(cmd, state) {
+ try {
+ editor.getDoc().execCommand(cmd, false, state);
+ } catch (ex) {
+ // Ignore
+ }
+ }
- str = str.split(',');
- for (i = str.length; i >= 0; i--)
- map[str[i]] = 1;
+ function getDocumentMode() {
+ var documentMode = editor.getDoc().documentMode;
- return map;
+ return documentMode ? documentMode : 6;
};
- tinymce.create('tinymce.dom.DOMUtils', {
- doc : null,
- root : null,
- files : null,
- pixelStyles : /^(top|left|bottom|right|width|height|borderWidth)$/,
- props : {
- "for" : "htmlFor",
- "class" : "className",
- className : "className",
- checked : "checked",
- disabled : "disabled",
- maxlength : "maxLength",
- readonly : "readOnly",
- selected : "selected",
- value : "value",
- id : "id",
- name : "name",
- type : "type"
- },
+ function isDefaultPrevented(e) {
+ return e.isDefaultPrevented();
+ };
- DOMUtils : function(d, s) {
- var t = this, globalStyle;
+ function cleanupStylesWhenDeleting() {
+ function removeMergedFormatSpans(isDelete) {
+ var rng, blockElm, node, clonedSpan;
- t.doc = d;
- t.win = window;
- t.files = {};
- t.cssFlicker = false;
- t.counter = 0;
- t.stdMode = d.documentMode >= 8;
- t.boxModel = !tinymce.isIE || d.compatMode == "CSS1Compat" || t.stdMode;
+ rng = selection.getRng();
- t.settings = s = tinymce.extend({
- keep_values : false,
- hex_colors : 1,
- process_html : 1
- }, s);
+ // Find root block
+ blockElm = dom.getParent(rng.startContainer, dom.isBlock);
- // Fix IE6SP2 flicker and check it failed for pre SP2
- if (tinymce.isIE6) {
- try {
- d.execCommand('BackgroundImageCache', false, true);
- } catch (e) {
- t.cssFlicker = true;
- }
- }
+ // On delete clone the root span of the next block element
+ if (isDelete)
+ blockElm = dom.getNext(blockElm, dom.isBlock);
- // Build styles list
- if (s.valid_styles) {
- t._styles = {};
+ // Locate root span element and clone it since it would otherwise get merged by the "apple-style-span" on delete/backspace
+ if (blockElm) {
+ node = blockElm.firstChild;
- // Convert styles into a rule list
- each(s.valid_styles, function(value, key) {
- t._styles[key] = tinymce.explode(value);
- });
+ // Ignore empty text nodes
+ while (node && node.nodeType == 3 && node.nodeValue.length === 0)
+ node = node.nextSibling;
+
+ if (node && node.nodeName === 'SPAN') {
+ clonedSpan = node.cloneNode(false);
+ }
}
- tinymce.addUnload(t.destroy, t);
- },
+ // Do the backspace/delete action
+ editor.getDoc().execCommand(isDelete ? 'ForwardDelete' : 'Delete', false, null);
- getRoot : function() {
- var t = this, s = t.settings;
+ // Find all odd apple-style-spans
+ blockElm = dom.getParent(rng.startContainer, dom.isBlock);
+ tinymce.each(dom.select('span.Apple-style-span,font.Apple-style-span', blockElm), function(span) {
+ var bm = selection.getBookmark();
- return (s && t.get(s.root_element)) || t.doc.body;
- },
+ if (clonedSpan) {
+ dom.replace(clonedSpan.cloneNode(false), span, true);
+ } else {
+ dom.remove(span, true);
+ }
- getViewPort : function(w) {
- var d, b;
+ // Restore the selection
+ selection.moveToBookmark(bm);
+ });
+ };
- w = !w ? this.win : w;
- d = w.document;
- b = this.boxModel ? d.documentElement : d.body;
+ editor.onKeyDown.add(function(editor, e) {
+ var isDelete;
- // Returns viewport size excluding scrollbars
- return {
- x : w.pageXOffset || b.scrollLeft,
- y : w.pageYOffset || b.scrollTop,
- w : w.innerWidth || b.clientWidth,
- h : w.innerHeight || b.clientHeight
- };
- },
+ isDelete = e.keyCode == DELETE;
+ if (!isDefaultPrevented(e) && (isDelete || e.keyCode == BACKSPACE) && !VK.modifierPressed(e)) {
+ e.preventDefault();
+ removeMergedFormatSpans(isDelete);
+ }
+ });
- getRect : function(e) {
- var p, t = this, sr;
+ editor.addCommand('Delete', function() {removeMergedFormatSpans();});
+ };
+
+ function emptyEditorWhenDeleting() {
+ function serializeRng(rng) {
+ var body = dom.create("body");
+ var contents = rng.cloneContents();
+ body.appendChild(contents);
+ return selection.serializer.serialize(body, {format: 'html'});
+ }
- e = t.get(e);
- p = t.getPos(e);
- sr = t.getSize(e);
+ function allContentsSelected(rng) {
+ var selection = serializeRng(rng);
- return {
- x : p.x,
- y : p.y,
- w : sr.w,
- h : sr.h
- };
- },
+ var allRng = dom.createRng();
+ allRng.selectNode(editor.getBody());
- getSize : function(e) {
- var t = this, w, h;
+ var allSelection = serializeRng(allRng);
+ return selection === allSelection;
+ }
- e = t.get(e);
- w = t.getStyle(e, 'width');
- h = t.getStyle(e, 'height');
+ editor.onKeyDown.add(function(editor, e) {
+ var keyCode = e.keyCode, isCollapsed;
- // Non pixel value, then force offset/clientWidth
- if (w.indexOf('px') === -1)
- w = 0;
+ // Empty the editor if it's needed for example backspace at <p><b>|</b></p>
+ if (!isDefaultPrevented(e) && (keyCode == DELETE || keyCode == BACKSPACE)) {
+ isCollapsed = editor.selection.isCollapsed();
- // Non pixel value, then force offset/clientWidth
- if (h.indexOf('px') === -1)
- h = 0;
+ // Selection is collapsed but the editor isn't empty
+ if (isCollapsed && !dom.isEmpty(editor.getBody())) {
+ return;
+ }
- return {
- w : parseInt(w) || e.offsetWidth || e.clientWidth,
- h : parseInt(h) || e.offsetHeight || e.clientHeight
- };
- },
+ // IE deletes all contents correctly when everything is selected
+ if (tinymce.isIE && !isCollapsed) {
+ return;
+ }
- getParent : function(n, f, r) {
- return this.getParents(n, f, r, false);
- },
+ // Selection isn't collapsed but not all the contents is selected
+ if (!isCollapsed && !allContentsSelected(editor.selection.getRng())) {
+ return;
+ }
- getParents : function(n, f, r, c) {
- var t = this, na, se = t.settings, o = [];
+ // Manually empty the editor
+ editor.setContent('');
+ editor.selection.setCursorLocation(editor.getBody(), 0);
+ editor.nodeChanged();
+ }
+ });
+ };
- n = t.get(n);
- c = c === undefined;
+ function selectAll() {
+ editor.onKeyDown.add(function(editor, e) {
+ if (!isDefaultPrevented(e) && e.keyCode == 65 && VK.metaKeyPressed(e)) {
+ e.preventDefault();
+ editor.execCommand('SelectAll');
+ }
+ });
+ };
- if (se.strict_root)
- r = r || t.getRoot();
+ function inputMethodFocus() {
+ if (!editor.settings.content_editable) {
+ // Case 1 IME doesn't initialize if you focus the document
+ dom.bind(editor.getDoc(), 'focusin', function(e) {
+ selection.setRng(selection.getRng());
+ });
- // Wrap node name as func
- if (is(f, 'string')) {
- na = f;
+ // Case 2 IME doesn't initialize if you click the documentElement it also doesn't properly fire the focusin event
+ dom.bind(editor.getDoc(), 'mousedown', function(e) {
+ if (e.target == editor.getDoc().documentElement) {
+ editor.getWin().focus();
+ selection.setRng(selection.getRng());
+ }
+ });
+ }
+ };
- if (f === '*') {
- f = function(n) {return n.nodeType == 1;};
- } else {
- f = function(n) {
- return t.is(n, na);
- };
+ function removeHrOnBackspace() {
+ editor.onKeyDown.add(function(editor, e) {
+ if (!isDefaultPrevented(e) && e.keyCode === BACKSPACE) {
+ if (selection.isCollapsed() && selection.getRng(true).startOffset === 0) {
+ var node = selection.getNode();
+ var previousSibling = node.previousSibling;
+
+ if (previousSibling && previousSibling.nodeName && previousSibling.nodeName.toLowerCase() === "hr") {
+ dom.remove(previousSibling);
+ tinymce.dom.Event.cancel(e);
+ }
}
}
+ })
+ }
- while (n) {
- if (n == r || !n.nodeType || n.nodeType === 9)
- break;
-
- if (!f || f(n)) {
- if (c)
- o.push(n);
- else
- return n;
+ function focusBody() {
+ // Fix for a focus bug in FF 3.x where the body element
+ // wouldn't get proper focus if the user clicked on the HTML element
+ if (!Range.prototype.getClientRects) { // Detect getClientRects got introduced in FF 4
+ editor.onMouseDown.add(function(editor, e) {
+ if (!isDefaultPrevented(e) && e.target.nodeName === "HTML") {
+ var body = editor.getBody();
+
+ // Blur the body it's focused but not correctly focused
+ body.blur();
+
+ // Refocus the body after a little while
+ setTimeout(function() {
+ body.focus();
+ }, 0);
}
+ });
+ }
+ };
- n = n.parentNode;
+ function selectControlElements() {
+ editor.onClick.add(function(editor, e) {
+ e = e.target;
+
+ // Workaround for bug, http://bugs.webkit.org/show_bug.cgi?id=12250
+ // WebKit can't even do simple things like selecting an image
+ // Needs tobe the setBaseAndExtend or it will fail to select floated images
+ if (/^(IMG|HR)$/.test(e.nodeName)) {
+ selection.getSel().setBaseAndExtent(e, 0, e, 1);
}
- return c ? o : null;
- },
+ if (e.nodeName == 'A' && dom.hasClass(e, 'mceItemAnchor')) {
+ selection.select(e);
+ }
- get : function(e) {
- var n;
+ editor.nodeChanged();
+ });
+ };
- if (e && this.doc && typeof(e) == 'string') {
- n = e;
- e = this.doc.getElementById(e);
+ function removeStylesWhenDeletingAccrossBlockElements() {
+ function getAttributeApplyFunction() {
+ var template = dom.getAttribs(selection.getStart().cloneNode(false));
- // IE and Opera returns meta elements when they match the specified input ID, but getElementsByName seems to do the trick
- if (e && e.id !== n)
- return this.doc.getElementsByName(n)[1];
- }
+ return function() {
+ var target = selection.getStart();
- return e;
- },
+ if (target !== editor.getBody()) {
+ dom.setAttrib(target, "style", null);
- getNext : function(node, selector) {
- return this._findSib(node, selector, 'nextSibling');
- },
+ tinymce.each(template, function(attr) {
+ target.setAttributeNode(attr.cloneNode(true));
+ });
+ }
+ };
+ }
- getPrev : function(node, selector) {
- return this._findSib(node, selector, 'previousSibling');
- },
+ function isSelectionAcrossElements() {
+ return !selection.isCollapsed() && dom.getParent(selection.getStart(), dom.isBlock) != dom.getParent(selection.getEnd(), dom.isBlock);
+ }
+ function blockEvent(editor, e) {
+ e.preventDefault();
+ return false;
+ }
- select : function(pa, s) {
- var t = this;
+ editor.onKeyPress.add(function(editor, e) {
+ var applyAttributes;
- return tinymce.dom.Sizzle(pa, t.get(s) || t.get(t.settings.root_element) || t.doc, []);
- },
+ if (!isDefaultPrevented(e) && (e.keyCode == 8 || e.keyCode == 46) && isSelectionAcrossElements()) {
+ applyAttributes = getAttributeApplyFunction();
+ editor.getDoc().execCommand('delete', false, null);
+ applyAttributes();
+ e.preventDefault();
+ return false;
+ }
+ });
- is : function(n, selector) {
- var i;
+ dom.bind(editor.getDoc(), 'cut', function(e) {
+ var applyAttributes;
- // If it isn't an array then try to do some simple selectors instead of Sizzle for to boost performance
- if (n.length === undefined) {
- // Simple all selector
- if (selector === '*')
- return n.nodeType == 1;
+ if (!isDefaultPrevented(e) && isSelectionAcrossElements()) {
+ applyAttributes = getAttributeApplyFunction();
+ editor.onKeyUp.addToTop(blockEvent);
- // Simple selector just elements
- if (simpleSelectorRe.test(selector)) {
- selector = selector.toLowerCase().split(/,/);
- n = n.nodeName.toLowerCase();
+ setTimeout(function() {
+ applyAttributes();
+ editor.onKeyUp.remove(blockEvent);
+ }, 0);
+ }
+ });
+ }
- for (i = selector.length - 1; i >= 0; i--) {
- if (selector[i] == n)
- return true;
- }
+ function selectionChangeNodeChanged() {
+ var lastRng, selectionTimer;
- return false;
- }
+ dom.bind(editor.getDoc(), 'selectionchange', function() {
+ if (selectionTimer) {
+ clearTimeout(selectionTimer);
+ selectionTimer = 0;
}
- return tinymce.dom.Sizzle.matches(selector, n.nodeType ? [n] : n).length > 0;
- },
+ selectionTimer = window.setTimeout(function() {
+ var rng = selection.getRng();
+ // Compare the ranges to see if it was a real change or not
+ if (!lastRng || !tinymce.dom.RangeUtils.compareRanges(rng, lastRng)) {
+ editor.nodeChanged();
+ lastRng = rng;
+ }
+ }, 50);
+ });
+ }
- add : function(p, n, a, h, c) {
- var t = this;
+ function ensureBodyHasRoleApplication() {
+ document.body.setAttribute("role", "application");
+ }
- return this.run(p, function(p) {
- var e, k;
+ function disableBackspaceIntoATable() {
+ editor.onKeyDown.add(function(editor, e) {
+ if (!isDefaultPrevented(e) && e.keyCode === BACKSPACE) {
+ if (selection.isCollapsed() && selection.getRng(true).startOffset === 0) {
+ var previousSibling = selection.getNode().previousSibling;
+ if (previousSibling && previousSibling.nodeName && previousSibling.nodeName.toLowerCase() === "table") {
+ return tinymce.dom.Event.cancel(e);
+ }
+ }
+ }
+ })
+ }
- e = is(n, 'string') ? t.doc.createElement(n) : n;
- t.setAttribs(e, a);
+ function addNewLinesBeforeBrInPre() {
+ // IE8+ rendering mode does the right thing with BR in PRE
+ if (getDocumentMode() > 7) {
+ return;
+ }
- if (h) {
- if (h.nodeType)
- e.appendChild(h);
- else
- t.setHTML(e, h);
+ // Enable display: none in area and add a specific class that hides all BR elements in PRE to
+ // avoid the caret from getting stuck at the BR elements while pressing the right arrow key
+ setEditorCommandState('RespectVisibilityInDesign', true);
+ editor.contentStyles.push('.mceHideBrInPre pre br {display: none}');
+ dom.addClass(editor.getBody(), 'mceHideBrInPre');
+
+ // Adds a \n before all BR elements in PRE to get them visual
+ parser.addNodeFilter('pre', function(nodes, name) {
+ var i = nodes.length, brNodes, j, brElm, sibling;
+
+ while (i--) {
+ brNodes = nodes[i].getAll('br');
+ j = brNodes.length;
+ while (j--) {
+ brElm = brNodes[j];
+
+ // Add \n before BR in PRE elements on older IE:s so the new lines get rendered
+ sibling = brElm.prev;
+ if (sibling && sibling.type === 3 && sibling.value.charAt(sibling.value - 1) != '\n') {
+ sibling.value += '\n';
+ } else {
+ brElm.parent.insert(new tinymce.html.Node('#text', 3), brElm, true).value = '\n';
+ }
}
+ }
+ });
- return !c ? p.appendChild(e) : e;
- });
- },
-
- create : function(n, a, h) {
- return this.add(this.doc.createElement(n), n, a, h, 1);
- },
+ // Removes any \n before BR elements in PRE since other browsers and in contentEditable=false mode they will be visible
+ serializer.addNodeFilter('pre', function(nodes, name) {
+ var i = nodes.length, brNodes, j, brElm, sibling;
+
+ while (i--) {
+ brNodes = nodes[i].getAll('br');
+ j = brNodes.length;
+ while (j--) {
+ brElm = brNodes[j];
+ sibling = brElm.prev;
+ if (sibling && sibling.type == 3) {
+ sibling.value = sibling.value.replace(/\r?\n$/, '');
+ }
+ }
+ }
+ });
+ }
- createHTML : function(n, a, h) {
- var o = '', t = this, k;
+ function removePreSerializedStylesWhenSelectingControls() {
+ dom.bind(editor.getBody(), 'mouseup', function(e) {
+ var value, node = selection.getNode();
- o += '<' + n;
+ // Moved styles to attributes on IMG eements
+ if (node.nodeName == 'IMG') {
+ // Convert style width to width attribute
+ if (value = dom.getStyle(node, 'width')) {
+ dom.setAttrib(node, 'width', value.replace(/[^0-9%]+/g, ''));
+ dom.setStyle(node, 'width', '');
+ }
- for (k in a) {
- if (a.hasOwnProperty(k))
- o += ' ' + k + '="' + t.encode(a[k]) + '"';
+ // Convert style height to height attribute
+ if (value = dom.getStyle(node, 'height')) {
+ dom.setAttrib(node, 'height', value.replace(/[^0-9%]+/g, ''));
+ dom.setStyle(node, 'height', '');
+ }
}
+ });
+ }
- // A call to tinymce.is doesn't work for some odd reason on IE9 possible bug inside their JS runtime
- if (typeof(h) != "undefined")
- return o + '>' + h + '</' + n + '>';
+ function keepInlineElementOnDeleteBackspace() {
+ editor.onKeyDown.add(function(editor, e) {
+ var isDelete, rng, container, offset, brElm, sibling, collapsed;
+
+ isDelete = e.keyCode == DELETE;
+ if (!isDefaultPrevented(e) && (isDelete || e.keyCode == BACKSPACE) && !VK.modifierPressed(e)) {
+ rng = selection.getRng();
+ container = rng.startContainer;
+ offset = rng.startOffset;
+ collapsed = rng.collapsed;
+
+ // Override delete if the start container is a text node and is at the beginning of text or
+ // just before/after the last character to be deleted in collapsed mode
+ if (container.nodeType == 3 && container.nodeValue.length > 0 && ((offset === 0 && !collapsed) || (collapsed && offset === (isDelete ? 0 : 1)))) {
+ nonEmptyElements = editor.schema.getNonEmptyElements();
+
+ // Prevent default logic since it's broken
+ e.preventDefault();
+
+ // Insert a BR before the text node this will prevent the containing element from being deleted/converted
+ brElm = dom.create('br', {id: '__tmp'});
+ container.parentNode.insertBefore(brElm, container);
+
+ // Do the browser delete
+ editor.getDoc().execCommand(isDelete ? 'ForwardDelete' : 'Delete', false, null);
+
+ // Check if the previous sibling is empty after deleting for example: <p><b></b>|</p>
+ container = selection.getRng().startContainer;
+ sibling = container.previousSibling;
+ if (sibling && sibling.nodeType == 1 && !dom.isBlock(sibling) && dom.isEmpty(sibling) && !nonEmptyElements[sibling.nodeName.toLowerCase()]) {
+ dom.remove(sibling);
+ }
- return o + ' />';
- },
+ // Remove the temp element we inserted
+ dom.remove('__tmp');
+ }
+ }
+ });
+ }
- remove : function(node, keep_children) {
- return this.run(node, function(node) {
- var parent, child;
+ function removeBlockQuoteOnBackSpace() {
+ // Add block quote deletion handler
+ editor.onKeyDown.add(function(editor, e) {
+ var rng, container, offset, root, parent;
- parent = node.parentNode;
+ if (isDefaultPrevented(e) || e.keyCode != VK.BACKSPACE) {
+ return;
+ }
- if (!parent)
- return null;
+ rng = selection.getRng();
+ container = rng.startContainer;
+ offset = rng.startOffset;
+ root = dom.getRoot();
+ parent = container;
- if (keep_children) {
- while (child = node.firstChild) {
- // IE 8 will crash if you don't remove completely empty text nodes
- if (!tinymce.isIE || child.nodeType !== 3 || child.nodeValue)
- parent.insertBefore(child, node);
- else
- node.removeChild(child);
- }
- }
+ if (!rng.collapsed || offset !== 0) {
+ return;
+ }
- return parent.removeChild(node);
- });
- },
+ while (parent && parent.parentNode && parent.parentNode.firstChild == parent && parent.parentNode != root) {
+ parent = parent.parentNode;
+ }
- setStyle : function(n, na, v) {
- var t = this;
+ // Is the cursor at the beginning of a blockquote?
+ if (parent.tagName === 'BLOCKQUOTE') {
+ // Remove the blockquote
+ editor.formatter.toggle('blockquote', null, parent);
- return t.run(n, function(e) {
- var s, i;
+ // Move the caret to the beginning of container
+ rng = dom.createRng();
+ rng.setStart(container, 0);
+ rng.setEnd(container, 0);
+ selection.setRng(rng);
+ }
+ });
+ };
- s = e.style;
+ function setGeckoEditingOptions() {
+ function setOpts() {
+ editor._refreshContentEditable();
- // Camelcase it, if needed
- na = na.replace(/-(\D)/g, function(a, b){
- return b.toUpperCase();
- });
+ setEditorCommandState("StyleWithCSS", false);
+ setEditorCommandState("enableInlineTableEditing", false);
- // Default px suffix on these
- if (t.pixelStyles.test(na) && (tinymce.is(v, 'number') || /^[\-0-9\.]+$/.test(v)))
- v += 'px';
+ if (!settings.object_resizing) {
+ setEditorCommandState("enableObjectResizing", false);
+ }
+ };
- switch (na) {
- case 'opacity':
- // IE specific opacity
- if (isIE) {
- s.filter = v === '' ? '' : "alpha(opacity=" + (v * 100) + ")";
+ if (!settings.readonly) {
+ editor.onBeforeExecCommand.add(setOpts);
+ editor.onMouseDown.add(setOpts);
+ }
+ };
- if (!n.currentStyle || !n.currentStyle.hasLayout)
- s.display = 'inline-block';
+ function addBrAfterLastLinks() {
+ function fixLinks(editor, o) {
+ tinymce.each(dom.select('a'), function(node) {
+ var parentNode = node.parentNode, root = dom.getRoot();
+
+ if (parentNode.lastChild === node) {
+ while (parentNode && !dom.isBlock(parentNode)) {
+ if (parentNode.parentNode.lastChild !== parentNode || parentNode === root) {
+ return;
}
- // Fix for older browsers
- s[na] = s['-moz-opacity'] = s['-khtml-opacity'] = v || '';
- break;
+ parentNode = parentNode.parentNode;
+ }
- case 'float':
- isIE ? s.styleFloat = v : s.cssFloat = v;
- break;
-
- default:
- s[na] = v || '';
+ dom.add(parentNode, 'br', {'data-mce-bogus' : 1});
}
-
- // Force update of the style data
- if (t.settings.update_styles)
- t.setAttrib(e, '_mce_style');
});
- },
+ };
- getStyle : function(n, na, c) {
- n = this.get(n);
+ editor.onExecCommand.add(function(editor, cmd) {
+ if (cmd === 'CreateLink') {
+ fixLinks(editor);
+ }
+ });
- if (!n)
- return false;
+ editor.onSetContent.add(selection.onSetContent.add(fixLinks));
+ };
- // Gecko
- if (this.doc.defaultView && c) {
- // Remove camelcase
- na = na.replace(/[A-Z]/g, function(a){
- return '-' + a;
- });
+ function setDefaultBlockType() {
+ if (settings.forced_root_block) {
+ editor.onInit.add(function() {
+ setEditorCommandState('DefaultParagraphSeparator', settings.forced_root_block);
+ });
+ }
+ }
- try {
- return this.doc.defaultView.getComputedStyle(n, null).getPropertyValue(na);
- } catch (ex) {
- // Old safari might fail
- return null;
+ function removeGhostSelection() {
+ function repaint(sender, args) {
+ if (!sender || !args.initial) {
+ editor.execCommand('mceRepaint');
+ }
+ };
+
+ editor.onUndo.add(repaint);
+ editor.onRedo.add(repaint);
+ editor.onSetContent.add(repaint);
+ };
+
+ function deleteControlItemOnBackSpace() {
+ editor.onKeyDown.add(function(editor, e) {
+ var rng;
+
+ if (!isDefaultPrevented(e) && e.keyCode == BACKSPACE) {
+ rng = editor.getDoc().selection.createRange();
+ if (rng && rng.item) {
+ e.preventDefault();
+ editor.undoManager.beforeChange();
+ dom.remove(rng.item(0));
+ editor.undoManager.add();
}
}
+ });
+ };
- // Camelcase it, if needed
- na = na.replace(/-(\D)/g, function(a, b){
- return b.toUpperCase();
+ function renderEmptyBlocksFix() {
+ var emptyBlocksCSS;
+
+ // IE10+
+ if (getDocumentMode() >= 10) {
+ emptyBlocksCSS = '';
+ tinymce.each('p div h1 h2 h3 h4 h5 h6'.split(' '), function(name, i) {
+ emptyBlocksCSS += (i > 0 ? ',' : '') + name + ':empty';
});
- if (na == 'float')
- na = isIE ? 'styleFloat' : 'cssFloat';
+ editor.contentStyles.push(emptyBlocksCSS + '{padding-right: 1px !important}');
+ }
+ };
- // IE & Opera
- if (n.currentStyle && c)
- return n.currentStyle[na];
+ function fakeImageResize() {
+ var selectedElmX, selectedElmY, selectedElm, selectedElmGhost, selectedHandle, startX, startY, startW, startH, ratio,
+ resizeHandles, width, height, rootDocument = document, editableDoc = editor.getDoc();
- return n.style[na];
- },
+ if (!settings.object_resizing || settings.webkit_fake_resize === false) {
+ return;
+ }
- setStyles : function(e, o) {
- var t = this, s = t.settings, ol;
+ // Try disabling object resizing if WebKit implements resizing in the future
+ setEditorCommandState("enableObjectResizing", false);
+
+ // Details about each resize handle how to scale etc
+ resizeHandles = {
+ // Name: x multiplier, y multiplier, delta size x, delta size y
+ n: [.5, 0, 0, -1],
+ e: [1, .5, 1, 0],
+ s: [.5, 1, 0, 1],
+ w: [0, .5, -1, 0],
+ nw: [0, 0, -1, -1],
+ ne: [1, 0, 1, -1],
+ se: [1, 1, 1, 1],
+ sw : [0, 1, -1, 1]
+ };
- ol = s.update_styles;
- s.update_styles = 0;
+ function resizeElement(e) {
+ var deltaX, deltaY;
- each(o, function(v, n) {
- t.setStyle(e, n, v);
- });
+ // Calc new width/height
+ deltaX = e.screenX - startX;
+ deltaY = e.screenY - startY;
- // Update style info
- s.update_styles = ol;
- if (s.update_styles)
- t.setAttrib(e, s.cssText);
- },
+ // Calc new size
+ width = deltaX * selectedHandle[2] + startW;
+ height = deltaY * selectedHandle[3] + startH;
- setAttrib : function(e, n, v) {
- var t = this;
+ // Never scale down lower than 5 pixels
+ width = width < 5 ? 5 : width;
+ height = height < 5 ? 5 : height;
- // Whats the point
- if (!e || !n)
- return;
+ // Constrain proportions when modifier key is pressed or if the nw, ne, sw, se corners are moved on an image
+ if (VK.modifierPressed(e) || (selectedElm.nodeName == "IMG" && selectedHandle[2] * selectedHandle[3] !== 0)) {
+ width = Math.round(height / ratio);
+ height = Math.round(width * ratio);
+ }
- // Strict XML mode
- if (t.settings.strict)
- n = n.toLowerCase();
+ // Update ghost size
+ dom.setStyles(selectedElmGhost, {
+ width: width,
+ height: height
+ });
- return this.run(e, function(e) {
- var s = t.settings;
+ // Update ghost X position if needed
+ if (selectedHandle[2] < 0 && selectedElmGhost.clientWidth <= width) {
+ dom.setStyle(selectedElmGhost, 'left', selectedElmX + (startW - width));
+ }
- switch (n) {
- case "style":
- if (!is(v, 'string')) {
- each(v, function(v, n) {
- t.setStyle(e, n, v);
- });
+ // Update ghost Y position if needed
+ if (selectedHandle[3] < 0 && selectedElmGhost.clientHeight <= height) {
+ dom.setStyle(selectedElmGhost, 'top', selectedElmY + (startH - height));
+ }
+ }
- return;
- }
+ function endResize() {
+ function setSizeProp(name, value) {
+ if (value) {
+ // Resize by using style or attribute
+ if (selectedElm.style[name] || !editor.schema.isValid(selectedElm.nodeName.toLowerCase(), name)) {
+ dom.setStyle(selectedElm, name, value);
+ } else {
+ dom.setAttrib(selectedElm, name, value);
+ }
+ }
+ }
- // No mce_style for elements with these since they might get resized by the user
- if (s.keep_values) {
- if (v && !t._isRes(v))
- e.setAttribute('_mce_style', v, 2);
- else
- e.removeAttribute('_mce_style', 2);
- }
+ // Set width/height properties
+ setSizeProp('width', width);
+ setSizeProp('height', height);
- e.style.cssText = v;
- break;
+ dom.unbind(editableDoc, 'mousemove', resizeElement);
+ dom.unbind(editableDoc, 'mouseup', endResize);
- case "class":
- e.className = v || ''; // Fix IE null bug
- break;
+ if (rootDocument != editableDoc) {
+ dom.unbind(rootDocument, 'mousemove', resizeElement);
+ dom.unbind(rootDocument, 'mouseup', endResize);
+ }
- case "src":
- case "href":
- if (s.keep_values) {
- if (s.url_converter)
- v = s.url_converter.call(s.url_converter_scope || t, v, n, e);
+ // Remove ghost and update resize handle positions
+ dom.remove(selectedElmGhost);
+ showResizeRect(selectedElm);
+ }
- t.setAttrib(e, '_mce_' + n, v, 2);
- }
+ function showResizeRect(targetElm) {
+ var position, targetWidth, targetHeight;
- break;
-
- case "shape":
- e.setAttribute('_mce_style', v);
- break;
- }
+ hideResizeRect();
- if (is(v) && v !== null && v.length !== 0)
- e.setAttribute(n, '' + v, 2);
- else
- e.removeAttribute(n, 2);
- });
- },
+ // Get position and size of target
+ position = dom.getPos(targetElm);
+ selectedElmX = position.x;
+ selectedElmY = position.y;
+ targetWidth = targetElm.offsetWidth;
+ targetHeight = targetElm.offsetHeight;
- setAttribs : function(e, o) {
- var t = this;
+ // Reset width/height if user selects a new image/table
+ if (selectedElm != targetElm) {
+ selectedElm = targetElm;
+ width = height = 0;
+ }
- return this.run(e, function(e) {
- each(o, function(v, n) {
- t.setAttrib(e, n, v);
- });
- });
- },
+ tinymce.each(resizeHandles, function(handle, name) {
+ var handleElm;
- getAttrib : function(e, n, dv) {
- var v, t = this;
+ // Get existing or render resize handle
+ handleElm = dom.get('mceResizeHandle' + name);
+ if (!handleElm) {
+ handleElm = dom.add(editableDoc.documentElement, 'div', {
+ id: 'mceResizeHandle' + name,
+ 'class': 'mceResizeHandle',
+ style: 'cursor:' + name + '-resize; margin:0; padding:0'
+ });
- e = t.get(e);
+ dom.bind(handleElm, 'mousedown', function(e) {
+ e.preventDefault();
- if (!e || e.nodeType !== 1)
- return false;
+ endResize();
- if (!is(dv))
- dv = '';
+ startX = e.screenX;
+ startY = e.screenY;
+ startW = selectedElm.clientWidth;
+ startH = selectedElm.clientHeight;
+ ratio = startH / startW;
+ selectedHandle = handle;
- // Try the mce variant for these
- if (/^(src|href|style|coords|shape)$/.test(n)) {
- v = e.getAttribute("_mce_" + n);
+ selectedElmGhost = selectedElm.cloneNode(true);
+ dom.addClass(selectedElmGhost, 'mceClonedResizable');
+ dom.setStyles(selectedElmGhost, {
+ left: selectedElmX,
+ top: selectedElmY,
+ margin: 0
+ });
- if (v)
- return v;
+ editableDoc.documentElement.appendChild(selectedElmGhost);
+
+ dom.bind(editableDoc, 'mousemove', resizeElement);
+ dom.bind(editableDoc, 'mouseup', endResize);
+
+ if (rootDocument != editableDoc) {
+ dom.bind(rootDocument, 'mousemove', resizeElement);
+ dom.bind(rootDocument, 'mouseup', endResize);
+ }
+ });
+ } else {
+ dom.show(handleElm);
+ }
+
+ // Position element
+ dom.setStyles(handleElm, {
+ left: (targetWidth * handle[0] + selectedElmX) - (handleElm.offsetWidth / 2),
+ top: (targetHeight * handle[1] + selectedElmY) - (handleElm.offsetHeight / 2)
+ });
+ });
+
+ // Only add resize rectangle on WebKit and only on images
+ if (!tinymce.isOpera && selectedElm.nodeName == "IMG") {
+ selectedElm.setAttribute('data-mce-selected', '1');
}
+ }
- if (isIE && t.props[n]) {
- v = e[t.props[n]];
- v = v && v.nodeValue ? v.nodeValue : v;
+ function hideResizeRect() {
+ if (selectedElm) {
+ selectedElm.removeAttribute('data-mce-selected');
}
- if (!v)
- v = e.getAttribute(n, 2);
+ for (var name in resizeHandles) {
+ dom.hide('mceResizeHandle' + name);
+ }
+ }
- // Check boolean attribs
- if (/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noshade|nowrap|readonly|selected)$/.test(n)) {
- if (e[t.props[n]] === true && v === '')
- return n;
+ // Add CSS for resize handles, cloned element and selected
+ editor.contentStyles.push(
+ '.mceResizeHandle {' +
+ 'position: absolute;' +
+ 'border: 1px solid black;' +
+ 'background: #FFF;' +
+ 'width: 5px;' +
+ 'height: 5px;' +
+ 'z-index: 10000' +
+ '}' +
+ '.mceResizeHandle:hover {' +
+ 'background: #000' +
+ '}' +
+ 'img[data-mce-selected] {' +
+ 'outline: 1px solid black' +
+ '}' +
+ 'img.mceClonedResizable, table.mceClonedResizable {' +
+ 'position: absolute;' +
+ 'outline: 1px dashed black;' +
+ 'opacity: .5;' +
+ 'z-index: 10000' +
+ '}'
+ );
+
+ function updateResizeRect() {
+ var controlElm = dom.getParent(selection.getNode(), 'table,img');
+
+ // Remove data-mce-selected from all elements since they might have been copied using Ctrl+c/v
+ tinymce.each(dom.select('img[data-mce-selected]'), function(img) {
+ img.removeAttribute('data-mce-selected');
+ });
- return v ? n : '';
+ if (controlElm) {
+ showResizeRect(controlElm);
+ } else {
+ hideResizeRect();
}
+ }
- // Inner input elements will override attributes on form elements
- if (e.nodeName === "FORM" && e.getAttributeNode(n))
- return e.getAttributeNode(n).nodeValue;
+ // Show/hide resize rect when image is selected
+ editor.onNodeChange.add(updateResizeRect);
- if (n === 'style') {
- v = v || e.style.cssText;
+ // Fixes WebKit quirk where it returns IMG on getNode if caret is after last image in container
+ dom.bind(editableDoc, 'selectionchange', updateResizeRect);
- if (v) {
- v = t.serializeStyle(t.parseStyle(v), e.nodeName);
+ // Remove the internal attribute when serializing the DOM
+ editor.serializer.addAttributeFilter('data-mce-selected', function(nodes, name) {
+ var i = nodes.length;
- if (t.settings.keep_values && !t._isRes(v))
- e.setAttribute('_mce_style', v);
- }
+ while (i--) {
+ nodes[i].attr(name, null);
}
+ });
+ }
- // Remove Apple and WebKit stuff
- if (isWebKit && n === "class" && v)
- v = v.replace(/(apple|webkit)\-[a-z\-]+/gi, '');
+ function keepNoScriptContents() {
+ if (getDocumentMode() < 9) {
+ parser.addNodeFilter('noscript', function(nodes) {
+ var i = nodes.length, node, textNode;
- // Handle IE issues
- if (isIE) {
- switch (n) {
- case 'rowspan':
- case 'colspan':
- // IE returns 1 as default value
- if (v === 1)
- v = '';
+ while (i--) {
+ node = nodes[i];
+ textNode = node.firstChild;
- break;
+ if (textNode) {
+ node.attr('data-mce-innertext', textNode.value);
+ }
+ }
+ });
- case 'size':
- // IE returns +0 as default value for size
- if (v === '+0' || v === 20 || v === 0)
- v = '';
+ serializer.addNodeFilter('noscript', function(nodes) {
+ var i = nodes.length, node, textNode, value;
- break;
+ while (i--) {
+ node = nodes[i];
+ textNode = nodes[i].firstChild;
- case 'width':
- case 'height':
- case 'vspace':
- case 'checked':
- case 'disabled':
- case 'readonly':
- if (v === 0)
- v = '';
+ if (textNode) {
+ textNode.value = tinymce.html.Entities.decode(textNode.value);
+ } else {
+ // Old IE can't retain noscript value so an attribute is used to store it
+ value = node.attributes.map['data-mce-innertext'];
+ if (value) {
+ node.attr('data-mce-innertext', null);
+ textNode = new tinymce.html.Node('#text', 3);
+ textNode.value = value;
+ textNode.raw = true;
+ node.append(textNode);
+ }
+ }
+ }
+ });
+ }
+ }
- break;
+ // All browsers
+ disableBackspaceIntoATable();
+ removeBlockQuoteOnBackSpace();
+ emptyEditorWhenDeleting();
+
+ // WebKit
+ if (tinymce.isWebKit) {
+ keepInlineElementOnDeleteBackspace();
+ cleanupStylesWhenDeleting();
+ inputMethodFocus();
+ selectControlElements();
+ setDefaultBlockType();
+
+ // iOS
+ if (tinymce.isIDevice) {
+ selectionChangeNodeChanged();
+ } else {
+ fakeImageResize();
+ selectAll();
+ }
+ }
- case 'hspace':
- // IE returns -1 as default value
- if (v === -1)
- v = '';
+ // IE
+ if (tinymce.isIE) {
+ removeHrOnBackspace();
+ ensureBodyHasRoleApplication();
+ addNewLinesBeforeBrInPre();
+ removePreSerializedStylesWhenSelectingControls();
+ deleteControlItemOnBackSpace();
+ renderEmptyBlocksFix();
+ keepNoScriptContents();
+ }
- break;
+ // Gecko
+ if (tinymce.isGecko) {
+ removeHrOnBackspace();
+ focusBody();
+ removeStylesWhenDeletingAccrossBlockElements();
+ setGeckoEditingOptions();
+ addBrAfterLastLinks();
+ removeGhostSelection();
+ }
- case 'maxlength':
- case 'tabindex':
- // IE returns default value
- if (v === 32768 || v === 2147483647 || v === '32768')
- v = '';
+ // Opera
+ if (tinymce.isOpera) {
+ fakeImageResize();
+ }
+};
+(function(tinymce) {
+ var namedEntities, baseEntities, reverseEntities,
+ attrsCharsRegExp = /[&<>\"\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,
+ textCharsRegExp = /[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,
+ rawCharsRegExp = /[<>&\"\']/g,
+ entityRegExp = /&(#x|#)?([\w]+);/g,
+ asciiMap = {
+ 128 : "\u20AC", 130 : "\u201A", 131 : "\u0192", 132 : "\u201E", 133 : "\u2026", 134 : "\u2020",
+ 135 : "\u2021", 136 : "\u02C6", 137 : "\u2030", 138 : "\u0160", 139 : "\u2039", 140 : "\u0152",
+ 142 : "\u017D", 145 : "\u2018", 146 : "\u2019", 147 : "\u201C", 148 : "\u201D", 149 : "\u2022",
+ 150 : "\u2013", 151 : "\u2014", 152 : "\u02DC", 153 : "\u2122", 154 : "\u0161", 155 : "\u203A",
+ 156 : "\u0153", 158 : "\u017E", 159 : "\u0178"
+ };
- break;
+ // Raw entities
+ baseEntities = {
+ '\"' : '"', // Needs to be escaped since the YUI compressor would otherwise break the code
+ "'" : ''',
+ '<' : '<',
+ '>' : '>',
+ '&' : '&'
+ };
- case 'multiple':
- case 'compact':
- case 'noshade':
- case 'nowrap':
- if (v === 65535)
- return n;
+ // Reverse lookup table for raw entities
+ reverseEntities = {
+ '<' : '<',
+ '>' : '>',
+ '&' : '&',
+ '"' : '"',
+ ''' : "'"
+ };
- return dv;
+ // Decodes text by using the browser
+ function nativeDecode(text) {
+ var elm;
- case 'shape':
- v = v.toLowerCase();
- break;
+ elm = document.createElement("div");
+ elm.innerHTML = text;
- default:
- // IE has odd anonymous function for event attributes
- if (n.indexOf('on') === 0 && v)
- v = tinymce._replace(/^function\s+\w+\(\)\s+\{\s+(.*)\s+\}$/, '$1', '' + v);
+ return elm.textContent || elm.innerText || text;
+ };
+
+ // Build a two way lookup table for the entities
+ function buildEntitiesLookup(items, radix) {
+ var i, chr, entity, lookup = {};
+
+ if (items) {
+ items = items.split(',');
+ radix = radix || 10;
+
+ // Build entities lookup table
+ for (i = 0; i < items.length; i += 2) {
+ chr = String.fromCharCode(parseInt(items[i], radix));
+
+ // Only add non base entities
+ if (!baseEntities[chr]) {
+ entity = '&' + items[i + 1] + ';';
+ lookup[chr] = entity;
+ lookup[entity] = chr;
}
}
- return (v !== undefined && v !== null && v !== '') ? '' + v : dv;
+ return lookup;
+ }
+ };
+
+ // Unpack entities lookup where the numbers are in radix 32 to reduce the size
+ namedEntities = buildEntitiesLookup(
+ '50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,' +
+ '5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,' +
+ '5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,' +
+ '5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,' +
+ '68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,' +
+ '6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,' +
+ '6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,' +
+ '75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,' +
+ '7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,' +
+ '7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,' +
+ 'sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,' +
+ 'st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,' +
+ 't9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,' +
+ 'tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,' +
+ 'u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,' +
+ '81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,' +
+ '8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,' +
+ '8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,' +
+ '8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,' +
+ '8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,' +
+ 'nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,' +
+ 'rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,' +
+ 'Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,' +
+ '80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,' +
+ '811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro', 32);
+
+ tinymce.html = tinymce.html || {};
+
+ tinymce.html.Entities = {
+ encodeRaw : function(text, attr) {
+ return text.replace(attr ? attrsCharsRegExp : textCharsRegExp, function(chr) {
+ return baseEntities[chr] || chr;
+ });
},
- getPos : function(n, ro) {
- var t = this, x = 0, y = 0, e, d = t.doc, r;
+ encodeAllRaw : function(text) {
+ return ('' + text).replace(rawCharsRegExp, function(chr) {
+ return baseEntities[chr] || chr;
+ });
+ },
- n = t.get(n);
- ro = ro || d.body;
+ encodeNumeric : function(text, attr) {
+ return text.replace(attr ? attrsCharsRegExp : textCharsRegExp, function(chr) {
+ // Multi byte sequence convert it to a single entity
+ if (chr.length > 1)
+ return '&#' + (((chr.charCodeAt(0) - 0xD800) * 0x400) + (chr.charCodeAt(1) - 0xDC00) + 0x10000) + ';';
- if (n) {
- // Use getBoundingClientRect on IE, Opera has it but it's not perfect
- if (isIE && !t.stdMode) {
- n = n.getBoundingClientRect();
- e = t.boxModel ? d.documentElement : d.body;
- x = t.getStyle(t.select('html')[0], 'borderWidth'); // Remove border
- x = (x == 'medium' || t.boxModel && !t.isIE6) && 2 || x;
+ return baseEntities[chr] || '&#' + chr.charCodeAt(0) + ';';
+ });
+ },
- return {x : n.left + e.scrollLeft - x, y : n.top + e.scrollTop - x};
- }
+ encodeNamed : function(text, attr, entities) {
+ entities = entities || namedEntities;
- r = n;
- while (r && r != ro && r.nodeType) {
- x += r.offsetLeft || 0;
- y += r.offsetTop || 0;
- r = r.offsetParent;
- }
+ return text.replace(attr ? attrsCharsRegExp : textCharsRegExp, function(chr) {
+ return baseEntities[chr] || entities[chr] || chr;
+ });
+ },
- r = n.parentNode;
- while (r && r != ro && r.nodeType) {
- x -= r.scrollLeft || 0;
- y -= r.scrollTop || 0;
- r = r.parentNode;
- }
+ getEncodeFunc : function(name, entities) {
+ var Entities = tinymce.html.Entities;
+
+ entities = buildEntitiesLookup(entities) || namedEntities;
+
+ function encodeNamedAndNumeric(text, attr) {
+ return text.replace(attr ? attrsCharsRegExp : textCharsRegExp, function(chr) {
+ return baseEntities[chr] || entities[chr] || '&#' + chr.charCodeAt(0) + ';' || chr;
+ });
+ };
+
+ function encodeCustomNamed(text, attr) {
+ return Entities.encodeNamed(text, attr, entities);
+ };
+
+ // Replace + with , to be compatible with previous TinyMCE versions
+ name = tinymce.makeMap(name.replace(/\+/g, ','));
+
+ // Named and numeric encoder
+ if (name.named && name.numeric)
+ return encodeNamedAndNumeric;
+
+ // Named encoder
+ if (name.named) {
+ // Custom names
+ if (entities)
+ return encodeCustomNamed;
+
+ return Entities.encodeNamed;
}
- return {x : x, y : y};
+ // Numeric
+ if (name.numeric)
+ return Entities.encodeNumeric;
+
+ // Raw encoder
+ return Entities.encodeRaw;
},
- parseStyle : function(st) {
- var t = this, s = t.settings, o = {};
+ decode : function(text) {
+ return text.replace(entityRegExp, function(all, numeric, value) {
+ if (numeric) {
+ value = parseInt(value, numeric.length === 2 ? 16 : 10);
- if (!st)
- return o;
+ // Support upper UTF
+ if (value > 0xFFFF) {
+ value -= 0x10000;
+
+ return String.fromCharCode(0xD800 + (value >> 10), 0xDC00 + (value & 0x3FF));
+ } else
+ return asciiMap[value] || String.fromCharCode(value);
+ }
+
+ return reverseEntities[all] || namedEntities[all] || nativeDecode(all);
+ });
+ }
+ };
+})(tinymce);
+
+tinymce.html.Styles = function(settings, schema) {
+ var rgbRegExp = /rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,
+ urlOrStrRegExp = /(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,
+ styleRegExp = /\s*([^:]+):\s*([^;]+);?/g,
+ trimRightRegExp = /\s+$/,
+ urlColorRegExp = /rgb/,
+ undef, i, encodingLookup = {}, encodingItems;
+
+ settings = settings || {};
+
+ encodingItems = '\\" \\\' \\; \\: ; : \uFEFF'.split(' ');
+ for (i = 0; i < encodingItems.length; i++) {
+ encodingLookup[encodingItems[i]] = '\uFEFF' + i;
+ encodingLookup['\uFEFF' + i] = encodingItems[i];
+ }
+
+ function toHex(match, r, g, b) {
+ function hex(val) {
+ val = parseInt(val).toString(16);
+
+ return val.length > 1 ? val : '0' + val; // 0 -> 00
+ };
- function compress(p, s, ot) {
- var t, r, b, l;
+ return '#' + hex(r) + hex(g) + hex(b);
+ };
+
+ return {
+ toHex : function(color) {
+ return color.replace(rgbRegExp, toHex);
+ },
+
+ parse : function(css) {
+ var styles = {}, matches, name, value, isEncoded, urlConverter = settings.url_converter, urlConverterScope = settings.url_converter_scope || this;
+
+ function compress(prefix, suffix) {
+ var top, right, bottom, left;
// Get values and check it it needs compressing
- t = o[p + '-top' + s];
- if (!t)
+ top = styles[prefix + '-top' + suffix];
+ if (!top)
return;
- r = o[p + '-right' + s];
- if (t != r)
+ right = styles[prefix + '-right' + suffix];
+ if (top != right)
return;
- b = o[p + '-bottom' + s];
- if (r != b)
+ bottom = styles[prefix + '-bottom' + suffix];
+ if (right != bottom)
return;
- l = o[p + '-left' + s];
- if (b != l)
+ left = styles[prefix + '-left' + suffix];
+ if (bottom != left)
return;
// Compress
- o[ot] = l;
- delete o[p + '-top' + s];
- delete o[p + '-right' + s];
- delete o[p + '-bottom' + s];
- delete o[p + '-left' + s];
+ styles[prefix + suffix] = left;
+ delete styles[prefix + '-top' + suffix];
+ delete styles[prefix + '-right' + suffix];
+ delete styles[prefix + '-bottom' + suffix];
+ delete styles[prefix + '-left' + suffix];
};
- function compress2(ta, a, b, c) {
- var t;
+ function canCompress(key) {
+ var value = styles[key], i;
+
+ if (!value || value.indexOf(' ') < 0)
+ return;
+
+ value = value.split(' ');
+ i = value.length;
+ while (i--) {
+ if (value[i] !== value[0])
+ return false;
+ }
+
+ styles[key] = value[0];
+
+ return true;
+ };
- t = o[a];
- if (!t)
+ function compress2(target, a, b, c) {
+ if (!canCompress(a))
return;
- t = o[b];
- if (!t)
+ if (!canCompress(b))
return;
- t = o[c];
- if (!t)
+ if (!canCompress(c))
return;
// Compress
- o[ta] = o[a] + ' ' + o[b] + ' ' + o[c];
- delete o[a];
- delete o[b];
- delete o[c];
+ styles[target] = styles[a] + ' ' + styles[b] + ' ' + styles[c];
+ delete styles[a];
+ delete styles[b];
+ delete styles[c];
};
- st = st.replace(/&(#?[a-z0-9]+);/g, '&$1_MCE_SEMI_'); // Protect entities
+ // Encodes the specified string by replacing all \" \' ; : with _<num>
+ function encode(str) {
+ isEncoded = true;
- each(st.split(';'), function(v) {
- var sv, ur = [];
+ return encodingLookup[str];
+ };
- if (v) {
- v = v.replace(/_MCE_SEMI_/g, ';'); // Restore entities
- v = v.replace(/url\([^\)]+\)/g, function(v) {ur.push(v);return 'url(' + ur.length + ')';});
- v = v.split(':');
- sv = tinymce.trim(v[1]);
- sv = sv.replace(/url\(([^\)]+)\)/g, function(a, b) {return ur[parseInt(b) - 1];});
-
- sv = sv.replace(/rgb\([^\)]+\)/g, function(v) {
- return t.toHex(v);
+ // Decodes the specified string by replacing all _<num> with it's original value \" \' etc
+ // It will also decode the \" \' if keep_slashes is set to fale or omitted
+ function decode(str, keep_slashes) {
+ if (isEncoded) {
+ str = str.replace(/\uFEFF[0-9]/g, function(str) {
+ return encodingLookup[str];
});
+ }
- if (s.url_converter) {
- sv = sv.replace(/url\([\'\"]?([^\)\'\"]+)[\'\"]?\)/g, function(x, c) {
- return 'url(' + s.url_converter.call(s.url_converter_scope || t, t.decode(c), 'style', null) + ')';
- });
- }
+ if (!keep_slashes)
+ str = str.replace(/\\([\'\";:])/g, "$1");
+
+ return str;
+ };
+
+ function processUrl(match, url, url2, url3, str, str2) {
+ str = str || str2;
- o[tinymce.trim(v[0]).toLowerCase()] = sv;
+ if (str) {
+ str = decode(str);
+
+ // Force strings into single quote format
+ return "'" + str.replace(/\'/g, "\\'") + "'";
}
- });
- compress("border", "", "border");
- compress("border", "-width", "border-width");
- compress("border", "-color", "border-color");
- compress("border", "-style", "border-style");
- compress("padding", "", "padding");
- compress("margin", "", "margin");
- compress2('border', 'border-width', 'border-style', 'border-color');
+ url = decode(url || url2 || url3);
- if (isIE) {
- // Remove pointless border
- if (o.border == 'medium none')
- o.border = '';
- }
+ // Convert the URL to relative/absolute depending on config
+ if (urlConverter)
+ url = urlConverter.call(urlConverterScope, url, 'style');
- return o;
- },
+ // Output new URL format
+ return "url('" + url.replace(/\'/g, "\\'") + "')";
+ };
- serializeStyle : function(o, name) {
- var t = this, s = '';
+ if (css) {
+ // Encode \" \' % and ; and : inside strings so they don't interfere with the style parsing
+ css = css.replace(/\\[\"\';:\uFEFF]/g, encode).replace(/\"[^\"]+\"|\'[^\']+\'/g, function(str) {
+ return str.replace(/[;:]/g, encode);
+ });
- function add(v, k) {
- if (k && v) {
- // Remove browser specific styles like -moz- or -webkit-
- if (k.indexOf('-') === 0)
- return;
+ // Parse styles
+ while (matches = styleRegExp.exec(css)) {
+ name = matches[1].replace(trimRightRegExp, '').toLowerCase();
+ value = matches[2].replace(trimRightRegExp, '');
- switch (k) {
- case 'font-weight':
- // Opera will output bold as 700
- if (v == 700)
- v = 'bold';
+ if (name && value.length > 0) {
+ // Opera will produce 700 instead of bold in their style values
+ if (name === 'font-weight' && value === '700')
+ value = 'bold';
+ else if (name === 'color' || name === 'background-color') // Lowercase colors like RED
+ value = value.toLowerCase();
- break;
+ // Convert RGB colors to HEX
+ value = value.replace(rgbRegExp, toHex);
- case 'color':
- case 'background-color':
- v = v.toLowerCase();
- break;
+ // Convert URLs and force them into url('value') format
+ value = value.replace(urlOrStrRegExp, processUrl);
+ styles[name] = isEncoded ? decode(value, true) : value;
}
- s += (s ? ' ' : '') + k + ': ' + v + ';';
+ styleRegExp.lastIndex = matches.index + matches[0].length;
}
- };
- // Validate style output
- if (name && t._styles) {
- each(t._styles['*'], function(name) {
- add(o[name], name);
- });
+ // Compress the styles to reduce it's size for example IE will expand styles
+ compress("border", "");
+ compress("border", "-width");
+ compress("border", "-color");
+ compress("border", "-style");
+ compress("padding", "");
+ compress("margin", "");
+ compress2('border', 'border-width', 'border-style', 'border-color');
- each(t._styles[name.toLowerCase()], function(name) {
- add(o[name], name);
- });
- } else
- each(o, add);
+ // Remove pointless border, IE produces these
+ if (styles.border === 'medium none')
+ delete styles.border;
+ }
- return s;
+ return styles;
},
- loadCSS : function(u) {
- var t = this, d = t.doc, head;
-
- if (!u)
- u = '';
+ serialize : function(styles, element_name) {
+ var css = '', name, value;
- head = t.select('head')[0];
+ function serializeStyles(name) {
+ var styleList, i, l, value;
- each(u.split(','), function(u) {
- var link;
+ styleList = schema.styles[name];
+ if (styleList) {
+ for (i = 0, l = styleList.length; i < l; i++) {
+ name = styleList[i];
+ value = styles[name];
- if (t.files[u])
- return;
+ if (value !== undef && value.length > 0)
+ css += (css.length > 0 ? ' ' : '') + name + ': ' + value + ';';
+ }
+ }
+ };
- t.files[u] = true;
- link = t.create('link', {rel : 'stylesheet', href : tinymce._addVer(u)});
+ // Serialize styles according to schema
+ if (element_name && schema && schema.styles) {
+ // Serialize global styles and element specific styles
+ serializeStyles('*');
+ serializeStyles(element_name);
+ } else {
+ // Output the styles in the order they are inside the object
+ for (name in styles) {
+ value = styles[name];
- // IE 8 has a bug where dynamically loading stylesheets would produce a 1 item remaining bug
- // This fix seems to resolve that issue by realcing the document ones a stylesheet finishes loading
- // It's ugly but it seems to work fine.
- if (isIE && d.documentMode && d.recalc) {
- link.onload = function() {
- d.recalc();
- link.onload = null;
- };
+ if (value !== undef && value.length > 0)
+ css += (css.length > 0 ? ' ' : '') + name + ': ' + value + ';';
}
+ }
- head.appendChild(link);
- });
- },
-
- addClass : function(e, c) {
- return this.run(e, function(e) {
- var o;
+ return css;
+ }
+ };
+};
- if (!c)
- return 0;
+(function(tinymce) {
+ var mapCache = {}, makeMap = tinymce.makeMap, each = tinymce.each;
- if (this.hasClass(e, c))
- return e.className;
+ function split(str, delim) {
+ return str.split(delim || ',');
+ };
- o = this.removeClass(e, c);
+ function unpack(lookup, data) {
+ var key, elements = {};
- return e.className = (o != '' ? (o + ' ') : '') + c;
+ function replace(value) {
+ return value.replace(/[A-Z]+/g, function(key) {
+ return replace(lookup[key]);
});
- },
-
- removeClass : function(e, c) {
- var t = this, re;
+ };
- return t.run(e, function(e) {
- var v;
+ // Unpack lookup
+ for (key in lookup) {
+ if (lookup.hasOwnProperty(key))
+ lookup[key] = replace(lookup[key]);
+ }
- if (t.hasClass(e, c)) {
- if (!re)
- re = new RegExp("(^|\\s+)" + c + "(\\s+|$)", "g");
+ // Unpack and parse data into object map
+ replace(data).replace(/#/g, '#text').replace(/(\w+)\[([^\]]+)\]\[([^\]]*)\]/g, function(str, name, attributes, children) {
+ attributes = split(attributes, '|');
- v = e.className.replace(re, ' ');
- v = tinymce.trim(v != ' ' ? v : '');
+ elements[name] = {
+ attributes : makeMap(attributes),
+ attributesOrder : attributes,
+ children : makeMap(children, '|', {'#comment' : {}})
+ }
+ });
- e.className = v;
+ return elements;
+ };
- // Empty class attr
- if (!v) {
- e.removeAttribute('class');
- e.removeAttribute('className');
- }
+ function getHTML5() {
+ var html5 = mapCache.html5;
+
+ if (!html5) {
+ html5 = mapCache.html5 = unpack({
+ A : 'id|accesskey|class|dir|draggable|item|hidden|itemprop|role|spellcheck|style|subject|title|onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup',
+ B : '#|a|abbr|area|audio|b|bdo|br|button|canvas|cite|code|command|datalist|del|dfn|em|embed|i|iframe|img|input|ins|kbd|keygen|label|link|map|mark|meta|' +
+ 'meter|noscript|object|output|progress|q|ruby|samp|script|select|small|span|strong|sub|sup|svg|textarea|time|var|video|wbr',
+ C : '#|a|abbr|area|address|article|aside|audio|b|bdo|blockquote|br|button|canvas|cite|code|command|datalist|del|details|dfn|dialog|div|dl|em|embed|fieldset|' +
+ 'figure|footer|form|h1|h2|h3|h4|h5|h6|header|hgroup|hr|i|iframe|img|input|ins|kbd|keygen|label|link|map|mark|menu|meta|meter|nav|noscript|ol|object|output|' +
+ 'p|pre|progress|q|ruby|samp|script|section|select|small|span|strong|style|sub|sup|svg|table|textarea|time|ul|var|video'
+ }, 'html[A|manifest][body|head]' +
+ 'head[A][base|command|link|meta|noscript|script|style|title]' +
+ 'title[A][#]' +
+ 'base[A|href|target][]' +
+ 'link[A|href|rel|media|type|sizes][]' +
+ 'meta[A|http-equiv|name|content|charset][]' +
+ 'style[A|type|media|scoped][#]' +
+ 'script[A|charset|type|src|defer|async][#]' +
+ 'noscript[A][C]' +
+ 'body[A][C]' +
+ 'section[A][C]' +
+ 'nav[A][C]' +
+ 'article[A][C]' +
+ 'aside[A][C]' +
+ 'h1[A][B]' +
+ 'h2[A][B]' +
+ 'h3[A][B]' +
+ 'h4[A][B]' +
+ 'h5[A][B]' +
+ 'h6[A][B]' +
+ 'hgroup[A][h1|h2|h3|h4|h5|h6]' +
+ 'header[A][C]' +
+ 'footer[A][C]' +
+ 'address[A][C]' +
+ 'p[A][B]' +
+ 'br[A][]' +
+ 'pre[A][B]' +
+ 'dialog[A][dd|dt]' +
+ 'blockquote[A|cite][C]' +
+ 'ol[A|start|reversed][li]' +
+ 'ul[A][li]' +
+ 'li[A|value][C]' +
+ 'dl[A][dd|dt]' +
+ 'dt[A][B]' +
+ 'dd[A][C]' +
+ 'a[A|href|target|ping|rel|media|type][B]' +
+ 'em[A][B]' +
+ 'strong[A][B]' +
+ 'small[A][B]' +
+ 'cite[A][B]' +
+ 'q[A|cite][B]' +
+ 'dfn[A][B]' +
+ 'abbr[A][B]' +
+ 'code[A][B]' +
+ 'var[A][B]' +
+ 'samp[A][B]' +
+ 'kbd[A][B]' +
+ 'sub[A][B]' +
+ 'sup[A][B]' +
+ 'i[A][B]' +
+ 'b[A][B]' +
+ 'mark[A][B]' +
+ 'progress[A|value|max][B]' +
+ 'meter[A|value|min|max|low|high|optimum][B]' +
+ 'time[A|datetime][B]' +
+ 'ruby[A][B|rt|rp]' +
+ 'rt[A][B]' +
+ 'rp[A][B]' +
+ 'bdo[A][B]' +
+ 'span[A][B]' +
+ 'ins[A|cite|datetime][B]' +
+ 'del[A|cite|datetime][B]' +
+ 'figure[A][C|legend|figcaption]' +
+ 'figcaption[A][C]' +
+ 'img[A|alt|src|height|width|usemap|ismap][]' +
+ 'iframe[A|name|src|height|width|sandbox|seamless][]' +
+ 'embed[A|src|height|width|type][]' +
+ 'object[A|data|type|height|width|usemap|name|form|classid][param]' +
+ 'param[A|name|value][]' +
+ 'details[A|open][C|legend]' +
+ 'command[A|type|label|icon|disabled|checked|radiogroup][]' +
+ 'menu[A|type|label][C|li]' +
+ 'legend[A][C|B]' +
+ 'div[A][C]' +
+ 'source[A|src|type|media][]' +
+ 'audio[A|src|autobuffer|autoplay|loop|controls][source]' +
+ 'video[A|src|autobuffer|autoplay|loop|controls|width|height|poster][source]' +
+ 'hr[A][]' +
+ 'form[A|accept-charset|action|autocomplete|enctype|method|name|novalidate|target][C]' +
+ 'fieldset[A|disabled|form|name][C|legend]' +
+ 'label[A|form|for][B]' +
+ 'input[A|type|accept|alt|autocomplete|autofocus|checked|disabled|form|formaction|formenctype|formmethod|formnovalidate|formtarget|height|list|max|maxlength|min|' +
+ 'multiple|pattern|placeholder|readonly|required|size|src|step|width|files|value|name][]' +
+ 'button[A|autofocus|disabled|form|formaction|formenctype|formmethod|formnovalidate|formtarget|name|value|type][B]' +
+ 'select[A|autofocus|disabled|form|multiple|name|size][option|optgroup]' +
+ 'datalist[A][B|option]' +
+ 'optgroup[A|disabled|label][option]' +
+ 'option[A|disabled|selected|label|value][]' +
+ 'textarea[A|autofocus|disabled|form|maxlength|name|placeholder|readonly|required|rows|cols|wrap][]' +
+ 'keygen[A|autofocus|challenge|disabled|form|keytype|name][]' +
+ 'output[A|for|form|name][B]' +
+ 'canvas[A|width|height][]' +
+ 'map[A|name][B|C]' +
+ 'area[A|shape|coords|href|alt|target|media|rel|ping|type][]' +
+ 'mathml[A][]' +
+ 'svg[A][]' +
+ 'table[A|border][caption|colgroup|thead|tfoot|tbody|tr]' +
+ 'caption[A][C]' +
+ 'colgroup[A|span][col]' +
+ 'col[A|span][]' +
+ 'thead[A][tr]' +
+ 'tfoot[A][tr]' +
+ 'tbody[A][tr]' +
+ 'tr[A][th|td]' +
+ 'th[A|headers|rowspan|colspan|scope][B]' +
+ 'td[A|headers|rowspan|colspan][C]' +
+ 'wbr[A][]'
+ );
+ }
- return v;
- }
+ return html5;
+ };
- return e.className;
- });
- },
+ function getHTML4() {
+ var html4 = mapCache.html4;
+
+ if (!html4) {
+ // This is the XHTML 1.0 transitional elements with it's attributes and children packed to reduce it's size
+ html4 = mapCache.html4 = unpack({
+ Z : 'H|K|N|O|P',
+ Y : 'X|form|R|Q',
+ ZG : 'E|span|width|align|char|charoff|valign',
+ X : 'p|T|div|U|W|isindex|fieldset|table',
+ ZF : 'E|align|char|charoff|valign',
+ W : 'pre|hr|blockquote|address|center|noframes',
+ ZE : 'abbr|axis|headers|scope|rowspan|colspan|align|char|charoff|valign|nowrap|bgcolor|width|height',
+ ZD : '[E][S]',
+ U : 'ul|ol|dl|menu|dir',
+ ZC : 'p|Y|div|U|W|table|br|span|bdo|object|applet|img|map|K|N|Q',
+ T : 'h1|h2|h3|h4|h5|h6',
+ ZB : 'X|S|Q',
+ S : 'R|P',
+ ZA : 'a|G|J|M|O|P',
+ R : 'a|H|K|N|O',
+ Q : 'noscript|P',
+ P : 'ins|del|script',
+ O : 'input|select|textarea|label|button',
+ N : 'M|L',
+ M : 'em|strong|dfn|code|q|samp|kbd|var|cite|abbr|acronym',
+ L : 'sub|sup',
+ K : 'J|I',
+ J : 'tt|i|b|u|s|strike',
+ I : 'big|small|font|basefont',
+ H : 'G|F',
+ G : 'br|span|bdo',
+ F : 'object|applet|img|map|iframe',
+ E : 'A|B|C',
+ D : 'accesskey|tabindex|onfocus|onblur',
+ C : 'onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup',
+ B : 'lang|xml:lang|dir',
+ A : 'id|class|style|title'
+ }, 'script[id|charset|type|language|src|defer|xml:space][]' +
+ 'style[B|id|type|media|title|xml:space][]' +
+ 'object[E|declare|classid|codebase|data|type|codetype|archive|standby|width|height|usemap|name|tabindex|align|border|hspace|vspace][#|param|Y]' +
+ 'param[id|name|value|valuetype|type][]' +
+ 'p[E|align][#|S]' +
+ 'a[E|D|charset|type|name|href|hreflang|rel|rev|shape|coords|target][#|Z]' +
+ 'br[A|clear][]' +
+ 'span[E][#|S]' +
+ 'bdo[A|C|B][#|S]' +
+ 'applet[A|codebase|archive|code|object|alt|name|width|height|align|hspace|vspace][#|param|Y]' +
+ 'h1[E|align][#|S]' +
+ 'img[E|src|alt|name|longdesc|width|height|usemap|ismap|align|border|hspace|vspace][]' +
+ 'map[B|C|A|name][X|form|Q|area]' +
+ 'h2[E|align][#|S]' +
+ 'iframe[A|longdesc|name|src|frameborder|marginwidth|marginheight|scrolling|align|width|height][#|Y]' +
+ 'h3[E|align][#|S]' +
+ 'tt[E][#|S]' +
+ 'i[E][#|S]' +
+ 'b[E][#|S]' +
+ 'u[E][#|S]' +
+ 's[E][#|S]' +
+ 'strike[E][#|S]' +
+ 'big[E][#|S]' +
+ 'small[E][#|S]' +
+ 'font[A|B|size|color|face][#|S]' +
+ 'basefont[id|size|color|face][]' +
+ 'em[E][#|S]' +
+ 'strong[E][#|S]' +
+ 'dfn[E][#|S]' +
+ 'code[E][#|S]' +
+ 'q[E|cite][#|S]' +
+ 'samp[E][#|S]' +
+ 'kbd[E][#|S]' +
+ 'var[E][#|S]' +
+ 'cite[E][#|S]' +
+ 'abbr[E][#|S]' +
+ 'acronym[E][#|S]' +
+ 'sub[E][#|S]' +
+ 'sup[E][#|S]' +
+ 'input[E|D|type|name|value|checked|disabled|readonly|size|maxlength|src|alt|usemap|onselect|onchange|accept|align][]' +
+ 'select[E|name|size|multiple|disabled|tabindex|onfocus|onblur|onchange][optgroup|option]' +
+ 'optgroup[E|disabled|label][option]' +
+ 'option[E|selected|disabled|label|value][]' +
+ 'textarea[E|D|name|rows|cols|disabled|readonly|onselect|onchange][]' +
+ 'label[E|for|accesskey|onfocus|onblur][#|S]' +
+ 'button[E|D|name|value|type|disabled][#|p|T|div|U|W|table|G|object|applet|img|map|K|N|Q]' +
+ 'h4[E|align][#|S]' +
+ 'ins[E|cite|datetime][#|Y]' +
+ 'h5[E|align][#|S]' +
+ 'del[E|cite|datetime][#|Y]' +
+ 'h6[E|align][#|S]' +
+ 'div[E|align][#|Y]' +
+ 'ul[E|type|compact][li]' +
+ 'li[E|type|value][#|Y]' +
+ 'ol[E|type|compact|start][li]' +
+ 'dl[E|compact][dt|dd]' +
+ 'dt[E][#|S]' +
+ 'dd[E][#|Y]' +
+ 'menu[E|compact][li]' +
+ 'dir[E|compact][li]' +
+ 'pre[E|width|xml:space][#|ZA]' +
+ 'hr[E|align|noshade|size|width][]' +
+ 'blockquote[E|cite][#|Y]' +
+ 'address[E][#|S|p]' +
+ 'center[E][#|Y]' +
+ 'noframes[E][#|Y]' +
+ 'isindex[A|B|prompt][]' +
+ 'fieldset[E][#|legend|Y]' +
+ 'legend[E|accesskey|align][#|S]' +
+ 'table[E|summary|width|border|frame|rules|cellspacing|cellpadding|align|bgcolor][caption|col|colgroup|thead|tfoot|tbody|tr]' +
+ 'caption[E|align][#|S]' +
+ 'col[ZG][]' +
+ 'colgroup[ZG][col]' +
+ 'thead[ZF][tr]' +
+ 'tr[ZF|bgcolor][th|td]' +
+ 'th[E|ZE][#|Y]' +
+ 'form[E|action|method|name|enctype|onsubmit|onreset|accept|accept-charset|target][#|X|R|Q]' +
+ 'noscript[E][#|Y]' +
+ 'td[E|ZE][#|Y]' +
+ 'tfoot[ZF][tr]' +
+ 'tbody[ZF][tr]' +
+ 'area[E|D|shape|coords|href|nohref|alt|target][]' +
+ 'base[id|href|target][]' +
+ 'body[E|onload|onunload|background|bgcolor|text|link|vlink|alink][#|Y]'
+ );
+ }
- hasClass : function(n, c) {
- n = this.get(n);
+ return html4;
+ };
- if (!n || !c)
- return false;
+ tinymce.html.Schema = function(settings) {
+ var self = this, elements = {}, children = {}, patternElements = [], validStyles, schemaItems;
+ var whiteSpaceElementsMap, selfClosingElementsMap, shortEndedElementsMap, boolAttrMap, blockElementsMap, nonEmptyElementsMap, customElementsMap = {};
- return (' ' + n.className + ' ').indexOf(' ' + c + ' ') !== -1;
- },
+ // Creates an lookup table map object for the specified option or the default value
+ function createLookupTable(option, default_value, extend) {
+ var value = settings[option];
- show : function(e) {
- return this.setStyle(e, 'display', 'block');
- },
+ if (!value) {
+ // Get cached default map or make it if needed
+ value = mapCache[option];
- hide : function(e) {
- return this.setStyle(e, 'display', 'none');
- },
+ if (!value) {
+ value = makeMap(default_value, ' ', makeMap(default_value.toUpperCase(), ' '));
+ value = tinymce.extend(value, extend);
- isHidden : function(e) {
- e = this.get(e);
+ mapCache[option] = value;
+ }
+ } else {
+ // Create custom map
+ value = makeMap(value, ',', makeMap(value.toUpperCase(), ' '));
+ }
- return !e || e.style.display == 'none' || this.getStyle(e, 'display') == 'none';
- },
+ return value;
+ };
- uniqueId : function(p) {
- return (!p ? 'mce_' : p) + (this.counter++);
- },
+ settings = settings || {};
+ schemaItems = settings.schema == "html5" ? getHTML5() : getHTML4();
- setHTML : function(e, h) {
- var t = this;
+ // Allow all elements and attributes if verify_html is set to false
+ if (settings.verify_html === false)
+ settings.valid_elements = '*[*]';
- return this.run(e, function(e) {
- var x, i, nl, n, p, x;
+ // Build styles list
+ if (settings.valid_styles) {
+ validStyles = {};
- h = t.processHTML(h);
+ // Convert styles into a rule list
+ each(settings.valid_styles, function(value, key) {
+ validStyles[key] = tinymce.explode(value);
+ });
+ }
- if (isIE) {
- function set() {
- // Remove all child nodes
- while (e.firstChild)
- e.firstChild.removeNode();
+ // Setup map objects
+ whiteSpaceElementsMap = createLookupTable('whitespace_elements', 'pre script noscript style textarea');
+ selfClosingElementsMap = createLookupTable('self_closing_elements', 'colgroup dd dt li option p td tfoot th thead tr');
+ shortEndedElementsMap = createLookupTable('short_ended_elements', 'area base basefont br col frame hr img input isindex link meta param embed source wbr');
+ boolAttrMap = createLookupTable('boolean_attributes', 'checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls');
+ nonEmptyElementsMap = createLookupTable('non_empty_elements', 'td th iframe video audio object', shortEndedElementsMap);
+ textBlockElementsMap = createLookupTable('text_block_elements', 'h1 h2 h3 h4 h5 h6 p div address pre form ' +
+ 'blockquote center dir fieldset header footer article section hgroup aside nav figure');
+ blockElementsMap = createLookupTable('block_elements', 'hr table tbody thead tfoot ' +
+ 'th tr td li ol ul caption dl dt dd noscript menu isindex samp option datalist select optgroup', textBlockElementsMap);
+
+ // Converts a wildcard expression string to a regexp for example *a will become /.*a/.
+ function patternToRegExp(str) {
+ return new RegExp('^' + str.replace(/([?+*])/g, '.$1') + '$');
+ };
- try {
- // IE will remove comments from the beginning
- // unless you padd the contents with something
- e.innerHTML = '<br />' + h;
- e.removeChild(e.firstChild);
- } catch (ex) {
- // IE sometimes produces an unknown runtime error on innerHTML if it's an block element within a block element for example a div inside a p
- // This seems to fix this problem
-
- // Create new div with HTML contents and a BR infront to keep comments
- x = t.create('div');
- x.innerHTML = '<br />' + h;
-
- // Add all children from div to target
- each (x.childNodes, function(n, i) {
- // Skip br element
- if (i)
- e.appendChild(n);
- });
- }
- };
+ // Parses the specified valid_elements string and adds to the current rules
+ // This function is a bit hard to read since it's heavily optimized for speed
+ function addValidElements(valid_elements) {
+ var ei, el, ai, al, yl, matches, element, attr, attrData, elementName, attrName, attrType, attributes, attributesOrder,
+ prefix, outputName, globalAttributes, globalAttributesOrder, transElement, key, childKey, value,
+ elementRuleRegExp = /^([#+\-])?([^\[\/]+)(?:\/([^\[]+))?(?:\[([^\]]+)\])?$/,
+ attrRuleRegExp = /^([!\-])?(\w+::\w+|[^=:<]+)?(?:([=:<])(.*))?$/,
+ hasPatternsRegExp = /[*?+]/;
+
+ if (valid_elements) {
+ // Split valid elements into an array with rules
+ valid_elements = split(valid_elements);
+
+ if (elements['@']) {
+ globalAttributes = elements['@'].attributes;
+ globalAttributesOrder = elements['@'].attributesOrder;
+ }
- // IE has a serious bug when it comes to paragraphs it can produce an invalid
- // DOM tree if contents like this <p><ul><li>Item 1</li></ul></p> is inserted
- // It seems to be that IE doesn't like a root block element placed inside another root block element
- if (t.settings.fix_ie_paragraphs)
- h = h.replace(/<p><\/p>|<p([^>]+)><\/p>|<p[^\/+]\/>/gi, '<p$1 _mce_keep="true"> </p>');
+ // Loop all rules
+ for (ei = 0, el = valid_elements.length; ei < el; ei++) {
+ // Parse element rule
+ matches = elementRuleRegExp.exec(valid_elements[ei]);
+ if (matches) {
+ // Setup local names for matches
+ prefix = matches[1];
+ elementName = matches[2];
+ outputName = matches[3];
+ attrData = matches[4];
+
+ // Create new attributes and attributesOrder
+ attributes = {};
+ attributesOrder = [];
+
+ // Create the new element
+ element = {
+ attributes : attributes,
+ attributesOrder : attributesOrder
+ };
- set();
+ // Padd empty elements prefix
+ if (prefix === '#')
+ element.paddEmpty = true;
- if (t.settings.fix_ie_paragraphs) {
- // Check for odd paragraphs this is a sign of a broken DOM
- nl = e.getElementsByTagName("p");
- for (i = nl.length - 1, x = 0; i >= 0; i--) {
- n = nl[i];
+ // Remove empty elements prefix
+ if (prefix === '-')
+ element.removeEmpty = true;
- if (!n.hasChildNodes()) {
- if (!n._mce_keep) {
- x = 1; // Is broken
- break;
- }
+ // Copy attributes from global rule into current rule
+ if (globalAttributes) {
+ for (key in globalAttributes)
+ attributes[key] = globalAttributes[key];
- n.removeAttribute('_mce_keep');
- }
+ attributesOrder.push.apply(attributesOrder, globalAttributesOrder);
}
- }
-
- // Time to fix the madness IE left us
- if (x) {
- // So if we replace the p elements with divs and mark them and then replace them back to paragraphs
- // after we use innerHTML we can fix the DOM tree
- h = h.replace(/<p ([^>]+)>|<p>/ig, '<div $1 _mce_tmp="1">');
- h = h.replace(/<\/p>/gi, '</div>');
-
- // Set the new HTML with DIVs
- set();
-
- // Replace all DIV elements with the _mce_tmp attibute back to paragraphs
- // This is needed since IE has a annoying bug see above for details
- // This is a slow process but it has to be done. :(
- if (t.settings.fix_ie_paragraphs) {
- nl = e.getElementsByTagName("DIV");
- for (i = nl.length - 1; i >= 0; i--) {
- n = nl[i];
-
- // Is it a temp div
- if (n._mce_tmp) {
- // Create new paragraph
- p = t.doc.createElement('p');
- // Copy all attributes
- n.cloneNode(false).outerHTML.replace(/([a-z0-9\-_]+)=/gi, function(a, b) {
- var v;
+ // Attributes defined
+ if (attrData) {
+ attrData = split(attrData, '|');
+ for (ai = 0, al = attrData.length; ai < al; ai++) {
+ matches = attrRuleRegExp.exec(attrData[ai]);
+ if (matches) {
+ attr = {};
+ attrType = matches[1];
+ attrName = matches[2].replace(/::/g, ':');
+ prefix = matches[3];
+ value = matches[4];
+
+ // Required
+ if (attrType === '!') {
+ element.attributesRequired = element.attributesRequired || [];
+ element.attributesRequired.push(attrName);
+ attr.required = true;
+ }
- if (b !== '_mce_tmp') {
- v = n.getAttribute(b);
+ // Denied from global
+ if (attrType === '-') {
+ delete attributes[attrName];
+ attributesOrder.splice(tinymce.inArray(attributesOrder, attrName), 1);
+ continue;
+ }
- if (!v && b === 'class')
- v = n.className;
+ // Default value
+ if (prefix) {
+ // Default value
+ if (prefix === '=') {
+ element.attributesDefault = element.attributesDefault || [];
+ element.attributesDefault.push({name: attrName, value: value});
+ attr.defaultValue = value;
+ }
- p.setAttribute(b, v);
+ // Forced value
+ if (prefix === ':') {
+ element.attributesForced = element.attributesForced || [];
+ element.attributesForced.push({name: attrName, value: value});
+ attr.forcedValue = value;
}
- });
- // Append all children to new paragraph
- for (x = 0; x<n.childNodes.length; x++)
- p.appendChild(n.childNodes[x].cloneNode(true));
+ // Required values
+ if (prefix === '<')
+ attr.validValues = makeMap(value, '?');
+ }
+
+ // Check for attribute patterns
+ if (hasPatternsRegExp.test(attrName)) {
+ element.attributePatterns = element.attributePatterns || [];
+ attr.pattern = patternToRegExp(attrName);
+ element.attributePatterns.push(attr);
+ } else {
+ // Add attribute to order list if it doesn't already exist
+ if (!attributes[attrName])
+ attributesOrder.push(attrName);
- // Replace div with new paragraph
- n.swapNode(p);
+ attributes[attrName] = attr;
+ }
}
}
}
- }
- } else
- e.innerHTML = h;
-
- return h;
- });
- },
- processHTML : function(h) {
- var t = this, s = t.settings, codeBlocks = [];
+ // Global rule, store away these for later usage
+ if (!globalAttributes && elementName == '@') {
+ globalAttributes = attributes;
+ globalAttributesOrder = attributesOrder;
+ }
- if (!s.process_html)
- return h;
+ // Handle substitute elements such as b/strong
+ if (outputName) {
+ element.outputName = elementName;
+ elements[outputName] = element;
+ }
- if (isIE) {
- h = h.replace(/'/g, '''); // IE can't handle apos
- h = h.replace(/\s+(disabled|checked|readonly|selected)\s*=\s*[\"\']?(false|0)[\"\']?/gi, ''); // IE doesn't handle default values correct
+ // Add pattern or exact element
+ if (hasPatternsRegExp.test(elementName)) {
+ element.pattern = patternToRegExp(elementName);
+ patternElements.push(element);
+ } else
+ elements[elementName] = element;
+ }
+ }
}
+ };
- // Force tags open, and on IE9 replace $1$2 that got left behind due to bugs in their RegExp engine
- h = tinymce._replace(/<a( )([^>]+)\/>|<a\/>/gi, '<a$1$2></a>', h); // Force open
-
- // Store away src and href in _mce_src and mce_href since browsers mess them up
- if (s.keep_values) {
- // Wrap scripts and styles in comments for serialization purposes
- if (/<script|noscript|style/i.test(h)) {
- function trim(s) {
- // Remove prefix and suffix code for element
- s = s.replace(/(<!--\[CDATA\[|\]\]-->)/g, '\n');
- s = s.replace(/^[\r\n]*|[\r\n]*$/g, '');
- s = s.replace(/^\s*(\/\/\s*<!--|\/\/\s*<!\[CDATA\[|<!--|<!\[CDATA\[)[\r\n]*/g, '');
- s = s.replace(/\s*(\/\/\s*\]\]>|\/\/\s*-->|\]\]>|-->|\]\]-->)\s*$/g, '');
+ function setValidElements(valid_elements) {
+ elements = {};
+ patternElements = [];
- return s;
- };
+ addValidElements(valid_elements);
- // Wrap the script contents in CDATA and keep them from executing
- h = h.replace(/<script([^>]+|)>([\s\S]*?)<\/script>/gi, function(v, attribs, text) {
- // Force type attribute
- if (!attribs)
- attribs = ' type="text/javascript"';
+ each(schemaItems, function(element, name) {
+ children[name] = element.children;
+ });
+ };
- // Convert the src attribute of the scripts
- attribs = attribs.replace(/src=\"([^\"]+)\"?/i, function(a, url) {
- if (s.url_converter)
- url = t.encode(s.url_converter.call(s.url_converter_scope || t, t.decode(url), 'src', 'script'));
+ // Adds custom non HTML elements to the schema
+ function addCustomElements(custom_elements) {
+ var customElementRegExp = /^(~)?(.+)$/;
- return '_mce_src="' + url + '"';
- });
+ if (custom_elements) {
+ each(split(custom_elements), function(rule) {
+ var matches = customElementRegExp.exec(rule),
+ inline = matches[1] === '~',
+ cloneName = inline ? 'span' : 'div',
+ name = matches[2];
- // Wrap text contents
- if (tinymce.trim(text)) {
- codeBlocks.push(trim(text));
- text = '<!--\nMCE_SCRIPT:' + (codeBlocks.length - 1) + '\n// -->';
- }
+ children[name] = children[cloneName];
+ customElementsMap[name] = cloneName;
- return '<mce:script' + attribs + '>' + text + '</mce:script>';
- });
+ // If it's not marked as inline then add it to valid block elements
+ if (!inline) {
+ blockElementsMap[name.toUpperCase()] = {};
+ blockElementsMap[name] = {};
+ }
- // Wrap style elements
- h = h.replace(/<style([^>]+|)>([\s\S]*?)<\/style>/gi, function(v, attribs, text) {
- // Wrap text contents
- if (text) {
- codeBlocks.push(trim(text));
- text = '<!--\nMCE_SCRIPT:' + (codeBlocks.length - 1) + '\n-->';
- }
+ // Add elements clone if needed
+ if (!elements[name]) {
+ elements[name] = elements[cloneName];
+ }
- return '<mce:style' + attribs + '>' + text + '</mce:style><style ' + attribs + ' _mce_bogus="1">' + text + '</style>';
+ // Add custom elements at span/div positions
+ each(children, function(element, child) {
+ if (element[cloneName])
+ element[name] = element[cloneName];
});
+ });
+ }
+ };
- // Wrap noscript elements
- h = h.replace(/<noscript([^>]+|)>([\s\S]*?)<\/noscript>/g, function(v, attribs, text) {
- return '<mce:noscript' + attribs + '><!--' + t.encode(text).replace(/--/g, '--') + '--></mce:noscript>';
- });
- }
+ // Adds valid children to the schema object
+ function addValidChildren(valid_children) {
+ var childRuleRegExp = /^([+\-]?)(\w+)\[([^\]]+)\]$/;
- h = tinymce._replace(/<!\[CDATA\[([\s\S]+)\]\]>/g, '<!--[CDATA[$1]]-->', h);
+ if (valid_children) {
+ each(split(valid_children), function(rule) {
+ var matches = childRuleRegExp.exec(rule), parent, prefix;
- // This function processes the attributes in the HTML string to force boolean
- // attributes to the attr="attr" format and convert style, src and href to _mce_ versions
- function processTags(html) {
- return html.replace(tagRegExp, function(match, elm_name, attrs, end) {
- return '<' + elm_name + attrs.replace(attrRegExp, function(match, name, value, val2, val3) {
- var mceValue;
+ if (matches) {
+ prefix = matches[1];
- name = name.toLowerCase();
- value = value || val2 || val3 || "";
+ // Add/remove items from default
+ if (prefix)
+ parent = children[matches[2]];
+ else
+ parent = children[matches[2]] = {'#comment' : {}};
- // Treat boolean attributes
- if (boolAttrs[name]) {
- // false or 0 is treated as a missing attribute
- if (value === 'false' || value === '0')
- return;
+ parent = children[matches[2]];
- return name + '="' + name + '"';
- }
+ each(split(matches[3], '|'), function(child) {
+ if (prefix === '-')
+ delete parent[child];
+ else
+ parent[child] = {};
+ });
+ }
+ });
+ }
+ };
- // Is attribute one that needs special treatment
- if (mceAttribs[name] && attrs.indexOf('_mce_' + name) == -1) {
- mceValue = t.decode(value);
+ function getElementRule(name) {
+ var element = elements[name], i;
- // Convert URLs to relative/absolute ones
- if (s.url_converter && (name == "src" || name == "href"))
- mceValue = s.url_converter.call(s.url_converter_scope || t, mceValue, name, elm_name);
+ // Exact match found
+ if (element)
+ return element;
- // Process styles lowercases them and compresses them
- if (name == 'style')
- mceValue = t.serializeStyle(t.parseStyle(mceValue), name);
+ // No exact match then try the patterns
+ i = patternElements.length;
+ while (i--) {
+ element = patternElements[i];
- return name + '="' + value + '"' + ' _mce_' + name + '="' + t.encode(mceValue) + '"';
- }
+ if (element.pattern.test(name))
+ return element;
+ }
+ };
- return match;
- }) + end + '>';
- });
+ if (!settings.valid_elements) {
+ // No valid elements defined then clone the elements from the schema spec
+ each(schemaItems, function(element, name) {
+ elements[name] = {
+ attributes : element.attributes,
+ attributesOrder : element.attributesOrder
};
- h = processTags(h);
+ children[name] = element.children;
+ });
- // Restore script blocks
- h = h.replace(/MCE_SCRIPT:([0-9]+)/g, function(val, idx) {
- return codeBlocks[idx];
+ // Switch these on HTML4
+ if (settings.schema != "html5") {
+ each(split('strong/b,em/i'), function(item) {
+ item = split(item, '/');
+ elements[item[1]].outputName = item[0];
});
}
- return h;
- },
+ // Add default alt attribute for images
+ elements.img.attributesDefault = [{name: 'alt', value: ''}];
- getOuterHTML : function(e) {
- var d;
+ // Remove these if they are empty by default
+ each(split('ol,ul,sub,sup,blockquote,span,font,a,table,tbody,tr,strong,em,b,i'), function(name) {
+ if (elements[name]) {
+ elements[name].removeEmpty = true;
+ }
+ });
- e = this.get(e);
+ // Padd these by default
+ each(split('p,h1,h2,h3,h4,h5,h6,th,td,pre,div,address,caption'), function(name) {
+ elements[name].paddEmpty = true;
+ });
+ } else
+ setValidElements(settings.valid_elements);
- if (!e)
- return null;
+ addCustomElements(settings.custom_elements);
+ addValidChildren(settings.valid_children);
+ addValidElements(settings.extended_valid_elements);
- if (e.outerHTML !== undefined)
- return e.outerHTML;
+ // Todo: Remove this when we fix list handling to be valid
+ addValidChildren('+ol[ul|ol],+ul[ul|ol]');
- d = (e.ownerDocument || this.doc).createElement("body");
- d.appendChild(e.cloneNode(true));
+ // Delete invalid elements
+ if (settings.invalid_elements) {
+ tinymce.each(tinymce.explode(settings.invalid_elements), function(item) {
+ if (elements[item])
+ delete elements[item];
+ });
+ }
- return d.innerHTML;
- },
+ // If the user didn't allow span only allow internal spans
+ if (!getElementRule('span'))
+ addValidElements('span[!data-mce-type|*]');
- setOuterHTML : function(e, h, d) {
- var t = this;
+ self.children = children;
- function setHTML(e, h, d) {
- var n, tp;
+ self.styles = validStyles;
- tp = d.createElement("body");
- tp.innerHTML = h;
+ self.getBoolAttrs = function() {
+ return boolAttrMap;
+ };
- n = tp.lastChild;
- while (n) {
- t.insertAfter(n.cloneNode(true), e);
- n = n.previousSibling;
- }
+ self.getBlockElements = function() {
+ return blockElementsMap;
+ };
- t.remove(e);
- };
+ self.getTextBlockElements = function() {
+ return textBlockElementsMap;
+ };
- return this.run(e, function(e) {
- e = t.get(e);
+ self.getShortEndedElements = function() {
+ return shortEndedElementsMap;
+ };
- // Only set HTML on elements
- if (e.nodeType == 1) {
- d = d || e.ownerDocument || t.doc;
+ self.getSelfClosingElements = function() {
+ return selfClosingElementsMap;
+ };
- if (isIE) {
- try {
- // Try outerHTML for IE it sometimes produces an unknown runtime error
- if (isIE && e.nodeType == 1)
- e.outerHTML = h;
- else
- setHTML(e, h, d);
- } catch (ex) {
- // Fix for unknown runtime error
- setHTML(e, h, d);
- }
- } else
- setHTML(e, h, d);
- }
- });
- },
+ self.getNonEmptyElements = function() {
+ return nonEmptyElementsMap;
+ };
+
+ self.getWhiteSpaceElements = function() {
+ return whiteSpaceElementsMap;
+ };
- decode : function(s) {
- var e, n, v;
+ self.isValidChild = function(name, child) {
+ var parent = children[name];
- // Look for entities to decode
- if (/&[\w#]+;/.test(s)) {
- // Decode the entities using a div element not super efficient but less code
- e = this.doc.createElement("div");
- e.innerHTML = s;
- n = e.firstChild;
- v = '';
+ return !!(parent && parent[child]);
+ };
- if (n) {
- do {
- v += n.nodeValue;
- } while (n = n.nextSibling);
- }
+ self.isValid = function(name, attr) {
+ var attrPatterns, i, rule = getElementRule(name);
- return v || s;
+ // Check if it's a valid element
+ if (rule) {
+ if (attr) {
+ // Check if attribute name exists
+ if (rule.attributes[attr]) {
+ return true;
+ }
+
+ // Check if attribute matches a regexp pattern
+ attrPatterns = rule.attributePatterns;
+ if (attrPatterns) {
+ i = attrPatterns.length;
+ while (i--) {
+ if (attrPatterns[i].pattern.test(name)) {
+ return true;
+ }
+ }
+ }
+ } else {
+ return true;
+ }
}
- return s;
- },
+ // No match
+ return false;
+ };
+
+ self.getElementRule = getElementRule;
- encode : function(str) {
- return ('' + str).replace(encodeCharsRe, function(chr) {
- return encodedChars[chr];
- });
- },
+ self.getCustomElements = function() {
+ return customElementsMap;
+ };
- insertAfter : function(node, reference_node) {
- reference_node = this.get(reference_node);
+ self.addValidElements = addValidElements;
- return this.run(node, function(node) {
- var parent, nextSibling;
-
- parent = reference_node.parentNode;
- nextSibling = reference_node.nextSibling;
-
- if (nextSibling)
- parent.insertBefore(node, nextSibling);
- else
- parent.appendChild(node);
-
- return node;
- });
- },
-
- isBlock : function(n) {
- if (n.nodeType && n.nodeType !== 1)
- return false;
+ self.setValidElements = setValidElements;
- n = n.nodeName || n;
+ self.addCustomElements = addCustomElements;
- return blockRe.test(n);
- },
+ self.addValidChildren = addValidChildren;
- replace : function(n, o, k) {
- var t = this;
+ self.elements = elements;
+ };
+})(tinymce);
- if (is(o, 'array'))
- n = n.cloneNode(true);
+(function(tinymce) {
+ tinymce.html.SaxParser = function(settings, schema) {
+ var self = this, noop = function() {};
- return t.run(o, function(o) {
- if (k) {
- each(tinymce.grep(o.childNodes), function(c) {
- n.appendChild(c);
- });
- }
+ settings = settings || {};
+ self.schema = schema = schema || new tinymce.html.Schema();
- return o.parentNode.replaceChild(n, o);
- });
- },
+ if (settings.fix_self_closing !== false)
+ settings.fix_self_closing = true;
- rename : function(elm, name) {
- var t = this, newElm;
+ // Add handler functions from settings and setup default handlers
+ tinymce.each('comment cdata text start end pi doctype'.split(' '), function(name) {
+ if (name)
+ self[name] = settings[name] || noop;
+ });
- if (elm.nodeName != name.toUpperCase()) {
- // Rename block element
- newElm = t.create(name);
+ self.parse = function(html) {
+ var self = this, matches, index = 0, value, endRegExp, stack = [], attrList, i, text, name, isInternalElement, removeInternalElements,
+ shortEndedElements, fillAttrsMap, isShortEnded, validate, elementRule, isValidElement, attr, attribsValue, invalidPrefixRegExp,
+ validAttributesMap, validAttributePatterns, attributesRequired, attributesDefault, attributesForced, selfClosing,
+ tokenRegExp, attrRegExp, specialElements, attrValue, idCount = 0, decode = tinymce.html.Entities.decode, fixSelfClosing, isIE;
- // Copy attribs to new block
- each(t.getAttribs(elm), function(attr_node) {
- t.setAttrib(newElm, attr_node.nodeName, t.getAttrib(elm, attr_node.nodeName));
- });
+ function processEndTag(name) {
+ var pos, i;
- // Replace block
- t.replace(newElm, elm, 1);
- }
+ // Find position of parent of the same type
+ pos = stack.length;
+ while (pos--) {
+ if (stack[pos].name === name)
+ break;
+ }
- return newElm || elm;
- },
+ // Found parent
+ if (pos >= 0) {
+ // Close all the open elements
+ for (i = stack.length - 1; i >= pos; i--) {
+ name = stack[i];
- findCommonAncestor : function(a, b) {
- var ps = a, pe;
+ if (name.valid)
+ self.end(name.name);
+ }
- while (ps) {
- pe = b;
+ // Remove the open elements from the stack
+ stack.length = pos;
+ }
+ };
- while (pe && ps != pe)
- pe = pe.parentNode;
+ function parseAttribute(match, name, value, val2, val3) {
+ var attrRule, i;
- if (ps == pe)
- break;
+ name = name.toLowerCase();
+ value = name in fillAttrsMap ? name : decode(value || val2 || val3 || ''); // Handle boolean attribute than value attribute
- ps = ps.parentNode;
- }
+ // Validate name and value
+ if (validate && !isInternalElement && name.indexOf('data-mce-') !== 0) {
+ attrRule = validAttributesMap[name];
- if (!ps && a.ownerDocument)
- return a.ownerDocument.documentElement;
+ // Find rule by pattern matching
+ if (!attrRule && validAttributePatterns) {
+ i = validAttributePatterns.length;
+ while (i--) {
+ attrRule = validAttributePatterns[i];
+ if (attrRule.pattern.test(name))
+ break;
+ }
- return ps;
- },
+ // No rule matched
+ if (i === -1)
+ attrRule = null;
+ }
- toHex : function(s) {
- var c = /^\s*rgb\s*?\(\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?\)\s*$/i.exec(s);
+ // No attribute rule found
+ if (!attrRule)
+ return;
- function hex(s) {
- s = parseInt(s).toString(16);
+ // Validate value
+ if (attrRule.validValues && !(value in attrRule.validValues))
+ return;
+ }
- return s.length > 1 ? s : '0' + s; // 0 -> 00
+ // Add attribute to list and map
+ attrList.map[name] = value;
+ attrList.push({
+ name: name,
+ value: value
+ });
};
- if (c) {
- s = '#' + hex(c[1]) + hex(c[2]) + hex(c[3]);
+ // Precompile RegExps and map objects
+ tokenRegExp = new RegExp('<(?:' +
+ '(?:!--([\\w\\W]*?)-->)|' + // Comment
+ '(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|' + // CDATA
+ '(?:!DOCTYPE([\\w\\W]*?)>)|' + // DOCTYPE
+ '(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|' + // PI
+ '(?:\\/([^>]+)>)|' + // End element
+ '(?:([A-Za-z0-9\\-\\:\\.]+)((?:\\s+[^"\'>]+(?:(?:"[^"]*")|(?:\'[^\']*\')|[^>]*))*|\\/|\\s+)>)' + // Start element
+ ')', 'g');
+
+ attrRegExp = /([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g;
+ specialElements = {
+ 'script' : /<\/script[^>]*>/gi,
+ 'style' : /<\/style[^>]*>/gi,
+ 'noscript' : /<\/noscript[^>]*>/gi
+ };
- return s;
- }
+ // Setup lookup tables for empty elements and boolean attributes
+ shortEndedElements = schema.getShortEndedElements();
+ selfClosing = settings.self_closing_elements || schema.getSelfClosingElements();
+ fillAttrsMap = schema.getBoolAttrs();
+ validate = settings.validate;
+ removeInternalElements = settings.remove_internals;
+ fixSelfClosing = settings.fix_self_closing;
+ isIE = tinymce.isIE;
+ invalidPrefixRegExp = /^:/;
+
+ while (matches = tokenRegExp.exec(html)) {
+ // Text
+ if (index < matches.index)
+ self.text(decode(html.substr(index, matches.index - index)));
+
+ if (value = matches[6]) { // End element
+ value = value.toLowerCase();
+
+ // IE will add a ":" in front of elements it doesn't understand like custom elements or HTML5 elements
+ if (isIE && invalidPrefixRegExp.test(value))
+ value = value.substr(1);
+
+ processEndTag(value);
+ } else if (value = matches[7]) { // Start element
+ value = value.toLowerCase();
+
+ // IE will add a ":" in front of elements it doesn't understand like custom elements or HTML5 elements
+ if (isIE && invalidPrefixRegExp.test(value))
+ value = value.substr(1);
+
+ isShortEnded = value in shortEndedElements;
+
+ // Is self closing tag for example an <li> after an open <li>
+ if (fixSelfClosing && selfClosing[value] && stack.length > 0 && stack[stack.length - 1].name === value)
+ processEndTag(value);
+
+ // Validate element
+ if (!validate || (elementRule = schema.getElementRule(value))) {
+ isValidElement = true;
+
+ // Grab attributes map and patters when validation is enabled
+ if (validate) {
+ validAttributesMap = elementRule.attributes;
+ validAttributePatterns = elementRule.attributePatterns;
+ }
- return s;
- },
+ // Parse attributes
+ if (attribsValue = matches[8]) {
+ isInternalElement = attribsValue.indexOf('data-mce-type') !== -1; // Check if the element is an internal element
- getClasses : function() {
- var t = this, cl = [], i, lo = {}, f = t.settings.class_filter, ov;
+ // If the element has internal attributes then remove it if we are told to do so
+ if (isInternalElement && removeInternalElements)
+ isValidElement = false;
- if (t.classes)
- return t.classes;
+ attrList = [];
+ attrList.map = {};
- function addClasses(s) {
- // IE style imports
- each(s.imports, function(r) {
- addClasses(r);
- });
+ attribsValue.replace(attrRegExp, parseAttribute);
+ } else {
+ attrList = [];
+ attrList.map = {};
+ }
- each(s.cssRules || s.rules, function(r) {
- // Real type or fake it on IE
- switch (r.type || 1) {
- // Rule
- case 1:
- if (r.selectorText) {
- each(r.selectorText.split(','), function(v) {
- v = v.replace(/^\s*|\s*$|^\s\./g, "");
+ // Process attributes if validation is enabled
+ if (validate && !isInternalElement) {
+ attributesRequired = elementRule.attributesRequired;
+ attributesDefault = elementRule.attributesDefault;
+ attributesForced = elementRule.attributesForced;
+
+ // Handle forced attributes
+ if (attributesForced) {
+ i = attributesForced.length;
+ while (i--) {
+ attr = attributesForced[i];
+ name = attr.name;
+ attrValue = attr.value;
+
+ if (attrValue === '{$uid}')
+ attrValue = 'mce_' + idCount++;
+
+ attrList.map[name] = attrValue;
+ attrList.push({name: name, value: attrValue});
+ }
+ }
- // Is internal or it doesn't contain a class
- if (/\.mce/.test(v) || !/\.[\w\-]+$/.test(v))
- return;
+ // Handle default attributes
+ if (attributesDefault) {
+ i = attributesDefault.length;
+ while (i--) {
+ attr = attributesDefault[i];
+ name = attr.name;
- // Remove everything but class name
- ov = v;
- v = tinymce._replace(/.*\.([a-z0-9_\-]+).*/i, '$1', v);
+ if (!(name in attrList.map)) {
+ attrValue = attr.value;
- // Filter classes
- if (f && !(v = f(v, ov)))
- return;
+ if (attrValue === '{$uid}')
+ attrValue = 'mce_' + idCount++;
- if (!lo[v]) {
- cl.push({'class' : v});
- lo[v] = 1;
+ attrList.map[name] = attrValue;
+ attrList.push({name: name, value: attrValue});
}
- });
+ }
}
- break;
- // Import
- case 3:
- addClasses(r.styleSheet);
- break;
- }
- });
- };
+ // Handle required attributes
+ if (attributesRequired) {
+ i = attributesRequired.length;
+ while (i--) {
+ if (attributesRequired[i] in attrList.map)
+ break;
+ }
- try {
- each(t.doc.styleSheets, addClasses);
- } catch (ex) {
- // Ignore
- }
+ // None of the required attributes where found
+ if (i === -1)
+ isValidElement = false;
+ }
- if (cl.length > 0)
- t.classes = cl;
+ // Invalidate element if it's marked as bogus
+ if (attrList.map['data-mce-bogus'])
+ isValidElement = false;
+ }
- return cl;
- },
+ if (isValidElement)
+ self.start(value, attrList, isShortEnded);
+ } else
+ isValidElement = false;
- run : function(e, f, s) {
- var t = this, o;
+ // Treat script, noscript and style a bit different since they may include code that looks like elements
+ if (endRegExp = specialElements[value]) {
+ endRegExp.lastIndex = index = matches.index + matches[0].length;
- if (t.doc && typeof(e) === 'string')
- e = t.get(e);
+ if (matches = endRegExp.exec(html)) {
+ if (isValidElement)
+ text = html.substr(index, matches.index - index);
- if (!e)
- return false;
+ index = matches.index + matches[0].length;
+ } else {
+ text = html.substr(index);
+ index = html.length;
+ }
- s = s || this;
- if (!e.nodeType && (e.length || e.length === 0)) {
- o = [];
+ if (isValidElement && text.length > 0)
+ self.text(text, true);
- each(e, function(e, i) {
- if (e) {
- if (typeof(e) == 'string')
- e = t.doc.getElementById(e);
+ if (isValidElement)
+ self.end(value);
- o.push(f.call(s, e, i));
+ tokenRegExp.lastIndex = index;
+ continue;
}
- });
- return o;
+ // Push value on to stack
+ if (!isShortEnded) {
+ if (!attribsValue || attribsValue.indexOf('/') != attribsValue.length - 1)
+ stack.push({name: value, valid: isValidElement});
+ else if (isValidElement)
+ self.end(value);
+ }
+ } else if (value = matches[1]) { // Comment
+ self.comment(value);
+ } else if (value = matches[2]) { // CDATA
+ self.cdata(value);
+ } else if (value = matches[3]) { // DOCTYPE
+ self.doctype(value);
+ } else if (value = matches[4]) { // PI
+ self.pi(value, matches[5]);
+ }
+
+ index = matches.index + matches[0].length;
}
- return f.call(s, e);
- },
+ // Text
+ if (index < html.length)
+ self.text(decode(html.substr(index)));
- getAttribs : function(n) {
- var o;
+ // Close any open elements
+ for (i = stack.length - 1; i >= 0; i--) {
+ value = stack[i];
- n = this.get(n);
+ if (value.valid)
+ self.end(value.name);
+ }
+ };
+ }
+})(tinymce);
- if (!n)
- return [];
+(function(tinymce) {
+ var whiteSpaceRegExp = /^[ \t\r\n]*$/, typeLookup = {
+ '#text' : 3,
+ '#comment' : 8,
+ '#cdata' : 4,
+ '#pi' : 7,
+ '#doctype' : 10,
+ '#document-fragment' : 11
+ };
- if (isIE) {
- o = [];
+ // Walks the tree left/right
+ function walk(node, root_node, prev) {
+ var sibling, parent, startName = prev ? 'lastChild' : 'firstChild', siblingName = prev ? 'prev' : 'next';
- // Object will throw exception in IE
- if (n.nodeName == 'OBJECT')
- return n.attributes;
+ // Walk into nodes if it has a start
+ if (node[startName])
+ return node[startName];
- // IE doesn't keep the selected attribute if you clone option elements
- if (n.nodeName === 'OPTION' && this.getAttrib(n, 'selected'))
- o.push({specified : 1, nodeName : 'selected'});
+ // Return the sibling if it has one
+ if (node !== root_node) {
+ sibling = node[siblingName];
- // It's crazy that this is faster in IE but it's because it returns all attributes all the time
- n.cloneNode(false).outerHTML.replace(/<\/?[\w:\-]+ ?|=[\"][^\"]+\"|=\'[^\']+\'|=[\w\-]+|>/gi, '').replace(/[\w:\-]+/gi, function(a) {
- o.push({specified : 1, nodeName : a});
- });
+ if (sibling)
+ return sibling;
- return o;
+ // Walk up the parents to look for siblings
+ for (parent = node.parent; parent && parent !== root_node; parent = parent.parent) {
+ sibling = parent[siblingName];
+
+ if (sibling)
+ return sibling;
}
+ }
+ };
- return n.attributes;
- },
+ function Node(name, type) {
+ this.name = name;
+ this.type = type;
- destroy : function(s) {
- var t = this;
+ if (type === 1) {
+ this.attributes = [];
+ this.attributes.map = {};
+ }
+ }
+
+ tinymce.extend(Node.prototype, {
+ replace : function(node) {
+ var self = this;
- if (t.events)
- t.events.destroy();
+ if (node.parent)
+ node.remove();
- t.win = t.doc = t.root = t.events = null;
+ self.insert(node, self);
+ self.remove();
- // Manual destroy then remove unload handler
- if (!s)
- tinymce.removeUnload(t.destroy);
+ return self;
},
- createRng : function() {
- var d = this.doc;
+ attr : function(name, value) {
+ var self = this, attrs, i, undef;
- return d.createRange ? d.createRange() : new tinymce.dom.Range(this);
- },
+ if (typeof name !== "string") {
+ for (i in name)
+ self.attr(i, name[i]);
- nodeIndex : function(node, normalized) {
- var idx = 0, lastNodeType, lastNode, nodeType;
+ return self;
+ }
- if (node) {
- for (lastNodeType = node.nodeType, node = node.previousSibling, lastNode = node; node; node = node.previousSibling) {
- nodeType = node.nodeType;
+ if (attrs = self.attributes) {
+ if (value !== undef) {
+ // Remove attribute
+ if (value === null) {
+ if (name in attrs.map) {
+ delete attrs.map[name];
- // Normalize text nodes
- if (normalized && nodeType == 3) {
- if (nodeType == lastNodeType || !node.nodeValue.length)
- continue;
+ i = attrs.length;
+ while (i--) {
+ if (attrs[i].name === name) {
+ attrs = attrs.splice(i, 1);
+ return self;
+ }
+ }
+ }
+
+ return self;
}
- idx++;
- lastNodeType = nodeType;
+ // Set attribute
+ if (name in attrs.map) {
+ // Set attribute
+ i = attrs.length;
+ while (i--) {
+ if (attrs[i].name === name) {
+ attrs[i].value = value;
+ break;
+ }
+ }
+ } else
+ attrs.push({name: name, value: value});
+
+ attrs.map[name] = value;
+
+ return self;
+ } else {
+ return attrs.map[name];
}
}
-
- return idx;
},
- split : function(pe, e, re) {
- var t = this, r = t.createRng(), bef, aft, pa;
-
- // W3C valid browsers tend to leave empty nodes to the left/right side of the contents, this makes sense
- // but we don't want that in our code since it serves no purpose for the end user
- // For example if this is chopped:
- // <p>text 1<span><b>CHOP</b></span>text 2</p>
- // would produce:
- // <p>text 1<span></span></p><b>CHOP</b><p><span></span>text 2</p>
- // this function will then trim of empty edges and produce:
- // <p>text 1</p><b>CHOP</b><p>text 2</p>
- function trim(node) {
- var i, children = node.childNodes;
+ clone : function() {
+ var self = this, clone = new Node(self.name, self.type), i, l, selfAttrs, selfAttr, cloneAttrs;
- if (node.nodeType == 1 && node.getAttribute('_mce_type') == 'bookmark')
- return;
+ // Clone element attributes
+ if (selfAttrs = self.attributes) {
+ cloneAttrs = [];
+ cloneAttrs.map = {};
- for (i = children.length - 1; i >= 0; i--)
- trim(children[i]);
+ for (i = 0, l = selfAttrs.length; i < l; i++) {
+ selfAttr = selfAttrs[i];
- if (node.nodeType != 9) {
- // Keep non whitespace text nodes
- if (node.nodeType == 3 && node.nodeValue.length > 0) {
- // If parent element isn't a block or there isn't any useful contents for example "<p> </p>"
- if (!t.isBlock(node.parentNode) || tinymce.trim(node.nodeValue).length > 0)
- return;
+ // Clone everything except id
+ if (selfAttr.name !== 'id') {
+ cloneAttrs[cloneAttrs.length] = {name: selfAttr.name, value: selfAttr.value};
+ cloneAttrs.map[selfAttr.name] = selfAttr.value;
}
+ }
- if (node.nodeType == 1) {
- // If the only child is a bookmark then move it up
- children = node.childNodes;
- if (children.length == 1 && children[0] && children[0].nodeType == 1 && children[0].getAttribute('_mce_type') == 'bookmark')
- node.parentNode.insertBefore(children[0], node);
+ clone.attributes = cloneAttrs;
+ }
- // Keep non empty elements or img, hr etc
- if (children.length || /^(br|hr|input|img)$/i.test(node.nodeName))
- return;
- }
+ clone.value = self.value;
+ clone.shortEnded = self.shortEnded;
- t.remove(node);
- }
+ return clone;
+ },
- return node;
- };
+ wrap : function(wrapper) {
+ var self = this;
- if (pe && e) {
- // Get before chunk
- r.setStart(pe.parentNode, t.nodeIndex(pe));
- r.setEnd(e.parentNode, t.nodeIndex(e));
- bef = r.extractContents();
+ self.parent.insert(wrapper, self);
+ wrapper.append(self);
- // Get after chunk
- r = t.createRng();
- r.setStart(e.parentNode, t.nodeIndex(e) + 1);
- r.setEnd(pe.parentNode, t.nodeIndex(pe) + 1);
- aft = r.extractContents();
+ return self;
+ },
- // Insert before chunk
- pa = pe.parentNode;
- pa.insertBefore(trim(bef), pe);
+ unwrap : function() {
+ var self = this, node, next;
- // Insert middle chunk
- if (re)
- pa.replaceChild(re, e);
- else
- pa.insertBefore(e, pe);
+ for (node = self.firstChild; node; ) {
+ next = node.next;
+ self.insert(node, self, true);
+ node = next;
+ }
- // Insert after chunk
- pa.insertBefore(trim(aft), pe);
- t.remove(pe);
+ self.remove();
+ },
- return re || e;
+ remove : function() {
+ var self = this, parent = self.parent, next = self.next, prev = self.prev;
+
+ if (parent) {
+ if (parent.firstChild === self) {
+ parent.firstChild = next;
+
+ if (next)
+ next.prev = null;
+ } else {
+ prev.next = next;
+ }
+
+ if (parent.lastChild === self) {
+ parent.lastChild = prev;
+
+ if (prev)
+ prev.next = null;
+ } else {
+ next.prev = prev;
+ }
+
+ self.parent = self.next = self.prev = null;
}
+
+ return self;
},
- bind : function(target, name, func, scope) {
- var t = this;
+ append : function(node) {
+ var self = this, last;
+
+ if (node.parent)
+ node.remove();
+
+ last = self.lastChild;
+ if (last) {
+ last.next = node;
+ node.prev = last;
+ self.lastChild = node;
+ } else
+ self.lastChild = self.firstChild = node;
- if (!t.events)
- t.events = new tinymce.dom.EventUtils();
+ node.parent = self;
- return t.events.add(target, name, func, scope || this);
+ return node;
},
- unbind : function(target, name, func) {
- var t = this;
+ insert : function(node, ref_node, before) {
+ var parent;
+
+ if (node.parent)
+ node.remove();
+
+ parent = ref_node.parent || this;
+
+ if (before) {
+ if (ref_node === parent.firstChild)
+ parent.firstChild = node;
+ else
+ ref_node.prev.next = node;
- if (!t.events)
- t.events = new tinymce.dom.EventUtils();
+ node.prev = ref_node.prev;
+ node.next = ref_node;
+ ref_node.prev = node;
+ } else {
+ if (ref_node === parent.lastChild)
+ parent.lastChild = node;
+ else
+ ref_node.next.prev = node;
+
+ node.next = ref_node.next;
+ node.prev = ref_node;
+ ref_node.next = node;
+ }
- return t.events.remove(target, name, func);
+ node.parent = parent;
+
+ return node;
},
+ getAll : function(name) {
+ var self = this, node, collection = [];
- _findSib : function(node, selector, name) {
- var t = this, f = selector;
+ for (node = self.firstChild; node; node = walk(node, self)) {
+ if (node.name === name)
+ collection.push(node);
+ }
- if (node) {
- // If expression make a function of it using is
- if (is(f, 'string')) {
- f = function(node) {
- return t.is(node, selector);
- };
- }
+ return collection;
+ },
- // Loop all siblings
- for (node = node[name]; node; node = node[name]) {
- if (f(node))
- return node;
+ empty : function() {
+ var self = this, nodes, i, node;
+
+ // Remove all children
+ if (self.firstChild) {
+ nodes = [];
+
+ // Collect the children
+ for (node = self.firstChild; node; node = walk(node, self))
+ nodes.push(node);
+
+ // Remove the children
+ i = nodes.length;
+ while (i--) {
+ node = nodes[i];
+ node.parent = node.firstChild = node.lastChild = node.next = node.prev = null;
}
}
- return null;
+ self.firstChild = self.lastChild = null;
+
+ return self;
},
- _isRes : function(c) {
- // Is live resizble element
- return /^(top|left|bottom|right|width|height)/i.test(c) || /;\s*(top|left|bottom|right|width|height)/i.test(c);
- }
+ isEmpty : function(elements) {
+ var self = this, node = self.firstChild, i, name;
- /*
- walk : function(n, f, s) {
- var d = this.doc, w;
+ if (node) {
+ do {
+ if (node.type === 1) {
+ // Ignore bogus elements
+ if (node.attributes.map['data-mce-bogus'])
+ continue;
- if (d.createTreeWalker) {
- w = d.createTreeWalker(n, NodeFilter.SHOW_TEXT, null, false);
+ // Keep empty elements like <img />
+ if (elements[node.name])
+ return false;
- while ((n = w.nextNode()) != null)
- f.call(s || this, n);
- } else
- tinymce.walk(n, f, 'childNodes', s);
+ // Keep elements with data attributes or name attribute like <a name="1"></a>
+ i = node.attributes.length;
+ while (i--) {
+ name = node.attributes[i].name;
+ if (name === "name" || name.indexOf('data-mce-') === 0)
+ return false;
+ }
+ }
+
+ // Keep comments
+ if (node.type === 8)
+ return false;
+
+ // Keep non whitespace text nodes
+ if ((node.type === 3 && !whiteSpaceRegExp.test(node.value)))
+ return false;
+ } while (node = walk(node, self));
+ }
+
+ return true;
+ },
+
+ walk : function(prev) {
+ return walk(this, null, prev);
}
- */
+ });
- /*
- toRGB : function(s) {
- var c = /^\s*?#([0-9A-F]{2})([0-9A-F]{1,2})([0-9A-F]{2})?\s*?$/.exec(s);
+ tinymce.extend(Node, {
+ create : function(name, attrs) {
+ var node, attrName;
- if (c) {
- // #FFF -> #FFFFFF
- if (!is(c[3]))
- c[3] = c[2] = c[1];
+ // Create node
+ node = new Node(name, typeLookup[name] || 1);
- return "rgb(" + parseInt(c[1], 16) + "," + parseInt(c[2], 16) + "," + parseInt(c[3], 16) + ")";
+ // Add attributes if needed
+ if (attrs) {
+ for (attrName in attrs)
+ node.attr(attrName, attrs[attrName]);
}
- return s;
+ return node;
}
- */
});
- tinymce.DOM = new tinymce.dom.DOMUtils(document, {process_html : 0});
+ tinymce.html.Node = Node;
})(tinymce);
-(function(ns) {
- // Range constructor
- function Range(dom) {
- var t = this,
- doc = dom.doc,
- EXTRACT = 0,
- CLONE = 1,
- DELETE = 2,
- TRUE = true,
- FALSE = false,
- START_OFFSET = 'startOffset',
- START_CONTAINER = 'startContainer',
- END_CONTAINER = 'endContainer',
- END_OFFSET = 'endOffset',
- extend = tinymce.extend,
- nodeIndex = dom.nodeIndex;
+(function(tinymce) {
+ var Node = tinymce.html.Node;
- extend(t, {
- // Inital states
- startContainer : doc,
- startOffset : 0,
- endContainer : doc,
- endOffset : 0,
- collapsed : TRUE,
- commonAncestorContainer : doc,
+ tinymce.html.DomParser = function(settings, schema) {
+ var self = this, nodeFilters = {}, attributeFilters = [], matchedNodes = {}, matchedAttributes = {};
- // Range constants
- START_TO_START : 0,
- START_TO_END : 1,
- END_TO_END : 2,
- END_TO_START : 3,
+ settings = settings || {};
+ settings.validate = "validate" in settings ? settings.validate : true;
+ settings.root_name = settings.root_name || 'body';
+ self.schema = schema = schema || new tinymce.html.Schema();
- // Public methods
- setStart : setStart,
- setEnd : setEnd,
- setStartBefore : setStartBefore,
- setStartAfter : setStartAfter,
- setEndBefore : setEndBefore,
- setEndAfter : setEndAfter,
- collapse : collapse,
- selectNode : selectNode,
- selectNodeContents : selectNodeContents,
- compareBoundaryPoints : compareBoundaryPoints,
- deleteContents : deleteContents,
- extractContents : extractContents,
- cloneContents : cloneContents,
- insertNode : insertNode,
- surroundContents : surroundContents,
- cloneRange : cloneRange
- });
+ function fixInvalidChildren(nodes) {
+ var ni, node, parent, parents, newParent, currentNode, tempNode, childNode, i,
+ childClone, nonEmptyElements, nonSplitableElements, textBlockElements, sibling, nextNode;
- function setStart(n, o) {
- _setEndPoint(TRUE, n, o);
- };
+ nonSplitableElements = tinymce.makeMap('tr,td,th,tbody,thead,tfoot,table');
+ nonEmptyElements = schema.getNonEmptyElements();
+ textBlockElements = schema.getTextBlockElements();
- function setEnd(n, o) {
- _setEndPoint(FALSE, n, o);
- };
+ for (ni = 0; ni < nodes.length; ni++) {
+ node = nodes[ni];
- function setStartBefore(n) {
- setStart(n.parentNode, nodeIndex(n));
- };
+ // Already removed or fixed
+ if (!node.parent || node.fixed)
+ continue;
- function setStartAfter(n) {
- setStart(n.parentNode, nodeIndex(n) + 1);
- };
+ // If the invalid element is a text block and the text block is within a parent LI element
+ // Then unwrap the first text block and convert other sibling text blocks to LI elements similar to Word/Open Office
+ if (textBlockElements[node.name] && node.parent.name == 'li') {
+ // Move sibling text blocks after LI element
+ sibling = node.next;
+ while (sibling) {
+ if (textBlockElements[sibling.name]) {
+ sibling.name = 'li';
+ sibling.fixed = true;
+ node.parent.insert(sibling, node.parent);
+ } else {
+ break;
+ }
- function setEndBefore(n) {
- setEnd(n.parentNode, nodeIndex(n));
- };
+ sibling = sibling.next;
+ }
- function setEndAfter(n) {
- setEnd(n.parentNode, nodeIndex(n) + 1);
- };
+ // Unwrap current text block
+ node.unwrap(node);
+ continue;
+ }
- function collapse(ts) {
- if (ts) {
- t[END_CONTAINER] = t[START_CONTAINER];
- t[END_OFFSET] = t[START_OFFSET];
- } else {
- t[START_CONTAINER] = t[END_CONTAINER];
- t[START_OFFSET] = t[END_OFFSET];
- }
+ // Get list of all parent nodes until we find a valid parent to stick the child into
+ parents = [node];
+ for (parent = node.parent; parent && !schema.isValidChild(parent.name, node.name) && !nonSplitableElements[parent.name]; parent = parent.parent)
+ parents.push(parent);
- t.collapsed = TRUE;
- };
+ // Found a suitable parent
+ if (parent && parents.length > 1) {
+ // Reverse the array since it makes looping easier
+ parents.reverse();
- function selectNode(n) {
- setStartBefore(n);
- setEndAfter(n);
- };
+ // Clone the related parent and insert that after the moved node
+ newParent = currentNode = self.filterNode(parents[0].clone());
- function selectNodeContents(n) {
- setStart(n, 0);
- setEnd(n, n.nodeType === 1 ? n.childNodes.length : n.nodeValue.length);
- };
+ // Start cloning and moving children on the left side of the target node
+ for (i = 0; i < parents.length - 1; i++) {
+ if (schema.isValidChild(currentNode.name, parents[i].name)) {
+ tempNode = self.filterNode(parents[i].clone());
+ currentNode.append(tempNode);
+ } else
+ tempNode = currentNode;
- function compareBoundaryPoints(h, r) {
- var sc = t[START_CONTAINER], so = t[START_OFFSET], ec = t[END_CONTAINER], eo = t[END_OFFSET];
+ for (childNode = parents[i].firstChild; childNode && childNode != parents[i + 1]; ) {
+ nextNode = childNode.next;
+ tempNode.append(childNode);
+ childNode = nextNode;
+ }
- // Check START_TO_START
- if (h === 0)
- return _compareBoundaryPoints(sc, so, sc, so);
+ currentNode = tempNode;
+ }
- // Check START_TO_END
- if (h === 1)
- return _compareBoundaryPoints(sc, so, ec, eo);
+ if (!newParent.isEmpty(nonEmptyElements)) {
+ parent.insert(newParent, parents[0], true);
+ parent.insert(node, newParent);
+ } else {
+ parent.insert(node, parents[0], true);
+ }
- // Check END_TO_END
- if (h === 2)
- return _compareBoundaryPoints(ec, eo, ec, eo);
+ // Check if the element is empty by looking through it's contents and special treatment for <p><br /></p>
+ parent = parents[0];
+ if (parent.isEmpty(nonEmptyElements) || parent.firstChild === parent.lastChild && parent.firstChild.name === 'br') {
+ parent.empty().remove();
+ }
+ } else if (node.parent) {
+ // If it's an LI try to find a UL/OL for it or wrap it
+ if (node.name === 'li') {
+ sibling = node.prev;
+ if (sibling && (sibling.name === 'ul' || sibling.name === 'ul')) {
+ sibling.append(node);
+ continue;
+ }
- // Check END_TO_START
- if (h === 3)
- return _compareBoundaryPoints(ec, eo, sc, so);
- };
+ sibling = node.next;
+ if (sibling && (sibling.name === 'ul' || sibling.name === 'ul')) {
+ sibling.insert(node, sibling.firstChild, true);
+ continue;
+ }
- function deleteContents() {
- _traverse(DELETE);
- };
+ node.wrap(self.filterNode(new Node('ul', 1)));
+ continue;
+ }
- function extractContents() {
- return _traverse(EXTRACT);
+ // Try wrapping the element in a DIV
+ if (schema.isValidChild(node.parent.name, 'div') && schema.isValidChild('div', node.name)) {
+ node.wrap(self.filterNode(new Node('div', 1)));
+ } else {
+ // We failed wrapping it, then remove or unwrap it
+ if (node.name === 'style' || node.name === 'script')
+ node.empty().remove();
+ else
+ node.unwrap();
+ }
+ }
+ }
};
- function cloneContents() {
- return _traverse(CLONE);
- };
+ self.filterNode = function(node) {
+ var i, name, list;
- function insertNode(n) {
- var startContainer = this[START_CONTAINER],
- startOffset = this[START_OFFSET], nn, o;
+ // Run element filters
+ if (name in nodeFilters) {
+ list = matchedNodes[name];
- // Node is TEXT_NODE or CDATA
- if ((startContainer.nodeType === 3 || startContainer.nodeType === 4) && startContainer.nodeValue) {
- if (!startOffset) {
- // At the start of text
- startContainer.parentNode.insertBefore(n, startContainer);
- } else if (startOffset >= startContainer.nodeValue.length) {
- // At the end of text
- dom.insertAfter(n, startContainer);
- } else {
- // Middle, need to split
- nn = startContainer.splitText(startOffset);
- startContainer.parentNode.insertBefore(n, nn);
- }
- } else {
- // Insert element node
- if (startContainer.childNodes.length > 0)
- o = startContainer.childNodes[startOffset];
-
- if (o)
- startContainer.insertBefore(n, o);
+ if (list)
+ list.push(node);
else
- startContainer.appendChild(n);
+ matchedNodes[name] = [node];
}
- };
- function surroundContents(n) {
- var f = t.extractContents();
+ // Run attribute filters
+ i = attributeFilters.length;
+ while (i--) {
+ name = attributeFilters[i].name;
- t.insertNode(n);
- n.appendChild(f);
- t.selectNode(n);
+ if (name in node.attributes.map) {
+ list = matchedAttributes[name];
+
+ if (list)
+ list.push(node);
+ else
+ matchedAttributes[name] = [node];
+ }
+ }
+
+ return node;
};
- function cloneRange() {
- return extend(new Range(dom), {
- startContainer : t[START_CONTAINER],
- startOffset : t[START_OFFSET],
- endContainer : t[END_CONTAINER],
- endOffset : t[END_OFFSET],
- collapsed : t.collapsed,
- commonAncestorContainer : t.commonAncestorContainer
+ self.addNodeFilter = function(name, callback) {
+ tinymce.each(tinymce.explode(name), function(name) {
+ var list = nodeFilters[name];
+
+ if (!list)
+ nodeFilters[name] = list = [];
+
+ list.push(callback);
});
};
- // Private methods
-
- function _getSelectedNode(container, offset) {
- var child;
+ self.addAttributeFilter = function(name, callback) {
+ tinymce.each(tinymce.explode(name), function(name) {
+ var i;
- if (container.nodeType == 3 /* TEXT_NODE */)
- return container;
+ for (i = 0; i < attributeFilters.length; i++) {
+ if (attributeFilters[i].name === name) {
+ attributeFilters[i].callbacks.push(callback);
+ return;
+ }
+ }
- if (offset < 0)
- return container;
+ attributeFilters.push({name: name, callbacks: [callback]});
+ });
+ };
- child = container.firstChild;
- while (child && offset > 0) {
- --offset;
- child = child.nextSibling;
- }
+ self.parse = function(html, args) {
+ var parser, rootNode, node, nodes, i, l, fi, fl, list, name, validate,
+ blockElements, startWhiteSpaceRegExp, invalidChildren = [], isInWhiteSpacePreservedElement,
+ endWhiteSpaceRegExp, allWhiteSpaceRegExp, isAllWhiteSpaceRegExp, whiteSpaceElements, children, nonEmptyElements, rootBlockName;
+
+ args = args || {};
+ matchedNodes = {};
+ matchedAttributes = {};
+ blockElements = tinymce.extend(tinymce.makeMap('script,style,head,html,body,title,meta,param'), schema.getBlockElements());
+ nonEmptyElements = schema.getNonEmptyElements();
+ children = schema.children;
+ validate = settings.validate;
+ rootBlockName = "forced_root_block" in args ? args.forced_root_block : settings.forced_root_block;
+
+ whiteSpaceElements = schema.getWhiteSpaceElements();
+ startWhiteSpaceRegExp = /^[ \t\r\n]+/;
+ endWhiteSpaceRegExp = /[ \t\r\n]+$/;
+ allWhiteSpaceRegExp = /[ \t\r\n]+/g;
+ isAllWhiteSpaceRegExp = /^[ \t\r\n]+$/;
+
+ function addRootBlocks() {
+ var node = rootNode.firstChild, next, rootBlockNode;
+
+ while (node) {
+ next = node.next;
+
+ if (node.type == 3 || (node.type == 1 && node.name !== 'p' && !blockElements[node.name] && !node.attr('data-mce-type'))) {
+ if (!rootBlockNode) {
+ // Create a new root block element
+ rootBlockNode = createNode(rootBlockName, 1);
+ rootNode.insert(rootBlockNode, node);
+ rootBlockNode.append(node);
+ } else
+ rootBlockNode.append(node);
+ } else {
+ rootBlockNode = null;
+ }
- if (child)
- return child;
+ node = next;
+ };
+ };
- return container;
- };
+ function createNode(name, type) {
+ var node = new Node(name, type), list;
- function _isCollapsed() {
- return (t[START_CONTAINER] == t[END_CONTAINER] && t[START_OFFSET] == t[END_OFFSET]);
- };
+ if (name in nodeFilters) {
+ list = matchedNodes[name];
- function _compareBoundaryPoints(containerA, offsetA, containerB, offsetB) {
- var c, offsetC, n, cmnRoot, childA, childB;
+ if (list)
+ list.push(node);
+ else
+ matchedNodes[name] = [node];
+ }
- // In the first case the boundary-points have the same container. A is before B
- // if its offset is less than the offset of B, A is equal to B if its offset is
- // equal to the offset of B, and A is after B if its offset is greater than the
- // offset of B.
- if (containerA == containerB) {
- if (offsetA == offsetB)
- return 0; // equal
+ return node;
+ };
- if (offsetA < offsetB)
- return -1; // before
+ function removeWhitespaceBefore(node) {
+ var textNode, textVal, sibling;
- return 1; // after
- }
+ for (textNode = node.prev; textNode && textNode.type === 3; ) {
+ textVal = textNode.value.replace(endWhiteSpaceRegExp, '');
- // In the second case a child node C of the container of A is an ancestor
- // container of B. In this case, A is before B if the offset of A is less than or
- // equal to the index of the child node C and A is after B otherwise.
- c = containerB;
- while (c && c.parentNode != containerA)
- c = c.parentNode;
+ if (textVal.length > 0) {
+ textNode.value = textVal;
+ textNode = textNode.prev;
+ } else {
+ sibling = textNode.prev;
+ textNode.remove();
+ textNode = sibling;
+ }
+ }
+ };
- if (c) {
- offsetC = 0;
- n = containerA.firstChild;
+ function cloneAndExcludeBlocks(input) {
+ var name, output = {};
- while (n != c && offsetC < offsetA) {
- offsetC++;
- n = n.nextSibling;
+ for (name in input) {
+ if (name !== 'li' && name != 'p') {
+ output[name] = input[name];
+ }
}
- if (offsetA <= offsetC)
- return -1; // before
+ return output;
+ };
- return 1; // after
- }
+ parser = new tinymce.html.SaxParser({
+ validate : validate,
- // In the third case a child node C of the container of B is an ancestor container
- // of A. In this case, A is before B if the index of the child node C is less than
- // the offset of B and A is after B otherwise.
- c = containerA;
- while (c && c.parentNode != containerB) {
- c = c.parentNode;
- }
+ // Exclude P and LI from DOM parsing since it's treated better by the DOM parser
+ self_closing_elements: cloneAndExcludeBlocks(schema.getSelfClosingElements()),
- if (c) {
- offsetC = 0;
- n = containerB.firstChild;
+ cdata: function(text) {
+ node.append(createNode('#cdata', 4)).value = text;
+ },
- while (n != c && offsetC < offsetB) {
- offsetC++;
- n = n.nextSibling;
- }
+ text: function(text, raw) {
+ var textNode;
- if (offsetC < offsetB)
- return -1; // before
+ // Trim all redundant whitespace on non white space elements
+ if (!isInWhiteSpacePreservedElement) {
+ text = text.replace(allWhiteSpaceRegExp, ' ');
- return 1; // after
- }
+ if (node.lastChild && blockElements[node.lastChild.name])
+ text = text.replace(startWhiteSpaceRegExp, '');
+ }
- // In the fourth case, none of three other cases hold: the containers of A and B
- // are siblings or descendants of sibling nodes. In this case, A is before B if
- // the container of A is before the container of B in a pre-order traversal of the
- // Ranges' context tree and A is after B otherwise.
- cmnRoot = dom.findCommonAncestor(containerA, containerB);
- childA = containerA;
+ // Do we need to create the node
+ if (text.length !== 0) {
+ textNode = createNode('#text', 3);
+ textNode.raw = !!raw;
+ node.append(textNode).value = text;
+ }
+ },
- while (childA && childA.parentNode != cmnRoot)
- childA = childA.parentNode;
+ comment: function(text) {
+ node.append(createNode('#comment', 8)).value = text;
+ },
- if (!childA)
- childA = cmnRoot;
+ pi: function(name, text) {
+ node.append(createNode(name, 7)).value = text;
+ removeWhitespaceBefore(node);
+ },
- childB = containerB;
- while (childB && childB.parentNode != cmnRoot)
- childB = childB.parentNode;
+ doctype: function(text) {
+ var newNode;
+
+ newNode = node.append(createNode('#doctype', 10));
+ newNode.value = text;
+ removeWhitespaceBefore(node);
+ },
- if (!childB)
- childB = cmnRoot;
+ start: function(name, attrs, empty) {
+ var newNode, attrFiltersLen, elementRule, textNode, attrName, text, sibling, parent;
- if (childA == childB)
- return 0; // equal
+ elementRule = validate ? schema.getElementRule(name) : {};
+ if (elementRule) {
+ newNode = createNode(elementRule.outputName || name, 1);
+ newNode.attributes = attrs;
+ newNode.shortEnded = empty;
- n = cmnRoot.firstChild;
- while (n) {
- if (n == childA)
- return -1; // before
+ node.append(newNode);
- if (n == childB)
- return 1; // after
+ // Check if node is valid child of the parent node is the child is
+ // unknown we don't collect it since it's probably a custom element
+ parent = children[node.name];
+ if (parent && children[newNode.name] && !parent[newNode.name])
+ invalidChildren.push(newNode);
- n = n.nextSibling;
- }
- };
+ attrFiltersLen = attributeFilters.length;
+ while (attrFiltersLen--) {
+ attrName = attributeFilters[attrFiltersLen].name;
- function _setEndPoint(st, n, o) {
- var ec, sc;
+ if (attrName in attrs.map) {
+ list = matchedAttributes[attrName];
- if (st) {
- t[START_CONTAINER] = n;
- t[START_OFFSET] = o;
- } else {
- t[END_CONTAINER] = n;
- t[END_OFFSET] = o;
- }
+ if (list)
+ list.push(newNode);
+ else
+ matchedAttributes[attrName] = [newNode];
+ }
+ }
- // If one boundary-point of a Range is set to have a root container
- // other than the current one for the Range, the Range is collapsed to
- // the new position. This enforces the restriction that both boundary-
- // points of a Range must have the same root container.
- ec = t[END_CONTAINER];
- while (ec.parentNode)
- ec = ec.parentNode;
+ // Trim whitespace before block
+ if (blockElements[name])
+ removeWhitespaceBefore(newNode);
- sc = t[START_CONTAINER];
- while (sc.parentNode)
- sc = sc.parentNode;
+ // Change current node if the element wasn't empty i.e not <br /> or <img />
+ if (!empty)
+ node = newNode;
- if (sc == ec) {
- // The start position of a Range is guaranteed to never be after the
- // end position. To enforce this restriction, if the start is set to
- // be at a position after the end, the Range is collapsed to that
- // position.
- if (_compareBoundaryPoints(t[START_CONTAINER], t[START_OFFSET], t[END_CONTAINER], t[END_OFFSET]) > 0)
- t.collapse(st);
- } else
- t.collapse(st);
+ // Check if we are inside a whitespace preserved element
+ if (!isInWhiteSpacePreservedElement && whiteSpaceElements[name]) {
+ isInWhiteSpacePreservedElement = true;
+ }
+ }
+ },
- t.collapsed = _isCollapsed();
- t.commonAncestorContainer = dom.findCommonAncestor(t[START_CONTAINER], t[END_CONTAINER]);
- };
+ end: function(name) {
+ var textNode, elementRule, text, sibling, tempNode;
+
+ elementRule = validate ? schema.getElementRule(name) : {};
+ if (elementRule) {
+ if (blockElements[name]) {
+ if (!isInWhiteSpacePreservedElement) {
+ // Trim whitespace of the first node in a block
+ textNode = node.firstChild;
+ if (textNode && textNode.type === 3) {
+ text = textNode.value.replace(startWhiteSpaceRegExp, '');
+
+ // Any characters left after trim or should we remove it
+ if (text.length > 0) {
+ textNode.value = text;
+ textNode = textNode.next;
+ } else {
+ sibling = textNode.next;
+ textNode.remove();
+ textNode = sibling;
+ }
- function _traverse(how) {
- var c, endContainerDepth = 0, startContainerDepth = 0, p, depthDiff, startNode, endNode, sp, ep;
+ // Remove any pure whitespace siblings
+ while (textNode && textNode.type === 3) {
+ text = textNode.value;
+ sibling = textNode.next;
- if (t[START_CONTAINER] == t[END_CONTAINER])
- return _traverseSameContainer(how);
+ if (text.length === 0 || isAllWhiteSpaceRegExp.test(text)) {
+ textNode.remove();
+ textNode = sibling;
+ }
- for (c = t[END_CONTAINER], p = c.parentNode; p; c = p, p = p.parentNode) {
- if (p == t[START_CONTAINER])
- return _traverseCommonStartContainer(c, how);
+ textNode = sibling;
+ }
+ }
- ++endContainerDepth;
- }
+ // Trim whitespace of the last node in a block
+ textNode = node.lastChild;
+ if (textNode && textNode.type === 3) {
+ text = textNode.value.replace(endWhiteSpaceRegExp, '');
- for (c = t[START_CONTAINER], p = c.parentNode; p; c = p, p = p.parentNode) {
- if (p == t[END_CONTAINER])
- return _traverseCommonEndContainer(c, how);
+ // Any characters left after trim or should we remove it
+ if (text.length > 0) {
+ textNode.value = text;
+ textNode = textNode.prev;
+ } else {
+ sibling = textNode.prev;
+ textNode.remove();
+ textNode = sibling;
+ }
- ++startContainerDepth;
- }
+ // Remove any pure whitespace siblings
+ while (textNode && textNode.type === 3) {
+ text = textNode.value;
+ sibling = textNode.prev;
- depthDiff = startContainerDepth - endContainerDepth;
+ if (text.length === 0 || isAllWhiteSpaceRegExp.test(text)) {
+ textNode.remove();
+ textNode = sibling;
+ }
- startNode = t[START_CONTAINER];
- while (depthDiff > 0) {
- startNode = startNode.parentNode;
- depthDiff--;
- }
+ textNode = sibling;
+ }
+ }
+ }
- endNode = t[END_CONTAINER];
- while (depthDiff < 0) {
- endNode = endNode.parentNode;
- depthDiff++;
- }
+ // Trim start white space
+ // Removed due to: #5424
+ /*textNode = node.prev;
+ if (textNode && textNode.type === 3) {
+ text = textNode.value.replace(startWhiteSpaceRegExp, '');
- // ascend the ancestor hierarchy until we have a common parent.
- for (sp = startNode.parentNode, ep = endNode.parentNode; sp != ep; sp = sp.parentNode, ep = ep.parentNode) {
- startNode = sp;
- endNode = ep;
- }
+ if (text.length > 0)
+ textNode.value = text;
+ else
+ textNode.remove();
+ }*/
+ }
- return _traverseCommonAncestors(startNode, endNode, how);
- };
+ // Check if we exited a whitespace preserved element
+ if (isInWhiteSpacePreservedElement && whiteSpaceElements[name]) {
+ isInWhiteSpacePreservedElement = false;
+ }
- function _traverseSameContainer(how) {
- var frag, s, sub, n, cnt, sibling, xferNode;
+ // Handle empty nodes
+ if (elementRule.removeEmpty || elementRule.paddEmpty) {
+ if (node.isEmpty(nonEmptyElements)) {
+ if (elementRule.paddEmpty)
+ node.empty().append(new Node('#text', '3')).value = '\u00a0';
+ else {
+ // Leave nodes that have a name like <a name="name">
+ if (!node.attributes.map.name && !node.attributes.map.id) {
+ tempNode = node.parent;
+ node.empty().remove();
+ node = tempNode;
+ return;
+ }
+ }
+ }
+ }
- if (how != DELETE)
- frag = doc.createDocumentFragment();
+ node = node.parent;
+ }
+ }
+ }, schema);
- // If selection is empty, just return the fragment
- if (t[START_OFFSET] == t[END_OFFSET])
- return frag;
+ rootNode = node = new Node(args.context || settings.root_name, 11);
- // Text node needs special case handling
- if (t[START_CONTAINER].nodeType == 3 /* TEXT_NODE */) {
- // get the substring
- s = t[START_CONTAINER].nodeValue;
- sub = s.substring(t[START_OFFSET], t[END_OFFSET]);
+ parser.parse(html);
- // set the original text node to its new value
- if (how != CLONE) {
- t[START_CONTAINER].deleteData(t[START_OFFSET], t[END_OFFSET] - t[START_OFFSET]);
+ // Fix invalid children or report invalid children in a contextual parsing
+ if (validate && invalidChildren.length) {
+ if (!args.context)
+ fixInvalidChildren(invalidChildren);
+ else
+ args.invalid = true;
+ }
- // Nothing is partially selected, so collapse to start point
- t.collapse(TRUE);
- }
+ // Wrap nodes in the root into block elements if the root is body
+ if (rootBlockName && rootNode.name == 'body')
+ addRootBlocks();
- if (how == DELETE)
- return;
+ // Run filters only when the contents is valid
+ if (!args.invalid) {
+ // Run node filters
+ for (name in matchedNodes) {
+ list = nodeFilters[name];
+ nodes = matchedNodes[name];
- frag.appendChild(doc.createTextNode(sub));
- return frag;
- }
+ // Remove already removed children
+ fi = nodes.length;
+ while (fi--) {
+ if (!nodes[fi].parent)
+ nodes.splice(fi, 1);
+ }
- // Copy nodes between the start/end offsets.
- n = _getSelectedNode(t[START_CONTAINER], t[START_OFFSET]);
- cnt = t[END_OFFSET] - t[START_OFFSET];
+ for (i = 0, l = list.length; i < l; i++)
+ list[i](nodes, name, args);
+ }
- while (cnt > 0) {
- sibling = n.nextSibling;
- xferNode = _traverseFullySelected(n, how);
+ // Run attribute filters
+ for (i = 0, l = attributeFilters.length; i < l; i++) {
+ list = attributeFilters[i];
- if (frag)
- frag.appendChild( xferNode );
+ if (list.name in matchedAttributes) {
+ nodes = matchedAttributes[list.name];
- --cnt;
- n = sibling;
- }
+ // Remove already removed children
+ fi = nodes.length;
+ while (fi--) {
+ if (!nodes[fi].parent)
+ nodes.splice(fi, 1);
+ }
- // Nothing is partially selected, so collapse to start point
- if (how != CLONE)
- t.collapse(TRUE);
+ for (fi = 0, fl = list.callbacks.length; fi < fl; fi++)
+ list.callbacks[fi](nodes, list.name, args);
+ }
+ }
+ }
- return frag;
+ return rootNode;
};
- function _traverseCommonStartContainer(endAncestor, how) {
- var frag, n, endIdx, cnt, sibling, xferNode;
+ // Remove <br> at end of block elements Gecko and WebKit injects BR elements to
+ // make it possible to place the caret inside empty blocks. This logic tries to remove
+ // these elements and keep br elements that where intended to be there intact
+ if (settings.remove_trailing_brs) {
+ self.addNodeFilter('br', function(nodes, name) {
+ var i, l = nodes.length, node, blockElements = tinymce.extend({}, schema.getBlockElements()),
+ nonEmptyElements = schema.getNonEmptyElements(), parent, lastParent, prev, prevName;
+
+ // Remove brs from body element as well
+ blockElements.body = 1;
+
+ // Must loop forwards since it will otherwise remove all brs in <p>a<br><br><br></p>
+ for (i = 0; i < l; i++) {
+ node = nodes[i];
+ parent = node.parent;
+
+ if (blockElements[node.parent.name] && node === parent.lastChild) {
+ // Loop all nodes to the left of the current node and check for other BR elements
+ // excluding bookmarks since they are invisible
+ prev = node.prev;
+ while (prev) {
+ prevName = prev.name;
+
+ // Ignore bookmarks
+ if (prevName !== "span" || prev.attr('data-mce-type') !== 'bookmark') {
+ // Found a non BR element
+ if (prevName !== "br")
+ break;
+
+ // Found another br it's a <br><br> structure then don't remove anything
+ if (prevName === 'br') {
+ node = null;
+ break;
+ }
+ }
- if (how != DELETE)
- frag = doc.createDocumentFragment();
+ prev = prev.prev;
+ }
- n = _traverseRightBoundary(endAncestor, how);
+ if (node) {
+ node.remove();
+
+ // Is the parent to be considered empty after we removed the BR
+ if (parent.isEmpty(nonEmptyElements)) {
+ elementRule = schema.getElementRule(parent.name);
+
+ // Remove or padd the element depending on schema rule
+ if (elementRule) {
+ if (elementRule.removeEmpty)
+ parent.remove();
+ else if (elementRule.paddEmpty)
+ parent.empty().append(new tinymce.html.Node('#text', 3)).value = '\u00a0';
+ }
+ }
+ }
+ } else {
+ // Replaces BR elements inside inline elements like <p><b><i><br></i></b></p> so they become <p><b><i> </i></b></p>
+ lastParent = node;
+ while (parent.firstChild === lastParent && parent.lastChild === lastParent) {
+ lastParent = parent;
- if (frag)
- frag.appendChild(n);
+ if (blockElements[parent.name]) {
+ break;
+ }
- endIdx = nodeIndex(endAncestor);
- cnt = endIdx - t[START_OFFSET];
+ parent = parent.parent;
+ }
- if (cnt <= 0) {
- // Collapse to just before the endAncestor, which
- // is partially selected.
- if (how != CLONE) {
- t.setEndBefore(endAncestor);
- t.collapse(FALSE);
+ if (lastParent === parent) {
+ textNode = new tinymce.html.Node('#text', 3);
+ textNode.value = '\u00a0';
+ node.replace(textNode);
+ }
+ }
}
+ });
+ }
- return frag;
- }
+ // Force anchor names closed, unless the setting "allow_html_in_named_anchor" is explicitly included.
+ if (!settings.allow_html_in_named_anchor) {
+ self.addAttributeFilter('id,name', function(nodes, name) {
+ var i = nodes.length, sibling, prevSibling, parent, node;
+
+ while (i--) {
+ node = nodes[i];
+ if (node.name === 'a' && node.firstChild && !node.attr('href')) {
+ parent = node.parent;
+
+ // Move children after current node
+ sibling = node.lastChild;
+ do {
+ prevSibling = sibling.prev;
+ parent.insert(sibling, node);
+ sibling = prevSibling;
+ } while (sibling);
+ }
+ }
+ });
+ }
+ }
+})(tinymce);
- n = endAncestor.previousSibling;
- while (cnt > 0) {
- sibling = n.previousSibling;
- xferNode = _traverseFullySelected(n, how);
+tinymce.html.Writer = function(settings) {
+ var html = [], indent, indentBefore, indentAfter, encode, htmlOutput;
- if (frag)
- frag.insertBefore(xferNode, frag.firstChild);
+ settings = settings || {};
+ indent = settings.indent;
+ indentBefore = tinymce.makeMap(settings.indent_before || '');
+ indentAfter = tinymce.makeMap(settings.indent_after || '');
+ encode = tinymce.html.Entities.getEncodeFunc(settings.entity_encoding || 'raw', settings.entities);
+ htmlOutput = settings.element_format == "html";
- --cnt;
- n = sibling;
+ return {
+ start: function(name, attrs, empty) {
+ var i, l, attr, value;
+
+ if (indent && indentBefore[name] && html.length > 0) {
+ value = html[html.length - 1];
+
+ if (value.length > 0 && value !== '\n')
+ html.push('\n');
}
- // Collapse to just before the endAncestor, which
- // is partially selected.
- if (how != CLONE) {
- t.setEndBefore(endAncestor);
- t.collapse(FALSE);
+ html.push('<', name);
+
+ if (attrs) {
+ for (i = 0, l = attrs.length; i < l; i++) {
+ attr = attrs[i];
+ html.push(' ', attr.name, '="', encode(attr.value, true), '"');
+ }
}
- return frag;
- };
+ if (!empty || htmlOutput)
+ html[html.length] = '>';
+ else
+ html[html.length] = ' />';
- function _traverseCommonEndContainer(startAncestor, how) {
- var frag, startIdx, n, cnt, sibling, xferNode;
+ if (empty && indent && indentAfter[name] && html.length > 0) {
+ value = html[html.length - 1];
- if (how != DELETE)
- frag = doc.createDocumentFragment();
+ if (value.length > 0 && value !== '\n')
+ html.push('\n');
+ }
+ },
- n = _traverseLeftBoundary(startAncestor, how);
- if (frag)
- frag.appendChild(n);
+ end: function(name) {
+ var value;
- startIdx = nodeIndex(startAncestor);
- ++startIdx; // Because we already traversed it....
+ /*if (indent && indentBefore[name] && html.length > 0) {
+ value = html[html.length - 1];
- cnt = t[END_OFFSET] - startIdx;
- n = startAncestor.nextSibling;
- while (cnt > 0) {
- sibling = n.nextSibling;
- xferNode = _traverseFullySelected(n, how);
+ if (value.length > 0 && value !== '\n')
+ html.push('\n');
+ }*/
- if (frag)
- frag.appendChild(xferNode);
+ html.push('</', name, '>');
- --cnt;
- n = sibling;
- }
+ if (indent && indentAfter[name] && html.length > 0) {
+ value = html[html.length - 1];
- if (how != CLONE) {
- t.setStartAfter(startAncestor);
- t.collapse(TRUE);
+ if (value.length > 0 && value !== '\n')
+ html.push('\n');
}
+ },
- return frag;
- };
+ text: function(text, raw) {
+ if (text.length > 0)
+ html[html.length] = raw ? text : encode(text);
+ },
- function _traverseCommonAncestors(startAncestor, endAncestor, how) {
- var n, frag, commonParent, startOffset, endOffset, cnt, sibling, nextSibling;
+ cdata: function(text) {
+ html.push('<![CDATA[', text, ']]>');
+ },
- if (how != DELETE)
- frag = doc.createDocumentFragment();
+ comment: function(text) {
+ html.push('<!--', text, '-->');
+ },
- n = _traverseLeftBoundary(startAncestor, how);
- if (frag)
- frag.appendChild(n);
+ pi: function(name, text) {
+ if (text)
+ html.push('<?', name, ' ', text, '?>');
+ else
+ html.push('<?', name, '?>');
- commonParent = startAncestor.parentNode;
- startOffset = nodeIndex(startAncestor);
- endOffset = nodeIndex(endAncestor);
- ++startOffset;
+ if (indent)
+ html.push('\n');
+ },
- cnt = endOffset - startOffset;
- sibling = startAncestor.nextSibling;
+ doctype: function(text) {
+ html.push('<!DOCTYPE', text, '>', indent ? '\n' : '');
+ },
- while (cnt > 0) {
- nextSibling = sibling.nextSibling;
- n = _traverseFullySelected(sibling, how);
+ reset: function() {
+ html.length = 0;
+ },
- if (frag)
- frag.appendChild(n);
+ getContent: function() {
+ return html.join('').replace(/\n$/, '');
+ }
+ };
+};
- sibling = nextSibling;
- --cnt;
- }
+(function(tinymce) {
+ tinymce.html.Serializer = function(settings, schema) {
+ var self = this, writer = new tinymce.html.Writer(settings);
- n = _traverseRightBoundary(endAncestor, how);
+ settings = settings || {};
+ settings.validate = "validate" in settings ? settings.validate : true;
- if (frag)
- frag.appendChild(n);
+ self.schema = schema = schema || new tinymce.html.Schema();
+ self.writer = writer;
- if (how != CLONE) {
- t.setStartAfter(startAncestor);
- t.collapse(TRUE);
- }
+ self.serialize = function(node) {
+ var handlers, validate;
- return frag;
- };
+ validate = settings.validate;
- function _traverseRightBoundary(root, how) {
- var next = _getSelectedNode(t[END_CONTAINER], t[END_OFFSET] - 1), parent, clonedParent, prevSibling, clonedChild, clonedGrandParent, isFullySelected = next != t[END_CONTAINER];
+ handlers = {
+ // #text
+ 3: function(node, raw) {
+ writer.text(node.value, node.raw);
+ },
- if (next == root)
- return _traverseNode(next, isFullySelected, FALSE, how);
+ // #comment
+ 8: function(node) {
+ writer.comment(node.value);
+ },
- parent = next.parentNode;
- clonedParent = _traverseNode(parent, FALSE, FALSE, how);
+ // Processing instruction
+ 7: function(node) {
+ writer.pi(node.name, node.value);
+ },
- while (parent) {
- while (next) {
- prevSibling = next.previousSibling;
- clonedChild = _traverseNode(next, isFullySelected, FALSE, how);
+ // Doctype
+ 10: function(node) {
+ writer.doctype(node.value);
+ },
- if (how != DELETE)
- clonedParent.insertBefore(clonedChild, clonedParent.firstChild);
+ // CDATA
+ 4: function(node) {
+ writer.cdata(node.value);
+ },
- isFullySelected = TRUE;
- next = prevSibling;
+ // Document fragment
+ 11: function(node) {
+ if ((node = node.firstChild)) {
+ do {
+ walk(node);
+ } while (node = node.next);
+ }
}
+ };
- if (parent == root)
- return clonedParent;
-
- next = parent.previousSibling;
- parent = parent.parentNode;
-
- clonedGrandParent = _traverseNode(parent, FALSE, FALSE, how);
+ writer.reset();
- if (how != DELETE)
- clonedGrandParent.appendChild(clonedParent);
+ function walk(node) {
+ var handler = handlers[node.type], name, isEmpty, attrs, attrName, attrValue, sortedAttrs, i, l, elementRule;
- clonedParent = clonedGrandParent;
- }
- };
+ if (!handler) {
+ name = node.name;
+ isEmpty = node.shortEnded;
+ attrs = node.attributes;
- function _traverseLeftBoundary(root, how) {
- var next = _getSelectedNode(t[START_CONTAINER], t[START_OFFSET]), isFullySelected = next != t[START_CONTAINER], parent, clonedParent, nextSibling, clonedChild, clonedGrandParent;
+ // Sort attributes
+ if (validate && attrs && attrs.length > 1) {
+ sortedAttrs = [];
+ sortedAttrs.map = {};
- if (next == root)
- return _traverseNode(next, isFullySelected, TRUE, how);
+ elementRule = schema.getElementRule(node.name);
+ for (i = 0, l = elementRule.attributesOrder.length; i < l; i++) {
+ attrName = elementRule.attributesOrder[i];
- parent = next.parentNode;
- clonedParent = _traverseNode(parent, FALSE, TRUE, how);
+ if (attrName in attrs.map) {
+ attrValue = attrs.map[attrName];
+ sortedAttrs.map[attrName] = attrValue;
+ sortedAttrs.push({name: attrName, value: attrValue});
+ }
+ }
- while (parent) {
- while (next) {
- nextSibling = next.nextSibling;
- clonedChild = _traverseNode(next, isFullySelected, TRUE, how);
+ for (i = 0, l = attrs.length; i < l; i++) {
+ attrName = attrs[i].name;
- if (how != DELETE)
- clonedParent.appendChild(clonedChild);
+ if (!(attrName in sortedAttrs.map)) {
+ attrValue = attrs.map[attrName];
+ sortedAttrs.map[attrName] = attrValue;
+ sortedAttrs.push({name: attrName, value: attrValue});
+ }
+ }
- isFullySelected = TRUE;
- next = nextSibling;
- }
+ attrs = sortedAttrs;
+ }
- if (parent == root)
- return clonedParent;
+ writer.start(node.name, attrs, isEmpty);
- next = parent.nextSibling;
- parent = parent.parentNode;
+ if (!isEmpty) {
+ if ((node = node.firstChild)) {
+ do {
+ walk(node);
+ } while (node = node.next);
+ }
- clonedGrandParent = _traverseNode(parent, FALSE, TRUE, how);
+ writer.end(name);
+ }
+ } else
+ handler(node);
+ }
- if (how != DELETE)
- clonedGrandParent.appendChild(clonedParent);
+ // Serialize element and treat all non elements as fragments
+ if (node.type == 1 && !settings.inner)
+ walk(node);
+ else
+ handlers[11](node);
- clonedParent = clonedGrandParent;
- }
+ return writer.getContent();
};
+ }
+})(tinymce);
- function _traverseNode(n, isFullySelected, isLeft, how) {
- var txtValue, newNodeValue, oldNodeValue, offset, newNode;
+// JSLint defined globals
+/*global tinymce:false, window:false */
- if (isFullySelected)
- return _traverseFullySelected(n, how);
+tinymce.dom = {};
- if (n.nodeType == 3 /* TEXT_NODE */) {
- txtValue = n.nodeValue;
+(function(namespace, expando) {
+ var w3cEventModel = !!document.addEventListener;
- if (isLeft) {
- offset = t[START_OFFSET];
- newNodeValue = txtValue.substring(offset);
- oldNodeValue = txtValue.substring(0, offset);
- } else {
- offset = t[END_OFFSET];
- newNodeValue = txtValue.substring(0, offset);
- oldNodeValue = txtValue.substring(offset);
- }
+ function addEvent(target, name, callback, capture) {
+ if (target.addEventListener) {
+ target.addEventListener(name, callback, capture || false);
+ } else if (target.attachEvent) {
+ target.attachEvent('on' + name, callback);
+ }
+ }
- if (how != CLONE)
- n.nodeValue = oldNodeValue;
+ function removeEvent(target, name, callback, capture) {
+ if (target.removeEventListener) {
+ target.removeEventListener(name, callback, capture || false);
+ } else if (target.detachEvent) {
+ target.detachEvent('on' + name, callback);
+ }
+ }
- if (how == DELETE)
- return;
+ function fix(original_event, data) {
+ var name, event = data || {};
- newNode = n.cloneNode(FALSE);
- newNode.nodeValue = newNodeValue;
+ // Dummy function that gets replaced on the delegation state functions
+ function returnFalse() {
+ return false;
+ }
- return newNode;
+ // Dummy function that gets replaced on the delegation state functions
+ function returnTrue() {
+ return true;
+ }
+
+ // Copy all properties from the original event
+ for (name in original_event) {
+ // layerX/layerY is deprecated in Chrome and produces a warning
+ if (name !== "layerX" && name !== "layerY") {
+ event[name] = original_event[name];
}
+ }
- if (how == DELETE)
- return;
+ // Normalize target IE uses srcElement
+ if (!event.target) {
+ event.target = event.srcElement || document;
+ }
- return n.cloneNode(FALSE);
+ // Add preventDefault method
+ event.preventDefault = function() {
+ event.isDefaultPrevented = returnTrue;
+
+ // Execute preventDefault on the original event object
+ if (original_event) {
+ if (original_event.preventDefault) {
+ original_event.preventDefault();
+ } else {
+ original_event.returnValue = false; // IE
+ }
+ }
};
- function _traverseFullySelected(n, how) {
- if (how != DELETE)
- return how == CLONE ? n.cloneNode(TRUE) : n;
+ // Add stopPropagation
+ event.stopPropagation = function() {
+ event.isPropagationStopped = returnTrue;
- n.parentNode.removeChild(n);
+ // Execute stopPropagation on the original event object
+ if (original_event) {
+ if (original_event.stopPropagation) {
+ original_event.stopPropagation();
+ } else {
+ original_event.cancelBubble = true; // IE
+ }
+ }
};
- };
- ns.Range = Range;
-})(tinymce.dom);
+ // Add stopImmediatePropagation
+ event.stopImmediatePropagation = function() {
+ event.isImmediatePropagationStopped = returnTrue;
+ event.stopPropagation();
+ };
-(function() {
- function Selection(selection) {
- var t = this, invisibleChar = '\uFEFF', range, lastIERng, dom = selection.dom, TRUE = true, FALSE = false;
+ // Add event delegation states
+ if (!event.isDefaultPrevented) {
+ event.isDefaultPrevented = returnFalse;
+ event.isPropagationStopped = returnFalse;
+ event.isImmediatePropagationStopped = returnFalse;
+ }
- // Returns a W3C DOM compatible range object by using the IE Range API
- function getRange() {
- var ieRange = selection.getRng(), domRange = dom.createRng(), element, collapsed;
+ return event;
+ }
- // If selection is outside the current document just return an empty range
- element = ieRange.item ? ieRange.item(0) : ieRange.parentElement();
- if (element.ownerDocument != dom.doc)
- return domRange;
+ function bindOnReady(win, callback, event_utils) {
+ var doc = win.document, event = {type: 'ready'};
- // Handle control selection or text selection of a image
- if (ieRange.item || !element.hasChildNodes()) {
- domRange.setStart(element.parentNode, dom.nodeIndex(element));
- domRange.setEnd(domRange.startContainer, domRange.startOffset + 1);
+ // Gets called when the DOM is ready
+ function readyHandler() {
+ if (!event_utils.domLoaded) {
+ event_utils.domLoaded = true;
+ callback(event);
+ }
+ }
- return domRange;
+ // Page already loaded then fire it directly
+ if (doc.readyState == "complete") {
+ readyHandler();
+ return;
+ }
+
+ // Use W3C method
+ if (w3cEventModel) {
+ addEvent(win, 'DOMContentLoaded', readyHandler);
+ } else {
+ // Use IE method
+ addEvent(doc, "readystatechange", function() {
+ if (doc.readyState === "complete") {
+ removeEvent(doc, "readystatechange", arguments.callee);
+ readyHandler();
+ }
+ });
+
+ // Wait until we can scroll, when we can the DOM is initialized
+ if (doc.documentElement.doScroll && win === win.top) {
+ (function() {
+ try {
+ // If IE is used, use the trick by Diego Perini licensed under MIT by request to the author.
+ // http://javascript.nwbox.com/IEContentLoaded/
+ doc.documentElement.doScroll("left");
+ } catch (ex) {
+ setTimeout(arguments.callee, 0);
+ return;
+ }
+
+ readyHandler();
+ })();
}
+ }
- collapsed = selection.isCollapsed();
+ // Fallback if any of the above methods should fail for some odd reason
+ addEvent(win, 'load', readyHandler);
+ }
- function findEndPoint(start) {
- var marker, container, offset, nodes, startIndex = 0, endIndex, index, parent, checkRng, position;
+ function EventUtils(proxy) {
+ var self = this, events = {}, count, isFocusBlurBound, hasFocusIn, hasMouseEnterLeave, mouseEnterLeave;
- // Setup temp range and collapse it
- checkRng = ieRange.duplicate();
- checkRng.collapse(start);
+ hasMouseEnterLeave = "onmouseenter" in document.documentElement;
+ hasFocusIn = "onfocusin" in document.documentElement;
+ mouseEnterLeave = {mouseenter: 'mouseover', mouseleave: 'mouseout'};
+ count = 1;
- // Create marker and insert it at the end of the endpoints parent
- marker = dom.create('a');
- parent = checkRng.parentElement();
+ // State if the DOMContentLoaded was executed or not
+ self.domLoaded = false;
+ self.events = events;
- // If parent doesn't have any children then set the container to that parent and the index to 0
- if (!parent.hasChildNodes()) {
- domRange[start ? 'setStart' : 'setEnd'](parent, 0);
- return;
+ function executeHandlers(evt, id) {
+ var callbackList, i, l, callback;
+
+ callbackList = events[id][evt.type];
+ if (callbackList) {
+ for (i = 0, l = callbackList.length; i < l; i++) {
+ callback = callbackList[i];
+
+ // Check if callback exists might be removed if a unbind is called inside the callback
+ if (callback && callback.func.call(callback.scope, evt) === false) {
+ evt.preventDefault();
+ }
+
+ // Should we stop propagation to immediate listeners
+ if (evt.isImmediatePropagationStopped()) {
+ return;
+ }
}
+ }
+ }
- parent.appendChild(marker);
- checkRng.moveToElementText(marker);
- position = ieRange.compareEndPoints(start ? 'StartToStart' : 'EndToEnd', checkRng);
- if (position > 0) {
- // The position is after the end of the parent element.
- // This is the case where IE puts the caret to the left edge of a table.
- domRange[start ? 'setStartAfter' : 'setEndAfter'](parent);
- dom.remove(marker);
- return;
+ self.bind = function(target, names, callback, scope) {
+ var id, callbackList, i, name, fakeName, nativeHandler, capture, win = window;
+
+ // Native event handler function patches the event and executes the callbacks for the expando
+ function defaultNativeHandler(evt) {
+ executeHandlers(fix(evt || win.event), id);
+ }
+
+ // Don't bind to text nodes or comments
+ if (!target || target.nodeType === 3 || target.nodeType === 8) {
+ return;
+ }
+
+ // Create or get events id for the target
+ if (!target[expando]) {
+ id = count++;
+ target[expando] = id;
+ events[id] = {};
+ } else {
+ id = target[expando];
+
+ if (!events[id]) {
+ events[id] = {};
+ }
+ }
+
+ // Setup the specified scope or use the target as a default
+ scope = scope || target;
+
+ // Split names and bind each event, enables you to bind multiple events with one call
+ names = names.split(' ');
+ i = names.length;
+ while (i--) {
+ name = names[i];
+ nativeHandler = defaultNativeHandler;
+ fakeName = capture = false;
+
+ // Use ready instead of DOMContentLoaded
+ if (name === "DOMContentLoaded") {
+ name = "ready";
+ }
+
+ // DOM is already ready
+ if ((self.domLoaded || target.readyState == 'complete') && name === "ready") {
+ self.domLoaded = true;
+ callback.call(scope, fix({type: name}));
+ continue;
+ }
+
+ // Handle mouseenter/mouseleaver
+ if (!hasMouseEnterLeave) {
+ fakeName = mouseEnterLeave[name];
+
+ if (fakeName) {
+ nativeHandler = function(evt) {
+ var current, related;
+
+ current = evt.currentTarget;
+ related = evt.relatedTarget;
+
+ // Check if related is inside the current target if it's not then the event should be ignored since it's a mouseover/mouseout inside the element
+ if (related && current.contains) {
+ // Use contains for performance
+ related = current.contains(related);
+ } else {
+ while (related && related !== current) {
+ related = related.parentNode;
+ }
+ }
+
+ // Fire fake event
+ if (!related) {
+ evt = fix(evt || win.event);
+ evt.type = evt.type === 'mouseout' ? 'mouseleave' : 'mouseenter';
+ evt.target = current;
+ executeHandlers(evt, id);
+ }
+ };
+ }
+ }
+
+ // Fake bubbeling of focusin/focusout
+ if (!hasFocusIn && (name === "focusin" || name === "focusout")) {
+ capture = true;
+ fakeName = name === "focusin" ? "focus" : "blur";
+ nativeHandler = function(evt) {
+ evt = fix(evt || win.event);
+ evt.type = evt.type === 'focus' ? 'focusin' : 'focusout';
+ executeHandlers(evt, id);
+ };
}
- // Setup node list and endIndex
- nodes = tinymce.grep(parent.childNodes);
- endIndex = nodes.length - 1;
- // Perform a binary search for the position
- while (startIndex <= endIndex) {
- index = Math.floor((startIndex + endIndex) / 2);
-
- // Insert marker and check it's position relative to the selection
- parent.insertBefore(marker, nodes[index]);
- checkRng.moveToElementText(marker);
- position = ieRange.compareEndPoints(start ? 'StartToStart' : 'EndToEnd', checkRng);
- if (position > 0) {
- // Marker is to the right
- startIndex = index + 1;
- } else if (position < 0) {
- // Marker is to the left
- endIndex = index - 1;
+ // Setup callback list and bind native event
+ callbackList = events[id][name];
+ if (!callbackList) {
+ events[id][name] = callbackList = [{func: callback, scope: scope}];
+ callbackList.fakeName = fakeName;
+ callbackList.capture = capture;
+
+ // Add the nativeHandler to the callback list so that we can later unbind it
+ callbackList.nativeHandler = nativeHandler;
+ if (!w3cEventModel) {
+ callbackList.proxyHandler = proxy(id);
+ }
+
+ // Check if the target has native events support
+ if (name === "ready") {
+ bindOnReady(target, nativeHandler, self);
} else {
- // Maker is where we are
- found = true;
- break;
+ addEvent(target, fakeName || name, w3cEventModel ? nativeHandler : callbackList.proxyHandler, capture);
}
+ } else {
+ // If it already has an native handler then just push the callback
+ callbackList.push({func: callback, scope: scope});
}
+ }
- // Setup container
- container = position > 0 || index == 0 ? marker.nextSibling : marker.previousSibling;
+ target = callbackList = 0; // Clean memory for IE
- // Handle element selection
- if (container.nodeType == 1) {
- dom.remove(marker);
+ return callback;
+ };
- // Find offset and container
- offset = dom.nodeIndex(container);
- container = container.parentNode;
+ self.unbind = function(target, names, callback) {
+ var id, callbackList, i, ci, name, eventMap;
+
+ // Don't bind to text nodes or comments
+ if (!target || target.nodeType === 3 || target.nodeType === 8) {
+ return self;
+ }
+
+ // Unbind event or events if the target has the expando
+ id = target[expando];
+ if (id) {
+ eventMap = events[id];
+
+ // Specific callback
+ if (names) {
+ names = names.split(' ');
+ i = names.length;
+ while (i--) {
+ name = names[i];
+ callbackList = eventMap[name];
+
+ // Unbind the event if it exists in the map
+ if (callbackList) {
+ // Remove specified callback
+ if (callback) {
+ ci = callbackList.length;
+ while (ci--) {
+ if (callbackList[ci].func === callback) {
+ callbackList.splice(ci, 1);
+ }
+ }
+ }
- // Move the offset if we are setting the end or the position is after an element
- if (!start || index > 0)
- offset++;
+ // Remove all callbacks if there isn't a specified callback or there is no callbacks left
+ if (!callback || callbackList.length === 0) {
+ delete eventMap[name];
+ removeEvent(target, callbackList.fakeName || name, w3cEventModel ? callbackList.nativeHandler : callbackList.proxyHandler, callbackList.capture);
+ }
+ }
+ }
} else {
- // Calculate offset within text node
- if (position > 0 || index == 0) {
- checkRng.setEndPoint(start ? 'StartToStart' : 'EndToEnd', ieRange);
- offset = checkRng.text.length;
- } else {
- checkRng.setEndPoint(start ? 'StartToStart' : 'EndToEnd', ieRange);
- offset = container.nodeValue.length - checkRng.text.length;
+ // All events for a specific element
+ for (name in eventMap) {
+ callbackList = eventMap[name];
+ removeEvent(target, callbackList.fakeName || name, w3cEventModel ? callbackList.nativeHandler : callbackList.proxyHandler, callbackList.capture);
}
- dom.remove(marker);
+ eventMap = {};
}
- domRange[start ? 'setStart' : 'setEnd'](container, offset);
- };
+ // Check if object is empty, if it isn't then we won't remove the expando map
+ for (name in eventMap) {
+ return self;
+ }
- // Find start point
- findEndPoint(true);
+ // Delete event object
+ delete events[id];
- // Find end point if needed
- if (!collapsed)
- findEndPoint();
+ // Remove expando from target
+ try {
+ // IE will fail here since it can't delete properties from window
+ delete target[expando];
+ } catch (ex) {
+ // IE will set it to null
+ target[expando] = null;
+ }
+ }
- return domRange;
+ return self;
};
- this.addRange = function(rng) {
- var ieRng, ctrlRng, startContainer, startOffset, endContainer, endOffset, doc = selection.dom.doc, body = doc.body;
+ self.fire = function(target, name, args) {
+ var id, event;
- function setEndPoint(start) {
- var container, offset, marker, tmpRng, nodes;
+ // Don't bind to text nodes or comments
+ if (!target || target.nodeType === 3 || target.nodeType === 8) {
+ return self;
+ }
- marker = dom.create('a');
- container = start ? startContainer : endContainer;
- offset = start ? startOffset : endOffset;
- tmpRng = ieRng.duplicate();
+ // Build event object by patching the args
+ event = fix(null, args);
+ event.type = name;
- if (container == doc) {
- container = body;
- offset = 0;
+ do {
+ // Found an expando that means there is listeners to execute
+ id = target[expando];
+ if (id) {
+ executeHandlers(event, id);
}
- if (container.nodeType == 3) {
- container.parentNode.insertBefore(marker, container);
- tmpRng.moveToElementText(marker);
- tmpRng.moveStart('character', offset);
- dom.remove(marker);
- ieRng.setEndPoint(start ? 'StartToStart' : 'EndToEnd', tmpRng);
- } else {
- nodes = container.childNodes;
+ // Walk up the DOM
+ target = target.parentNode || target.ownerDocument || target.defaultView || target.parentWindow;
+ } while (target && !event.isPropagationStopped());
- if (nodes.length) {
- if (offset >= nodes.length) {
- dom.insertAfter(marker, nodes[nodes.length - 1]);
- } else {
- container.insertBefore(marker, nodes[offset]);
- }
+ return self;
+ };
- tmpRng.moveToElementText(marker);
- } else {
- // Empty node selection for example <div>|</div>
- marker = doc.createTextNode(invisibleChar);
- container.appendChild(marker);
- tmpRng.moveToElementText(marker.parentNode);
- tmpRng.collapse(TRUE);
- }
+ self.clean = function(target) {
+ var i, children, unbind = self.unbind;
+
+ // Don't bind to text nodes or comments
+ if (!target || target.nodeType === 3 || target.nodeType === 8) {
+ return self;
+ }
- ieRng.setEndPoint(start ? 'StartToStart' : 'EndToEnd', tmpRng);
- dom.remove(marker);
- }
+ // Unbind any element on the specificed target
+ if (target[expando]) {
+ unbind(target);
}
- // Destroy cached range
- this.destroy();
+ // Target doesn't have getElementsByTagName it's probably a window object then use it's document to find the children
+ if (!target.getElementsByTagName) {
+ target = target.document;
+ }
- // Setup some shorter versions
- startContainer = rng.startContainer;
- startOffset = rng.startOffset;
- endContainer = rng.endContainer;
- endOffset = rng.endOffset;
- ieRng = body.createTextRange();
+ // Remove events from each child element
+ if (target && target.getElementsByTagName) {
+ unbind(target);
- // If single element selection then try making a control selection out of it
- if (startContainer == endContainer && startContainer.nodeType == 1 && startOffset == endOffset - 1) {
- if (startOffset == endOffset - 1) {
- try {
- ctrlRng = body.createControlRange();
- ctrlRng.addElement(startContainer.childNodes[startOffset]);
- ctrlRng.select();
- ctrlRng.scrollIntoView();
- return;
- } catch (ex) {
- // Ignore
+ children = target.getElementsByTagName('*');
+ i = children.length;
+ while (i--) {
+ target = children[i];
+
+ if (target[expando]) {
+ unbind(target);
}
}
}
- // Set start/end point of selection
- setEndPoint(true);
- setEndPoint();
+ return self;
+ };
- // Select the new range and scroll it into view
- ieRng.select();
- ieRng.scrollIntoView();
+ self.callNativeHandler = function(id, evt) {
+ if (events) {
+ events[id][evt.type].nativeHandler(evt);
+ }
+ };
+
+ self.destory = function() {
+ events = {};
};
- this.getRangeAt = function() {
- // Setup new range if the cache is empty
- if (!range || !tinymce.dom.RangeUtils.compareRanges(lastIERng, selection.getRng())) {
- range = getRange();
+ // Legacy function calls
- // Store away text range for next call
- lastIERng = selection.getRng();
+ self.add = function(target, events, func, scope) {
+ // Old API supported direct ID assignment
+ if (typeof(target) === "string") {
+ target = document.getElementById(target);
}
- // IE will say that the range is equal then produce an invalid argument exception
- // if you perform specific operations in a keyup event. For example Ctrl+Del.
- // This hack will invalidate the range cache if the exception occurs
- try {
- range.startContainer.nextSibling;
- } catch (ex) {
- range = getRange();
- lastIERng = null;
+ // Old API supported multiple targets
+ if (target && target instanceof Array) {
+ var i = target.length;
+
+ while (i--) {
+ self.add(target[i], events, func, scope);
+ }
+
+ return;
}
- // Return cached range
- return range;
- };
+ // Old API called ready init
+ if (events === "init") {
+ events = "ready";
+ }
- this.destroy = function() {
- // Destroy cached range and last IE range to avoid memory leaks
- lastIERng = range = null;
+ return self.bind(target, events instanceof Array ? events.join(' ') : events, func, scope);
};
- };
- // Expose the selection object
- tinymce.dom.TridentSelection = Selection;
-})();
+ self.remove = function(target, events, func, scope) {
+ if (!target) {
+ return self;
+ }
+ // Old API supported direct ID assignment
+ if (typeof(target) === "string") {
+ target = document.getElementById(target);
+ }
-/*
- * Sizzle CSS Selector Engine - v1.0
- * Copyright 2009, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- * More information: http://sizzlejs.com/
- */
-(function(){
+ // Old API supported multiple targets
+ if (target instanceof Array) {
+ var i = target.length;
-var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
- done = 0,
- toString = Object.prototype.toString,
- hasDuplicate = false,
- baseHasDuplicate = true;
+ while (i--) {
+ self.remove(target[i], events, func, scope);
+ }
-// Here we check if the JavaScript engine is using some sort of
-// optimization where it does not always call our comparision
-// function. If that is the case, discard the hasDuplicate value.
-// Thus far that includes Google Chrome.
-[0, 0].sort(function(){
- baseHasDuplicate = false;
- return 0;
-});
+ return self;
+ }
-var Sizzle = function(selector, context, results, seed) {
- results = results || [];
- context = context || document;
+ return self.unbind(target, events instanceof Array ? events.join(' ') : events, func);
+ };
- var origContext = context;
+ self.clear = function(target) {
+ // Old API supported direct ID assignment
+ if (typeof(target) === "string") {
+ target = document.getElementById(target);
+ }
- if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
- return [];
- }
-
- if ( !selector || typeof selector !== "string" ) {
- return results;
- }
+ return self.clean(target);
+ };
- var parts = [], m, set, checkSet, extra, prune = true, contextXML = Sizzle.isXML(context),
- soFar = selector, ret, cur, pop, i;
-
- // Reset the position of the chunker regexp (start from head)
- do {
- chunker.exec("");
- m = chunker.exec(soFar);
+ self.cancel = function(e) {
+ if (e) {
+ self.prevent(e);
+ self.stop(e);
+ }
- if ( m ) {
- soFar = m[3];
-
- parts.push( m[1] );
-
- if ( m[2] ) {
- extra = m[3];
- break;
+ return false;
+ };
+
+ self.prevent = function(e) {
+ if (!e.preventDefault) {
+ e = fix(e);
}
- }
- } while ( m );
- if ( parts.length > 1 && origPOS.exec( selector ) ) {
- if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
- set = posProcess( parts[0] + parts[1], context );
- } else {
- set = Expr.relative[ parts[0] ] ?
- [ context ] :
- Sizzle( parts.shift(), context );
+ e.preventDefault();
- while ( parts.length ) {
- selector = parts.shift();
+ return false;
+ };
- if ( Expr.relative[ selector ] ) {
- selector += parts.shift();
- }
-
- set = posProcess( selector, set );
- }
- }
- } else {
- // Take a shortcut and set the context if the root selector is an ID
- // (but not if it'll be faster if the inner selector is an ID)
- if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
- Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
- ret = Sizzle.find( parts.shift(), context, contextXML );
- context = ret.expr ? Sizzle.filter( ret.expr, ret.set )[0] : ret.set[0];
- }
-
- if ( context ) {
- ret = seed ?
- { expr: parts.pop(), set: makeArray(seed) } :
- Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML );
- set = ret.expr ? Sizzle.filter( ret.expr, ret.set ) : ret.set;
-
- if ( parts.length > 0 ) {
- checkSet = makeArray(set);
- } else {
- prune = false;
+ self.stop = function(e) {
+ if (!e.stopPropagation) {
+ e = fix(e);
}
- while ( parts.length ) {
- cur = parts.pop();
- pop = cur;
+ e.stopPropagation();
- if ( !Expr.relative[ cur ] ) {
- cur = "";
- } else {
- pop = parts.pop();
- }
+ return false;
+ };
+ }
- if ( pop == null ) {
- pop = context;
- }
+ namespace.EventUtils = EventUtils;
- Expr.relative[ cur ]( checkSet, pop, contextXML );
- }
- } else {
- checkSet = parts = [];
- }
- }
+ namespace.Event = new EventUtils(function(id) {
+ return function(evt) {
+ tinymce.dom.Event.callNativeHandler(id, evt);
+ };
+ });
- if ( !checkSet ) {
- checkSet = set;
- }
+ // Bind ready event when tinymce script is loaded
+ namespace.Event.bind(window, 'ready', function() {});
- if ( !checkSet ) {
- Sizzle.error( cur || selector );
- }
+ namespace = 0;
+})(tinymce.dom, 'data-mce-expando'); // Namespace and expando
- if ( toString.call(checkSet) === "[object Array]" ) {
- if ( !prune ) {
- results.push.apply( results, checkSet );
- } else if ( context && context.nodeType === 1 ) {
- for ( i = 0; checkSet[i] != null; i++ ) {
- if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) {
- results.push( set[i] );
- }
- }
- } else {
- for ( i = 0; checkSet[i] != null; i++ ) {
- if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
- results.push( set[i] );
- }
- }
- }
- } else {
- makeArray( checkSet, results );
- }
+tinymce.dom.TreeWalker = function(start_node, root_node) {
+ var node = start_node;
- if ( extra ) {
- Sizzle( extra, origContext, results, seed );
- Sizzle.uniqueSort( results );
- }
+ function findSibling(node, start_name, sibling_name, shallow) {
+ var sibling, parent;
- return results;
-};
+ if (node) {
+ // Walk into nodes if it has a start
+ if (!shallow && node[start_name])
+ return node[start_name];
-Sizzle.uniqueSort = function(results){
- if ( sortOrder ) {
- hasDuplicate = baseHasDuplicate;
- results.sort(sortOrder);
+ // Return the sibling if it has one
+ if (node != root_node) {
+ sibling = node[sibling_name];
+ if (sibling)
+ return sibling;
- if ( hasDuplicate ) {
- for ( var i = 1; i < results.length; i++ ) {
- if ( results[i] === results[i-1] ) {
- results.splice(i--, 1);
+ // Walk up the parents to look for siblings
+ for (parent = node.parentNode; parent && parent != root_node; parent = parent.parentNode) {
+ sibling = parent[sibling_name];
+ if (sibling)
+ return sibling;
}
}
}
- }
+ };
- return results;
-};
+ this.current = function() {
+ return node;
+ };
+
+ this.next = function(shallow) {
+ return (node = findSibling(node, 'firstChild', 'nextSibling', shallow));
+ };
-Sizzle.matches = function(expr, set){
- return Sizzle(expr, null, null, set);
+ this.prev = function(shallow) {
+ return (node = findSibling(node, 'lastChild', 'previousSibling', shallow));
+ };
};
-Sizzle.find = function(expr, context, isXML){
- var set;
+(function(tinymce) {
+ // Shorten names
+ var each = tinymce.each,
+ is = tinymce.is,
+ isWebKit = tinymce.isWebKit,
+ isIE = tinymce.isIE,
+ Entities = tinymce.html.Entities,
+ simpleSelectorRe = /^([a-z0-9],?)+$/i,
+ whiteSpaceRegExp = /^[ \t\r\n]*$/;
- if ( !expr ) {
- return [];
- }
+ tinymce.create('tinymce.dom.DOMUtils', {
+ doc : null,
+ root : null,
+ files : null,
+ pixelStyles : /^(top|left|bottom|right|width|height|borderWidth)$/,
+ props : {
+ "for" : "htmlFor",
+ "class" : "className",
+ className : "className",
+ checked : "checked",
+ disabled : "disabled",
+ maxlength : "maxLength",
+ readonly : "readOnly",
+ selected : "selected",
+ value : "value",
+ id : "id",
+ name : "name",
+ type : "type"
+ },
- for ( var i = 0, l = Expr.order.length; i < l; i++ ) {
- var type = Expr.order[i], match;
-
- if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
- var left = match[1];
- match.splice(1,1);
+ DOMUtils : function(d, s) {
+ var t = this, globalStyle, name, blockElementsMap;
- if ( left.substr( left.length - 1 ) !== "\\" ) {
- match[1] = (match[1] || "").replace(/\\/g, "");
- set = Expr.find[ type ]( match, context, isXML );
- if ( set != null ) {
- expr = expr.replace( Expr.match[ type ], "" );
- break;
- }
- }
- }
- }
+ t.doc = d;
+ t.win = window;
+ t.files = {};
+ t.cssFlicker = false;
+ t.counter = 0;
+ t.stdMode = !tinymce.isIE || d.documentMode >= 8;
+ t.boxModel = !tinymce.isIE || d.compatMode == "CSS1Compat" || t.stdMode;
+ t.hasOuterHTML = "outerHTML" in d.createElement("a");
- if ( !set ) {
- set = context.getElementsByTagName("*");
- }
+ t.settings = s = tinymce.extend({
+ keep_values : false,
+ hex_colors : 1
+ }, s);
+
+ t.schema = s.schema;
+ t.styles = new tinymce.html.Styles({
+ url_converter : s.url_converter,
+ url_converter_scope : s.url_converter_scope
+ }, s.schema);
- return {set: set, expr: expr};
-};
+ // Fix IE6SP2 flicker and check it failed for pre SP2
+ if (tinymce.isIE6) {
+ try {
+ d.execCommand('BackgroundImageCache', false, true);
+ } catch (e) {
+ t.cssFlicker = true;
+ }
+ }
-Sizzle.filter = function(expr, set, inplace, not){
- var old = expr, result = [], curLoop = set, match, anyFound,
- isXMLFilter = set && set[0] && Sizzle.isXML(set[0]);
+ t.fixDoc(d);
+ t.events = s.ownEvents ? new tinymce.dom.EventUtils(s.proxy) : tinymce.dom.Event;
+ tinymce.addUnload(t.destroy, t);
+ blockElementsMap = s.schema ? s.schema.getBlockElements() : {};
- while ( expr && set.length ) {
- for ( var type in Expr.filter ) {
- if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {
- var filter = Expr.filter[ type ], found, item, left = match[1];
- anyFound = false;
+ t.isBlock = function(node) {
+ // This function is called in module pattern style since it might be executed with the wrong this scope
+ var type = node.nodeType;
- match.splice(1,1);
+ // If it's a node then check the type and use the nodeName
+ if (type)
+ return !!(type === 1 && blockElementsMap[node.nodeName]);
- if ( left.substr( left.length - 1 ) === "\\" ) {
- continue;
- }
+ return !!blockElementsMap[node];
+ };
+ },
- if ( curLoop === result ) {
- result = [];
- }
+ fixDoc: function(doc) {
+ var settings = this.settings, name;
- if ( Expr.preFilter[ type ] ) {
- match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
+ if (isIE && settings.schema) {
+ // Add missing HTML 4/5 elements to IE
+ ('abbr article aside audio canvas ' +
+ 'details figcaption figure footer ' +
+ 'header hgroup mark menu meter nav ' +
+ 'output progress section summary ' +
+ 'time video').replace(/\w+/g, function(name) {
+ doc.createElement(name);
+ });
- if ( !match ) {
- anyFound = found = true;
- } else if ( match === true ) {
- continue;
- }
+ // Create all custom elements
+ for (name in settings.schema.getCustomElements()) {
+ doc.createElement(name);
}
+ }
+ },
- if ( match ) {
- for ( var i = 0; (item = curLoop[i]) != null; i++ ) {
- if ( item ) {
- found = filter( item, match, i, curLoop );
- var pass = not ^ !!found;
+ clone: function(node, deep) {
+ var self = this, clone, doc;
- if ( inplace && found != null ) {
- if ( pass ) {
- anyFound = true;
- } else {
- curLoop[i] = false;
- }
- } else if ( pass ) {
- result.push( item );
- anyFound = true;
- }
- }
- }
- }
+ // TODO: Add feature detection here in the future
+ if (!isIE || node.nodeType !== 1 || deep) {
+ return node.cloneNode(deep);
+ }
- if ( found !== undefined ) {
- if ( !inplace ) {
- curLoop = result;
- }
+ doc = self.doc;
- expr = expr.replace( Expr.match[ type ], "" );
+ // Make a HTML5 safe shallow copy
+ if (!deep) {
+ clone = doc.createElement(node.nodeName);
- if ( !anyFound ) {
- return [];
- }
+ // Copy attribs
+ each(self.getAttribs(node), function(attr) {
+ self.setAttrib(clone, attr.nodeName, self.getAttrib(node, attr.nodeName));
+ });
- break;
- }
+ return clone;
}
- }
-
- // Improper expression
- if ( expr === old ) {
- if ( anyFound == null ) {
- Sizzle.error( expr );
- } else {
- break;
+/*
+ // Setup HTML5 patched document fragment
+ if (!self.frag) {
+ self.frag = doc.createDocumentFragment();
+ self.fixDoc(self.frag);
}
- }
- old = expr;
- }
+ // Make a deep copy by adding it to the document fragment then removing it this removed the :section
+ clone = doc.createElement('div');
+ self.frag.appendChild(clone);
+ clone.innerHTML = node.outerHTML;
+ self.frag.removeChild(clone);
+*/
+ return clone.firstChild;
+ },
- return curLoop;
-};
+ getRoot : function() {
+ var t = this, s = t.settings;
-Sizzle.error = function( msg ) {
- throw "Syntax error, unrecognized expression: " + msg;
-};
+ return (s && t.get(s.root_element)) || t.doc.body;
+ },
-var Expr = Sizzle.selectors = {
- order: [ "ID", "NAME", "TAG" ],
- match: {
- ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
- CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
- NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
- ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,
- TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,
- CHILD: /:(only|nth|last|first)-child(?:\((even|odd|[\dn+\-]*)\))?/,
- POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,
- PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/
- },
- leftMatch: {},
- attrMap: {
- "class": "className",
- "for": "htmlFor"
- },
- attrHandle: {
- href: function(elem){
- return elem.getAttribute("href");
- }
- },
- relative: {
- "+": function(checkSet, part){
- var isPartStr = typeof part === "string",
- isTag = isPartStr && !/\W/.test(part),
- isPartStrNotTag = isPartStr && !isTag;
+ getViewPort : function(w) {
+ var d, b;
- if ( isTag ) {
- part = part.toLowerCase();
- }
+ w = !w ? this.win : w;
+ d = w.document;
+ b = this.boxModel ? d.documentElement : d.body;
- for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
- if ( (elem = checkSet[i]) ) {
- while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
+ // Returns viewport size excluding scrollbars
+ return {
+ x : w.pageXOffset || b.scrollLeft,
+ y : w.pageYOffset || b.scrollTop,
+ w : w.innerWidth || b.clientWidth,
+ h : w.innerHeight || b.clientHeight
+ };
+ },
- checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?
- elem || false :
- elem === part;
- }
- }
+ getRect : function(e) {
+ var p, t = this, sr;
- if ( isPartStrNotTag ) {
- Sizzle.filter( part, checkSet, true );
- }
+ e = t.get(e);
+ p = t.getPos(e);
+ sr = t.getSize(e);
+
+ return {
+ x : p.x,
+ y : p.y,
+ w : sr.w,
+ h : sr.h
+ };
},
- ">": function(checkSet, part){
- var isPartStr = typeof part === "string",
- elem, i = 0, l = checkSet.length;
- if ( isPartStr && !/\W/.test(part) ) {
- part = part.toLowerCase();
+ getSize : function(e) {
+ var t = this, w, h;
- for ( ; i < l; i++ ) {
- elem = checkSet[i];
- if ( elem ) {
- var parent = elem.parentNode;
- checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;
- }
- }
- } else {
- for ( ; i < l; i++ ) {
- elem = checkSet[i];
- if ( elem ) {
- checkSet[i] = isPartStr ?
- elem.parentNode :
- elem.parentNode === part;
- }
- }
+ e = t.get(e);
+ w = t.getStyle(e, 'width');
+ h = t.getStyle(e, 'height');
- if ( isPartStr ) {
- Sizzle.filter( part, checkSet, true );
- }
- }
- },
- "": function(checkSet, part, isXML){
- var doneName = done++, checkFn = dirCheck, nodeCheck;
+ // Non pixel value, then force offset/clientWidth
+ if (w.indexOf('px') === -1)
+ w = 0;
- if ( typeof part === "string" && !/\W/.test(part) ) {
- part = part.toLowerCase();
- nodeCheck = part;
- checkFn = dirNodeCheck;
- }
+ // Non pixel value, then force offset/clientWidth
+ if (h.indexOf('px') === -1)
+ h = 0;
- checkFn("parentNode", part, doneName, checkSet, nodeCheck, isXML);
+ return {
+ w : parseInt(w, 10) || e.offsetWidth || e.clientWidth,
+ h : parseInt(h, 10) || e.offsetHeight || e.clientHeight
+ };
},
- "~": function(checkSet, part, isXML){
- var doneName = done++, checkFn = dirCheck, nodeCheck;
- if ( typeof part === "string" && !/\W/.test(part) ) {
- part = part.toLowerCase();
- nodeCheck = part;
- checkFn = dirNodeCheck;
- }
+ getParent : function(n, f, r) {
+ return this.getParents(n, f, r, false);
+ },
- checkFn("previousSibling", part, doneName, checkSet, nodeCheck, isXML);
- }
- },
- find: {
- ID: function(match, context, isXML){
- if ( typeof context.getElementById !== "undefined" && !isXML ) {
- var m = context.getElementById(match[1]);
- return m ? [m] : [];
+ getParents : function(n, f, r, c) {
+ var t = this, na, se = t.settings, o = [];
+
+ n = t.get(n);
+ c = c === undefined;
+
+ if (se.strict_root)
+ r = r || t.getRoot();
+
+ // Wrap node name as func
+ if (is(f, 'string')) {
+ na = f;
+
+ if (f === '*') {
+ f = function(n) {return n.nodeType == 1;};
+ } else {
+ f = function(n) {
+ return t.is(n, na);
+ };
+ }
}
- },
- NAME: function(match, context){
- if ( typeof context.getElementsByName !== "undefined" ) {
- var ret = [], results = context.getElementsByName(match[1]);
- for ( var i = 0, l = results.length; i < l; i++ ) {
- if ( results[i].getAttribute("name") === match[1] ) {
- ret.push( results[i] );
- }
+ while (n) {
+ if (n == r || !n.nodeType || n.nodeType === 9)
+ break;
+
+ if (!f || f(n)) {
+ if (c)
+ o.push(n);
+ else
+ return n;
}
- return ret.length === 0 ? null : ret;
+ n = n.parentNode;
}
+
+ return c ? o : null;
},
- TAG: function(match, context){
- return context.getElementsByTagName(match[1]);
- }
- },
- preFilter: {
- CLASS: function(match, curLoop, inplace, result, not, isXML){
- match = " " + match[1].replace(/\\/g, "") + " ";
- if ( isXML ) {
- return match;
- }
+ get : function(e) {
+ var n;
- for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
- if ( elem ) {
- if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n]/g, " ").indexOf(match) >= 0) ) {
- if ( !inplace ) {
- result.push( elem );
- }
- } else if ( inplace ) {
- curLoop[i] = false;
- }
- }
+ if (e && this.doc && typeof(e) == 'string') {
+ n = e;
+ e = this.doc.getElementById(e);
+
+ // IE and Opera returns meta elements when they match the specified input ID, but getElementsByName seems to do the trick
+ if (e && e.id !== n)
+ return this.doc.getElementsByName(n)[1];
}
- return false;
+ return e;
},
- ID: function(match){
- return match[1].replace(/\\/g, "");
+
+ getNext : function(node, selector) {
+ return this._findSib(node, selector, 'nextSibling');
},
- TAG: function(match, curLoop){
- return match[1].toLowerCase();
+
+ getPrev : function(node, selector) {
+ return this._findSib(node, selector, 'previousSibling');
},
- CHILD: function(match){
- if ( match[1] === "nth" ) {
- // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
- var test = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(
- match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||
- !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
- // calculate the numbers (first)n+(last) including if they are negative
- match[2] = (test[1] + (test[2] || 1)) - 0;
- match[3] = test[3] - 0;
- }
- // TODO: Move to normal caching system
- match[0] = done++;
+ select : function(pa, s) {
+ var t = this;
- return match;
+ return tinymce.dom.Sizzle(pa, t.get(s) || t.get(t.settings.root_element) || t.doc, []);
},
- ATTR: function(match, curLoop, inplace, result, not, isXML){
- var name = match[1].replace(/\\/g, "");
-
- if ( !isXML && Expr.attrMap[name] ) {
- match[1] = Expr.attrMap[name];
- }
- if ( match[2] === "~=" ) {
- match[4] = " " + match[4] + " ";
- }
+ is : function(n, selector) {
+ var i;
- return match;
- },
- PSEUDO: function(match, curLoop, inplace, result, not){
- if ( match[1] === "not" ) {
- // If we're dealing with a complex expression, or a simple one
- if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
- match[3] = Sizzle(match[3], null, null, curLoop);
- } else {
- var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
- if ( !inplace ) {
- result.push.apply( result, ret );
+ // If it isn't an array then try to do some simple selectors instead of Sizzle for to boost performance
+ if (n.length === undefined) {
+ // Simple all selector
+ if (selector === '*')
+ return n.nodeType == 1;
+
+ // Simple selector just elements
+ if (simpleSelectorRe.test(selector)) {
+ selector = selector.toLowerCase().split(/,/);
+ n = n.nodeName.toLowerCase();
+
+ for (i = selector.length - 1; i >= 0; i--) {
+ if (selector[i] == n)
+ return true;
}
+
return false;
}
- } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
- return true;
}
-
- return match;
- },
- POS: function(match){
- match.unshift( true );
- return match;
- }
- },
- filters: {
- enabled: function(elem){
- return elem.disabled === false && elem.type !== "hidden";
+
+ return tinymce.dom.Sizzle.matches(selector, n.nodeType ? [n] : n).length > 0;
},
- disabled: function(elem){
- return elem.disabled === true;
+
+
+ add : function(p, n, a, h, c) {
+ var t = this;
+
+ return this.run(p, function(p) {
+ var e, k;
+
+ e = is(n, 'string') ? t.doc.createElement(n) : n;
+ t.setAttribs(e, a);
+
+ if (h) {
+ if (h.nodeType)
+ e.appendChild(h);
+ else
+ t.setHTML(e, h);
+ }
+
+ return !c ? p.appendChild(e) : e;
+ });
},
- checked: function(elem){
- return elem.checked === true;
- },
- selected: function(elem){
- // Accessing this property makes selected-by-default
- // options in Safari work properly
- elem.parentNode.selectedIndex;
- return elem.selected === true;
- },
- parent: function(elem){
- return !!elem.firstChild;
- },
- empty: function(elem){
- return !elem.firstChild;
- },
- has: function(elem, i, match){
- return !!Sizzle( match[3], elem ).length;
- },
- header: function(elem){
- return (/h\d/i).test( elem.nodeName );
- },
- text: function(elem){
- return "text" === elem.type;
- },
- radio: function(elem){
- return "radio" === elem.type;
- },
- checkbox: function(elem){
- return "checkbox" === elem.type;
- },
- file: function(elem){
- return "file" === elem.type;
- },
- password: function(elem){
- return "password" === elem.type;
- },
- submit: function(elem){
- return "submit" === elem.type;
- },
- image: function(elem){
- return "image" === elem.type;
- },
- reset: function(elem){
- return "reset" === elem.type;
+
+ create : function(n, a, h) {
+ return this.add(this.doc.createElement(n), n, a, h, 1);
},
- button: function(elem){
- return "button" === elem.type || elem.nodeName.toLowerCase() === "button";
+
+ createHTML : function(n, a, h) {
+ var o = '', t = this, k;
+
+ o += '<' + n;
+
+ for (k in a) {
+ if (a.hasOwnProperty(k))
+ o += ' ' + k + '="' + t.encode(a[k]) + '"';
+ }
+
+ // A call to tinymce.is doesn't work for some odd reason on IE9 possible bug inside their JS runtime
+ if (typeof(h) != "undefined")
+ return o + '>' + h + '</' + n + '>';
+
+ return o + ' />';
},
- input: function(elem){
- return (/input|select|textarea|button/i).test(elem.nodeName);
- }
- },
- setFilters: {
- first: function(elem, i){
- return i === 0;
+
+ remove : function(node, keep_children) {
+ return this.run(node, function(node) {
+ var child, parent = node.parentNode;
+
+ if (!parent)
+ return null;
+
+ if (keep_children) {
+ while (child = node.firstChild) {
+ // IE 8 will crash if you don't remove completely empty text nodes
+ if (!tinymce.isIE || child.nodeType !== 3 || child.nodeValue)
+ parent.insertBefore(child, node);
+ else
+ node.removeChild(child);
+ }
+ }
+
+ return parent.removeChild(node);
+ });
},
- last: function(elem, i, match, array){
- return i === array.length - 1;
+
+ setStyle : function(n, na, v) {
+ var t = this;
+
+ return t.run(n, function(e) {
+ var s, i;
+
+ s = e.style;
+
+ // Camelcase it, if needed
+ na = na.replace(/-(\D)/g, function(a, b){
+ return b.toUpperCase();
+ });
+
+ // Default px suffix on these
+ if (t.pixelStyles.test(na) && (tinymce.is(v, 'number') || /^[\-0-9\.]+$/.test(v)))
+ v += 'px';
+
+ switch (na) {
+ case 'opacity':
+ // IE specific opacity
+ if (isIE) {
+ s.filter = v === '' ? '' : "alpha(opacity=" + (v * 100) + ")";
+
+ if (!n.currentStyle || !n.currentStyle.hasLayout)
+ s.display = 'inline-block';
+ }
+
+ // Fix for older browsers
+ s[na] = s['-moz-opacity'] = s['-khtml-opacity'] = v || '';
+ break;
+
+ case 'float':
+ isIE ? s.styleFloat = v : s.cssFloat = v;
+ break;
+
+ default:
+ s[na] = v || '';
+ }
+
+ // Force update of the style data
+ if (t.settings.update_styles)
+ t.setAttrib(e, 'data-mce-style');
+ });
},
- even: function(elem, i){
- return i % 2 === 0;
+
+ getStyle : function(n, na, c) {
+ n = this.get(n);
+
+ if (!n)
+ return;
+
+ // Gecko
+ if (this.doc.defaultView && c) {
+ // Remove camelcase
+ na = na.replace(/[A-Z]/g, function(a){
+ return '-' + a;
+ });
+
+ try {
+ return this.doc.defaultView.getComputedStyle(n, null).getPropertyValue(na);
+ } catch (ex) {
+ // Old safari might fail
+ return null;
+ }
+ }
+
+ // Camelcase it, if needed
+ na = na.replace(/-(\D)/g, function(a, b){
+ return b.toUpperCase();
+ });
+
+ if (na == 'float')
+ na = isIE ? 'styleFloat' : 'cssFloat';
+
+ // IE & Opera
+ if (n.currentStyle && c)
+ return n.currentStyle[na];
+
+ return n.style ? n.style[na] : undefined;
},
- odd: function(elem, i){
- return i % 2 === 1;
+
+ setStyles : function(e, o) {
+ var t = this, s = t.settings, ol;
+
+ ol = s.update_styles;
+ s.update_styles = 0;
+
+ each(o, function(v, n) {
+ t.setStyle(e, n, v);
+ });
+
+ // Update style info
+ s.update_styles = ol;
+ if (s.update_styles)
+ t.setAttrib(e, s.cssText);
},
- lt: function(elem, i, match){
- return i < match[3] - 0;
+
+ removeAllAttribs: function(e) {
+ return this.run(e, function(e) {
+ var i, attrs = e.attributes;
+ for (i = attrs.length - 1; i >= 0; i--) {
+ e.removeAttributeNode(attrs.item(i));
+ }
+ });
},
- gt: function(elem, i, match){
- return i > match[3] - 0;
+
+ setAttrib : function(e, n, v) {
+ var t = this;
+
+ // Whats the point
+ if (!e || !n)
+ return;
+
+ // Strict XML mode
+ if (t.settings.strict)
+ n = n.toLowerCase();
+
+ return this.run(e, function(e) {
+ var s = t.settings;
+ var originalValue = e.getAttribute(n);
+ if (v !== null) {
+ switch (n) {
+ case "style":
+ if (!is(v, 'string')) {
+ each(v, function(v, n) {
+ t.setStyle(e, n, v);
+ });
+
+ return;
+ }
+
+ // No mce_style for elements with these since they might get resized by the user
+ if (s.keep_values) {
+ if (v && !t._isRes(v))
+ e.setAttribute('data-mce-style', v, 2);
+ else
+ e.removeAttribute('data-mce-style', 2);
+ }
+
+ e.style.cssText = v;
+ break;
+
+ case "class":
+ e.className = v || ''; // Fix IE null bug
+ break;
+
+ case "src":
+ case "href":
+ if (s.keep_values) {
+ if (s.url_converter)
+ v = s.url_converter.call(s.url_converter_scope || t, v, n, e);
+
+ t.setAttrib(e, 'data-mce-' + n, v, 2);
+ }
+
+ break;
+
+ case "shape":
+ e.setAttribute('data-mce-style', v);
+ break;
+ }
+ }
+ if (is(v) && v !== null && v.length !== 0)
+ e.setAttribute(n, '' + v, 2);
+ else
+ e.removeAttribute(n, 2);
+
+ // fire onChangeAttrib event for attributes that have changed
+ if (tinyMCE.activeEditor && originalValue != v) {
+ var ed = tinyMCE.activeEditor;
+ ed.onSetAttrib.dispatch(ed, e, n, v);
+ }
+ });
},
- nth: function(elem, i, match){
- return match[3] - 0 === i;
+
+ setAttribs : function(e, o) {
+ var t = this;
+
+ return this.run(e, function(e) {
+ each(o, function(v, n) {
+ t.setAttrib(e, n, v);
+ });
+ });
},
- eq: function(elem, i, match){
- return match[3] - 0 === i;
- }
- },
- filter: {
- PSEUDO: function(elem, match, i, array){
- var name = match[1], filter = Expr.filters[ name ];
- if ( filter ) {
- return filter( elem, i, match, array );
- } else if ( name === "contains" ) {
- return (elem.textContent || elem.innerText || Sizzle.getText([ elem ]) || "").indexOf(match[3]) >= 0;
- } else if ( name === "not" ) {
- var not = match[3];
+ getAttrib : function(e, n, dv) {
+ var v, t = this, undef;
+
+ e = t.get(e);
+
+ if (!e || e.nodeType !== 1)
+ return dv === undef ? false : dv;
+
+ if (!is(dv))
+ dv = '';
+
+ // Try the mce variant for these
+ if (/^(src|href|style|coords|shape)$/.test(n)) {
+ v = e.getAttribute("data-mce-" + n);
+
+ if (v)
+ return v;
+ }
+
+ if (isIE && t.props[n]) {
+ v = e[t.props[n]];
+ v = v && v.nodeValue ? v.nodeValue : v;
+ }
+
+ if (!v)
+ v = e.getAttribute(n, 2);
+
+ // Check boolean attribs
+ if (/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noshade|nowrap|readonly|selected)$/.test(n)) {
+ if (e[t.props[n]] === true && v === '')
+ return n;
+
+ return v ? n : '';
+ }
+
+ // Inner input elements will override attributes on form elements
+ if (e.nodeName === "FORM" && e.getAttributeNode(n))
+ return e.getAttributeNode(n).nodeValue;
+
+ if (n === 'style') {
+ v = v || e.style.cssText;
+
+ if (v) {
+ v = t.serializeStyle(t.parseStyle(v), e.nodeName);
+
+ if (t.settings.keep_values && !t._isRes(v))
+ e.setAttribute('data-mce-style', v);
+ }
+ }
+
+ // Remove Apple and WebKit stuff
+ if (isWebKit && n === "class" && v)
+ v = v.replace(/(apple|webkit)\-[a-z\-]+/gi, '');
+
+ // Handle IE issues
+ if (isIE) {
+ switch (n) {
+ case 'rowspan':
+ case 'colspan':
+ // IE returns 1 as default value
+ if (v === 1)
+ v = '';
+
+ break;
+
+ case 'size':
+ // IE returns +0 as default value for size
+ if (v === '+0' || v === 20 || v === 0)
+ v = '';
+
+ break;
+
+ case 'width':
+ case 'height':
+ case 'vspace':
+ case 'checked':
+ case 'disabled':
+ case 'readonly':
+ if (v === 0)
+ v = '';
+
+ break;
+
+ case 'hspace':
+ // IE returns -1 as default value
+ if (v === -1)
+ v = '';
+
+ break;
+
+ case 'maxlength':
+ case 'tabindex':
+ // IE returns default value
+ if (v === 32768 || v === 2147483647 || v === '32768')
+ v = '';
+
+ break;
+
+ case 'multiple':
+ case 'compact':
+ case 'noshade':
+ case 'nowrap':
+ if (v === 65535)
+ return n;
+
+ return dv;
+
+ case 'shape':
+ v = v.toLowerCase();
+ break;
+
+ default:
+ // IE has odd anonymous function for event attributes
+ if (n.indexOf('on') === 0 && v)
+ v = tinymce._replace(/^function\s+\w+\(\)\s+\{\s+(.*)\s+\}$/, '$1', '' + v);
+ }
+ }
+
+ return (v !== undef && v !== null && v !== '') ? '' + v : dv;
+ },
+
+ getPos : function(n, ro) {
+ var t = this, x = 0, y = 0, e, d = t.doc, r;
+
+ n = t.get(n);
+ ro = ro || d.body;
+
+ if (n) {
+ // Use getBoundingClientRect if it exists since it's faster than looping offset nodes
+ if (n.getBoundingClientRect) {
+ n = n.getBoundingClientRect();
+ e = t.boxModel ? d.documentElement : d.body;
+
+ // Add scroll offsets from documentElement or body since IE with the wrong box model will use d.body and so do WebKit
+ // Also remove the body/documentelement clientTop/clientLeft on IE 6, 7 since they offset the position
+ x = n.left + (d.documentElement.scrollLeft || d.body.scrollLeft) - e.clientTop;
+ y = n.top + (d.documentElement.scrollTop || d.body.scrollTop) - e.clientLeft;
+
+ return {x : x, y : y};
+ }
+
+ r = n;
+ while (r && r != ro && r.nodeType) {
+ x += r.offsetLeft || 0;
+ y += r.offsetTop || 0;
+ r = r.offsetParent;
+ }
+
+ r = n.parentNode;
+ while (r && r != ro && r.nodeType) {
+ x -= r.scrollLeft || 0;
+ y -= r.scrollTop || 0;
+ r = r.parentNode;
+ }
+ }
+
+ return {x : x, y : y};
+ },
+
+ parseStyle : function(st) {
+ return this.styles.parse(st);
+ },
+
+ serializeStyle : function(o, name) {
+ return this.styles.serialize(o, name);
+ },
+
+ addStyle: function(cssText) {
+ var doc = this.doc, head;
+
+ // Create style element if needed
+ styleElm = doc.getElementById('mceDefaultStyles');
+ if (!styleElm) {
+ styleElm = doc.createElement('style'),
+ styleElm.id = 'mceDefaultStyles';
+ styleElm.type = 'text/css';
+
+ head = doc.getElementsByTagName('head')[0];
+ if (head.firstChild) {
+ head.insertBefore(styleElm, head.firstChild);
+ } else {
+ head.appendChild(styleElm);
+ }
+ }
+
+ // Append style data to old or new style element
+ if (styleElm.styleSheet) {
+ styleElm.styleSheet.cssText += cssText;
+ } else {
+ styleElm.appendChild(doc.createTextNode(cssText));
+ }
+ },
+
+ loadCSS : function(u) {
+ var t = this, d = t.doc, head;
+
+ if (!u)
+ u = '';
+
+ head = d.getElementsByTagName('head')[0];
+
+ each(u.split(','), function(u) {
+ var link;
+
+ if (t.files[u])
+ return;
+
+ t.files[u] = true;
+ link = t.create('link', {rel : 'stylesheet', href : tinymce._addVer(u)});
+
+ // IE 8 has a bug where dynamically loading stylesheets would produce a 1 item remaining bug
+ // This fix seems to resolve that issue by realcing the document ones a stylesheet finishes loading
+ // It's ugly but it seems to work fine.
+ if (isIE && d.documentMode && d.recalc) {
+ link.onload = function() {
+ if (d.recalc)
+ d.recalc();
+
+ link.onload = null;
+ };
+ }
+
+ head.appendChild(link);
+ });
+ },
+
+ addClass : function(e, c) {
+ return this.run(e, function(e) {
+ var o;
+
+ if (!c)
+ return 0;
+
+ if (this.hasClass(e, c))
+ return e.className;
+
+ o = this.removeClass(e, c);
+
+ return e.className = (o != '' ? (o + ' ') : '') + c;
+ });
+ },
+
+ removeClass : function(e, c) {
+ var t = this, re;
+
+ return t.run(e, function(e) {
+ var v;
+
+ if (t.hasClass(e, c)) {
+ if (!re)
+ re = new RegExp("(^|\\s+)" + c + "(\\s+|$)", "g");
+
+ v = e.className.replace(re, ' ');
+ v = tinymce.trim(v != ' ' ? v : '');
+
+ e.className = v;
+
+ // Empty class attr
+ if (!v) {
+ e.removeAttribute('class');
+ e.removeAttribute('className');
+ }
+
+ return v;
+ }
+
+ return e.className;
+ });
+ },
+
+ hasClass : function(n, c) {
+ n = this.get(n);
+
+ if (!n || !c)
+ return false;
+
+ return (' ' + n.className + ' ').indexOf(' ' + c + ' ') !== -1;
+ },
+
+ show : function(e) {
+ return this.setStyle(e, 'display', 'block');
+ },
+
+ hide : function(e) {
+ return this.setStyle(e, 'display', 'none');
+ },
+
+ isHidden : function(e) {
+ e = this.get(e);
+
+ return !e || e.style.display == 'none' || this.getStyle(e, 'display') == 'none';
+ },
+
+ uniqueId : function(p) {
+ return (!p ? 'mce_' : p) + (this.counter++);
+ },
+
+ setHTML : function(element, html) {
+ var self = this;
+
+ return self.run(element, function(element) {
+ if (isIE) {
+ // Remove all child nodes, IE keeps empty text nodes in DOM
+ while (element.firstChild)
+ element.removeChild(element.firstChild);
+
+ try {
+ // IE will remove comments from the beginning
+ // unless you padd the contents with something
+ element.innerHTML = '<br />' + html;
+ element.removeChild(element.firstChild);
+ } catch (ex) {
+ // IE sometimes produces an unknown runtime error on innerHTML if it's an block element within a block element for example a div inside a p
+ // This seems to fix this problem
+
+ // Create new div with HTML contents and a BR infront to keep comments
+ var newElement = self.create('div');
+ newElement.innerHTML = '<br />' + html;
+
+ // Add all children from div to target
+ each (tinymce.grep(newElement.childNodes), function(node, i) {
+ // Skip br element
+ if (i && element.canHaveHTML)
+ element.appendChild(node);
+ });
+ }
+ } else
+ element.innerHTML = html;
+
+ return html;
+ });
+ },
+
+ getOuterHTML : function(elm) {
+ var doc, self = this;
+
+ elm = self.get(elm);
+
+ if (!elm)
+ return null;
+
+ if (elm.nodeType === 1 && self.hasOuterHTML)
+ return elm.outerHTML;
+
+ doc = (elm.ownerDocument || self.doc).createElement("body");
+ doc.appendChild(elm.cloneNode(true));
+
+ return doc.innerHTML;
+ },
+
+ setOuterHTML : function(e, h, d) {
+ var t = this;
+
+ function setHTML(e, h, d) {
+ var n, tp;
+
+ tp = d.createElement("body");
+ tp.innerHTML = h;
+
+ n = tp.lastChild;
+ while (n) {
+ t.insertAfter(n.cloneNode(true), e);
+ n = n.previousSibling;
+ }
+
+ t.remove(e);
+ };
+
+ return this.run(e, function(e) {
+ e = t.get(e);
+
+ // Only set HTML on elements
+ if (e.nodeType == 1) {
+ d = d || e.ownerDocument || t.doc;
+
+ if (isIE) {
+ try {
+ // Try outerHTML for IE it sometimes produces an unknown runtime error
+ if (isIE && e.nodeType == 1)
+ e.outerHTML = h;
+ else
+ setHTML(e, h, d);
+ } catch (ex) {
+ // Fix for unknown runtime error
+ setHTML(e, h, d);
+ }
+ } else
+ setHTML(e, h, d);
+ }
+ });
+ },
+
+ decode : Entities.decode,
+
+ encode : Entities.encodeAllRaw,
+
+ insertAfter : function(node, reference_node) {
+ reference_node = this.get(reference_node);
+
+ return this.run(node, function(node) {
+ var parent, nextSibling;
+
+ parent = reference_node.parentNode;
+ nextSibling = reference_node.nextSibling;
+
+ if (nextSibling)
+ parent.insertBefore(node, nextSibling);
+ else
+ parent.appendChild(node);
+
+ return node;
+ });
+ },
+
+ replace : function(n, o, k) {
+ var t = this;
+
+ if (is(o, 'array'))
+ n = n.cloneNode(true);
+
+ return t.run(o, function(o) {
+ if (k) {
+ each(tinymce.grep(o.childNodes), function(c) {
+ n.appendChild(c);
+ });
+ }
+
+ return o.parentNode.replaceChild(n, o);
+ });
+ },
+
+ rename : function(elm, name) {
+ var t = this, newElm;
+
+ if (elm.nodeName != name.toUpperCase()) {
+ // Rename block element
+ newElm = t.create(name);
+
+ // Copy attribs to new block
+ each(t.getAttribs(elm), function(attr_node) {
+ t.setAttrib(newElm, attr_node.nodeName, t.getAttrib(elm, attr_node.nodeName));
+ });
+
+ // Replace block
+ t.replace(newElm, elm, 1);
+ }
+
+ return newElm || elm;
+ },
+
+ findCommonAncestor : function(a, b) {
+ var ps = a, pe;
+
+ while (ps) {
+ pe = b;
+
+ while (pe && ps != pe)
+ pe = pe.parentNode;
+
+ if (ps == pe)
+ break;
+
+ ps = ps.parentNode;
+ }
+
+ if (!ps && a.ownerDocument)
+ return a.ownerDocument.documentElement;
+
+ return ps;
+ },
+
+ toHex : function(s) {
+ var c = /^\s*rgb\s*?\(\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?\)\s*$/i.exec(s);
+
+ function hex(s) {
+ s = parseInt(s, 10).toString(16);
+
+ return s.length > 1 ? s : '0' + s; // 0 -> 00
+ };
+
+ if (c) {
+ s = '#' + hex(c[1]) + hex(c[2]) + hex(c[3]);
+
+ return s;
+ }
+
+ return s;
+ },
+
+ getClasses : function() {
+ var t = this, cl = [], i, lo = {}, f = t.settings.class_filter, ov;
+
+ if (t.classes)
+ return t.classes;
+
+ function addClasses(s) {
+ // IE style imports
+ each(s.imports, function(r) {
+ addClasses(r);
+ });
+
+ each(s.cssRules || s.rules, function(r) {
+ // Real type or fake it on IE
+ switch (r.type || 1) {
+ // Rule
+ case 1:
+ if (r.selectorText) {
+ each(r.selectorText.split(','), function(v) {
+ v = v.replace(/^\s*|\s*$|^\s\./g, "");
+
+ // Is internal or it doesn't contain a class
+ if (/\.mce/.test(v) || !/\.[\w\-]+$/.test(v))
+ return;
+
+ // Remove everything but class name
+ ov = v;
+ v = tinymce._replace(/.*\.([a-z0-9_\-]+).*/i, '$1', v);
+
+ // Filter classes
+ if (f && !(v = f(v, ov)))
+ return;
+
+ if (!lo[v]) {
+ cl.push({'class' : v});
+ lo[v] = 1;
+ }
+ });
+ }
+ break;
+
+ // Import
+ case 3:
+ addClasses(r.styleSheet);
+ break;
+ }
+ });
+ };
+
+ try {
+ each(t.doc.styleSheets, addClasses);
+ } catch (ex) {
+ // Ignore
+ }
+
+ if (cl.length > 0)
+ t.classes = cl;
+
+ return cl;
+ },
+
+ run : function(e, f, s) {
+ var t = this, o;
+
+ if (t.doc && typeof(e) === 'string')
+ e = t.get(e);
+
+ if (!e)
+ return false;
+
+ s = s || this;
+ if (!e.nodeType && (e.length || e.length === 0)) {
+ o = [];
+
+ each(e, function(e, i) {
+ if (e) {
+ if (typeof(e) == 'string')
+ e = t.doc.getElementById(e);
+
+ o.push(f.call(s, e, i));
+ }
+ });
+
+ return o;
+ }
+
+ return f.call(s, e);
+ },
+
+ getAttribs : function(n) {
+ var o;
+
+ n = this.get(n);
+
+ if (!n)
+ return [];
+
+ if (isIE) {
+ o = [];
+
+ // Object will throw exception in IE
+ if (n.nodeName == 'OBJECT')
+ return n.attributes;
+
+ // IE doesn't keep the selected attribute if you clone option elements
+ if (n.nodeName === 'OPTION' && this.getAttrib(n, 'selected'))
+ o.push({specified : 1, nodeName : 'selected'});
+
+ // It's crazy that this is faster in IE but it's because it returns all attributes all the time
+ n.cloneNode(false).outerHTML.replace(/<\/?[\w:\-]+ ?|=[\"][^\"]+\"|=\'[^\']+\'|=[\w\-]+|>/gi, '').replace(/[\w:\-]+/gi, function(a) {
+ o.push({specified : 1, nodeName : a});
+ });
+
+ return o;
+ }
+
+ return n.attributes;
+ },
+
+ isEmpty : function(node, elements) {
+ var self = this, i, attributes, type, walker, name, brCount = 0;
+
+ node = node.firstChild;
+ if (node) {
+ walker = new tinymce.dom.TreeWalker(node, node.parentNode);
+ elements = elements || self.schema ? self.schema.getNonEmptyElements() : null;
+
+ do {
+ type = node.nodeType;
+
+ if (type === 1) {
+ // Ignore bogus elements
+ if (node.getAttribute('data-mce-bogus'))
+ continue;
+
+ // Keep empty elements like <img />
+ name = node.nodeName.toLowerCase();
+ if (elements && elements[name]) {
+ // Ignore single BR elements in blocks like <p><br /></p> or <p><span><br /></span></p>
+ if (name === 'br') {
+ brCount++;
+ continue;
+ }
+
+ return false;
+ }
+
+ // Keep elements with data-bookmark attributes or name attribute like <a name="1"></a>
+ attributes = self.getAttribs(node);
+ i = node.attributes.length;
+ while (i--) {
+ name = node.attributes[i].nodeName;
+ if (name === "name" || name === 'data-mce-bookmark')
+ return false;
+ }
+ }
+
+ // Keep comment nodes
+ if (type == 8)
+ return false;
+
+ // Keep non whitespace text nodes
+ if ((type === 3 && !whiteSpaceRegExp.test(node.nodeValue)))
+ return false;
+ } while (node = walker.next());
+ }
+
+ return brCount <= 1;
+ },
+
+ destroy : function(s) {
+ var t = this;
+
+ t.win = t.doc = t.root = t.events = t.frag = null;
+
+ // Manual destroy then remove unload handler
+ if (!s)
+ tinymce.removeUnload(t.destroy);
+ },
+
+ createRng : function() {
+ var d = this.doc;
+
+ return d.createRange ? d.createRange() : new tinymce.dom.Range(this);
+ },
+
+ nodeIndex : function(node, normalized) {
+ var idx = 0, lastNodeType, lastNode, nodeType;
+
+ if (node) {
+ for (lastNodeType = node.nodeType, node = node.previousSibling, lastNode = node; node; node = node.previousSibling) {
+ nodeType = node.nodeType;
+
+ // Normalize text nodes
+ if (normalized && nodeType == 3) {
+ if (nodeType == lastNodeType || !node.nodeValue.length)
+ continue;
+ }
+ idx++;
+ lastNodeType = nodeType;
+ }
+ }
+
+ return idx;
+ },
+
+ split : function(pe, e, re) {
+ var t = this, r = t.createRng(), bef, aft, pa;
+
+ // W3C valid browsers tend to leave empty nodes to the left/right side of the contents, this makes sense
+ // but we don't want that in our code since it serves no purpose for the end user
+ // For example if this is chopped:
+ // <p>text 1<span><b>CHOP</b></span>text 2</p>
+ // would produce:
+ // <p>text 1<span></span></p><b>CHOP</b><p><span></span>text 2</p>
+ // this function will then trim of empty edges and produce:
+ // <p>text 1</p><b>CHOP</b><p>text 2</p>
+ function trim(node) {
+ var i, children = node.childNodes, type = node.nodeType;
+
+ function surroundedBySpans(node) {
+ var previousIsSpan = node.previousSibling && node.previousSibling.nodeName == 'SPAN';
+ var nextIsSpan = node.nextSibling && node.nextSibling.nodeName == 'SPAN';
+ return previousIsSpan && nextIsSpan;
+ }
+
+ if (type == 1 && node.getAttribute('data-mce-type') == 'bookmark')
+ return;
+
+ for (i = children.length - 1; i >= 0; i--)
+ trim(children[i]);
+
+ if (type != 9) {
+ // Keep non whitespace text nodes
+ if (type == 3 && node.nodeValue.length > 0) {
+ // If parent element isn't a block or there isn't any useful contents for example "<p> </p>"
+ // Also keep text nodes with only spaces if surrounded by spans.
+ // eg. "<p><span>a</span> <span>b</span></p>" should keep space between a and b
+ var trimmedLength = tinymce.trim(node.nodeValue).length;
+ if (!t.isBlock(node.parentNode) || trimmedLength > 0 || trimmedLength === 0 && surroundedBySpans(node))
+ return;
+ } else if (type == 1) {
+ // If the only child is a bookmark then move it up
+ children = node.childNodes;
+ if (children.length == 1 && children[0] && children[0].nodeType == 1 && children[0].getAttribute('data-mce-type') == 'bookmark')
+ node.parentNode.insertBefore(children[0], node);
+
+ // Keep non empty elements or img, hr etc
+ if (children.length || /^(br|hr|input|img)$/i.test(node.nodeName))
+ return;
+ }
+
+ t.remove(node);
+ }
+
+ return node;
+ };
+
+ if (pe && e) {
+ // Get before chunk
+ r.setStart(pe.parentNode, t.nodeIndex(pe));
+ r.setEnd(e.parentNode, t.nodeIndex(e));
+ bef = r.extractContents();
+
+ // Get after chunk
+ r = t.createRng();
+ r.setStart(e.parentNode, t.nodeIndex(e) + 1);
+ r.setEnd(pe.parentNode, t.nodeIndex(pe) + 1);
+ aft = r.extractContents();
+
+ // Insert before chunk
+ pa = pe.parentNode;
+ pa.insertBefore(trim(bef), pe);
+
+ // Insert middle chunk
+ if (re)
+ pa.replaceChild(re, e);
+ else
+ pa.insertBefore(e, pe);
+
+ // Insert after chunk
+ pa.insertBefore(trim(aft), pe);
+ t.remove(pe);
+
+ return re || e;
+ }
+ },
+
+ bind : function(target, name, func, scope) {
+ return this.events.add(target, name, func, scope || this);
+ },
+
+ unbind : function(target, name, func) {
+ return this.events.remove(target, name, func);
+ },
+
+ fire : function(target, name, evt) {
+ return this.events.fire(target, name, evt);
+ },
+
+ // Returns the content editable state of a node
+ getContentEditable: function(node) {
+ var contentEditable;
+
+ // Check type
+ if (node.nodeType != 1) {
+ return null;
+ }
+
+ // Check for fake content editable
+ contentEditable = node.getAttribute("data-mce-contenteditable");
+ if (contentEditable && contentEditable !== "inherit") {
+ return contentEditable;
+ }
+
+ // Check for real content editable
+ return node.contentEditable !== "inherit" ? node.contentEditable : null;
+ },
+
+
+ _findSib : function(node, selector, name) {
+ var t = this, f = selector;
+
+ if (node) {
+ // If expression make a function of it using is
+ if (is(f, 'string')) {
+ f = function(node) {
+ return t.is(node, selector);
+ };
+ }
+
+ // Loop all siblings
+ for (node = node[name]; node; node = node[name]) {
+ if (f(node))
+ return node;
+ }
+ }
+
+ return null;
+ },
+
+ _isRes : function(c) {
+ // Is live resizble element
+ return /^(top|left|bottom|right|width|height)/i.test(c) || /;\s*(top|left|bottom|right|width|height)/i.test(c);
+ }
+
+ /*
+ walk : function(n, f, s) {
+ var d = this.doc, w;
+
+ if (d.createTreeWalker) {
+ w = d.createTreeWalker(n, NodeFilter.SHOW_TEXT, null, false);
+
+ while ((n = w.nextNode()) != null)
+ f.call(s || this, n);
+ } else
+ tinymce.walk(n, f, 'childNodes', s);
+ }
+ */
+
+ /*
+ toRGB : function(s) {
+ var c = /^\s*?#([0-9A-F]{2})([0-9A-F]{1,2})([0-9A-F]{2})?\s*?$/.exec(s);
+
+ if (c) {
+ // #FFF -> #FFFFFF
+ if (!is(c[3]))
+ c[3] = c[2] = c[1];
+
+ return "rgb(" + parseInt(c[1], 16) + "," + parseInt(c[2], 16) + "," + parseInt(c[3], 16) + ")";
+ }
+
+ return s;
+ }
+ */
+ });
+
+ tinymce.DOM = new tinymce.dom.DOMUtils(document, {process_html : 0});
+})(tinymce);
+
+(function(ns) {
+ // Range constructor
+ function Range(dom) {
+ var t = this,
+ doc = dom.doc,
+ EXTRACT = 0,
+ CLONE = 1,
+ DELETE = 2,
+ TRUE = true,
+ FALSE = false,
+ START_OFFSET = 'startOffset',
+ START_CONTAINER = 'startContainer',
+ END_CONTAINER = 'endContainer',
+ END_OFFSET = 'endOffset',
+ extend = tinymce.extend,
+ nodeIndex = dom.nodeIndex;
+
+ extend(t, {
+ // Inital states
+ startContainer : doc,
+ startOffset : 0,
+ endContainer : doc,
+ endOffset : 0,
+ collapsed : TRUE,
+ commonAncestorContainer : doc,
+
+ // Range constants
+ START_TO_START : 0,
+ START_TO_END : 1,
+ END_TO_END : 2,
+ END_TO_START : 3,
+
+ // Public methods
+ setStart : setStart,
+ setEnd : setEnd,
+ setStartBefore : setStartBefore,
+ setStartAfter : setStartAfter,
+ setEndBefore : setEndBefore,
+ setEndAfter : setEndAfter,
+ collapse : collapse,
+ selectNode : selectNode,
+ selectNodeContents : selectNodeContents,
+ compareBoundaryPoints : compareBoundaryPoints,
+ deleteContents : deleteContents,
+ extractContents : extractContents,
+ cloneContents : cloneContents,
+ insertNode : insertNode,
+ surroundContents : surroundContents,
+ cloneRange : cloneRange,
+ toStringIE : toStringIE
+ });
+
+ function createDocumentFragment() {
+ return doc.createDocumentFragment();
+ };
+
+ function setStart(n, o) {
+ _setEndPoint(TRUE, n, o);
+ };
+
+ function setEnd(n, o) {
+ _setEndPoint(FALSE, n, o);
+ };
+
+ function setStartBefore(n) {
+ setStart(n.parentNode, nodeIndex(n));
+ };
+
+ function setStartAfter(n) {
+ setStart(n.parentNode, nodeIndex(n) + 1);
+ };
+
+ function setEndBefore(n) {
+ setEnd(n.parentNode, nodeIndex(n));
+ };
+
+ function setEndAfter(n) {
+ setEnd(n.parentNode, nodeIndex(n) + 1);
+ };
+
+ function collapse(ts) {
+ if (ts) {
+ t[END_CONTAINER] = t[START_CONTAINER];
+ t[END_OFFSET] = t[START_OFFSET];
+ } else {
+ t[START_CONTAINER] = t[END_CONTAINER];
+ t[START_OFFSET] = t[END_OFFSET];
+ }
+
+ t.collapsed = TRUE;
+ };
+
+ function selectNode(n) {
+ setStartBefore(n);
+ setEndAfter(n);
+ };
+
+ function selectNodeContents(n) {
+ setStart(n, 0);
+ setEnd(n, n.nodeType === 1 ? n.childNodes.length : n.nodeValue.length);
+ };
+
+ function compareBoundaryPoints(h, r) {
+ var sc = t[START_CONTAINER], so = t[START_OFFSET], ec = t[END_CONTAINER], eo = t[END_OFFSET],
+ rsc = r.startContainer, rso = r.startOffset, rec = r.endContainer, reo = r.endOffset;
+
+ // Check START_TO_START
+ if (h === 0)
+ return _compareBoundaryPoints(sc, so, rsc, rso);
+
+ // Check START_TO_END
+ if (h === 1)
+ return _compareBoundaryPoints(ec, eo, rsc, rso);
+
+ // Check END_TO_END
+ if (h === 2)
+ return _compareBoundaryPoints(ec, eo, rec, reo);
+
+ // Check END_TO_START
+ if (h === 3)
+ return _compareBoundaryPoints(sc, so, rec, reo);
+ };
+
+ function deleteContents() {
+ _traverse(DELETE);
+ };
+
+ function extractContents() {
+ return _traverse(EXTRACT);
+ };
+
+ function cloneContents() {
+ return _traverse(CLONE);
+ };
+
+ function insertNode(n) {
+ var startContainer = this[START_CONTAINER],
+ startOffset = this[START_OFFSET], nn, o;
+
+ // Node is TEXT_NODE or CDATA
+ if ((startContainer.nodeType === 3 || startContainer.nodeType === 4) && startContainer.nodeValue) {
+ if (!startOffset) {
+ // At the start of text
+ startContainer.parentNode.insertBefore(n, startContainer);
+ } else if (startOffset >= startContainer.nodeValue.length) {
+ // At the end of text
+ dom.insertAfter(n, startContainer);
+ } else {
+ // Middle, need to split
+ nn = startContainer.splitText(startOffset);
+ startContainer.parentNode.insertBefore(n, nn);
+ }
+ } else {
+ // Insert element node
+ if (startContainer.childNodes.length > 0)
+ o = startContainer.childNodes[startOffset];
+
+ if (o)
+ startContainer.insertBefore(n, o);
+ else
+ startContainer.appendChild(n);
+ }
+ };
+
+ function surroundContents(n) {
+ var f = t.extractContents();
+
+ t.insertNode(n);
+ n.appendChild(f);
+ t.selectNode(n);
+ };
+
+ function cloneRange() {
+ return extend(new Range(dom), {
+ startContainer : t[START_CONTAINER],
+ startOffset : t[START_OFFSET],
+ endContainer : t[END_CONTAINER],
+ endOffset : t[END_OFFSET],
+ collapsed : t.collapsed,
+ commonAncestorContainer : t.commonAncestorContainer
+ });
+ };
+
+ // Private methods
+
+ function _getSelectedNode(container, offset) {
+ var child;
+
+ if (container.nodeType == 3 /* TEXT_NODE */)
+ return container;
+
+ if (offset < 0)
+ return container;
+
+ child = container.firstChild;
+ while (child && offset > 0) {
+ --offset;
+ child = child.nextSibling;
+ }
+
+ if (child)
+ return child;
+
+ return container;
+ };
+
+ function _isCollapsed() {
+ return (t[START_CONTAINER] == t[END_CONTAINER] && t[START_OFFSET] == t[END_OFFSET]);
+ };
+
+ function _compareBoundaryPoints(containerA, offsetA, containerB, offsetB) {
+ var c, offsetC, n, cmnRoot, childA, childB;
+
+ // In the first case the boundary-points have the same container. A is before B
+ // if its offset is less than the offset of B, A is equal to B if its offset is
+ // equal to the offset of B, and A is after B if its offset is greater than the
+ // offset of B.
+ if (containerA == containerB) {
+ if (offsetA == offsetB)
+ return 0; // equal
+
+ if (offsetA < offsetB)
+ return -1; // before
+
+ return 1; // after
+ }
+
+ // In the second case a child node C of the container of A is an ancestor
+ // container of B. In this case, A is before B if the offset of A is less than or
+ // equal to the index of the child node C and A is after B otherwise.
+ c = containerB;
+ while (c && c.parentNode != containerA)
+ c = c.parentNode;
+
+ if (c) {
+ offsetC = 0;
+ n = containerA.firstChild;
+
+ while (n != c && offsetC < offsetA) {
+ offsetC++;
+ n = n.nextSibling;
+ }
+
+ if (offsetA <= offsetC)
+ return -1; // before
+
+ return 1; // after
+ }
+
+ // In the third case a child node C of the container of B is an ancestor container
+ // of A. In this case, A is before B if the index of the child node C is less than
+ // the offset of B and A is after B otherwise.
+ c = containerA;
+ while (c && c.parentNode != containerB) {
+ c = c.parentNode;
+ }
+
+ if (c) {
+ offsetC = 0;
+ n = containerB.firstChild;
+
+ while (n != c && offsetC < offsetB) {
+ offsetC++;
+ n = n.nextSibling;
+ }
+
+ if (offsetC < offsetB)
+ return -1; // before
+
+ return 1; // after
+ }
+
+ // In the fourth case, none of three other cases hold: the containers of A and B
+ // are siblings or descendants of sibling nodes. In this case, A is before B if
+ // the container of A is before the container of B in a pre-order traversal of the
+ // Ranges' context tree and A is after B otherwise.
+ cmnRoot = dom.findCommonAncestor(containerA, containerB);
+ childA = containerA;
+
+ while (childA && childA.parentNode != cmnRoot)
+ childA = childA.parentNode;
+
+ if (!childA)
+ childA = cmnRoot;
+
+ childB = containerB;
+ while (childB && childB.parentNode != cmnRoot)
+ childB = childB.parentNode;
+
+ if (!childB)
+ childB = cmnRoot;
+
+ if (childA == childB)
+ return 0; // equal
+
+ n = cmnRoot.firstChild;
+ while (n) {
+ if (n == childA)
+ return -1; // before
+
+ if (n == childB)
+ return 1; // after
+
+ n = n.nextSibling;
+ }
+ };
+
+ function _setEndPoint(st, n, o) {
+ var ec, sc;
+
+ if (st) {
+ t[START_CONTAINER] = n;
+ t[START_OFFSET] = o;
+ } else {
+ t[END_CONTAINER] = n;
+ t[END_OFFSET] = o;
+ }
+
+ // If one boundary-point of a Range is set to have a root container
+ // other than the current one for the Range, the Range is collapsed to
+ // the new position. This enforces the restriction that both boundary-
+ // points of a Range must have the same root container.
+ ec = t[END_CONTAINER];
+ while (ec.parentNode)
+ ec = ec.parentNode;
+
+ sc = t[START_CONTAINER];
+ while (sc.parentNode)
+ sc = sc.parentNode;
+
+ if (sc == ec) {
+ // The start position of a Range is guaranteed to never be after the
+ // end position. To enforce this restriction, if the start is set to
+ // be at a position after the end, the Range is collapsed to that
+ // position.
+ if (_compareBoundaryPoints(t[START_CONTAINER], t[START_OFFSET], t[END_CONTAINER], t[END_OFFSET]) > 0)
+ t.collapse(st);
+ } else
+ t.collapse(st);
+
+ t.collapsed = _isCollapsed();
+ t.commonAncestorContainer = dom.findCommonAncestor(t[START_CONTAINER], t[END_CONTAINER]);
+ };
+
+ function _traverse(how) {
+ var c, endContainerDepth = 0, startContainerDepth = 0, p, depthDiff, startNode, endNode, sp, ep;
+
+ if (t[START_CONTAINER] == t[END_CONTAINER])
+ return _traverseSameContainer(how);
+
+ for (c = t[END_CONTAINER], p = c.parentNode; p; c = p, p = p.parentNode) {
+ if (p == t[START_CONTAINER])
+ return _traverseCommonStartContainer(c, how);
+
+ ++endContainerDepth;
+ }
+
+ for (c = t[START_CONTAINER], p = c.parentNode; p; c = p, p = p.parentNode) {
+ if (p == t[END_CONTAINER])
+ return _traverseCommonEndContainer(c, how);
+
+ ++startContainerDepth;
+ }
+
+ depthDiff = startContainerDepth - endContainerDepth;
+
+ startNode = t[START_CONTAINER];
+ while (depthDiff > 0) {
+ startNode = startNode.parentNode;
+ depthDiff--;
+ }
+
+ endNode = t[END_CONTAINER];
+ while (depthDiff < 0) {
+ endNode = endNode.parentNode;
+ depthDiff++;
+ }
+
+ // ascend the ancestor hierarchy until we have a common parent.
+ for (sp = startNode.parentNode, ep = endNode.parentNode; sp != ep; sp = sp.parentNode, ep = ep.parentNode) {
+ startNode = sp;
+ endNode = ep;
+ }
+
+ return _traverseCommonAncestors(startNode, endNode, how);
+ };
+
+ function _traverseSameContainer(how) {
+ var frag, s, sub, n, cnt, sibling, xferNode, start, len;
+
+ if (how != DELETE)
+ frag = createDocumentFragment();
+
+ // If selection is empty, just return the fragment
+ if (t[START_OFFSET] == t[END_OFFSET])
+ return frag;
+
+ // Text node needs special case handling
+ if (t[START_CONTAINER].nodeType == 3 /* TEXT_NODE */) {
+ // get the substring
+ s = t[START_CONTAINER].nodeValue;
+ sub = s.substring(t[START_OFFSET], t[END_OFFSET]);
+
+ // set the original text node to its new value
+ if (how != CLONE) {
+ n = t[START_CONTAINER];
+ start = t[START_OFFSET];
+ len = t[END_OFFSET] - t[START_OFFSET];
+
+ if (start === 0 && len >= n.nodeValue.length - 1) {
+ n.parentNode.removeChild(n);
+ } else {
+ n.deleteData(start, len);
+ }
+
+ // Nothing is partially selected, so collapse to start point
+ t.collapse(TRUE);
+ }
+
+ if (how == DELETE)
+ return;
+
+ if (sub.length > 0) {
+ frag.appendChild(doc.createTextNode(sub));
+ }
+
+ return frag;
+ }
+
+ // Copy nodes between the start/end offsets.
+ n = _getSelectedNode(t[START_CONTAINER], t[START_OFFSET]);
+ cnt = t[END_OFFSET] - t[START_OFFSET];
+
+ while (n && cnt > 0) {
+ sibling = n.nextSibling;
+ xferNode = _traverseFullySelected(n, how);
+
+ if (frag)
+ frag.appendChild( xferNode );
+
+ --cnt;
+ n = sibling;
+ }
+
+ // Nothing is partially selected, so collapse to start point
+ if (how != CLONE)
+ t.collapse(TRUE);
+
+ return frag;
+ };
+
+ function _traverseCommonStartContainer(endAncestor, how) {
+ var frag, n, endIdx, cnt, sibling, xferNode;
+
+ if (how != DELETE)
+ frag = createDocumentFragment();
+
+ n = _traverseRightBoundary(endAncestor, how);
+
+ if (frag)
+ frag.appendChild(n);
+
+ endIdx = nodeIndex(endAncestor);
+ cnt = endIdx - t[START_OFFSET];
+
+ if (cnt <= 0) {
+ // Collapse to just before the endAncestor, which
+ // is partially selected.
+ if (how != CLONE) {
+ t.setEndBefore(endAncestor);
+ t.collapse(FALSE);
+ }
+
+ return frag;
+ }
+
+ n = endAncestor.previousSibling;
+ while (cnt > 0) {
+ sibling = n.previousSibling;
+ xferNode = _traverseFullySelected(n, how);
+
+ if (frag)
+ frag.insertBefore(xferNode, frag.firstChild);
+
+ --cnt;
+ n = sibling;
+ }
+
+ // Collapse to just before the endAncestor, which
+ // is partially selected.
+ if (how != CLONE) {
+ t.setEndBefore(endAncestor);
+ t.collapse(FALSE);
+ }
+
+ return frag;
+ };
+
+ function _traverseCommonEndContainer(startAncestor, how) {
+ var frag, startIdx, n, cnt, sibling, xferNode;
+
+ if (how != DELETE)
+ frag = createDocumentFragment();
+
+ n = _traverseLeftBoundary(startAncestor, how);
+ if (frag)
+ frag.appendChild(n);
+
+ startIdx = nodeIndex(startAncestor);
+ ++startIdx; // Because we already traversed it
+
+ cnt = t[END_OFFSET] - startIdx;
+ n = startAncestor.nextSibling;
+ while (n && cnt > 0) {
+ sibling = n.nextSibling;
+ xferNode = _traverseFullySelected(n, how);
+
+ if (frag)
+ frag.appendChild(xferNode);
+
+ --cnt;
+ n = sibling;
+ }
+
+ if (how != CLONE) {
+ t.setStartAfter(startAncestor);
+ t.collapse(TRUE);
+ }
+
+ return frag;
+ };
+
+ function _traverseCommonAncestors(startAncestor, endAncestor, how) {
+ var n, frag, commonParent, startOffset, endOffset, cnt, sibling, nextSibling;
+
+ if (how != DELETE)
+ frag = createDocumentFragment();
+
+ n = _traverseLeftBoundary(startAncestor, how);
+ if (frag)
+ frag.appendChild(n);
+
+ commonParent = startAncestor.parentNode;
+ startOffset = nodeIndex(startAncestor);
+ endOffset = nodeIndex(endAncestor);
+ ++startOffset;
+
+ cnt = endOffset - startOffset;
+ sibling = startAncestor.nextSibling;
+
+ while (cnt > 0) {
+ nextSibling = sibling.nextSibling;
+ n = _traverseFullySelected(sibling, how);
+
+ if (frag)
+ frag.appendChild(n);
+
+ sibling = nextSibling;
+ --cnt;
+ }
+
+ n = _traverseRightBoundary(endAncestor, how);
+
+ if (frag)
+ frag.appendChild(n);
+
+ if (how != CLONE) {
+ t.setStartAfter(startAncestor);
+ t.collapse(TRUE);
+ }
+
+ return frag;
+ };
+
+ function _traverseRightBoundary(root, how) {
+ var next = _getSelectedNode(t[END_CONTAINER], t[END_OFFSET] - 1), parent, clonedParent, prevSibling, clonedChild, clonedGrandParent, isFullySelected = next != t[END_CONTAINER];
+
+ if (next == root)
+ return _traverseNode(next, isFullySelected, FALSE, how);
+
+ parent = next.parentNode;
+ clonedParent = _traverseNode(parent, FALSE, FALSE, how);
+
+ while (parent) {
+ while (next) {
+ prevSibling = next.previousSibling;
+ clonedChild = _traverseNode(next, isFullySelected, FALSE, how);
+
+ if (how != DELETE)
+ clonedParent.insertBefore(clonedChild, clonedParent.firstChild);
+
+ isFullySelected = TRUE;
+ next = prevSibling;
+ }
+
+ if (parent == root)
+ return clonedParent;
+
+ next = parent.previousSibling;
+ parent = parent.parentNode;
+
+ clonedGrandParent = _traverseNode(parent, FALSE, FALSE, how);
+
+ if (how != DELETE)
+ clonedGrandParent.appendChild(clonedParent);
+
+ clonedParent = clonedGrandParent;
+ }
+ };
+
+ function _traverseLeftBoundary(root, how) {
+ var next = _getSelectedNode(t[START_CONTAINER], t[START_OFFSET]), isFullySelected = next != t[START_CONTAINER], parent, clonedParent, nextSibling, clonedChild, clonedGrandParent;
+
+ if (next == root)
+ return _traverseNode(next, isFullySelected, TRUE, how);
+
+ parent = next.parentNode;
+ clonedParent = _traverseNode(parent, FALSE, TRUE, how);
+
+ while (parent) {
+ while (next) {
+ nextSibling = next.nextSibling;
+ clonedChild = _traverseNode(next, isFullySelected, TRUE, how);
+
+ if (how != DELETE)
+ clonedParent.appendChild(clonedChild);
+
+ isFullySelected = TRUE;
+ next = nextSibling;
+ }
+
+ if (parent == root)
+ return clonedParent;
+
+ next = parent.nextSibling;
+ parent = parent.parentNode;
+
+ clonedGrandParent = _traverseNode(parent, FALSE, TRUE, how);
+
+ if (how != DELETE)
+ clonedGrandParent.appendChild(clonedParent);
+
+ clonedParent = clonedGrandParent;
+ }
+ };
+
+ function _traverseNode(n, isFullySelected, isLeft, how) {
+ var txtValue, newNodeValue, oldNodeValue, offset, newNode;
+
+ if (isFullySelected)
+ return _traverseFullySelected(n, how);
+
+ if (n.nodeType == 3 /* TEXT_NODE */) {
+ txtValue = n.nodeValue;
+
+ if (isLeft) {
+ offset = t[START_OFFSET];
+ newNodeValue = txtValue.substring(offset);
+ oldNodeValue = txtValue.substring(0, offset);
+ } else {
+ offset = t[END_OFFSET];
+ newNodeValue = txtValue.substring(0, offset);
+ oldNodeValue = txtValue.substring(offset);
+ }
+
+ if (how != CLONE)
+ n.nodeValue = oldNodeValue;
+
+ if (how == DELETE)
+ return;
+
+ newNode = dom.clone(n, FALSE);
+ newNode.nodeValue = newNodeValue;
+
+ return newNode;
+ }
+
+ if (how == DELETE)
+ return;
+
+ return dom.clone(n, FALSE);
+ };
+
+ function _traverseFullySelected(n, how) {
+ if (how != DELETE)
+ return how == CLONE ? dom.clone(n, TRUE) : n;
+
+ n.parentNode.removeChild(n);
+ };
+
+ function toStringIE() {
+ return dom.create('body', null, cloneContents()).outerText;
+ }
+
+ return t;
+ };
+
+ ns.Range = Range;
+
+ // Older IE versions doesn't let you override toString by it's constructor so we have to stick it in the prototype
+ Range.prototype.toString = function() {
+ return this.toStringIE();
+ };
+})(tinymce.dom);
+
+(function() {
+ function Selection(selection) {
+ var self = this, dom = selection.dom, TRUE = true, FALSE = false;
+
+ function getPosition(rng, start) {
+ var checkRng, startIndex = 0, endIndex, inside,
+ children, child, offset, index, position = -1, parent;
+
+ // Setup test range, collapse it and get the parent
+ checkRng = rng.duplicate();
+ checkRng.collapse(start);
+ parent = checkRng.parentElement();
+
+ // Check if the selection is within the right document
+ if (parent.ownerDocument !== selection.dom.doc)
+ return;
+
+ // IE will report non editable elements as it's parent so look for an editable one
+ while (parent.contentEditable === "false") {
+ parent = parent.parentNode;
+ }
+
+ // If parent doesn't have any children then return that we are inside the element
+ if (!parent.hasChildNodes()) {
+ return {node : parent, inside : 1};
+ }
+
+ // Setup node list and endIndex
+ children = parent.children;
+ endIndex = children.length - 1;
+
+ // Perform a binary search for the position
+ while (startIndex <= endIndex) {
+ index = Math.floor((startIndex + endIndex) / 2);
+
+ // Move selection to node and compare the ranges
+ child = children[index];
+ checkRng.moveToElementText(child);
+ position = checkRng.compareEndPoints(start ? 'StartToStart' : 'EndToEnd', rng);
+
+ // Before/after or an exact match
+ if (position > 0) {
+ endIndex = index - 1;
+ } else if (position < 0) {
+ startIndex = index + 1;
+ } else {
+ return {node : child};
+ }
+ }
+
+ // Check if child position is before or we didn't find a position
+ if (position < 0) {
+ // No element child was found use the parent element and the offset inside that
+ if (!child) {
+ checkRng.moveToElementText(parent);
+ checkRng.collapse(true);
+ child = parent;
+ inside = true;
+ } else
+ checkRng.collapse(false);
+
+ // Walk character by character in text node until we hit the selected range endpoint, hit the end of document or parent isn't the right one
+ // We need to walk char by char since rng.text or rng.htmlText will trim line endings
+ offset = 0;
+ while (checkRng.compareEndPoints(start ? 'StartToStart' : 'StartToEnd', rng) !== 0) {
+ if (checkRng.move('character', 1) === 0 || parent != checkRng.parentElement()) {
+ break;
+ }
+
+ offset++;
+ }
+ } else {
+ // Child position is after the selection endpoint
+ checkRng.collapse(true);
+
+ // Walk character by character in text node until we hit the selected range endpoint, hit the end of document or parent isn't the right one
+ offset = 0;
+ while (checkRng.compareEndPoints(start ? 'StartToStart' : 'StartToEnd', rng) !== 0) {
+ if (checkRng.move('character', -1) === 0 || parent != checkRng.parentElement()) {
+ break;
+ }
+
+ offset++;
+ }
+ }
+
+ return {node : child, position : position, offset : offset, inside : inside};
+ };
+
+ // Returns a W3C DOM compatible range object by using the IE Range API
+ function getRange() {
+ var ieRange = selection.getRng(), domRange = dom.createRng(), element, collapsed, tmpRange, element2, bookmark, fail;
+
+ // If selection is outside the current document just return an empty range
+ element = ieRange.item ? ieRange.item(0) : ieRange.parentElement();
+ if (element.ownerDocument != dom.doc)
+ return domRange;
+
+ collapsed = selection.isCollapsed();
+
+ // Handle control selection
+ if (ieRange.item) {
+ domRange.setStart(element.parentNode, dom.nodeIndex(element));
+ domRange.setEnd(domRange.startContainer, domRange.startOffset + 1);
+
+ return domRange;
+ }
+
+ function findEndPoint(start) {
+ var endPoint = getPosition(ieRange, start), container, offset, textNodeOffset = 0, sibling, undef, nodeValue;
+
+ container = endPoint.node;
+ offset = endPoint.offset;
+
+ if (endPoint.inside && !container.hasChildNodes()) {
+ domRange[start ? 'setStart' : 'setEnd'](container, 0);
+ return;
+ }
+
+ if (offset === undef) {
+ domRange[start ? 'setStartBefore' : 'setEndAfter'](container);
+ return;
+ }
+
+ if (endPoint.position < 0) {
+ sibling = endPoint.inside ? container.firstChild : container.nextSibling;
+
+ if (!sibling) {
+ domRange[start ? 'setStartAfter' : 'setEndAfter'](container);
+ return;
+ }
+
+ if (!offset) {
+ if (sibling.nodeType == 3)
+ domRange[start ? 'setStart' : 'setEnd'](sibling, 0);
+ else
+ domRange[start ? 'setStartBefore' : 'setEndBefore'](sibling);
+
+ return;
+ }
+
+ // Find the text node and offset
+ while (sibling) {
+ nodeValue = sibling.nodeValue;
+ textNodeOffset += nodeValue.length;
+
+ // We are at or passed the position we where looking for
+ if (textNodeOffset >= offset) {
+ container = sibling;
+ textNodeOffset -= offset;
+ textNodeOffset = nodeValue.length - textNodeOffset;
+ break;
+ }
+
+ sibling = sibling.nextSibling;
+ }
+ } else {
+ // Find the text node and offset
+ sibling = container.previousSibling;
+
+ if (!sibling)
+ return domRange[start ? 'setStartBefore' : 'setEndBefore'](container);
+
+ // If there isn't any text to loop then use the first position
+ if (!offset) {
+ if (container.nodeType == 3)
+ domRange[start ? 'setStart' : 'setEnd'](sibling, container.nodeValue.length);
+ else
+ domRange[start ? 'setStartAfter' : 'setEndAfter'](sibling);
+
+ return;
+ }
+
+ while (sibling) {
+ textNodeOffset += sibling.nodeValue.length;
+
+ // We are at or passed the position we where looking for
+ if (textNodeOffset >= offset) {
+ container = sibling;
+ textNodeOffset -= offset;
+ break;
+ }
+
+ sibling = sibling.previousSibling;
+ }
+ }
+
+ domRange[start ? 'setStart' : 'setEnd'](container, textNodeOffset);
+ };
+
+ try {
+ // Find start point
+ findEndPoint(true);
+
+ // Find end point if needed
+ if (!collapsed)
+ findEndPoint();
+ } catch (ex) {
+ // IE has a nasty bug where text nodes might throw "invalid argument" when you
+ // access the nodeValue or other properties of text nodes. This seems to happend when
+ // text nodes are split into two nodes by a delete/backspace call. So lets detect it and try to fix it.
+ if (ex.number == -2147024809) {
+ // Get the current selection
+ bookmark = self.getBookmark(2);
+
+ // Get start element
+ tmpRange = ieRange.duplicate();
+ tmpRange.collapse(true);
+ element = tmpRange.parentElement();
+
+ // Get end element
+ if (!collapsed) {
+ tmpRange = ieRange.duplicate();
+ tmpRange.collapse(false);
+ element2 = tmpRange.parentElement();
+ element2.innerHTML = element2.innerHTML;
+ }
+
+ // Remove the broken elements
+ element.innerHTML = element.innerHTML;
+
+ // Restore the selection
+ self.moveToBookmark(bookmark);
+
+ // Since the range has moved we need to re-get it
+ ieRange = selection.getRng();
+
+ // Find start point
+ findEndPoint(true);
+
+ // Find end point if needed
+ if (!collapsed)
+ findEndPoint();
+ } else
+ throw ex; // Throw other errors
+ }
+
+ return domRange;
+ };
+
+ this.getBookmark = function(type) {
+ var rng = selection.getRng(), start, end, bookmark = {};
+
+ function getIndexes(node) {
+ var parent, root, children, i, indexes = [];
+
+ parent = node.parentNode;
+ root = dom.getRoot().parentNode;
+
+ while (parent != root && parent.nodeType !== 9) {
+ children = parent.children;
+
+ i = children.length;
+ while (i--) {
+ if (node === children[i]) {
+ indexes.push(i);
+ break;
+ }
+ }
+
+ node = parent;
+ parent = parent.parentNode;
+ }
+
+ return indexes;
+ };
+
+ function getBookmarkEndPoint(start) {
+ var position;
+
+ position = getPosition(rng, start);
+ if (position) {
+ return {
+ position : position.position,
+ offset : position.offset,
+ indexes : getIndexes(position.node),
+ inside : position.inside
+ };
+ }
+ };
+
+ // Non ubstructive bookmark
+ if (type === 2) {
+ // Handle text selection
+ if (!rng.item) {
+ bookmark.start = getBookmarkEndPoint(true);
+
+ if (!selection.isCollapsed())
+ bookmark.end = getBookmarkEndPoint();
+ } else
+ bookmark.start = {ctrl : true, indexes : getIndexes(rng.item(0))};
+ }
+
+ return bookmark;
+ };
+
+ this.moveToBookmark = function(bookmark) {
+ var rng, body = dom.doc.body;
+
+ function resolveIndexes(indexes) {
+ var node, i, idx, children;
+
+ node = dom.getRoot();
+ for (i = indexes.length - 1; i >= 0; i--) {
+ children = node.children;
+ idx = indexes[i];
+
+ if (idx <= children.length - 1) {
+ node = children[idx];
+ }
+ }
+
+ return node;
+ };
+
+ function setBookmarkEndPoint(start) {
+ var endPoint = bookmark[start ? 'start' : 'end'], moveLeft, moveRng, undef;
+
+ if (endPoint) {
+ moveLeft = endPoint.position > 0;
+
+ moveRng = body.createTextRange();
+ moveRng.moveToElementText(resolveIndexes(endPoint.indexes));
+
+ offset = endPoint.offset;
+ if (offset !== undef) {
+ moveRng.collapse(endPoint.inside || moveLeft);
+ moveRng.moveStart('character', moveLeft ? -offset : offset);
+ } else
+ moveRng.collapse(start);
+
+ rng.setEndPoint(start ? 'StartToStart' : 'EndToStart', moveRng);
+
+ if (start)
+ rng.collapse(true);
+ }
+ };
+
+ if (bookmark.start) {
+ if (bookmark.start.ctrl) {
+ rng = body.createControlRange();
+ rng.addElement(resolveIndexes(bookmark.start.indexes));
+ rng.select();
+ } else {
+ rng = body.createTextRange();
+ setBookmarkEndPoint(true);
+ setBookmarkEndPoint();
+ rng.select();
+ }
+ }
+ };
+
+ this.addRange = function(rng) {
+ var ieRng, ctrlRng, startContainer, startOffset, endContainer, endOffset, sibling,
+ doc = selection.dom.doc, body = doc.body, nativeRng, ctrlElm;
+
+ function setEndPoint(start) {
+ var container, offset, marker, tmpRng, nodes;
+
+ marker = dom.create('a');
+ container = start ? startContainer : endContainer;
+ offset = start ? startOffset : endOffset;
+ tmpRng = ieRng.duplicate();
+
+ if (container == doc || container == doc.documentElement) {
+ container = body;
+ offset = 0;
+ }
+
+ if (container.nodeType == 3) {
+ container.parentNode.insertBefore(marker, container);
+ tmpRng.moveToElementText(marker);
+ tmpRng.moveStart('character', offset);
+ dom.remove(marker);
+ ieRng.setEndPoint(start ? 'StartToStart' : 'EndToEnd', tmpRng);
+ } else {
+ nodes = container.childNodes;
+
+ if (nodes.length) {
+ if (offset >= nodes.length) {
+ dom.insertAfter(marker, nodes[nodes.length - 1]);
+ } else {
+ container.insertBefore(marker, nodes[offset]);
+ }
+
+ tmpRng.moveToElementText(marker);
+ } else if (container.canHaveHTML) {
+ // Empty node selection for example <div>|</div>
+ // Setting innerHTML with a span marker then remove that marker seems to keep empty block elements open
+ container.innerHTML = '<span>\uFEFF</span>';
+ marker = container.firstChild;
+ tmpRng.moveToElementText(marker);
+ tmpRng.collapse(FALSE); // Collapse false works better than true for some odd reason
+ }
+
+ ieRng.setEndPoint(start ? 'StartToStart' : 'EndToEnd', tmpRng);
+ dom.remove(marker);
+ }
+ }
+
+ // Setup some shorter versions
+ startContainer = rng.startContainer;
+ startOffset = rng.startOffset;
+ endContainer = rng.endContainer;
+ endOffset = rng.endOffset;
+ ieRng = body.createTextRange();
+
+ // If single element selection then try making a control selection out of it
+ if (startContainer == endContainer && startContainer.nodeType == 1) {
+ // Trick to place the caret inside an empty block element like <p></p>
+ if (startOffset == endOffset && !startContainer.hasChildNodes()) {
+ if (startContainer.canHaveHTML) {
+ // Check if previous sibling is an empty block if it is then we need to render it
+ // IE would otherwise move the caret into the sibling instead of the empty startContainer see: #5236
+ // Example this: <p></p><p>|</p> would become this: <p>|</p><p></p>
+ sibling = startContainer.previousSibling;
+ if (sibling && !sibling.hasChildNodes() && dom.isBlock(sibling)) {
+ sibling.innerHTML = '\uFEFF';
+ } else {
+ sibling = null;
+ }
+
+ startContainer.innerHTML = '<span>\uFEFF</span><span>\uFEFF</span>';
+ ieRng.moveToElementText(startContainer.lastChild);
+ ieRng.select();
+ dom.doc.selection.clear();
+ startContainer.innerHTML = '';
+
+ if (sibling) {
+ sibling.innerHTML = '';
+ }
+ return;
+ } else {
+ startOffset = dom.nodeIndex(startContainer);
+ startContainer = startContainer.parentNode;
+ }
+ }
+
+ if (startOffset == endOffset - 1) {
+ try {
+ ctrlElm = startContainer.childNodes[startOffset];
+ ctrlRng = body.createControlRange();
+ ctrlRng.addElement(ctrlElm);
+ ctrlRng.select();
+
+ // Check if the range produced is on the correct element and is a control range
+ // On IE 8 it will select the parent contentEditable container if you select an inner element see: #5398
+ nativeRng = selection.getRng();
+ if (nativeRng.item && ctrlElm === nativeRng.item(0)) {
+ return;
+ }
+ } catch (ex) {
+ // Ignore
+ }
+ }
+ }
+
+ // Set start/end point of selection
+ setEndPoint(true);
+ setEndPoint();
+
+ // Select the new range and scroll it into view
+ ieRng.select();
+ };
+
+ // Expose range method
+ this.getRangeAt = getRange;
+ };
+
+ // Expose the selection object
+ tinymce.dom.TridentSelection = Selection;
+})();
+
+
+/*
+ * Sizzle CSS Selector Engine
+ * Copyright, The Dojo Foundation
+ * Released under the MIT, BSD, and GPL Licenses.
+ * More information: http://sizzlejs.com/
+ */
+(function(){
+
+var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
+ expando = "sizcache",
+ done = 0,
+ toString = Object.prototype.toString,
+ hasDuplicate = false,
+ baseHasDuplicate = true,
+ rBackslash = /\\/g,
+ rReturn = /\r\n/g,
+ rNonWord = /\W/;
+
+// Here we check if the JavaScript engine is using some sort of
+// optimization where it does not always call our comparision
+// function. If that is the case, discard the hasDuplicate value.
+// Thus far that includes Google Chrome.
+[0, 0].sort(function() {
+ baseHasDuplicate = false;
+ return 0;
+});
+
+var Sizzle = function( selector, context, results, seed ) {
+ results = results || [];
+ context = context || document;
+
+ var origContext = context;
+
+ if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
+ return [];
+ }
+
+ if ( !selector || typeof selector !== "string" ) {
+ return results;
+ }
+
+ var m, set, checkSet, extra, ret, cur, pop, i,
+ prune = true,
+ contextXML = Sizzle.isXML( context ),
+ parts = [],
+ soFar = selector;
+
+ // Reset the position of the chunker regexp (start from head)
+ do {
+ chunker.exec( "" );
+ m = chunker.exec( soFar );
+
+ if ( m ) {
+ soFar = m[3];
+
+ parts.push( m[1] );
+
+ if ( m[2] ) {
+ extra = m[3];
+ break;
+ }
+ }
+ } while ( m );
+
+ if ( parts.length > 1 && origPOS.exec( selector ) ) {
+
+ if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
+ set = posProcess( parts[0] + parts[1], context, seed );
+
+ } else {
+ set = Expr.relative[ parts[0] ] ?
+ [ context ] :
+ Sizzle( parts.shift(), context );
+
+ while ( parts.length ) {
+ selector = parts.shift();
+
+ if ( Expr.relative[ selector ] ) {
+ selector += parts.shift();
+ }
+
+ set = posProcess( selector, set, seed );
+ }
+ }
+
+ } else {
+ // Take a shortcut and set the context if the root selector is an ID
+ // (but not if it'll be faster if the inner selector is an ID)
+ if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
+ Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
+
+ ret = Sizzle.find( parts.shift(), context, contextXML );
+ context = ret.expr ?
+ Sizzle.filter( ret.expr, ret.set )[0] :
+ ret.set[0];
+ }
+
+ if ( context ) {
+ ret = seed ?
+ { expr: parts.pop(), set: makeArray(seed) } :
+ Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML );
+
+ set = ret.expr ?
+ Sizzle.filter( ret.expr, ret.set ) :
+ ret.set;
+
+ if ( parts.length > 0 ) {
+ checkSet = makeArray( set );
+
+ } else {
+ prune = false;
+ }
+
+ while ( parts.length ) {
+ cur = parts.pop();
+ pop = cur;
+
+ if ( !Expr.relative[ cur ] ) {
+ cur = "";
+ } else {
+ pop = parts.pop();
+ }
+
+ if ( pop == null ) {
+ pop = context;
+ }
+
+ Expr.relative[ cur ]( checkSet, pop, contextXML );
+ }
+
+ } else {
+ checkSet = parts = [];
+ }
+ }
+
+ if ( !checkSet ) {
+ checkSet = set;
+ }
+
+ if ( !checkSet ) {
+ Sizzle.error( cur || selector );
+ }
+
+ if ( toString.call(checkSet) === "[object Array]" ) {
+ if ( !prune ) {
+ results.push.apply( results, checkSet );
- for ( var j = 0, l = not.length; j < l; j++ ) {
- if ( not[j] === elem ) {
- return false;
- }
+ } else if ( context && context.nodeType === 1 ) {
+ for ( i = 0; checkSet[i] != null; i++ ) {
+ if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) {
+ results.push( set[i] );
}
-
- return true;
- } else {
- Sizzle.error( "Syntax error, unrecognized expression: " + name );
}
- },
- CHILD: function(elem, match){
- var type = match[1], node = elem;
- switch (type) {
- case 'only':
- case 'first':
- while ( (node = node.previousSibling) ) {
- if ( node.nodeType === 1 ) {
- return false;
- }
- }
- if ( type === "first" ) {
- return true;
- }
- node = elem;
- case 'last':
- while ( (node = node.nextSibling) ) {
- if ( node.nodeType === 1 ) {
- return false;
- }
- }
- return true;
- case 'nth':
- var first = match[2], last = match[3];
- if ( first === 1 && last === 0 ) {
- return true;
- }
-
- var doneName = match[0],
- parent = elem.parentNode;
-
- if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) {
- var count = 0;
- for ( node = parent.firstChild; node; node = node.nextSibling ) {
- if ( node.nodeType === 1 ) {
- node.nodeIndex = ++count;
- }
- }
- parent.sizcache = doneName;
- }
-
- var diff = elem.nodeIndex - last;
- if ( first === 0 ) {
- return diff === 0;
- } else {
- return ( diff % first === 0 && diff / first >= 0 );
- }
+ } else {
+ for ( i = 0; checkSet[i] != null; i++ ) {
+ if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
+ results.push( set[i] );
+ }
}
- },
- ID: function(elem, match){
- return elem.nodeType === 1 && elem.getAttribute("id") === match;
- },
- TAG: function(elem, match){
- return (match === "*" && elem.nodeType === 1) || elem.nodeName.toLowerCase() === match;
- },
- CLASS: function(elem, match){
- return (" " + (elem.className || elem.getAttribute("class")) + " ")
- .indexOf( match ) > -1;
- },
- ATTR: function(elem, match){
- var name = match[1],
- result = Expr.attrHandle[ name ] ?
- Expr.attrHandle[ name ]( elem ) :
- elem[ name ] != null ?
- elem[ name ] :
- elem.getAttribute( name ),
- value = result + "",
- type = match[2],
- check = match[4];
+ }
- return result == null ?
- type === "!=" :
- type === "=" ?
- value === check :
- type === "*=" ?
- value.indexOf(check) >= 0 :
- type === "~=" ?
- (" " + value + " ").indexOf(check) >= 0 :
- !check ?
- value && result !== false :
- type === "!=" ?
- value !== check :
- type === "^=" ?
- value.indexOf(check) === 0 :
- type === "$=" ?
- value.substr(value.length - check.length) === check :
- type === "|=" ?
- value === check || value.substr(0, check.length + 1) === check + "-" :
- false;
- },
- POS: function(elem, match, i, array){
- var name = match[2], filter = Expr.setFilters[ name ];
+ } else {
+ makeArray( checkSet, results );
+ }
- if ( filter ) {
- return filter( elem, i, match, array );
+ if ( extra ) {
+ Sizzle( extra, origContext, results, seed );
+ Sizzle.uniqueSort( results );
+ }
+
+ return results;
+};
+
+Sizzle.uniqueSort = function( results ) {
+ if ( sortOrder ) {
+ hasDuplicate = baseHasDuplicate;
+ results.sort( sortOrder );
+
+ if ( hasDuplicate ) {
+ for ( var i = 1; i < results.length; i++ ) {
+ if ( results[i] === results[ i - 1 ] ) {
+ results.splice( i--, 1 );
+ }
}
}
}
+
+ return results;
};
-var origPOS = Expr.match.POS,
- fescape = function(all, num){
- return "\\" + (num - 0 + 1);
- };
+Sizzle.matches = function( expr, set ) {
+ return Sizzle( expr, null, null, set );
+};
-for ( var type in Expr.match ) {
- Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) );
- Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, fescape) );
-}
+Sizzle.matchesSelector = function( node, expr ) {
+ return Sizzle( expr, null, null, [node] ).length > 0;
+};
-var makeArray = function(array, results) {
- array = Array.prototype.slice.call( array, 0 );
+Sizzle.find = function( expr, context, isXML ) {
+ var set, i, len, match, type, left;
- if ( results ) {
- results.push.apply( results, array );
- return results;
+ if ( !expr ) {
+ return [];
}
-
- return array;
-};
-// Perform a simple check to determine if the browser is capable of
-// converting a NodeList to an array using builtin methods.
-// Also verifies that the returned array holds DOM nodes
-// (which is not the case in the Blackberry browser)
-try {
- Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;
+ for ( i = 0, len = Expr.order.length; i < len; i++ ) {
+ type = Expr.order[i];
-// Provide a fallback method if it does not work
-} catch(e){
- makeArray = function(array, results) {
- var ret = results || [], i = 0;
+ if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
+ left = match[1];
+ match.splice( 1, 1 );
- if ( toString.call(array) === "[object Array]" ) {
- Array.prototype.push.apply( ret, array );
- } else {
- if ( typeof array.length === "number" ) {
- for ( var l = array.length; i < l; i++ ) {
- ret.push( array[i] );
- }
- } else {
- for ( ; array[i]; i++ ) {
- ret.push( array[i] );
+ if ( left.substr( left.length - 1 ) !== "\\" ) {
+ match[1] = (match[1] || "").replace( rBackslash, "" );
+ set = Expr.find[ type ]( match, context, isXML );
+
+ if ( set != null ) {
+ expr = expr.replace( Expr.match[ type ], "" );
+ break;
}
}
}
+ }
- return ret;
- };
-}
+ if ( !set ) {
+ set = typeof context.getElementsByTagName !== "undefined" ?
+ context.getElementsByTagName( "*" ) :
+ [];
+ }
-var sortOrder;
+ return { set: set, expr: expr };
+};
-if ( document.documentElement.compareDocumentPosition ) {
- sortOrder = function( a, b ) {
- if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {
- if ( a == b ) {
- hasDuplicate = true;
+Sizzle.filter = function( expr, set, inplace, not ) {
+ var match, anyFound,
+ type, found, item, filter, left,
+ i, pass,
+ old = expr,
+ result = [],
+ curLoop = set,
+ isXMLFilter = set && set[0] && Sizzle.isXML( set[0] );
+
+ while ( expr && set.length ) {
+ for ( type in Expr.filter ) {
+ if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {
+ filter = Expr.filter[ type ];
+ left = match[1];
+
+ anyFound = false;
+
+ match.splice(1,1);
+
+ if ( left.substr( left.length - 1 ) === "\\" ) {
+ continue;
+ }
+
+ if ( curLoop === result ) {
+ result = [];
+ }
+
+ if ( Expr.preFilter[ type ] ) {
+ match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
+
+ if ( !match ) {
+ anyFound = found = true;
+
+ } else if ( match === true ) {
+ continue;
+ }
+ }
+
+ if ( match ) {
+ for ( i = 0; (item = curLoop[i]) != null; i++ ) {
+ if ( item ) {
+ found = filter( item, match, i, curLoop );
+ pass = not ^ found;
+
+ if ( inplace && found != null ) {
+ if ( pass ) {
+ anyFound = true;
+
+ } else {
+ curLoop[i] = false;
+ }
+
+ } else if ( pass ) {
+ result.push( item );
+ anyFound = true;
+ }
+ }
+ }
+ }
+
+ if ( found !== undefined ) {
+ if ( !inplace ) {
+ curLoop = result;
+ }
+
+ expr = expr.replace( Expr.match[ type ], "" );
+
+ if ( !anyFound ) {
+ return [];
+ }
+
+ break;
+ }
}
- return a.compareDocumentPosition ? -1 : 1;
}
- var ret = a.compareDocumentPosition(b) & 4 ? -1 : a === b ? 0 : 1;
- if ( ret === 0 ) {
- hasDuplicate = true;
- }
- return ret;
- };
-} else if ( "sourceIndex" in document.documentElement ) {
- sortOrder = function( a, b ) {
- if ( !a.sourceIndex || !b.sourceIndex ) {
- if ( a == b ) {
- hasDuplicate = true;
+ // Improper expression
+ if ( expr === old ) {
+ if ( anyFound == null ) {
+ Sizzle.error( expr );
+
+ } else {
+ break;
}
- return a.sourceIndex ? -1 : 1;
}
- var ret = a.sourceIndex - b.sourceIndex;
- if ( ret === 0 ) {
- hasDuplicate = true;
+ old = expr;
+ }
+
+ return curLoop;
+};
+
+Sizzle.error = function( msg ) {
+ throw new Error( "Syntax error, unrecognized expression: " + msg );
+};
+
+var getText = Sizzle.getText = function( elem ) {
+ var i, node,
+ nodeType = elem.nodeType,
+ ret = "";
+
+ if ( nodeType ) {
+ if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
+ // Use textContent || innerText for elements
+ if ( typeof elem.textContent === 'string' ) {
+ return elem.textContent;
+ } else if ( typeof elem.innerText === 'string' ) {
+ // Replace IE's carriage returns
+ return elem.innerText.replace( rReturn, '' );
+ } else {
+ // Traverse it's children
+ for ( elem = elem.firstChild; elem; elem = elem.nextSibling) {
+ ret += getText( elem );
+ }
+ }
+ } else if ( nodeType === 3 || nodeType === 4 ) {
+ return elem.nodeValue;
}
- return ret;
- };
-} else if ( document.createRange ) {
- sortOrder = function( a, b ) {
- if ( !a.ownerDocument || !b.ownerDocument ) {
- if ( a == b ) {
- hasDuplicate = true;
+ } else {
+
+ // If no nodeType, this is expected to be an array
+ for ( i = 0; (node = elem[i]); i++ ) {
+ // Do not traverse comment nodes
+ if ( node.nodeType !== 8 ) {
+ ret += getText( node );
}
- return a.ownerDocument ? -1 : 1;
}
+ }
+ return ret;
+};
- var aRange = a.ownerDocument.createRange(), bRange = b.ownerDocument.createRange();
- aRange.setStart(a, 0);
- aRange.setEnd(a, 0);
- bRange.setStart(b, 0);
- bRange.setEnd(b, 0);
- var ret = aRange.compareBoundaryPoints(Range.START_TO_END, bRange);
- if ( ret === 0 ) {
- hasDuplicate = true;
- }
- return ret;
- };
-}
+var Expr = Sizzle.selectors = {
+ order: [ "ID", "NAME", "TAG" ],
-// Utility function for retreiving the text value of an array of DOM nodes
-Sizzle.getText = function( elems ) {
- var ret = "", elem;
+ match: {
+ ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
+ CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
+ NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
+ ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
+ TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,
+ CHILD: /:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,
+ POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,
+ PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/
+ },
- for ( var i = 0; elems[i]; i++ ) {
- elem = elems[i];
+ leftMatch: {},
- // Get the text from text nodes and CDATA nodes
- if ( elem.nodeType === 3 || elem.nodeType === 4 ) {
- ret += elem.nodeValue;
+ attrMap: {
+ "class": "className",
+ "for": "htmlFor"
+ },
- // Traverse everything else, except comment nodes
- } else if ( elem.nodeType !== 8 ) {
- ret += Sizzle.getText( elem.childNodes );
+ attrHandle: {
+ href: function( elem ) {
+ return elem.getAttribute( "href" );
+ },
+ type: function( elem ) {
+ return elem.getAttribute( "type" );
}
- }
+ },
- return ret;
-};
+ relative: {
+ "+": function(checkSet, part){
+ var isPartStr = typeof part === "string",
+ isTag = isPartStr && !rNonWord.test( part ),
+ isPartStrNotTag = isPartStr && !isTag;
-// Check to see if the browser returns elements by name when
-// querying by getElementById (and provide a workaround)
-(function(){
- // We're going to inject a fake input element with a specified name
- var form = document.createElement("div"),
- id = "script" + (new Date()).getTime();
- form.innerHTML = "<a name='" + id + "'/>";
+ if ( isTag ) {
+ part = part.toLowerCase();
+ }
- // Inject it into the root element, check its status, and remove it quickly
- var root = document.documentElement;
- root.insertBefore( form, root.firstChild );
+ for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
+ if ( (elem = checkSet[i]) ) {
+ while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
- // The workaround has to do additional checks after a getElementById
- // Which slows things down for other browsers (hence the branching)
- if ( document.getElementById( id ) ) {
- Expr.find.ID = function(match, context, isXML){
- if ( typeof context.getElementById !== "undefined" && !isXML ) {
- var m = context.getElementById(match[1]);
- return m ? m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ? [m] : undefined : [];
+ checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?
+ elem || false :
+ elem === part;
+ }
}
- };
- Expr.filter.ID = function(elem, match){
- var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
- return elem.nodeType === 1 && node && node.nodeValue === match;
- };
- }
+ if ( isPartStrNotTag ) {
+ Sizzle.filter( part, checkSet, true );
+ }
+ },
- root.removeChild( form );
- root = form = null; // release memory in IE
-})();
+ ">": function( checkSet, part ) {
+ var elem,
+ isPartStr = typeof part === "string",
+ i = 0,
+ l = checkSet.length;
-(function(){
- // Check to see if the browser returns only elements
- // when doing getElementsByTagName("*")
+ if ( isPartStr && !rNonWord.test( part ) ) {
+ part = part.toLowerCase();
- // Create a fake element
- var div = document.createElement("div");
- div.appendChild( document.createComment("") );
+ for ( ; i < l; i++ ) {
+ elem = checkSet[i];
- // Make sure no comments are found
- if ( div.getElementsByTagName("*").length > 0 ) {
- Expr.find.TAG = function(match, context){
- var results = context.getElementsByTagName(match[1]);
+ if ( elem ) {
+ var parent = elem.parentNode;
+ checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;
+ }
+ }
- // Filter out possible comments
- if ( match[1] === "*" ) {
- var tmp = [];
+ } else {
+ for ( ; i < l; i++ ) {
+ elem = checkSet[i];
- for ( var i = 0; results[i]; i++ ) {
- if ( results[i].nodeType === 1 ) {
- tmp.push( results[i] );
+ if ( elem ) {
+ checkSet[i] = isPartStr ?
+ elem.parentNode :
+ elem.parentNode === part;
}
}
- results = tmp;
+ if ( isPartStr ) {
+ Sizzle.filter( part, checkSet, true );
+ }
}
+ },
- return results;
- };
- }
-
- // Check to see if an attribute returns normalized href attributes
- div.innerHTML = "<a href='#'></a>";
- if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
- div.firstChild.getAttribute("href") !== "#" ) {
- Expr.attrHandle.href = function(elem){
- return elem.getAttribute("href", 2);
- };
- }
+ "": function(checkSet, part, isXML){
+ var nodeCheck,
+ doneName = done++,
+ checkFn = dirCheck;
- div = null; // release memory in IE
-})();
+ if ( typeof part === "string" && !rNonWord.test( part ) ) {
+ part = part.toLowerCase();
+ nodeCheck = part;
+ checkFn = dirNodeCheck;
+ }
-if ( document.querySelectorAll ) {
- (function(){
- var oldSizzle = Sizzle, div = document.createElement("div");
- div.innerHTML = "<p class='TEST'></p>";
+ checkFn( "parentNode", part, doneName, checkSet, nodeCheck, isXML );
+ },
- // Safari can't handle uppercase or unicode characters when
- // in quirks mode.
- if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
- return;
- }
-
- Sizzle = function(query, context, extra, seed){
- context = context || document;
+ "~": function( checkSet, part, isXML ) {
+ var nodeCheck,
+ doneName = done++,
+ checkFn = dirCheck;
- // Only use querySelectorAll on non-XML documents
- // (ID selectors don't work in non-HTML documents)
- if ( !seed && context.nodeType === 9 && !Sizzle.isXML(context) ) {
- try {
- return makeArray( context.querySelectorAll(query), extra );
- } catch(e){}
+ if ( typeof part === "string" && !rNonWord.test( part ) ) {
+ part = part.toLowerCase();
+ nodeCheck = part;
+ checkFn = dirNodeCheck;
}
-
- return oldSizzle(query, context, extra, seed);
- };
- for ( var prop in oldSizzle ) {
- Sizzle[ prop ] = oldSizzle[ prop ];
+ checkFn( "previousSibling", part, doneName, checkSet, nodeCheck, isXML );
}
+ },
- div = null; // release memory in IE
- })();
-}
-
-(function(){
- var div = document.createElement("div");
+ find: {
+ ID: function( match, context, isXML ) {
+ if ( typeof context.getElementById !== "undefined" && !isXML ) {
+ var m = context.getElementById(match[1]);
+ // Check parentNode to catch when Blackberry 4.6 returns
+ // nodes that are no longer in the document #6963
+ return m && m.parentNode ? [m] : [];
+ }
+ },
- div.innerHTML = "<div class='test e'></div><div class='test'></div>";
+ NAME: function( match, context ) {
+ if ( typeof context.getElementsByName !== "undefined" ) {
+ var ret = [],
+ results = context.getElementsByName( match[1] );
- // Opera can't find a second classname (in 9.6)
- // Also, make sure that getElementsByClassName actually exists
- if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) {
- return;
- }
+ for ( var i = 0, l = results.length; i < l; i++ ) {
+ if ( results[i].getAttribute("name") === match[1] ) {
+ ret.push( results[i] );
+ }
+ }
- // Safari caches class attributes, doesn't catch changes (in 3.2)
- div.lastChild.className = "e";
+ return ret.length === 0 ? null : ret;
+ }
+ },
- if ( div.getElementsByClassName("e").length === 1 ) {
- return;
- }
-
- Expr.order.splice(1, 0, "CLASS");
- Expr.find.CLASS = function(match, context, isXML) {
- if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
- return context.getElementsByClassName(match[1]);
+ TAG: function( match, context ) {
+ if ( typeof context.getElementsByTagName !== "undefined" ) {
+ return context.getElementsByTagName( match[1] );
+ }
}
- };
-
- div = null; // release memory in IE
-})();
-
-function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
- var elem = checkSet[i];
- if ( elem ) {
- elem = elem[dir];
- var match = false;
+ },
+ preFilter: {
+ CLASS: function( match, curLoop, inplace, result, not, isXML ) {
+ match = " " + match[1].replace( rBackslash, "" ) + " ";
- while ( elem ) {
- if ( elem.sizcache === doneName ) {
- match = checkSet[elem.sizset];
- break;
- }
+ if ( isXML ) {
+ return match;
+ }
- if ( elem.nodeType === 1 && !isXML ){
- elem.sizcache = doneName;
- elem.sizset = i;
- }
+ for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
+ if ( elem ) {
+ if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) {
+ if ( !inplace ) {
+ result.push( elem );
+ }
- if ( elem.nodeName.toLowerCase() === cur ) {
- match = elem;
- break;
+ } else if ( inplace ) {
+ curLoop[i] = false;
+ }
}
-
- elem = elem[dir];
}
- checkSet[i] = match;
- }
- }
-}
+ return false;
+ },
-function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
- var elem = checkSet[i];
- if ( elem ) {
- elem = elem[dir];
- var match = false;
+ ID: function( match ) {
+ return match[1].replace( rBackslash, "" );
+ },
- while ( elem ) {
- if ( elem.sizcache === doneName ) {
- match = checkSet[elem.sizset];
- break;
+ TAG: function( match, curLoop ) {
+ return match[1].replace( rBackslash, "" ).toLowerCase();
+ },
+
+ CHILD: function( match ) {
+ if ( match[1] === "nth" ) {
+ if ( !match[2] ) {
+ Sizzle.error( match[0] );
}
- if ( elem.nodeType === 1 ) {
- if ( !isXML ) {
- elem.sizcache = doneName;
- elem.sizset = i;
- }
- if ( typeof cur !== "string" ) {
- if ( elem === cur ) {
- match = true;
- break;
- }
+ match[2] = match[2].replace(/^\+|\s*/g, '');
- } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
- match = elem;
- break;
- }
- }
+ // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
+ var test = /(-?)(\d*)(?:n([+\-]?\d*))?/.exec(
+ match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||
+ !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
- elem = elem[dir];
+ // calculate the numbers (first)n+(last) including if they are negative
+ match[2] = (test[1] + (test[2] || 1)) - 0;
+ match[3] = test[3] - 0;
+ }
+ else if ( match[2] ) {
+ Sizzle.error( match[0] );
}
- checkSet[i] = match;
- }
- }
-}
-
-Sizzle.contains = document.compareDocumentPosition ? function(a, b){
- return !!(a.compareDocumentPosition(b) & 16);
-} : function(a, b){
- return a !== b && (a.contains ? a.contains(b) : true);
-};
+ // TODO: Move to normal caching system
+ match[0] = done++;
-Sizzle.isXML = function(elem){
- // documentElement is verified for cases where it doesn't yet exist
- // (such as loading iframes in IE - #4833)
- var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;
- return documentElement ? documentElement.nodeName !== "HTML" : false;
-};
+ return match;
+ },
-var posProcess = function(selector, context){
- var tmpSet = [], later = "", match,
- root = context.nodeType ? [context] : context;
+ ATTR: function( match, curLoop, inplace, result, not, isXML ) {
+ var name = match[1] = match[1].replace( rBackslash, "" );
- // Position selectors must be done after the filter
- // And so must :not(positional) so we move all PSEUDOs to the end
- while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
- later += match[0];
- selector = selector.replace( Expr.match.PSEUDO, "" );
- }
+ if ( !isXML && Expr.attrMap[name] ) {
+ match[1] = Expr.attrMap[name];
+ }
- selector = Expr.relative[selector] ? selector + "*" : selector;
+ // Handle if an un-quoted value was used
+ match[4] = ( match[4] || match[5] || "" ).replace( rBackslash, "" );
- for ( var i = 0, l = root.length; i < l; i++ ) {
- Sizzle( selector, root[i], tmpSet );
- }
+ if ( match[2] === "~=" ) {
+ match[4] = " " + match[4] + " ";
+ }
- return Sizzle.filter( later, tmpSet );
-};
+ return match;
+ },
-// EXPOSE
+ PSEUDO: function( match, curLoop, inplace, result, not ) {
+ if ( match[1] === "not" ) {
+ // If we're dealing with a complex expression, or a simple one
+ if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
+ match[3] = Sizzle(match[3], null, null, curLoop);
-window.tinymce.dom.Sizzle = Sizzle;
+ } else {
+ var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
-})();
+ if ( !inplace ) {
+ result.push.apply( result, ret );
+ }
+ return false;
+ }
-(function(tinymce) {
- // Shorten names
- var each = tinymce.each, DOM = tinymce.DOM, isIE = tinymce.isIE, isWebKit = tinymce.isWebKit, Event;
+ } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
+ return true;
+ }
- tinymce.create('tinymce.dom.EventUtils', {
- EventUtils : function() {
- this.inits = [];
- this.events = [];
+ return match;
},
- add : function(o, n, f, s) {
- var cb, t = this, el = t.events, r;
-
- if (n instanceof Array) {
- r = [];
+ POS: function( match ) {
+ match.unshift( true );
- each(n, function(n) {
- r.push(t.add(o, n, f, s));
- });
+ return match;
+ }
+ },
- return r;
- }
+ filters: {
+ enabled: function( elem ) {
+ return elem.disabled === false && elem.type !== "hidden";
+ },
- // Handle array
- if (o && o.hasOwnProperty && o instanceof Array) {
- r = [];
+ disabled: function( elem ) {
+ return elem.disabled === true;
+ },
- each(o, function(o) {
- o = DOM.get(o);
- r.push(t.add(o, n, f, s));
- });
+ checked: function( elem ) {
+ return elem.checked === true;
+ },
- return r;
+ selected: function( elem ) {
+ // Accessing this property makes selected-by-default
+ // options in Safari work properly
+ if ( elem.parentNode ) {
+ elem.parentNode.selectedIndex;
}
- o = DOM.get(o);
+ return elem.selected === true;
+ },
+
+ parent: function( elem ) {
+ return !!elem.firstChild;
+ },
- if (!o)
- return;
+ empty: function( elem ) {
+ return !elem.firstChild;
+ },
- // Setup event callback
- cb = function(e) {
- // Is all events disabled
- if (t.disabled)
- return;
+ has: function( elem, i, match ) {
+ return !!Sizzle( match[3], elem ).length;
+ },
- e = e || window.event;
+ header: function( elem ) {
+ return (/h\d/i).test( elem.nodeName );
+ },
- // Patch in target, preventDefault and stopPropagation in IE it's W3C valid
- if (e && isIE) {
- if (!e.target)
- e.target = e.srcElement;
+ text: function( elem ) {
+ var attr = elem.getAttribute( "type" ), type = elem.type;
+ // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc)
+ // use getAttribute instead to test this case
+ return elem.nodeName.toLowerCase() === "input" && "text" === type && ( attr === type || attr === null );
+ },
- // Patch in preventDefault, stopPropagation methods for W3C compatibility
- tinymce.extend(e, t._stoppers);
- }
+ radio: function( elem ) {
+ return elem.nodeName.toLowerCase() === "input" && "radio" === elem.type;
+ },
- if (!s)
- return f(e);
+ checkbox: function( elem ) {
+ return elem.nodeName.toLowerCase() === "input" && "checkbox" === elem.type;
+ },
- return f.call(s, e);
- };
+ file: function( elem ) {
+ return elem.nodeName.toLowerCase() === "input" && "file" === elem.type;
+ },
- if (n == 'unload') {
- tinymce.unloads.unshift({func : cb});
- return cb;
- }
+ password: function( elem ) {
+ return elem.nodeName.toLowerCase() === "input" && "password" === elem.type;
+ },
- if (n == 'init') {
- if (t.domLoaded)
- cb();
- else
- t.inits.push(cb);
+ submit: function( elem ) {
+ var name = elem.nodeName.toLowerCase();
+ return (name === "input" || name === "button") && "submit" === elem.type;
+ },
- return cb;
- }
+ image: function( elem ) {
+ return elem.nodeName.toLowerCase() === "input" && "image" === elem.type;
+ },
- // Store away listener reference
- el.push({
- obj : o,
- name : n,
- func : f,
- cfunc : cb,
- scope : s
- });
+ reset: function( elem ) {
+ var name = elem.nodeName.toLowerCase();
+ return (name === "input" || name === "button") && "reset" === elem.type;
+ },
- t._add(o, n, cb);
+ button: function( elem ) {
+ var name = elem.nodeName.toLowerCase();
+ return name === "input" && "button" === elem.type || name === "button";
+ },
- return f;
+ input: function( elem ) {
+ return (/input|select|textarea|button/i).test( elem.nodeName );
},
- remove : function(o, n, f) {
- var t = this, a = t.events, s = false, r;
+ focus: function( elem ) {
+ return elem === elem.ownerDocument.activeElement;
+ }
+ },
+ setFilters: {
+ first: function( elem, i ) {
+ return i === 0;
+ },
- // Handle array
- if (o && o.hasOwnProperty && o instanceof Array) {
- r = [];
+ last: function( elem, i, match, array ) {
+ return i === array.length - 1;
+ },
- each(o, function(o) {
- o = DOM.get(o);
- r.push(t.remove(o, n, f));
- });
+ even: function( elem, i ) {
+ return i % 2 === 0;
+ },
- return r;
- }
+ odd: function( elem, i ) {
+ return i % 2 === 1;
+ },
- o = DOM.get(o);
+ lt: function( elem, i, match ) {
+ return i < match[3] - 0;
+ },
- each(a, function(e, i) {
- if (e.obj == o && e.name == n && (!f || (e.func == f || e.cfunc == f))) {
- a.splice(i, 1);
- t._remove(o, n, e.cfunc);
- s = true;
- return false;
- }
- });
+ gt: function( elem, i, match ) {
+ return i > match[3] - 0;
+ },
- return s;
+ nth: function( elem, i, match ) {
+ return match[3] - 0 === i;
},
- clear : function(o) {
- var t = this, a = t.events, i, e;
+ eq: function( elem, i, match ) {
+ return match[3] - 0 === i;
+ }
+ },
+ filter: {
+ PSEUDO: function( elem, match, i, array ) {
+ var name = match[1],
+ filter = Expr.filters[ name ];
+
+ if ( filter ) {
+ return filter( elem, i, match, array );
- if (o) {
- o = DOM.get(o);
+ } else if ( name === "contains" ) {
+ return (elem.textContent || elem.innerText || getText([ elem ]) || "").indexOf(match[3]) >= 0;
- for (i = a.length - 1; i >= 0; i--) {
- e = a[i];
+ } else if ( name === "not" ) {
+ var not = match[3];
- if (e.obj === o) {
- t._remove(e.obj, e.name, e.cfunc);
- e.obj = e.cfunc = null;
- a.splice(i, 1);
+ for ( var j = 0, l = not.length; j < l; j++ ) {
+ if ( not[j] === elem ) {
+ return false;
}
}
+
+ return true;
+
+ } else {
+ Sizzle.error( name );
}
},
- cancel : function(e) {
- if (!e)
- return false;
+ CHILD: function( elem, match ) {
+ var first, last,
+ doneName, parent, cache,
+ count, diff,
+ type = match[1],
+ node = elem;
- this.stop(e);
+ switch ( type ) {
+ case "only":
+ case "first":
+ while ( (node = node.previousSibling) ) {
+ if ( node.nodeType === 1 ) {
+ return false;
+ }
+ }
- return this.prevent(e);
- },
+ if ( type === "first" ) {
+ return true;
+ }
- stop : function(e) {
- if (e.stopPropagation)
- e.stopPropagation();
- else
- e.cancelBubble = true;
+ node = elem;
- return false;
- },
+ /* falls through */
+ case "last":
+ while ( (node = node.nextSibling) ) {
+ if ( node.nodeType === 1 ) {
+ return false;
+ }
+ }
- prevent : function(e) {
- if (e.preventDefault)
- e.preventDefault();
- else
- e.returnValue = false;
+ return true;
- return false;
- },
+ case "nth":
+ first = match[2];
+ last = match[3];
- destroy : function() {
- var t = this;
+ if ( first === 1 && last === 0 ) {
+ return true;
+ }
- each(t.events, function(e, i) {
- t._remove(e.obj, e.name, e.cfunc);
- e.obj = e.cfunc = null;
- });
+ doneName = match[0];
+ parent = elem.parentNode;
- t.events = [];
- t = null;
- },
+ if ( parent && (parent[ expando ] !== doneName || !elem.nodeIndex) ) {
+ count = 0;
- _add : function(o, n, f) {
- if (o.attachEvent)
- o.attachEvent('on' + n, f);
- else if (o.addEventListener)
- o.addEventListener(n, f, false);
- else
- o['on' + n] = f;
- },
+ for ( node = parent.firstChild; node; node = node.nextSibling ) {
+ if ( node.nodeType === 1 ) {
+ node.nodeIndex = ++count;
+ }
+ }
- _remove : function(o, n, f) {
- if (o) {
- try {
- if (o.detachEvent)
- o.detachEvent('on' + n, f);
- else if (o.removeEventListener)
- o.removeEventListener(n, f, false);
- else
- o['on' + n] = null;
- } catch (ex) {
- // Might fail with permission denined on IE so we just ignore that
- }
+ parent[ expando ] = doneName;
+ }
+
+ diff = elem.nodeIndex - last;
+
+ if ( first === 0 ) {
+ return diff === 0;
+
+ } else {
+ return ( diff % first === 0 && diff / first >= 0 );
+ }
}
},
- _pageInit : function(win) {
- var t = this;
+ ID: function( elem, match ) {
+ return elem.nodeType === 1 && elem.getAttribute("id") === match;
+ },
- // Keep it from running more than once
- if (t.domLoaded)
- return;
+ TAG: function( elem, match ) {
+ return (match === "*" && elem.nodeType === 1) || !!elem.nodeName && elem.nodeName.toLowerCase() === match;
+ },
- t.domLoaded = true;
+ CLASS: function( elem, match ) {
+ return (" " + (elem.className || elem.getAttribute("class")) + " ")
+ .indexOf( match ) > -1;
+ },
- each(t.inits, function(c) {
- c();
- });
+ ATTR: function( elem, match ) {
+ var name = match[1],
+ result = Sizzle.attr ?
+ Sizzle.attr( elem, name ) :
+ Expr.attrHandle[ name ] ?
+ Expr.attrHandle[ name ]( elem ) :
+ elem[ name ] != null ?
+ elem[ name ] :
+ elem.getAttribute( name ),
+ value = result + "",
+ type = match[2],
+ check = match[4];
- t.inits = [];
+ return result == null ?
+ type === "!=" :
+ !type && Sizzle.attr ?
+ result != null :
+ type === "=" ?
+ value === check :
+ type === "*=" ?
+ value.indexOf(check) >= 0 :
+ type === "~=" ?
+ (" " + value + " ").indexOf(check) >= 0 :
+ !check ?
+ value && result !== false :
+ type === "!=" ?
+ value !== check :
+ type === "^=" ?
+ value.indexOf(check) === 0 :
+ type === "$=" ?
+ value.substr(value.length - check.length) === check :
+ type === "|=" ?
+ value === check || value.substr(0, check.length + 1) === check + "-" :
+ false;
},
- _wait : function(win) {
- var t = this, doc = win.document;
+ POS: function( elem, match, i, array ) {
+ var name = match[2],
+ filter = Expr.setFilters[ name ];
- // No need since the document is already loaded
- if (win.tinyMCE_GZ && tinyMCE_GZ.loaded) {
- t.domLoaded = 1;
- return;
+ if ( filter ) {
+ return filter( elem, i, match, array );
}
+ }
+ }
+};
- // Use IE method
- if (doc.attachEvent) {
- doc.attachEvent("onreadystatechange", function() {
- if (doc.readyState === "complete") {
- doc.detachEvent("onreadystatechange", arguments.callee);
- t._pageInit(win);
- }
- });
+var origPOS = Expr.match.POS,
+ fescape = function(all, num){
+ return "\\" + (num - 0 + 1);
+ };
- if (doc.documentElement.doScroll && win == win.top) {
- (function() {
- if (t.domLoaded)
- return;
+for ( var type in Expr.match ) {
+ Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) );
+ Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, fescape) );
+}
+// Expose origPOS
+// "global" as in regardless of relation to brackets/parens
+Expr.match.globalPOS = origPOS;
- try {
- // If IE is used, use the trick by Diego Perini
- // http://javascript.nwbox.com/IEContentLoaded/
- doc.documentElement.doScroll("left");
- } catch (ex) {
- setTimeout(arguments.callee, 0);
- return;
- }
+var makeArray = function( array, results ) {
+ array = Array.prototype.slice.call( array, 0 );
+
+ if ( results ) {
+ results.push.apply( results, array );
+ return results;
+ }
+
+ return array;
+};
+
+// Perform a simple check to determine if the browser is capable of
+// converting a NodeList to an array using builtin methods.
+// Also verifies that the returned array holds DOM nodes
+// (which is not the case in the Blackberry browser)
+try {
+ Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;
- t._pageInit(win);
- })();
- }
- } else if (doc.addEventListener) {
- t._add(win, 'DOMContentLoaded', function() {
- t._pageInit(win);
- });
- }
+// Provide a fallback method if it does not work
+} catch( e ) {
+ makeArray = function( array, results ) {
+ var i = 0,
+ ret = results || [];
- t._add(win, 'load', function() {
- t._pageInit(win);
- });
- },
+ if ( toString.call(array) === "[object Array]" ) {
+ Array.prototype.push.apply( ret, array );
- _stoppers : {
- preventDefault : function() {
- this.returnValue = false;
- },
+ } else {
+ if ( typeof array.length === "number" ) {
+ for ( var l = array.length; i < l; i++ ) {
+ ret.push( array[i] );
+ }
- stopPropagation : function() {
- this.cancelBubble = true;
+ } else {
+ for ( ; array[i]; i++ ) {
+ ret.push( array[i] );
+ }
}
}
- });
- Event = tinymce.dom.Event = new tinymce.dom.EventUtils();
+ return ret;
+ };
+}
- // Dispatch DOM content loaded event for IE and Safari
- Event._wait(window);
+var sortOrder, siblingCheck;
- tinymce.addUnload(function() {
- Event.destroy();
- });
-})(tinymce);
+if ( document.documentElement.compareDocumentPosition ) {
+ sortOrder = function( a, b ) {
+ if ( a === b ) {
+ hasDuplicate = true;
+ return 0;
+ }
-(function(tinymce) {
- tinymce.dom.Element = function(id, settings) {
- var t = this, dom, el;
+ if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {
+ return a.compareDocumentPosition ? -1 : 1;
+ }
- t.settings = settings = settings || {};
- t.id = id;
- t.dom = dom = settings.dom || tinymce.DOM;
+ return a.compareDocumentPosition(b) & 4 ? -1 : 1;
+ };
- // Only IE leaks DOM references, this is a lot faster
- if (!tinymce.isIE)
- el = dom.get(t.id);
+} else {
+ sortOrder = function( a, b ) {
+ // The nodes are identical, we can exit early
+ if ( a === b ) {
+ hasDuplicate = true;
+ return 0;
- tinymce.each(
- ('getPos,getRect,getParent,add,setStyle,getStyle,setStyles,' +
- 'setAttrib,setAttribs,getAttrib,addClass,removeClass,' +
- 'hasClass,getOuterHTML,setOuterHTML,remove,show,hide,' +
- 'isHidden,setHTML,get').split(/,/)
- , function(k) {
- t[k] = function() {
- var a = [id], i;
+ // Fallback to using sourceIndex (in IE) if it's available on both nodes
+ } else if ( a.sourceIndex && b.sourceIndex ) {
+ return a.sourceIndex - b.sourceIndex;
+ }
- for (i = 0; i < arguments.length; i++)
- a.push(arguments[i]);
+ var al, bl,
+ ap = [],
+ bp = [],
+ aup = a.parentNode,
+ bup = b.parentNode,
+ cur = aup;
- a = dom[k].apply(dom, a);
- t.update(k);
+ // If the nodes are siblings (or identical) we can do a quick check
+ if ( aup === bup ) {
+ return siblingCheck( a, b );
- return a;
- };
- });
+ // If no parents were found then the nodes are disconnected
+ } else if ( !aup ) {
+ return -1;
- tinymce.extend(t, {
- on : function(n, f, s) {
- return tinymce.dom.Event.add(t.id, n, f, s);
- },
+ } else if ( !bup ) {
+ return 1;
+ }
- getXY : function() {
- return {
- x : parseInt(t.getStyle('left')),
- y : parseInt(t.getStyle('top'))
- };
- },
+ // Otherwise they're somewhere else in the tree so we need
+ // to build up a full list of the parentNodes for comparison
+ while ( cur ) {
+ ap.unshift( cur );
+ cur = cur.parentNode;
+ }
- getSize : function() {
- var n = dom.get(t.id);
+ cur = bup;
- return {
- w : parseInt(t.getStyle('width') || n.clientWidth),
- h : parseInt(t.getStyle('height') || n.clientHeight)
- };
- },
+ while ( cur ) {
+ bp.unshift( cur );
+ cur = cur.parentNode;
+ }
- moveTo : function(x, y) {
- t.setStyles({left : x, top : y});
- },
+ al = ap.length;
+ bl = bp.length;
- moveBy : function(x, y) {
- var p = t.getXY();
+ // Start walking down the tree looking for a discrepancy
+ for ( var i = 0; i < al && i < bl; i++ ) {
+ if ( ap[i] !== bp[i] ) {
+ return siblingCheck( ap[i], bp[i] );
+ }
+ }
- t.moveTo(p.x + x, p.y + y);
- },
+ // We ended someplace up the tree so do a sibling check
+ return i === al ?
+ siblingCheck( a, bp[i], -1 ) :
+ siblingCheck( ap[i], b, 1 );
+ };
- resizeTo : function(w, h) {
- t.setStyles({width : w, height : h});
- },
+ siblingCheck = function( a, b, ret ) {
+ if ( a === b ) {
+ return ret;
+ }
- resizeBy : function(w, h) {
- var s = t.getSize();
+ var cur = a.nextSibling;
- t.resizeTo(s.w + w, s.h + h);
- },
+ while ( cur ) {
+ if ( cur === b ) {
+ return -1;
+ }
- update : function(k) {
- var b;
+ cur = cur.nextSibling;
+ }
- if (tinymce.isIE6 && settings.blocker) {
- k = k || '';
+ return 1;
+ };
+}
- // Ignore getters
- if (k.indexOf('get') === 0 || k.indexOf('has') === 0 || k.indexOf('is') === 0)
- return;
+// Check to see if the browser returns elements by name when
+// querying by getElementById (and provide a workaround)
+(function(){
+ // We're going to inject a fake input element with a specified name
+ var form = document.createElement("div"),
+ id = "script" + (new Date()).getTime(),
+ root = document.documentElement;
- // Remove blocker on remove
- if (k == 'remove') {
- dom.remove(t.blocker);
- return;
- }
+ form.innerHTML = "<a name='" + id + "'/>";
- if (!t.blocker) {
- t.blocker = dom.uniqueId();
- b = dom.add(settings.container || dom.getRoot(), 'iframe', {id : t.blocker, style : 'position:absolute;', frameBorder : 0, src : 'javascript:""'});
- dom.setStyle(b, 'opacity', 0);
- } else
- b = dom.get(t.blocker);
+ // Inject it into the root element, check its status, and remove it quickly
+ root.insertBefore( form, root.firstChild );
- dom.setStyles(b, {
- left : t.getStyle('left', 1),
- top : t.getStyle('top', 1),
- width : t.getStyle('width', 1),
- height : t.getStyle('height', 1),
- display : t.getStyle('display', 1),
- zIndex : parseInt(t.getStyle('zIndex', 1) || 0) - 1
- });
- }
+ // The workaround has to do additional checks after a getElementById
+ // Which slows things down for other browsers (hence the branching)
+ if ( document.getElementById( id ) ) {
+ Expr.find.ID = function( match, context, isXML ) {
+ if ( typeof context.getElementById !== "undefined" && !isXML ) {
+ var m = context.getElementById(match[1]);
+
+ return m ?
+ m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ?
+ [m] :
+ undefined :
+ [];
}
- });
- };
-})(tinymce);
+ };
-(function(tinymce) {
- function trimNl(s) {
- return s.replace(/[\n\r]+/g, '');
- };
+ Expr.filter.ID = function( elem, match ) {
+ var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
- // Shorten names
- var is = tinymce.is, isIE = tinymce.isIE, each = tinymce.each;
+ return elem.nodeType === 1 && node && node.nodeValue === match;
+ };
+ }
- tinymce.create('tinymce.dom.Selection', {
- Selection : function(dom, win, serializer) {
- var t = this;
+ root.removeChild( form );
- t.dom = dom;
- t.win = win;
- t.serializer = serializer;
+ // release memory in IE
+ root = form = null;
+})();
- // Add events
- each([
- 'onBeforeSetContent',
- 'onBeforeGetContent',
- 'onSetContent',
- 'onGetContent'
- ], function(e) {
- t[e] = new tinymce.util.Dispatcher(t);
- });
+(function(){
+ // Check to see if the browser returns only elements
+ // when doing getElementsByTagName("*")
- // No W3C Range support
- if (!t.win.getSelection)
- t.tridentSel = new tinymce.dom.TridentSelection(t);
+ // Create a fake element
+ var div = document.createElement("div");
+ div.appendChild( document.createComment("") );
- if (tinymce.isIE && dom.boxModel)
- this._fixIESelection();
+ // Make sure no comments are found
+ if ( div.getElementsByTagName("*").length > 0 ) {
+ Expr.find.TAG = function( match, context ) {
+ var results = context.getElementsByTagName( match[1] );
- // Prevent leaks
- tinymce.addUnload(t.destroy, t);
- },
+ // Filter out possible comments
+ if ( match[1] === "*" ) {
+ var tmp = [];
- getContent : function(s) {
- var t = this, r = t.getRng(), e = t.dom.create("body"), se = t.getSel(), wb, wa, n;
+ for ( var i = 0; results[i]; i++ ) {
+ if ( results[i].nodeType === 1 ) {
+ tmp.push( results[i] );
+ }
+ }
- s = s || {};
- wb = wa = '';
- s.get = true;
- s.format = s.format || 'html';
- t.onBeforeGetContent.dispatch(t, s);
+ results = tmp;
+ }
- if (s.format == 'text')
- return t.isCollapsed() ? '' : (r.text || (se.toString ? se.toString() : ''));
+ return results;
+ };
+ }
- if (r.cloneContents) {
- n = r.cloneContents();
+ // Check to see if an attribute returns normalized href attributes
+ div.innerHTML = "<a href='#'></a>";
- if (n)
- e.appendChild(n);
- } else if (is(r.item) || is(r.htmlText))
- e.innerHTML = r.item ? r.item(0).outerHTML : r.htmlText;
- else
- e.innerHTML = r.toString();
+ if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
+ div.firstChild.getAttribute("href") !== "#" ) {
- // Keep whitespace before and after
- if (/^\s/.test(e.innerHTML))
- wb = ' ';
+ Expr.attrHandle.href = function( elem ) {
+ return elem.getAttribute( "href", 2 );
+ };
+ }
- if (/\s+$/.test(e.innerHTML))
- wa = ' ';
+ // release memory in IE
+ div = null;
+})();
- s.getInner = true;
+if ( document.querySelectorAll ) {
+ (function(){
+ var oldSizzle = Sizzle,
+ div = document.createElement("div"),
+ id = "__sizzle__";
- s.content = t.isCollapsed() ? '' : wb + t.serializer.serialize(e, s) + wa;
- t.onGetContent.dispatch(t, s);
+ div.innerHTML = "<p class='TEST'></p>";
- return s.content;
- },
+ // Safari can't handle uppercase or unicode characters when
+ // in quirks mode.
+ if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
+ return;
+ }
- setContent : function(h, s) {
- var t = this, r = t.getRng(), c, d = t.win.document;
+ Sizzle = function( query, context, extra, seed ) {
+ context = context || document;
- s = s || {format : 'html'};
- s.set = true;
- h = s.content = t.dom.processHTML(h);
+ // Only use querySelectorAll on non-XML documents
+ // (ID selectors don't work in non-HTML documents)
+ if ( !seed && !Sizzle.isXML(context) ) {
+ // See if we find a selector to speed up
+ var match = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec( query );
+
+ if ( match && (context.nodeType === 1 || context.nodeType === 9) ) {
+ // Speed-up: Sizzle("TAG")
+ if ( match[1] ) {
+ return makeArray( context.getElementsByTagName( query ), extra );
+
+ // Speed-up: Sizzle(".CLASS")
+ } else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) {
+ return makeArray( context.getElementsByClassName( match[2] ), extra );
+ }
+ }
- // Dispatch before set content event
- t.onBeforeSetContent.dispatch(t, s);
- h = s.content;
+ if ( context.nodeType === 9 ) {
+ // Speed-up: Sizzle("body")
+ // The body element only exists once, optimize finding it
+ if ( query === "body" && context.body ) {
+ return makeArray( [ context.body ], extra );
+
+ // Speed-up: Sizzle("#ID")
+ } else if ( match && match[3] ) {
+ var elem = context.getElementById( match[3] );
+
+ // Check parentNode to catch when Blackberry 4.6 returns
+ // nodes that are no longer in the document #6963
+ if ( elem && elem.parentNode ) {
+ // Handle the case where IE and Opera return items
+ // by name instead of ID
+ if ( elem.id === match[3] ) {
+ return makeArray( [ elem ], extra );
+ }
- if (r.insertNode) {
- // Make caret marker since insertNode places the caret in the beginning of text after insert
- h += '<span id="__caret">_</span>';
+ } else {
+ return makeArray( [], extra );
+ }
+ }
- // Delete and insert new node
-
- if (r.startContainer == d && r.endContainer == d) {
- // WebKit will fail if the body is empty since the range is then invalid and it can't insert contents
- d.body.innerHTML = h;
- } else {
- r.deleteContents();
- if (d.body.childNodes.length == 0) {
- d.body.innerHTML = h;
+ try {
+ return makeArray( context.querySelectorAll(query), extra );
+ } catch(qsaError) {}
+
+ // qSA works strangely on Element-rooted queries
+ // We can work around this by specifying an extra ID on the root
+ // and working up from there (Thanks to Andrew Dupont for the technique)
+ // IE 8 doesn't work on object elements
+ } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
+ var oldContext = context,
+ old = context.getAttribute( "id" ),
+ nid = old || id,
+ hasParent = context.parentNode,
+ relativeHierarchySelector = /^\s*[+~]/.test( query );
+
+ if ( !old ) {
+ context.setAttribute( "id", nid );
} else {
- // createContextualFragment doesn't exists in IE 9 DOMRanges
- if (r.createContextualFragment) {
- r.insertNode(r.createContextualFragment(h));
- } else {
- // Fake createContextualFragment call in IE 9
- var frag = d.createDocumentFragment(), temp = d.createElement('div');
+ nid = nid.replace( /'/g, "\\$&" );
+ }
+ if ( relativeHierarchySelector && hasParent ) {
+ context = context.parentNode;
+ }
- frag.appendChild(temp);
- temp.outerHTML = h;
+ try {
+ if ( !relativeHierarchySelector || hasParent ) {
+ return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );
+ }
- r.insertNode(frag);
+ } catch(pseudoError) {
+ } finally {
+ if ( !old ) {
+ oldContext.removeAttribute( "id" );
}
}
}
+ }
- // Move to caret marker
- c = t.dom.get('__caret');
- // Make sure we wrap it compleatly, Opera fails with a simple select call
- r = d.createRange();
- r.setStartBefore(c);
- r.setEndBefore(c);
- t.setRng(r);
+ return oldSizzle(query, context, extra, seed);
+ };
- // Remove the caret position
- t.dom.remove('__caret');
- } else {
- if (r.item) {
- // Delete content and get caret text selection
- d.execCommand('Delete', false, null);
- r = t.getRng();
- }
+ for ( var prop in oldSizzle ) {
+ Sizzle[ prop ] = oldSizzle[ prop ];
+ }
- r.pasteHTML(h);
- }
+ // release memory in IE
+ div = null;
+ })();
+}
- // Dispatch set content event
- t.onSetContent.dispatch(t, s);
- },
+(function(){
+ var html = document.documentElement,
+ matches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector;
- getStart : function() {
- var rng = this.getRng(), startElement, parentElement, checkRng, node;
+ if ( matches ) {
+ // Check to see if it's possible to do matchesSelector
+ // on a disconnected node (IE 9 fails this)
+ var disconnectedMatch = !matches.call( document.createElement( "div" ), "div" ),
+ pseudoWorks = false;
- if (rng.duplicate || rng.item) {
- // Control selection, return first item
- if (rng.item)
- return rng.item(0);
+ try {
+ // This should fail with an exception
+ // Gecko does not error, returns false instead
+ matches.call( document.documentElement, "[test!='']:sizzle" );
- // Get start element
- checkRng = rng.duplicate();
- checkRng.collapse(1);
- startElement = checkRng.parentElement();
+ } catch( pseudoError ) {
+ pseudoWorks = true;
+ }
- // Check if range parent is inside the start element, then return the inner parent element
- // This will fix issues when a single element is selected, IE would otherwise return the wrong start element
- parentElement = node = rng.parentElement();
- while (node = node.parentNode) {
- if (node == startElement) {
- startElement = parentElement;
- break;
- }
- }
+ Sizzle.matchesSelector = function( node, expr ) {
+ // Make sure that attribute selectors are quoted
+ expr = expr.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']");
- // If start element is body element try to move to the first child if it exists
- if (startElement && startElement.nodeName == 'BODY')
- return startElement.firstChild || startElement;
+ if ( !Sizzle.isXML( node ) ) {
+ try {
+ if ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) {
+ var ret = matches.call( node, expr );
+
+ // IE 9's matchesSelector returns false on disconnected nodes
+ if ( ret || !disconnectedMatch ||
+ // As well, disconnected nodes are said to be in a document
+ // fragment in IE 9, so check for that
+ node.document && node.document.nodeType !== 11 ) {
+ return ret;
+ }
+ }
+ } catch(e) {}
+ }
- return startElement;
- } else {
- startElement = rng.startContainer;
+ return Sizzle(expr, null, null, [node]).length > 0;
+ };
+ }
+})();
- if (startElement.nodeType == 1 && startElement.hasChildNodes())
- startElement = startElement.childNodes[Math.min(startElement.childNodes.length - 1, rng.startOffset)];
+(function(){
+ var div = document.createElement("div");
- if (startElement && startElement.nodeType == 3)
- return startElement.parentNode;
+ div.innerHTML = "<div class='test e'></div><div class='test'></div>";
- return startElement;
- }
- },
+ // Opera can't find a second classname (in 9.6)
+ // Also, make sure that getElementsByClassName actually exists
+ if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) {
+ return;
+ }
- getEnd : function() {
- var t = this, r = t.getRng(), e, eo;
+ // Safari caches class attributes, doesn't catch changes (in 3.2)
+ div.lastChild.className = "e";
- if (r.duplicate || r.item) {
- if (r.item)
- return r.item(0);
+ if ( div.getElementsByClassName("e").length === 1 ) {
+ return;
+ }
- r = r.duplicate();
- r.collapse(0);
- e = r.parentElement();
+ Expr.order.splice(1, 0, "CLASS");
+ Expr.find.CLASS = function( match, context, isXML ) {
+ if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
+ return context.getElementsByClassName(match[1]);
+ }
+ };
- if (e && e.nodeName == 'BODY')
- return e.lastChild || e;
+ // release memory in IE
+ div = null;
+})();
- return e;
- } else {
- e = r.endContainer;
- eo = r.endOffset;
+function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
+ for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+ var elem = checkSet[i];
- if (e.nodeType == 1 && e.hasChildNodes())
- e = e.childNodes[eo > 0 ? eo - 1 : eo];
+ if ( elem ) {
+ var match = false;
- if (e && e.nodeType == 3)
- return e.parentNode;
+ elem = elem[dir];
- return e;
- }
- },
+ while ( elem ) {
+ if ( elem[ expando ] === doneName ) {
+ match = checkSet[elem.sizset];
+ break;
+ }
- getBookmark : function(type, normalized) {
- var t = this, dom = t.dom, rng, rng2, id, collapsed, name, element, index, chr = '\uFEFF', styles;
+ if ( elem.nodeType === 1 && !isXML ){
+ elem[ expando ] = doneName;
+ elem.sizset = i;
+ }
- function findIndex(name, element) {
- var index = 0;
+ if ( elem.nodeName.toLowerCase() === cur ) {
+ match = elem;
+ break;
+ }
- each(dom.select(name), function(node, i) {
- if (node == element)
- index = i;
- });
+ elem = elem[dir];
+ }
- return index;
- };
+ checkSet[i] = match;
+ }
+ }
+}
- if (type == 2) {
- function getLocation() {
- var rng = t.getRng(true), root = dom.getRoot(), bookmark = {};
+function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
+ for ( var i = 0, l = checkSet.length; i < l; i++ ) {
+ var elem = checkSet[i];
- function getPoint(rng, start) {
- var container = rng[start ? 'startContainer' : 'endContainer'],
- offset = rng[start ? 'startOffset' : 'endOffset'], point = [], node, childNodes, after = 0;
+ if ( elem ) {
+ var match = false;
- if (container.nodeType == 3) {
- if (normalized) {
- for (node = container.previousSibling; node && node.nodeType == 3; node = node.previousSibling)
- offset += node.nodeValue.length;
- }
+ elem = elem[dir];
- point.push(offset);
- } else {
- childNodes = container.childNodes;
+ while ( elem ) {
+ if ( elem[ expando ] === doneName ) {
+ match = checkSet[elem.sizset];
+ break;
+ }
- if (offset >= childNodes.length && childNodes.length) {
- after = 1;
- offset = Math.max(0, childNodes.length - 1);
- }
+ if ( elem.nodeType === 1 ) {
+ if ( !isXML ) {
+ elem[ expando ] = doneName;
+ elem.sizset = i;
+ }
- point.push(t.dom.nodeIndex(childNodes[offset], normalized) + after);
+ if ( typeof cur !== "string" ) {
+ if ( elem === cur ) {
+ match = true;
+ break;
}
- for (; container && container != root; container = container.parentNode)
- point.push(t.dom.nodeIndex(container, normalized));
+ } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
+ match = elem;
+ break;
+ }
+ }
- return point;
- };
+ elem = elem[dir];
+ }
- bookmark.start = getPoint(rng, true);
+ checkSet[i] = match;
+ }
+ }
+}
- if (!t.isCollapsed())
- bookmark.end = getPoint(rng);
+if ( document.documentElement.contains ) {
+ Sizzle.contains = function( a, b ) {
+ return a !== b && (a.contains ? a.contains(b) : true);
+ };
- return bookmark;
- };
+} else if ( document.documentElement.compareDocumentPosition ) {
+ Sizzle.contains = function( a, b ) {
+ return !!(a.compareDocumentPosition(b) & 16);
+ };
- return getLocation();
- }
+} else {
+ Sizzle.contains = function() {
+ return false;
+ };
+}
- // Handle simple range
- if (type)
- return {rng : t.getRng()};
+Sizzle.isXML = function( elem ) {
+ // documentElement is verified for cases where it doesn't yet exist
+ // (such as loading iframes in IE - #4833)
+ var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;
- rng = t.getRng();
- id = dom.uniqueId();
- collapsed = tinyMCE.activeEditor.selection.isCollapsed();
- styles = 'overflow:hidden;line-height:0px';
+ return documentElement ? documentElement.nodeName !== "HTML" : false;
+};
- // Explorer method
- if (rng.duplicate || rng.item) {
- // Text selection
- if (!rng.item) {
- rng2 = rng.duplicate();
+var posProcess = function( selector, context, seed ) {
+ var match,
+ tmpSet = [],
+ later = "",
+ root = context.nodeType ? [context] : context;
- // Insert start marker
- rng.collapse();
- rng.pasteHTML('<span _mce_type="bookmark" id="' + id + '_start" style="' + styles + '">' + chr + '</span>');
+ // Position selectors must be done after the filter
+ // And so must :not(positional) so we move all PSEUDOs to the end
+ while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
+ later += match[0];
+ selector = selector.replace( Expr.match.PSEUDO, "" );
+ }
- // Insert end marker
- if (!collapsed) {
- rng2.collapse(false);
- rng2.pasteHTML('<span _mce_type="bookmark" id="' + id + '_end" style="' + styles + '">' + chr + '</span>');
- }
- } else {
- // Control selection
- element = rng.item(0);
- name = element.nodeName;
+ selector = Expr.relative[selector] ? selector + "*" : selector;
- return {name : name, index : findIndex(name, element)};
- }
- } else {
- element = t.getNode();
- name = element.nodeName;
- if (name == 'IMG')
- return {name : name, index : findIndex(name, element)};
+ for ( var i = 0, l = root.length; i < l; i++ ) {
+ Sizzle( selector, root[i], tmpSet, seed );
+ }
- // W3C method
- rng2 = rng.cloneRange();
+ return Sizzle.filter( later, tmpSet );
+};
- // Insert end marker
- if (!collapsed) {
- rng2.collapse(false);
- rng2.insertNode(dom.create('span', {_mce_type : "bookmark", id : id + '_end', style : styles}, chr));
- }
+// EXPOSE
- rng.collapse(true);
- rng.insertNode(dom.create('span', {_mce_type : "bookmark", id : id + '_start', style : styles}, chr));
- }
+window.tinymce.dom.Sizzle = Sizzle;
- t.moveToBookmark({id : id, keep : 1});
+})();
- return {id : id};
- },
- moveToBookmark : function(bookmark) {
- var t = this, dom = t.dom, marker1, marker2, rng, root, startContainer, endContainer, startOffset, endOffset;
+(function(tinymce) {
+ tinymce.dom.Element = function(id, settings) {
+ var t = this, dom, el;
- // Clear selection cache
- if (t.tridentSel)
- t.tridentSel.destroy();
+ t.settings = settings = settings || {};
+ t.id = id;
+ t.dom = dom = settings.dom || tinymce.DOM;
- if (bookmark) {
- if (bookmark.start) {
- rng = dom.createRng();
- root = dom.getRoot();
+ // Only IE leaks DOM references, this is a lot faster
+ if (!tinymce.isIE)
+ el = dom.get(t.id);
- function setEndPoint(start) {
- var point = bookmark[start ? 'start' : 'end'], i, node, offset, children;
+ tinymce.each(
+ ('getPos,getRect,getParent,add,setStyle,getStyle,setStyles,' +
+ 'setAttrib,setAttribs,getAttrib,addClass,removeClass,' +
+ 'hasClass,getOuterHTML,setOuterHTML,remove,show,hide,' +
+ 'isHidden,setHTML,get').split(/,/), function(k) {
+ t[k] = function() {
+ var a = [id], i;
- if (point) {
- // Find container node
- for (node = root, i = point.length - 1; i >= 1; i--) {
- children = node.childNodes;
+ for (i = 0; i < arguments.length; i++)
+ a.push(arguments[i]);
- if (children.length)
- node = children[point[i]];
- }
+ a = dom[k].apply(dom, a);
+ t.update(k);
- // Set offset within container node
- if (start)
- rng.setStart(node, point[0]);
- else
- rng.setEnd(node, point[0]);
- }
+ return a;
};
+ }
+ );
- setEndPoint(true);
- setEndPoint();
+ tinymce.extend(t, {
+ on : function(n, f, s) {
+ return tinymce.dom.Event.add(t.id, n, f, s);
+ },
- t.setRng(rng);
- } else if (bookmark.id) {
- function restoreEndPoint(suffix) {
- var marker = dom.get(bookmark.id + '_' + suffix), node, idx, next, prev, keep = bookmark.keep;
+ getXY : function() {
+ return {
+ x : parseInt(t.getStyle('left')),
+ y : parseInt(t.getStyle('top'))
+ };
+ },
- if (marker) {
- node = marker.parentNode;
+ getSize : function() {
+ var n = dom.get(t.id);
- if (suffix == 'start') {
- if (!keep) {
- idx = dom.nodeIndex(marker);
- } else {
- node = marker.firstChild;
- idx = 1;
- }
+ return {
+ w : parseInt(t.getStyle('width') || n.clientWidth),
+ h : parseInt(t.getStyle('height') || n.clientHeight)
+ };
+ },
+
+ moveTo : function(x, y) {
+ t.setStyles({left : x, top : y});
+ },
- startContainer = endContainer = node;
- startOffset = endOffset = idx;
- } else {
- if (!keep) {
- idx = dom.nodeIndex(marker);
- } else {
- node = marker.firstChild;
- idx = 1;
- }
+ moveBy : function(x, y) {
+ var p = t.getXY();
- endContainer = node;
- endOffset = idx;
- }
+ t.moveTo(p.x + x, p.y + y);
+ },
- if (!keep) {
- prev = marker.previousSibling;
- next = marker.nextSibling;
+ resizeTo : function(w, h) {
+ t.setStyles({width : w, height : h});
+ },
- // Remove all marker text nodes
- each(tinymce.grep(marker.childNodes), function(node) {
- if (node.nodeType == 3)
- node.nodeValue = node.nodeValue.replace(/\uFEFF/g, '');
- });
+ resizeBy : function(w, h) {
+ var s = t.getSize();
- // Remove marker but keep children if for example contents where inserted into the marker
- // Also remove duplicated instances of the marker for example by a split operation or by WebKit auto split on paste feature
- while (marker = dom.get(bookmark.id + '_' + suffix))
- dom.remove(marker, 1);
-
- // If siblings are text nodes then merge them unless it's Opera since it some how removes the node
- // and we are sniffing since adding a lot of detection code for a browser with 3% of the market isn't worth the effort. Sorry, Opera but it's just a fact
- if (prev && next && prev.nodeType == next.nodeType && prev.nodeType == 3 && !tinymce.isOpera) {
- idx = prev.nodeValue.length;
- prev.appendData(next.nodeValue);
- dom.remove(next);
-
- if (suffix == 'start') {
- startContainer = endContainer = prev;
- startOffset = endOffset = idx;
- } else {
- endContainer = prev;
- endOffset = idx;
- }
- }
- }
- }
- };
+ t.resizeTo(s.w + w, s.h + h);
+ },
- function addBogus(node) {
- // Adds a bogus BR element for empty block elements
- // on non IE browsers just to have a place to put the caret
- if (!isIE && dom.isBlock(node) && !node.innerHTML)
- node.innerHTML = '<br _mce_bogus="1" />';
+ update : function(k) {
+ var b;
- return node;
- };
+ if (tinymce.isIE6 && settings.blocker) {
+ k = k || '';
- // Restore start/end points
- restoreEndPoint('start');
- restoreEndPoint('end');
+ // Ignore getters
+ if (k.indexOf('get') === 0 || k.indexOf('has') === 0 || k.indexOf('is') === 0)
+ return;
- if (startContainer) {
- rng = dom.createRng();
- rng.setStart(addBogus(startContainer), startOffset);
- rng.setEnd(addBogus(endContainer), endOffset);
- t.setRng(rng);
+ // Remove blocker on remove
+ if (k == 'remove') {
+ dom.remove(t.blocker);
+ return;
}
- } else if (bookmark.name) {
- t.select(dom.select(bookmark.name)[bookmark.index]);
- } else if (bookmark.rng)
- t.setRng(bookmark.rng);
- }
- },
-
- select : function(node, content) {
- var t = this, dom = t.dom, rng = dom.createRng(), idx;
- idx = dom.nodeIndex(node);
- rng.setStart(node.parentNode, idx);
- rng.setEnd(node.parentNode, idx + 1);
+ if (!t.blocker) {
+ t.blocker = dom.uniqueId();
+ b = dom.add(settings.container || dom.getRoot(), 'iframe', {id : t.blocker, style : 'position:absolute;', frameBorder : 0, src : 'javascript:""'});
+ dom.setStyle(b, 'opacity', 0);
+ } else
+ b = dom.get(t.blocker);
- // Find first/last text node or BR element
- if (content) {
- function setPoint(node, start) {
- var walker = new tinymce.dom.TreeWalker(node, node);
+ dom.setStyles(b, {
+ left : t.getStyle('left', 1),
+ top : t.getStyle('top', 1),
+ width : t.getStyle('width', 1),
+ height : t.getStyle('height', 1),
+ display : t.getStyle('display', 1),
+ zIndex : parseInt(t.getStyle('zIndex', 1) || 0) - 1
+ });
+ }
+ }
+ });
+ };
+})(tinymce);
- do {
- // Text node
- if (node.nodeType == 3 && tinymce.trim(node.nodeValue).length != 0) {
- if (start)
- rng.setStart(node, 0);
- else
- rng.setEnd(node, node.nodeValue.length);
+(function(tinymce) {
+ function trimNl(s) {
+ return s.replace(/[\n\r]+/g, '');
+ };
- return;
- }
+ // Shorten names
+ var is = tinymce.is, isIE = tinymce.isIE, each = tinymce.each, TreeWalker = tinymce.dom.TreeWalker;
- // BR element
- if (node.nodeName == 'BR') {
- if (start)
- rng.setStartBefore(node);
- else
- rng.setEndBefore(node);
+ tinymce.create('tinymce.dom.Selection', {
+ Selection : function(dom, win, serializer, editor) {
+ var t = this;
- return;
- }
- } while (node = (start ? walker.next() : walker.prev()));
- };
+ t.dom = dom;
+ t.win = win;
+ t.serializer = serializer;
+ t.editor = editor;
- setPoint(node, 1);
- setPoint(node);
- }
+ // Add events
+ each([
+ 'onBeforeSetContent',
- t.setRng(rng);
+ 'onBeforeGetContent',
- return node;
- },
+ 'onSetContent',
- isCollapsed : function() {
- var t = this, r = t.getRng(), s = t.getSel();
+ 'onGetContent'
+ ], function(e) {
+ t[e] = new tinymce.util.Dispatcher(t);
+ });
- if (!r || r.item)
- return false;
+ // No W3C Range support
+ if (!t.win.getSelection)
+ t.tridentSel = new tinymce.dom.TridentSelection(t);
- if (r.compareEndPoints)
- return r.compareEndPoints('StartToEnd', r) === 0;
+ if (tinymce.isIE && dom.boxModel)
+ this._fixIESelection();
- return !s || r.collapsed;
+ // Prevent leaks
+ tinymce.addUnload(t.destroy, t);
},
- collapse : function(b) {
- var t = this, r = t.getRng(), n;
-
- // Control range on IE
- if (r.item) {
- n = r.item(0);
- r = this.win.document.body.createTextRange();
- r.moveToElementText(n);
- }
-
- r.collapse(!!b);
+ setCursorLocation: function(node, offset) {
+ var t = this; var r = t.dom.createRng();
+ r.setStart(node, offset);
+ r.setEnd(node, offset);
t.setRng(r);
+ t.collapse(false);
},
+ getContent : function(s) {
+ var t = this, r = t.getRng(), e = t.dom.create("body"), se = t.getSel(), wb, wa, n;
- getSel : function() {
- var t = this, w = this.win;
+ s = s || {};
+ wb = wa = '';
+ s.get = true;
+ s.format = s.format || 'html';
+ s.forced_root_block = '';
+ t.onBeforeGetContent.dispatch(t, s);
- return w.getSelection ? w.getSelection() : w.document.selection;
- },
+ if (s.format == 'text')
+ return t.isCollapsed() ? '' : (r.text || (se.toString ? se.toString() : ''));
- getRng : function(w3c) {
- var t = this, s, r, elm, doc = t.win.document;
+ if (r.cloneContents) {
+ n = r.cloneContents();
- // Found tridentSel object then we need to use that one
- if (w3c && t.tridentSel)
- return t.tridentSel.getRangeAt(0);
+ if (n)
+ e.appendChild(n);
+ } else if (is(r.item) || is(r.htmlText)) {
+ // IE will produce invalid markup if elements are present that
+ // it doesn't understand like custom elements or HTML5 elements.
+ // Adding a BR in front of the contents and then remoiving it seems to fix it though.
+ e.innerHTML = '<br>' + (r.item ? r.item(0).outerHTML : r.htmlText);
+ e.removeChild(e.firstChild);
+ } else
+ e.innerHTML = r.toString();
- try {
- if (s = t.getSel())
- r = s.rangeCount > 0 ? s.getRangeAt(0) : (s.createRange ? s.createRange() : doc.createRange());
- } catch (ex) {
- // IE throws unspecified error here if TinyMCE is placed in a frame/iframe
- }
+ // Keep whitespace before and after
+ if (/^\s/.test(e.innerHTML))
+ wb = ' ';
- // We have W3C ranges and it's IE then fake control selection since IE9 doesn't handle that correctly yet
- if (tinymce.isIE && r.setStart && doc.selection.createRange().item) {
- elm = doc.selection.createRange().item(0);
- r = doc.createRange();
- r.setStartBefore(elm);
- r.setEndAfter(elm);
- }
+ if (/\s+$/.test(e.innerHTML))
+ wa = ' ';
- // No range found then create an empty one
- // This can occur when the editor is placed in a hidden container element on Gecko
- // Or on IE when there was an exception
- if (!r)
- r = doc.createRange ? doc.createRange() : doc.body.createTextRange();
+ s.getInner = true;
- if (t.selectedRange && t.explicitRange) {
- if (r.compareBoundaryPoints(r.START_TO_START, t.selectedRange) === 0 && r.compareBoundaryPoints(r.END_TO_END, t.selectedRange) === 0) {
- // Safari, Opera and Chrome only ever select text which causes the range to change.
- // This lets us use the originally set range if the selection hasn't been changed by the user.
- r = t.explicitRange;
- } else {
- t.selectedRange = null;
- t.explicitRange = null;
- }
- }
- return r;
- },
+ s.content = t.isCollapsed() ? '' : wb + t.serializer.serialize(e, s) + wa;
+ t.onGetContent.dispatch(t, s);
- setRng : function(r) {
- var s, t = this;
-
- if (!t.tridentSel) {
- s = t.getSel();
+ return s.content;
+ },
- if (s) {
- t.explicitRange = r;
- s.removeAllRanges();
- s.addRange(r);
- t.selectedRange = s.getRangeAt(0);
- }
- } else {
- // Is W3C Range
- if (r.cloneRange) {
- t.tridentSel.addRange(r);
- return;
- }
+ setContent : function(content, args) {
+ var self = this, rng = self.getRng(), caretNode, doc = self.win.document, frag, temp;
- // Is IE specific range
- try {
- r.select();
- } catch (ex) {
- // Needed for some odd IE bug #1843306
- }
- }
- },
+ args = args || {format : 'html'};
+ args.set = true;
+ content = args.content = content;
- setNode : function(n) {
- var t = this;
+ // Dispatch before set content event
+ if (!args.no_events)
+ self.onBeforeSetContent.dispatch(self, args);
- t.setContent(t.dom.getOuterHTML(n));
+ content = args.content;
- return n;
- },
+ if (rng.insertNode) {
+ // Make caret marker since insertNode places the caret in the beginning of text after insert
+ content += '<span id="__caret">_</span>';
- getNode : function() {
- var t = this, rng = t.getRng(), sel = t.getSel(), elm;
+ // Delete and insert new node
+ if (rng.startContainer == doc && rng.endContainer == doc) {
+ // WebKit will fail if the body is empty since the range is then invalid and it can't insert contents
+ doc.body.innerHTML = content;
+ } else {
+ rng.deleteContents();
- if (rng.setStart) {
- // Range maybe lost after the editor is made visible again
- if (!rng)
- return t.dom.getRoot();
+ if (doc.body.childNodes.length === 0) {
+ doc.body.innerHTML = content;
+ } else {
+ // createContextualFragment doesn't exists in IE 9 DOMRanges
+ if (rng.createContextualFragment) {
+ rng.insertNode(rng.createContextualFragment(content));
+ } else {
+ // Fake createContextualFragment call in IE 9
+ frag = doc.createDocumentFragment();
+ temp = doc.createElement('div');
- elm = rng.commonAncestorContainer;
+ frag.appendChild(temp);
+ temp.outerHTML = content;
- // Handle selection a image or other control like element such as anchors
- if (!rng.collapsed) {
- if (rng.startContainer == rng.endContainer) {
- if (rng.startOffset - rng.endOffset < 2) {
- if (rng.startContainer.hasChildNodes())
- elm = rng.startContainer.childNodes[rng.startOffset];
+ rng.insertNode(frag);
}
}
-
- // If the anchor node is a element instead of a text node then return this element
- if (tinymce.isWebKit && sel.anchorNode && sel.anchorNode.nodeType == 1)
- return sel.anchorNode.childNodes[sel.anchorOffset];
}
- if (elm && elm.nodeType == 3)
- return elm.parentNode;
+ // Move to caret marker
+ caretNode = self.dom.get('__caret');
- return elm;
- }
+ // Make sure we wrap it compleatly, Opera fails with a simple select call
+ rng = doc.createRange();
+ rng.setStartBefore(caretNode);
+ rng.setEndBefore(caretNode);
+ self.setRng(rng);
- return rng.item ? rng.item(0) : rng.parentElement();
- },
+ // Remove the caret position
+ self.dom.remove('__caret');
- getSelectedBlocks : function(st, en) {
- var t = this, dom = t.dom, sb, eb, n, bl = [];
+ try {
+ self.setRng(rng);
+ } catch (ex) {
+ // Might fail on Opera for some odd reason
+ }
+ } else {
+ if (rng.item) {
+ // Delete content and get caret text selection
+ doc.execCommand('Delete', false, null);
+ rng = self.getRng();
+ }
- sb = dom.getParent(st || t.getStart(), dom.isBlock);
- eb = dom.getParent(en || t.getEnd(), dom.isBlock);
+ // Explorer removes spaces from the beginning of pasted contents
+ if (/^\s+/.test(content)) {
+ rng.pasteHTML('<span id="__mce_tmp">_</span>' + content);
+ self.dom.remove('__mce_tmp');
+ } else
+ rng.pasteHTML(content);
+ }
- if (sb)
- bl.push(sb);
+ // Dispatch set content event
+ if (!args.no_events)
+ self.onSetContent.dispatch(self, args);
+ },
- if (sb && eb && sb != eb) {
- n = sb;
+ getStart : function() {
+ var self = this, rng = self.getRng(), startElement, parentElement, checkRng, node;
- while ((n = n.nextSibling) && n != eb) {
- if (dom.isBlock(n))
- bl.push(n);
+ if (rng.duplicate || rng.item) {
+ // Control selection, return first item
+ if (rng.item)
+ return rng.item(0);
+
+ // Get start element
+ checkRng = rng.duplicate();
+ checkRng.collapse(1);
+ startElement = checkRng.parentElement();
+ if (startElement.ownerDocument !== self.dom.doc) {
+ startElement = self.dom.getRoot();
}
- }
-
- if (eb && sb != eb)
- bl.push(eb);
- return bl;
- },
+ // Check if range parent is inside the start element, then return the inner parent element
+ // This will fix issues when a single element is selected, IE would otherwise return the wrong start element
+ parentElement = node = rng.parentElement();
+ while (node = node.parentNode) {
+ if (node == startElement) {
+ startElement = parentElement;
+ break;
+ }
+ }
- destroy : function(s) {
- var t = this;
+ return startElement;
+ } else {
+ startElement = rng.startContainer;
- t.win = null;
+ if (startElement.nodeType == 1 && startElement.hasChildNodes())
+ startElement = startElement.childNodes[Math.min(startElement.childNodes.length - 1, rng.startOffset)];
- if (t.tridentSel)
- t.tridentSel.destroy();
+ if (startElement && startElement.nodeType == 3)
+ return startElement.parentNode;
- // Manual destroy then remove unload handler
- if (!s)
- tinymce.removeUnload(t.destroy);
+ return startElement;
+ }
},
- // IE has an issue where you can't select/move the caret by clicking outside the body if the document is in standards mode
- _fixIESelection : function() {
- var dom = this.dom, doc = dom.doc, body = doc.body, started, startRng;
-
- // Make HTML element unselectable since we are going to handle selection by hand
- doc.documentElement.unselectable = true;
+ getEnd : function() {
+ var self = this, rng = self.getRng(), endElement, endOffset;
- // Return range from point or null if it failed
- function rngFromPoint(x, y) {
- var rng = body.createTextRange();
+ if (rng.duplicate || rng.item) {
+ if (rng.item)
+ return rng.item(0);
- try {
- rng.moveToPoint(x, y);
- } catch (ex) {
- // IE sometimes throws and exception, so lets just ignore it
- rng = null;
+ rng = rng.duplicate();
+ rng.collapse(0);
+ endElement = rng.parentElement();
+ if (endElement.ownerDocument !== self.dom.doc) {
+ endElement = self.dom.getRoot();
}
- return rng;
- };
+ if (endElement && endElement.nodeName == 'BODY')
+ return endElement.lastChild || endElement;
- // Fires while the selection is changing
- function selectionChange(e) {
- var pointRng;
+ return endElement;
+ } else {
+ endElement = rng.endContainer;
+ endOffset = rng.endOffset;
- // Check if the button is down or not
- if (e.button) {
- // Create range from mouse position
- pointRng = rngFromPoint(e.x, e.y);
+ if (endElement.nodeType == 1 && endElement.hasChildNodes())
+ endElement = endElement.childNodes[endOffset > 0 ? endOffset - 1 : endOffset];
- if (pointRng) {
- // Check if pointRange is before/after selection then change the endPoint
- if (pointRng.compareEndPoints('StartToStart', startRng) > 0)
- pointRng.setEndPoint('StartToStart', startRng);
- else
- pointRng.setEndPoint('EndToEnd', startRng);
+ if (endElement && endElement.nodeType == 3)
+ return endElement.parentNode;
- pointRng.select();
- }
- } else
- endSelection();
+ return endElement;
}
+ },
- // Removes listeners
- function endSelection() {
- dom.unbind(doc, 'mouseup', endSelection);
- dom.unbind(doc, 'mousemove', selectionChange);
- started = 0;
- };
-
- // Detect when user selects outside BODY
- dom.bind(doc, 'mousedown', function(e) {
- if (e.target.nodeName === 'HTML') {
- if (started)
- endSelection();
-
- started = 1;
+ getBookmark : function(type, normalized) {
+ var t = this, dom = t.dom, rng, rng2, id, collapsed, name, element, index, chr = '\uFEFF', styles;
- // Setup start position
- startRng = rngFromPoint(e.x, e.y);
- if (startRng) {
- // Listen for selection change events
- dom.bind(doc, 'mouseup', endSelection);
- dom.bind(doc, 'mousemove', selectionChange);
+ function findIndex(name, element) {
+ var index = 0;
- dom.win.focus();
- startRng.select();
- }
- }
- });
- }
- });
-})(tinymce);
+ each(dom.select(name), function(node, i) {
+ if (node == element)
+ index = i;
+ });
-(function(tinymce) {
- tinymce.create('tinymce.dom.XMLWriter', {
- node : null,
-
- XMLWriter : function(s) {
- // Get XML document
- function getXML() {
- var i = document.implementation;
-
- if (!i || !i.createDocument) {
- // Try IE objects
- try {return new ActiveXObject('MSXML2.DOMDocument');} catch (ex) {}
- try {return new ActiveXObject('Microsoft.XmlDom');} catch (ex) {}
- } else
- return i.createDocument('', '', null);
+ return index;
};
- this.doc = getXML();
-
- // Since Opera and WebKit doesn't escape > into > we need to do it our self to normalize the output for all browsers
- this.valid = tinymce.isOpera || tinymce.isWebKit;
+ function normalizeTableCellSelection(rng) {
+ function moveEndPoint(start) {
+ var container, offset, childNodes, prefix = start ? 'start' : 'end';
- this.reset();
- },
+ container = rng[prefix + 'Container'];
+ offset = rng[prefix + 'Offset'];
- reset : function() {
- var t = this, d = t.doc;
+ if (container.nodeType == 1 && container.nodeName == "TR") {
+ childNodes = container.childNodes;
+ container = childNodes[Math.min(start ? offset : offset - 1, childNodes.length - 1)];
+ if (container) {
+ offset = start ? 0 : container.childNodes.length;
+ rng['set' + (start ? 'Start' : 'End')](container, offset);
+ }
+ }
+ };
- if (d.firstChild)
- d.removeChild(d.firstChild);
+ moveEndPoint(true);
+ moveEndPoint();
- t.node = d.appendChild(d.createElement("html"));
- },
+ return rng;
+ };
- writeStartElement : function(n) {
- var t = this;
+ function getLocation() {
+ var rng = t.getRng(true), root = dom.getRoot(), bookmark = {};
- t.node = t.node.appendChild(t.doc.createElement(n));
- },
+ function getPoint(rng, start) {
+ var container = rng[start ? 'startContainer' : 'endContainer'],
+ offset = rng[start ? 'startOffset' : 'endOffset'], point = [], node, childNodes, after = 0;
- writeAttribute : function(n, v) {
- if (this.valid)
- v = v.replace(/>/g, '%MCGT%');
+ if (container.nodeType == 3) {
+ if (normalized) {
+ for (node = container.previousSibling; node && node.nodeType == 3; node = node.previousSibling)
+ offset += node.nodeValue.length;
+ }
- this.node.setAttribute(n, v);
- },
+ point.push(offset);
+ } else {
+ childNodes = container.childNodes;
- writeEndElement : function() {
- this.node = this.node.parentNode;
- },
+ if (offset >= childNodes.length && childNodes.length) {
+ after = 1;
+ offset = Math.max(0, childNodes.length - 1);
+ }
- writeFullEndElement : function() {
- var t = this, n = t.node;
+ point.push(t.dom.nodeIndex(childNodes[offset], normalized) + after);
+ }
- n.appendChild(t.doc.createTextNode(""));
- t.node = n.parentNode;
- },
+ for (; container && container != root; container = container.parentNode)
+ point.push(t.dom.nodeIndex(container, normalized));
- writeText : function(v) {
- if (this.valid)
- v = v.replace(/>/g, '%MCGT%');
+ return point;
+ };
- this.node.appendChild(this.doc.createTextNode(v));
- },
+ bookmark.start = getPoint(rng, true);
- writeCDATA : function(v) {
- this.node.appendChild(this.doc.createCDATASection(v));
- },
+ if (!t.isCollapsed())
+ bookmark.end = getPoint(rng);
- writeComment : function(v) {
- // Fix for bug #2035694
- if (tinymce.isIE)
- v = v.replace(/^\-|\-$/g, ' ');
+ return bookmark;
+ };
- this.node.appendChild(this.doc.createComment(v.replace(/\-\-/g, ' ')));
- },
+ if (type == 2) {
+ if (t.tridentSel)
+ return t.tridentSel.getBookmark(type);
- getContent : function() {
- var h;
+ return getLocation();
+ }
- h = this.doc.xml || new XMLSerializer().serializeToString(this.doc);
- h = h.replace(/<\?[^?]+\?>|<html[^>]*>|<\/html>|<html\/>|<!DOCTYPE[^>]+>/g, '');
- h = h.replace(/ ?\/>/g, ' />');
+ // Handle simple range
+ if (type)
+ return {rng : t.getRng()};
- if (this.valid)
- h = h.replace(/\%MCGT%/g, '>');
+ rng = t.getRng();
+ id = dom.uniqueId();
+ collapsed = tinyMCE.activeEditor.selection.isCollapsed();
+ styles = 'overflow:hidden;line-height:0px';
- return h;
- }
- });
-})(tinymce);
+ // Explorer method
+ if (rng.duplicate || rng.item) {
+ // Text selection
+ if (!rng.item) {
+ rng2 = rng.duplicate();
-(function(tinymce) {
- var attrsCharsRegExp = /[&\"<>]/g, textCharsRegExp = /[<>&]/g, encodedChars = {'&' : '&', '"' : '"', '<' : '<', '>' : '>'};
-
- tinymce.create('tinymce.dom.StringWriter', {
- str : null,
- tags : null,
- count : 0,
- settings : null,
- indent : null,
-
- StringWriter : function(s) {
- this.settings = tinymce.extend({
- indent_char : ' ',
- indentation : 0
- }, s);
+ try {
+ // Insert start marker
+ rng.collapse();
+ rng.pasteHTML('<span data-mce-type="bookmark" id="' + id + '_start" style="' + styles + '">' + chr + '</span>');
- this.reset();
- },
+ // Insert end marker
+ if (!collapsed) {
+ rng2.collapse(false);
- reset : function() {
- this.indent = '';
- this.str = "";
- this.tags = [];
- this.count = 0;
- },
+ // Detect the empty space after block elements in IE and move the end back one character <p></p>] becomes <p>]</p>
+ rng.moveToElementText(rng2.parentElement());
+ if (rng.compareEndPoints('StartToEnd', rng2) === 0)
+ rng2.move('character', -1);
- writeStartElement : function(n) {
- this._writeAttributesEnd();
- this.writeRaw('<' + n);
- this.tags.push(n);
- this.inAttr = true;
- this.count++;
- this.elementCount = this.count;
- this.attrs = {};
- },
+ rng2.pasteHTML('<span data-mce-type="bookmark" id="' + id + '_end" style="' + styles + '">' + chr + '</span>');
+ }
+ } catch (ex) {
+ // IE might throw unspecified error so lets ignore it
+ return null;
+ }
+ } else {
+ // Control selection
+ element = rng.item(0);
+ name = element.nodeName;
- writeAttribute : function(n, v) {
- var t = this;
+ return {name : name, index : findIndex(name, element)};
+ }
+ } else {
+ element = t.getNode();
+ name = element.nodeName;
+ if (name == 'IMG')
+ return {name : name, index : findIndex(name, element)};
- if (!t.attrs[n]) {
- t.writeRaw(" " + t.encode(n, true) + '="' + t.encode(v, true) + '"');
- t.attrs[n] = v;
- }
- },
+ // W3C method
+ rng2 = normalizeTableCellSelection(rng.cloneRange());
- writeEndElement : function() {
- var n;
+ // Insert end marker
+ if (!collapsed) {
+ rng2.collapse(false);
+ rng2.insertNode(dom.create('span', {'data-mce-type' : "bookmark", id : id + '_end', style : styles}, chr));
+ }
- if (this.tags.length > 0) {
- n = this.tags.pop();
+ rng = normalizeTableCellSelection(rng);
+ rng.collapse(true);
+ rng.insertNode(dom.create('span', {'data-mce-type' : "bookmark", id : id + '_start', style : styles}, chr));
+ }
- if (this._writeAttributesEnd(1))
- this.writeRaw('</' + n + '>');
+ t.moveToBookmark({id : id, keep : 1});
- if (this.settings.indentation > 0)
- this.writeRaw('\n');
- }
+ return {id : id};
},
- writeFullEndElement : function() {
- if (this.tags.length > 0) {
- this._writeAttributesEnd();
- this.writeRaw('</' + this.tags.pop() + '>');
+ moveToBookmark : function(bookmark) {
+ var t = this, dom = t.dom, marker1, marker2, rng, root, startContainer, endContainer, startOffset, endOffset;
- if (this.settings.indentation > 0)
- this.writeRaw('\n');
- }
- },
+ function setEndPoint(start) {
+ var point = bookmark[start ? 'start' : 'end'], i, node, offset, children;
- writeText : function(v) {
- this._writeAttributesEnd();
- this.writeRaw(this.encode(v));
- this.count++;
- },
+ if (point) {
+ offset = point[0];
- writeCDATA : function(v) {
- this._writeAttributesEnd();
- this.writeRaw('<![CDATA[' + v + ']]>');
- this.count++;
- },
+ // Find container node
+ for (node = root, i = point.length - 1; i >= 1; i--) {
+ children = node.childNodes;
- writeComment : function(v) {
- this._writeAttributesEnd();
- this.writeRaw('<!--' + v + '-->');
- this.count++;
- },
+ if (point[i] > children.length - 1)
+ return;
- writeRaw : function(v) {
- this.str += v;
- },
+ node = children[point[i]];
+ }
- encode : function(s, attr) {
- return s.replace(attr ? attrsCharsRegExp : textCharsRegExp, function(v) {
- return encodedChars[v];
- });
- },
+ // Move text offset to best suitable location
+ if (node.nodeType === 3)
+ offset = Math.min(point[0], node.nodeValue.length);
- getContent : function() {
- return this.str;
- },
+ // Move element offset to best suitable location
+ if (node.nodeType === 1)
+ offset = Math.min(point[0], node.childNodes.length);
- _writeAttributesEnd : function(s) {
- if (!this.inAttr)
- return;
+ // Set offset within container node
+ if (start)
+ rng.setStart(node, offset);
+ else
+ rng.setEnd(node, offset);
+ }
- this.inAttr = false;
+ return true;
+ };
- if (s && this.elementCount == this.count) {
- this.writeRaw(' />');
- return false;
- }
+ function restoreEndPoint(suffix) {
+ var marker = dom.get(bookmark.id + '_' + suffix), node, idx, next, prev, keep = bookmark.keep;
- this.writeRaw('>');
+ if (marker) {
+ node = marker.parentNode;
- return true;
- }
- });
-})(tinymce);
+ if (suffix == 'start') {
+ if (!keep) {
+ idx = dom.nodeIndex(marker);
+ } else {
+ node = marker.firstChild;
+ idx = 1;
+ }
-(function(tinymce) {
- // Shorten names
- var extend = tinymce.extend, each = tinymce.each, Dispatcher = tinymce.util.Dispatcher, isIE = tinymce.isIE, isGecko = tinymce.isGecko;
+ startContainer = endContainer = node;
+ startOffset = endOffset = idx;
+ } else {
+ if (!keep) {
+ idx = dom.nodeIndex(marker);
+ } else {
+ node = marker.firstChild;
+ idx = 1;
+ }
- function wildcardToRE(s) {
- return s.replace(/([?+*])/g, '.$1');
- };
+ endContainer = node;
+ endOffset = idx;
+ }
- tinymce.create('tinymce.dom.Serializer', {
- Serializer : function(s) {
- var t = this;
+ if (!keep) {
+ prev = marker.previousSibling;
+ next = marker.nextSibling;
- t.key = 0;
- t.onPreProcess = new Dispatcher(t);
- t.onPostProcess = new Dispatcher(t);
+ // Remove all marker text nodes
+ each(tinymce.grep(marker.childNodes), function(node) {
+ if (node.nodeType == 3)
+ node.nodeValue = node.nodeValue.replace(/\uFEFF/g, '');
+ });
- try {
- t.writer = new tinymce.dom.XMLWriter();
- } catch (ex) {
- // IE might throw exception if ActiveX is disabled so we then switch to the slightly slower StringWriter
- t.writer = new tinymce.dom.StringWriter();
- }
+ // Remove marker but keep children if for example contents where inserted into the marker
+ // Also remove duplicated instances of the marker for example by a split operation or by WebKit auto split on paste feature
+ while (marker = dom.get(bookmark.id + '_' + suffix))
+ dom.remove(marker, 1);
- // IE9 broke the XML attributes order so it can't be used anymore
- if (tinymce.isIE && document.documentMode > 8) {
- t.writer = new tinymce.dom.StringWriter();
- }
+ // If siblings are text nodes then merge them unless it's Opera since it some how removes the node
+ // and we are sniffing since adding a lot of detection code for a browser with 3% of the market isn't worth the effort. Sorry, Opera but it's just a fact
+ if (prev && next && prev.nodeType == next.nodeType && prev.nodeType == 3 && !tinymce.isOpera) {
+ idx = prev.nodeValue.length;
+ prev.appendData(next.nodeValue);
+ dom.remove(next);
- // Default settings
- t.settings = s = extend({
- dom : tinymce.DOM,
- valid_nodes : 0,
- node_filter : 0,
- attr_filter : 0,
- invalid_attrs : /^(_mce_|_moz_|sizset|sizcache)/,
- closed : /^(br|hr|input|meta|img|link|param|area)$/,
- entity_encoding : 'named',
- entities : '160,nbsp,161,iexcl,162,cent,163,pound,164,curren,165,yen,166,brvbar,167,sect,168,uml,169,copy,170,ordf,171,laquo,172,not,173,shy,174,reg,175,macr,176,deg,177,plusmn,178,sup2,179,sup3,180,acute,181,micro,182,para,183,middot,184,cedil,185,sup1,186,ordm,187,raquo,188,frac14,189,frac12,190,frac34,191,iquest,192,Agrave,193,Aacute,194,Acirc,195,Atilde,196,Auml,197,Aring,198,AElig,199,Ccedil,200,Egrave,201,Eacute,202,Ecirc,203,Euml,204,Igrave,205,Iacute,206,Icirc,207,Iuml,208,ETH,209,Ntilde,210,Ograve,211,Oacute,212,Ocirc,213,Otilde,214,Ouml,215,times,216,Oslash,217,Ugrave,218,Uacute,219,Ucirc,220,Uuml,221,Yacute,222,THORN,223,szlig,224,agrave,225,aacute,226,acirc,227,atilde,228,auml,229,aring,230,aelig,231,ccedil,232,egrave,233,eacute,234,ecirc,235,euml,236,igrave,237,iacute,238,icirc,239,iuml,240,eth,241,ntilde,242,ograve,243,oacute,244,ocirc,245,otilde,246,ouml,247,divide,248,oslash,249,ugrave,250,uacute,251,ucirc,252,uuml,253,yacute,254,thorn,255,yuml,402,fnof,913,Alpha,914,Beta,915,Gamma,916,Delta,917,Epsilon,918,Zeta,919,Eta,920,Theta,921,Iota,922,Kappa,923,Lambda,924,Mu,925,Nu,926,Xi,927,Omicron,928,Pi,929,Rho,931,Sigma,932,Tau,933,Upsilon,934,Phi,935,Chi,936,Psi,937,Omega,945,alpha,946,beta,947,gamma,948,delta,949,epsilon,950,zeta,951,eta,952,theta,953,iota,954,kappa,955,lambda,956,mu,957,nu,958,xi,959,omicron,960,pi,961,rho,962,sigmaf,963,sigma,964,tau,965,upsilon,966,phi,967,chi,968,psi,969,omega,977,thetasym,978,upsih,982,piv,8226,bull,8230,hellip,8242,prime,8243,Prime,8254,oline,8260,frasl,8472,weierp,8465,image,8476,real,8482,trade,8501,alefsym,8592,larr,8593,uarr,8594,rarr,8595,darr,8596,harr,8629,crarr,8656,lArr,8657,uArr,8658,rArr,8659,dArr,8660,hArr,8704,forall,8706,part,8707,exist,8709,empty,8711,nabla,8712,isin,8713,notin,8715,ni,8719,prod,8721,sum,8722,minus,8727,lowast,8730,radic,8733,prop,8734,infin,8736,ang,8743,and,8744,or,8745,cap,8746,cup,8747,int,8756,there4,8764,sim,8773,cong,8776,asymp,8800,ne,8801,equiv,8804,le,8805,ge,8834,sub,8835,sup,8836,nsub,8838,sube,8839,supe,8853,oplus,8855,otimes,8869,perp,8901,sdot,8968,lceil,8969,rceil,8970,lfloor,8971,rfloor,9001,lang,9002,rang,9674,loz,9824,spades,9827,clubs,9829,hearts,9830,diams,338,OElig,339,oelig,352,Scaron,353,scaron,376,Yuml,710,circ,732,tilde,8194,ensp,8195,emsp,8201,thinsp,8204,zwnj,8205,zwj,8206,lrm,8207,rlm,8211,ndash,8212,mdash,8216,lsquo,8217,rsquo,8218,sbquo,8220,ldquo,8221,rdquo,8222,bdquo,8224,dagger,8225,Dagger,8240,permil,8249,lsaquo,8250,rsaquo,8364,euro',
- valid_elements : '*[*]',
- extended_valid_elements : 0,
- invalid_elements : 0,
- fix_table_elements : 1,
- fix_list_elements : true,
- fix_content_duplication : true,
- convert_fonts_to_spans : false,
- font_size_classes : 0,
- apply_source_formatting : 0,
- indent_mode : 'simple',
- indent_char : '\t',
- indent_levels : 1,
- remove_linebreaks : 1,
- remove_redundant_brs : 1,
- element_format : 'xhtml'
- }, s);
+ if (suffix == 'start') {
+ startContainer = endContainer = prev;
+ startOffset = endOffset = idx;
+ } else {
+ endContainer = prev;
+ endOffset = idx;
+ }
+ }
+ }
+ }
+ };
- t.dom = s.dom;
- t.schema = s.schema;
+ function addBogus(node) {
+ // Adds a bogus BR element for empty block elements
+ if (dom.isBlock(node) && !node.innerHTML && !isIE)
+ node.innerHTML = '<br data-mce-bogus="1" />';
+
+ return node;
+ };
- // Use raw entities if no entities are defined
- if (s.entity_encoding == 'named' && !s.entities)
- s.entity_encoding = 'raw';
+ if (bookmark) {
+ if (bookmark.start) {
+ rng = dom.createRng();
+ root = dom.getRoot();
- if (s.remove_redundant_brs) {
- t.onPostProcess.add(function(se, o) {
- // Remove single BR at end of block elements since they get rendered
- o.content = o.content.replace(/(<br \/>\s*)+<\/(p|h[1-6]|div|li)>/gi, function(a, b, c) {
- // Check if it's a single element
- if (/^<br \/>\s*<\//.test(a))
- return '</' + c + '>';
+ if (t.tridentSel)
+ return t.tridentSel.moveToBookmark(bookmark);
- return a;
- });
- });
- }
+ if (setEndPoint(true) && setEndPoint()) {
+ t.setRng(rng);
+ }
+ } else if (bookmark.id) {
+ // Restore start/end points
+ restoreEndPoint('start');
+ restoreEndPoint('end');
- // Remove XHTML element endings i.e. produce crap :) XHTML is better
- if (s.element_format == 'html') {
- t.onPostProcess.add(function(se, o) {
- o.content = o.content.replace(/<([^>]+) \/>/g, '<$1>');
- });
+ if (startContainer) {
+ rng = dom.createRng();
+ rng.setStart(addBogus(startContainer), startOffset);
+ rng.setEnd(addBogus(endContainer), endOffset);
+ t.setRng(rng);
+ }
+ } else if (bookmark.name) {
+ t.select(dom.select(bookmark.name)[bookmark.index]);
+ } else if (bookmark.rng)
+ t.setRng(bookmark.rng);
}
+ },
- if (s.fix_list_elements) {
- t.onPreProcess.add(function(se, o) {
- var nl, x, a = ['ol', 'ul'], i, n, p, r = /^(OL|UL)$/, np;
-
- function prevNode(e, n) {
- var a = n.split(','), i;
-
- while ((e = e.previousSibling) != null) {
- for (i=0; i<a.length; i++) {
- if (e.nodeName == a[i])
- return e;
- }
- }
+ select : function(node, content) {
+ var t = this, dom = t.dom, rng = dom.createRng(), idx;
- return null;
- };
+ function setPoint(node, start) {
+ var walker = new TreeWalker(node, node);
- for (x=0; x<a.length; x++) {
- nl = t.dom.select(a[x], o.node);
+ do {
+ // Text node
+ if (node.nodeType == 3 && tinymce.trim(node.nodeValue).length !== 0) {
+ if (start)
+ rng.setStart(node, 0);
+ else
+ rng.setEnd(node, node.nodeValue.length);
- for (i=0; i<nl.length; i++) {
- n = nl[i];
- p = n.parentNode;
+ return;
+ }
- if (r.test(p.nodeName)) {
- np = prevNode(n, 'LI');
+ // BR element
+ if (node.nodeName == 'BR') {
+ if (start)
+ rng.setStartBefore(node);
+ else
+ rng.setEndBefore(node);
- if (!np) {
- np = t.dom.create('li');
- np.innerHTML = ' ';
- np.appendChild(n);
- p.insertBefore(np, p.firstChild);
- } else
- np.appendChild(n);
- }
- }
+ return;
}
- });
- }
+ } while (node = (start ? walker.next() : walker.prev()));
+ };
- if (s.fix_table_elements) {
- t.onPreProcess.add(function(se, o) {
- // Since Opera will crash if you attach the node to a dynamic document we need to brrowser sniff a specific build
- // so Opera users with an older version will have to live with less compaible output not much we can do here
- if (!tinymce.isOpera || opera.buildNumber() >= 1767) {
- each(t.dom.select('p table', o.node).reverse(), function(n) {
- var parent = t.dom.getParent(n.parentNode, 'table,p');
+ if (node) {
+ idx = dom.nodeIndex(node);
+ rng.setStart(node.parentNode, idx);
+ rng.setEnd(node.parentNode, idx + 1);
+
+ // Find first/last text node or BR element
+ if (content) {
+ setPoint(node, 1);
+ setPoint(node);
+ }
- if (parent.nodeName != 'TABLE') {
- try {
- t.dom.split(parent, n);
- } catch (ex) {
- // IE can sometimes fire an unknown runtime error so we just ignore it
- }
- }
- });
- }
- });
+ t.setRng(rng);
}
+
+ return node;
},
- setEntities : function(s) {
- var t = this, a, i, l = {}, v;
+ isCollapsed : function() {
+ var t = this, r = t.getRng(), s = t.getSel();
- // No need to setup more than once
- if (t.entityLookup)
- return;
+ if (!r || r.item)
+ return false;
- // Build regex and lookup array
- a = s.split(',');
- for (i = 0; i < a.length; i += 2) {
- v = a[i];
+ if (r.compareEndPoints)
+ return r.compareEndPoints('StartToEnd', r) === 0;
- // Don't add default & " etc.
- if (v == 34 || v == 38 || v == 60 || v == 62)
- continue;
+ return !s || r.collapsed;
+ },
- l[String.fromCharCode(a[i])] = a[i + 1];
+ collapse : function(to_start) {
+ var self = this, rng = self.getRng(), node;
- v = parseInt(a[i]).toString(16);
+ // Control range on IE
+ if (rng.item) {
+ node = rng.item(0);
+ rng = self.win.document.body.createTextRange();
+ rng.moveToElementText(node);
}
- t.entityLookup = l;
+ rng.collapse(!!to_start);
+ self.setRng(rng);
},
- setRules : function(s) {
- var t = this;
-
- t._setup();
- t.rules = {};
- t.wildRules = [];
- t.validElements = {};
+ getSel : function() {
+ var t = this, w = this.win;
- return t.addRules(s);
+ return w.getSelection ? w.getSelection() : w.document.selection;
},
- addRules : function(s) {
- var t = this, dr;
+ getRng : function(w3c) {
+ var self = this, selection, rng, elm, doc = self.win.document;
- if (!s)
- return;
+ // Found tridentSel object then we need to use that one
+ if (w3c && self.tridentSel) {
+ return self.tridentSel.getRangeAt(0);
+ }
- t._setup();
+ try {
+ if (selection = self.getSel()) {
+ rng = selection.rangeCount > 0 ? selection.getRangeAt(0) : (selection.createRange ? selection.createRange() : doc.createRange());
+ }
+ } catch (ex) {
+ // IE throws unspecified error here if TinyMCE is placed in a frame/iframe
+ }
- each(s.split(','), function(s) {
- var p = s.split(/\[|\]/), tn = p[0].split('/'), ra, at, wat, va = [];
+ // We have W3C ranges and it's IE then fake control selection since IE9 doesn't handle that correctly yet
+ if (tinymce.isIE && rng && rng.setStart && doc.selection.createRange().item) {
+ elm = doc.selection.createRange().item(0);
+ rng = doc.createRange();
+ rng.setStartBefore(elm);
+ rng.setEndAfter(elm);
+ }
- // Extend with default rules
- if (dr)
- at = tinymce.extend([], dr.attribs);
+ // No range found then create an empty one
+ // This can occur when the editor is placed in a hidden container element on Gecko
+ // Or on IE when there was an exception
+ if (!rng) {
+ rng = doc.createRange ? doc.createRange() : doc.body.createTextRange();
+ }
- // Parse attributes
- if (p.length > 1) {
- each(p[1].split('|'), function(s) {
- var ar = {}, i;
+ // If range is at start of document then move it to start of body
+ if (rng.setStart && rng.startContainer.nodeType === 9 && rng.collapsed) {
+ elm = self.dom.getRoot();
+ rng.setStart(elm, 0);
+ rng.setEnd(elm, 0);
+ }
- at = at || [];
+ if (self.selectedRange && self.explicitRange) {
+ if (rng.compareBoundaryPoints(rng.START_TO_START, self.selectedRange) === 0 && rng.compareBoundaryPoints(rng.END_TO_END, self.selectedRange) === 0) {
+ // Safari, Opera and Chrome only ever select text which causes the range to change.
+ // This lets us use the originally set range if the selection hasn't been changed by the user.
+ rng = self.explicitRange;
+ } else {
+ self.selectedRange = null;
+ self.explicitRange = null;
+ }
+ }
- // Parse attribute rule
- s = s.replace(/::/g, '~');
- s = /^([!\-])?([\w*.?~_\-]+|)([=:<])?(.+)?$/.exec(s);
- s[2] = s[2].replace(/~/g, ':');
+ return rng;
+ },
- // Add required attributes
- if (s[1] == '!') {
- ra = ra || [];
- ra.push(s[2]);
- }
+ setRng : function(r, forward) {
+ var s, t = this;
- // Remove inherited attributes
- if (s[1] == '-') {
- for (i = 0; i <at.length; i++) {
- if (at[i].name == s[2]) {
- at.splice(i, 1);
- return;
- }
- }
- }
+ if (!t.tridentSel) {
+ s = t.getSel();
- switch (s[3]) {
- // Add default attrib values
- case '=':
- ar.defaultVal = s[4] || '';
- break;
+ if (s) {
+ t.explicitRange = r;
- // Add forced attrib values
- case ':':
- ar.forcedVal = s[4];
- break;
+ try {
+ s.removeAllRanges();
+ } catch (ex) {
+ // IE9 might throw errors here don't know why
+ }
- // Add validation values
- case '<':
- ar.validVals = s[4].split('?');
- break;
- }
+ s.addRange(r);
- if (/[*.?]/.test(s[2])) {
- wat = wat || [];
- ar.nameRE = new RegExp('^' + wildcardToRE(s[2]) + '$');
- wat.push(ar);
- } else {
- ar.name = s[2];
- at.push(ar);
- }
+ // Forward is set to false and we have an extend function
+ if (forward === false && s.extend) {
+ s.collapse(r.endContainer, r.endOffset);
+ s.extend(r.startContainer, r.startOffset);
+ }
- va.push(s[2]);
- });
+ // adding range isn't always successful so we need to check range count otherwise an exception can occur
+ t.selectedRange = s.rangeCount > 0 ? s.getRangeAt(0) : null;
}
-
- // Handle element names
- each(tn, function(s, i) {
- var pr = s.charAt(0), x = 1, ru = {};
-
- // Extend with default rule data
- if (dr) {
- if (dr.noEmpty)
- ru.noEmpty = dr.noEmpty;
-
- if (dr.fullEnd)
- ru.fullEnd = dr.fullEnd;
-
- if (dr.padd)
- ru.padd = dr.padd;
+ } else {
+ // Is W3C Range
+ if (r.cloneRange) {
+ try {
+ t.tridentSel.addRange(r);
+ return;
+ } catch (ex) {
+ //IE9 throws an error here if called before selection is placed in the editor
}
+ }
- // Handle prefixes
- switch (pr) {
- case '-':
- ru.noEmpty = true;
- break;
-
- case '+':
- ru.fullEnd = true;
- break;
+ // Is IE specific range
+ try {
+ r.select();
+ } catch (ex) {
+ // Needed for some odd IE bug #1843306
+ }
+ }
+ },
- case '#':
- ru.padd = true;
- break;
+ setNode : function(n) {
+ var t = this;
- default:
- x = 0;
- }
+ t.setContent(t.dom.getOuterHTML(n));
- tn[i] = s = s.substring(x);
- t.validElements[s] = 1;
+ return n;
+ },
- // Add element name or element regex
- if (/[*.?]/.test(tn[0])) {
- ru.nameRE = new RegExp('^' + wildcardToRE(tn[0]) + '$');
- t.wildRules = t.wildRules || {};
- t.wildRules.push(ru);
- } else {
- ru.name = tn[0];
+ getNode : function() {
+ var t = this, rng = t.getRng(), sel = t.getSel(), elm, start = rng.startContainer, end = rng.endContainer;
- // Store away default rule
- if (tn[0] == '@')
- dr = ru;
+ function skipEmptyTextNodes(n, forwards) {
+ var orig = n;
+ while (n && n.nodeType === 3 && n.length === 0) {
+ n = forwards ? n.nextSibling : n.previousSibling;
+ }
+ return n || orig;
+ };
- t.rules[s] = ru;
- }
+ // Range maybe lost after the editor is made visible again
+ if (!rng)
+ return t.dom.getRoot();
- ru.attribs = at;
+ if (rng.setStart) {
+ elm = rng.commonAncestorContainer;
- if (ra)
- ru.requiredAttribs = ra;
+ // Handle selection a image or other control like element such as anchors
+ if (!rng.collapsed) {
+ if (rng.startContainer == rng.endContainer) {
+ if (rng.endOffset - rng.startOffset < 2) {
+ if (rng.startContainer.hasChildNodes())
+ elm = rng.startContainer.childNodes[rng.startOffset];
+ }
+ }
- if (wat) {
- // Build valid attributes regexp
- s = '';
- each(va, function(v) {
- if (s)
- s += '|';
+ // If the anchor node is a element instead of a text node then return this element
+ //if (tinymce.isWebKit && sel.anchorNode && sel.anchorNode.nodeType == 1)
+ // return sel.anchorNode.childNodes[sel.anchorOffset];
+
+ // Handle cases where the selection is immediately wrapped around a node and return that node instead of it's parent.
+ // This happens when you double click an underlined word in FireFox.
+ if (start.nodeType === 3 && end.nodeType === 3) {
+ if (start.length === rng.startOffset) {
+ start = skipEmptyTextNodes(start.nextSibling, true);
+ } else {
+ start = start.parentNode;
+ }
+ if (rng.endOffset === 0) {
+ end = skipEmptyTextNodes(end.previousSibling, false);
+ } else {
+ end = end.parentNode;
+ }
- s += '(' + wildcardToRE(v) + ')';
- });
- ru.validAttribsRE = new RegExp('^' + s.toLowerCase() + '$');
- ru.wildAttribs = wat;
+ if (start && start === end)
+ return start;
}
- });
- });
+ }
- // Build valid elements regexp
- s = '';
- each(t.validElements, function(v, k) {
- if (s)
- s += '|';
+ if (elm && elm.nodeType == 3)
+ return elm.parentNode;
- if (k != '@')
- s += k;
- });
- t.validElementsRE = new RegExp('^(' + wildcardToRE(s.toLowerCase()) + ')$');
+ return elm;
+ }
- //console.debug(t.validElementsRE.toString());
- //console.dir(t.rules);
- //console.dir(t.wildRules);
+ return rng.item ? rng.item(0) : rng.parentElement();
},
- findRule : function(n) {
- var t = this, rl = t.rules, i, r;
+ getSelectedBlocks : function(st, en) {
+ var t = this, dom = t.dom, sb, eb, n, bl = [];
+
+ sb = dom.getParent(st || t.getStart(), dom.isBlock);
+ eb = dom.getParent(en || t.getEnd(), dom.isBlock);
- t._setup();
+ if (sb)
+ bl.push(sb);
- // Exact match
- r = rl[n];
- if (r)
- return r;
+ if (sb && eb && sb != eb) {
+ n = sb;
- // Try wildcards
- rl = t.wildRules;
- for (i = 0; i < rl.length; i++) {
- if (rl[i].nameRE.test(n))
- return rl[i];
+ var walker = new TreeWalker(sb, dom.getRoot());
+ while ((n = walker.next()) && n != eb) {
+ if (dom.isBlock(n))
+ bl.push(n);
+ }
}
- return null;
+ if (eb && sb != eb)
+ bl.push(eb);
+
+ return bl;
},
- findAttribRule : function(ru, n) {
- var i, wa = ru.wildAttribs;
+ isForward: function(){
+ var dom = this.dom, sel = this.getSel(), anchorRange, focusRange;
- for (i = 0; i < wa.length; i++) {
- if (wa[i].nameRE.test(n))
- return wa[i];
+ // No support for selection direction then always return true
+ if (!sel || sel.anchorNode == null || sel.focusNode == null) {
+ return true;
}
- return null;
- },
-
- serialize : function(n, o) {
- var h, t = this, doc, oldDoc, impl, selected;
+ anchorRange = dom.createRng();
+ anchorRange.setStart(sel.anchorNode, sel.anchorOffset);
+ anchorRange.collapse(true);
- t._setup();
- o = o || {};
- o.format = o.format || 'html';
- t.processObj = o;
+ focusRange = dom.createRng();
+ focusRange.setStart(sel.focusNode, sel.focusOffset);
+ focusRange.collapse(true);
- // IE looses the selected attribute on option elements so we need to store it
- // See: http://support.microsoft.com/kb/829907
- if (isIE) {
- selected = [];
- each(n.getElementsByTagName('option'), function(n) {
- var v = t.dom.getAttrib(n, 'selected');
+ return anchorRange.compareBoundaryPoints(anchorRange.START_TO_START, focusRange) <= 0;
+ },
- selected.push(v ? v : null);
- });
- }
+ normalize : function() {
+ var self = this, rng, normalized, collapsed, node, sibling;
- n = n.cloneNode(true);
+ function normalizeEndPoint(start) {
+ var container, offset, walker, dom = self.dom, body = dom.getRoot(), node, nonEmptyElementsMap, nodeName;
- // IE looses the selected attribute on option elements so we need to restore it
- if (isIE) {
- each(n.getElementsByTagName('option'), function(n, i) {
- t.dom.setAttrib(n, 'selected', selected[i]);
- });
- }
+ function hasBrBeforeAfter(node, left) {
+ var walker = new TreeWalker(node, dom.getParent(node.parentNode, dom.isBlock) || body);
- // Nodes needs to be attached to something in WebKit/Opera
- // Older builds of Opera crashes if you attach the node to an document created dynamically
- // and since we can't feature detect a crash we need to sniff the acutal build number
- // This fix will make DOM ranges and make Sizzle happy!
- impl = n.ownerDocument.implementation;
- if (impl.createHTMLDocument && (tinymce.isOpera && opera.buildNumber() >= 1767)) {
- // Create an empty HTML document
- doc = impl.createHTMLDocument("");
+ while (node = walker[left ? 'prev' : 'next']()) {
+ if (node.nodeName === "BR") {
+ return true;
+ }
+ }
+ };
- // Add the element or it's children if it's a body element to the new document
- each(n.nodeName == 'BODY' ? n.childNodes : [n], function(node) {
- doc.body.appendChild(doc.importNode(node, true));
- });
+ // Walks the dom left/right to find a suitable text node to move the endpoint into
+ // It will only walk within the current parent block or body and will stop if it hits a block or a BR/IMG
+ function findTextNodeRelative(left, startNode) {
+ var walker, lastInlineElement;
+
+ startNode = startNode || container;
+ walker = new TreeWalker(startNode, dom.getParent(startNode.parentNode, dom.isBlock) || body);
+
+ // Walk left until we hit a text node we can move to or a block/br/img
+ while (node = walker[left ? 'prev' : 'next']()) {
+ // Found text node that has a length
+ if (node.nodeType === 3 && node.nodeValue.length > 0) {
+ container = node;
+ offset = left ? node.nodeValue.length : 0;
+ normalized = true;
+ return;
+ }
- // Grab first child or body element for serialization
- if (n.nodeName != 'BODY')
- n = doc.body.firstChild;
- else
- n = doc.body;
+ // Break if we find a block or a BR/IMG/INPUT etc
+ if (dom.isBlock(node) || nonEmptyElementsMap[node.nodeName.toLowerCase()]) {
+ return;
+ }
- // set the new document in DOMUtils so createElement etc works
- oldDoc = t.dom.doc;
- t.dom.doc = doc;
- }
+ lastInlineElement = node;
+ }
- t.key = '' + (parseInt(t.key) + 1);
+ // Only fetch the last inline element when in caret mode for now
+ if (collapsed && lastInlineElement) {
+ container = lastInlineElement;
+ normalized = true;
+ offset = 0;
+ }
+ };
- // Pre process
- if (!o.no_events) {
- o.node = n;
- t.onPreProcess.dispatch(t, o);
- }
+ container = rng[(start ? 'start' : 'end') + 'Container'];
+ offset = rng[(start ? 'start' : 'end') + 'Offset'];
+ nonEmptyElementsMap = dom.schema.getNonEmptyElements();
- // Serialize HTML DOM into a string
- t.writer.reset();
- t._info = o;
- t._serializeNode(n, o.getInner);
+ // If the container is a document move it to the body element
+ if (container.nodeType === 9) {
+ container = dom.getRoot();
+ offset = 0;
+ }
- // Post process
- o.content = t.writer.getContent();
+ // If the container is body try move it into the closest text node or position
+ if (container === body) {
+ // If start is before/after a image, table etc
+ if (start) {
+ node = container.childNodes[offset > 0 ? offset - 1 : 0];
+ if (node) {
+ nodeName = node.nodeName.toLowerCase();
+ if (nonEmptyElementsMap[node.nodeName] || node.nodeName == "TABLE") {
+ return;
+ }
+ }
+ }
- // Restore the old document if it was changed
- if (oldDoc)
- t.dom.doc = oldDoc;
+ // Resolve the index
+ if (container.hasChildNodes()) {
+ container = container.childNodes[Math.min(!start && offset > 0 ? offset - 1 : offset, container.childNodes.length - 1)];
+ offset = 0;
+
+ // Don't walk into elements that doesn't have any child nodes like a IMG
+ if (container.hasChildNodes() && !/TABLE/.test(container.nodeName)) {
+ // Walk the DOM to find a text node to place the caret at or a BR
+ node = container;
+ walker = new TreeWalker(container, body);
+
+ do {
+ // Found a text node use that position
+ if (node.nodeType === 3 && node.nodeValue.length > 0) {
+ offset = start ? 0 : node.nodeValue.length;
+ container = node;
+ normalized = true;
+ break;
+ }
- if (!o.no_events)
- t.onPostProcess.dispatch(t, o);
+ // Found a BR/IMG element that we can place the caret before
+ if (nonEmptyElementsMap[node.nodeName.toLowerCase()]) {
+ offset = dom.nodeIndex(node);
+ container = node.parentNode;
- t._postProcess(o);
- o.node = null;
+ // Put caret after image when moving the end point
+ if (node.nodeName == "IMG" && !start) {
+ offset++;
+ }
- return tinymce.trim(o.content);
- },
+ normalized = true;
+ break;
+ }
+ } while (node = (start ? walker.next() : walker.prev()));
+ }
+ }
+ }
- // Internal functions
+ // Lean the caret to the left if possible
+ if (collapsed) {
+ // So this: <b>x</b><i>|x</i>
+ // Becomes: <b>x|</b><i>x</i>
+ // Seems that only gecko has issues with this
+ if (container.nodeType === 3 && offset === 0) {
+ findTextNodeRelative(true);
+ }
- _postProcess : function(o) {
- var t = this, s = t.settings, h = o.content, sc = [], p;
-
- if (o.format == 'html') {
- // Protect some elements
- p = t._protect({
- content : h,
- patterns : [
- {pattern : /(<script[^>]*>)(.*?)(<\/script>)/g},
- {pattern : /(<noscript[^>]*>)(.*?)(<\/noscript>)/g},
- {pattern : /(<style[^>]*>)(.*?)(<\/style>)/g},
- {pattern : /(<pre[^>]*>)(.*?)(<\/pre>)/g, encode : 1},
- {pattern : /(<!--\[CDATA\[)(.*?)(\]\]-->)/g}
- ]
- });
+ // Lean left into empty inline elements when the caret is before a BR
+ // So this: <i><b></b><i>|<br></i>
+ // Becomes: <i><b>|</b><i><br></i>
+ // Seems that only gecko has issues with this
+ if (container.nodeType === 1) {
+ node = container.childNodes[offset];
+ if(node && node.nodeName === 'BR' && !hasBrBeforeAfter(node) && !hasBrBeforeAfter(node, true)) {
+ findTextNodeRelative(true, container.childNodes[offset]);
+ }
+ }
+ }
- h = p.content;
+ // Lean the start of the selection right if possible
+ // So this: x[<b>x]</b>
+ // Becomes: x<b>[x]</b>
+ if (start && !collapsed && container.nodeType === 3 && offset === container.nodeValue.length) {
+ findTextNodeRelative(false);
+ }
- // Entity encode
- if (s.entity_encoding !== 'raw')
- h = t._encode(h);
+ // Set endpoint if it was normalized
+ if (normalized)
+ rng['set' + (start ? 'Start' : 'End')](container, offset);
+ };
- // Use BR instead of padded P elements inside editor and use <p> </p> outside editor
-/* if (o.set)
- h = h.replace(/<p>\s+( | |\u00a0|<br \/>)\s+<\/p>/g, '<p><br /></p>');
- else
- h = h.replace(/<p>\s+( | |\u00a0|<br \/>)\s+<\/p>/g, '<p>$1</p>');*/
+ // Normalize only on non IE browsers for now
+ if (tinymce.isIE)
+ return;
+
+ rng = self.getRng();
+ collapsed = rng.collapsed;
- // Since Gecko and Safari keeps whitespace in the DOM we need to
- // remove it inorder to match other browsers. But I think Gecko and Safari is right.
- // This process is only done when getting contents out from the editor.
- if (!o.set) {
- // We need to replace paragraph whitespace with an nbsp before indentation to keep the \u00a0 char
- h = tinymce._replace(/<p>\s+<\/p>|<p([^>]+)>\s+<\/p>/g, s.entity_encoding == 'numeric' ? '<p$1> </p>' : '<p$1> </p>', h);
+ // Normalize the end points
+ normalizeEndPoint(true);
- if (s.remove_linebreaks) {
- h = h.replace(/\r?\n|\r/g, ' ');
- h = tinymce._replace(/(<[^>]+>)\s+/g, '$1 ', h);
- h = tinymce._replace(/\s+(<\/[^>]+>)/g, ' $1', h);
- h = tinymce._replace(/<(p|h[1-6]|blockquote|hr|div|table|tbody|tr|td|body|head|html|title|meta|style|pre|script|link|object) ([^>]+)>\s+/g, '<$1 $2>', h); // Trim block start
- h = tinymce._replace(/<(p|h[1-6]|blockquote|hr|div|table|tbody|tr|td|body|head|html|title|meta|style|pre|script|link|object)>\s+/g, '<$1>', h); // Trim block start
- h = tinymce._replace(/\s+<\/(p|h[1-6]|blockquote|hr|div|table|tbody|tr|td|body|head|html|title|meta|style|pre|script|link|object)>/g, '</$1>', h); // Trim block end
- }
+ if (!collapsed)
+ normalizeEndPoint();
- // Simple indentation
- if (s.apply_source_formatting && s.indent_mode == 'simple') {
- // Add line breaks before and after block elements
- h = tinymce._replace(/<(\/?)(ul|hr|table|meta|link|tbody|tr|object|body|head|html|map)(|[^>]+)>\s*/g, '\n<$1$2$3>\n', h);
- h = tinymce._replace(/\s*<(p|h[1-6]|blockquote|div|title|style|pre|script|td|li|area)(|[^>]+)>/g, '\n<$1$2>', h);
- h = tinymce._replace(/<\/(p|h[1-6]|blockquote|div|title|style|pre|script|td|li)>\s*/g, '</$1>\n', h);
- h = h.replace(/\n\n/g, '\n');
- }
+ // Set the selection if it was normalized
+ if (normalized) {
+ // If it was collapsed then make sure it still is
+ if (collapsed) {
+ rng.collapse(true);
}
- h = t._unprotect(h, p);
+ //console.log(self.dom.dumpRng(rng));
+ self.setRng(rng, self.isForward());
+ }
+ },
- // Restore CDATA sections
- h = tinymce._replace(/<!--\[CDATA\[([\s\S]+)\]\]-->/g, '<![CDATA[$1]]>', h);
+ selectorChanged: function(selector, callback) {
+ var self = this, currentSelectors;
- // Restore the \u00a0 character if raw mode is enabled
- if (s.entity_encoding == 'raw')
- h = tinymce._replace(/<p> <\/p>|<p([^>]+)> <\/p>/g, '<p$1>\u00a0</p>', h);
+ if (!self.selectorChangedData) {
+ self.selectorChangedData = {};
+ currentSelectors = {};
- // Restore noscript elements
- h = h.replace(/<noscript([^>]+|)>([\s\S]*?)<\/noscript>/g, function(v, attribs, text) {
- return '<noscript' + attribs + '>' + t.dom.decode(text.replace(/<!--|-->/g, '')) + '</noscript>';
- });
- }
+ self.editor.onNodeChange.addToTop(function(ed, cm, node) {
+ var dom = self.dom, parents = dom.getParents(node, null, dom.getRoot()), matchedSelectors = {};
- o.content = h;
- },
+ // Check for new matching selectors
+ each(self.selectorChangedData, function(callbacks, selector) {
+ each(parents, function(node) {
+ if (dom.is(node, selector)) {
+ if (!currentSelectors[selector]) {
+ // Execute callbacks
+ each(callbacks, function(callback) {
+ callback(true, {node: node, selector: selector, parents: parents});
+ });
- _serializeNode : function(n, inner) {
- var t = this, s = t.settings, w = t.writer, hc, el, cn, i, l, a, at, no, v, nn, ru, ar, iv, closed, keep, type, scopeName;
+ currentSelectors[selector] = callbacks;
+ }
- if (!s.node_filter || s.node_filter(n)) {
- switch (n.nodeType) {
- case 1: // Element
- if (n.hasAttribute ? n.hasAttribute('_mce_bogus') : n.getAttribute('_mce_bogus'))
- return;
+ matchedSelectors[selector] = callbacks;
+ return false;
+ }
+ });
+ });
- iv = keep = false;
- hc = n.hasChildNodes();
- nn = n.getAttribute('_mce_name') || n.nodeName.toLowerCase();
+ // Check if current selectors still match
+ each(currentSelectors, function(callbacks, selector) {
+ if (!matchedSelectors[selector]) {
+ delete currentSelectors[selector];
- // Get internal type
- type = n.getAttribute('_mce_type');
- if (type) {
- if (!t._info.cleanup) {
- iv = true;
- return;
- } else
- keep = 1;
+ each(callbacks, function(callback) {
+ callback(false, {node: node, selector: selector, parents: parents});
+ });
}
+ });
+ });
+ }
- // Add correct prefix on IE
- if (isIE) {
- scopeName = n.scopeName;
- if (scopeName && scopeName !== 'HTML' && scopeName !== 'html')
- nn = scopeName + ':' + nn;
- }
+ // Add selector listeners
+ if (!self.selectorChangedData[selector]) {
+ self.selectorChangedData[selector] = [];
+ }
- // Remove mce prefix on IE needed for the abbr element
- if (nn.indexOf('mce:') === 0)
- nn = nn.substring(4);
+ self.selectorChangedData[selector].push(callback);
- // Check if valid
- if (!keep) {
- if (!t.validElementsRE || !t.validElementsRE.test(nn) || (t.invalidElementsRE && t.invalidElementsRE.test(nn)) || inner) {
- iv = true;
- break;
- }
- }
+ return self;
+ },
- if (isIE) {
- // Fix IE content duplication (DOM can have multiple copies of the same node)
- if (s.fix_content_duplication) {
- if (n._mce_serialized == t.key)
- return;
+ destroy : function(manual) {
+ var self = this;
- n._mce_serialized = t.key;
- }
+ self.win = null;
- // IE sometimes adds a / infront of the node name
- if (nn.charAt(0) == '/')
- nn = nn.substring(1);
- } else if (isGecko) {
- // Ignore br elements
- if (n.nodeName === 'BR' && n.getAttribute('type') == '_moz')
- return;
- }
+ // Manual destroy then remove unload handler
+ if (!manual)
+ tinymce.removeUnload(self.destroy);
+ },
- // Check if valid child
- if (s.validate_children) {
- if (t.elementName && !t.schema.isValid(t.elementName, nn)) {
- iv = true;
- break;
- }
+ // IE has an issue where you can't select/move the caret by clicking outside the body if the document is in standards mode
+ _fixIESelection : function() {
+ var dom = this.dom, doc = dom.doc, body = doc.body, started, startRng, htmlElm;
- t.elementName = nn;
- }
+ // Return range from point or null if it failed
+ function rngFromPoint(x, y) {
+ var rng = body.createTextRange();
- ru = t.findRule(nn);
-
- // No valid rule for this element could be found then skip it
- if (!ru) {
- iv = true;
- break;
- }
+ try {
+ rng.moveToPoint(x, y);
+ } catch (ex) {
+ // IE sometimes throws and exception, so lets just ignore it
+ rng = null;
+ }
- nn = ru.name || nn;
- closed = s.closed.test(nn);
+ return rng;
+ };
- // Skip empty nodes or empty node name in IE
- if ((!hc && ru.noEmpty) || (isIE && !nn)) {
- iv = true;
- break;
- }
+ // Fires while the selection is changing
+ function selectionChange(e) {
+ var pointRng;
- // Check required
- if (ru.requiredAttribs) {
- a = ru.requiredAttribs;
+ // Check if the button is down or not
+ if (e.button) {
+ // Create range from mouse position
+ pointRng = rngFromPoint(e.x, e.y);
- for (i = a.length - 1; i >= 0; i--) {
- if (this.dom.getAttrib(n, a[i]) !== '')
- break;
- }
+ if (pointRng) {
+ // Check if pointRange is before/after selection then change the endPoint
+ if (pointRng.compareEndPoints('StartToStart', startRng) > 0)
+ pointRng.setEndPoint('StartToStart', startRng);
+ else
+ pointRng.setEndPoint('EndToEnd', startRng);
- // None of the required was there
- if (i == -1) {
- iv = true;
- break;
- }
- }
+ pointRng.select();
+ }
+ } else
+ endSelection();
+ }
- w.writeStartElement(nn);
+ // Removes listeners
+ function endSelection() {
+ var rng = doc.selection.createRange();
- // Add ordered attributes
- if (ru.attribs) {
- for (i=0, at = ru.attribs, l = at.length; i<l; i++) {
- a = at[i];
- v = t._getAttrib(n, a);
+ // If the range is collapsed then use the last start range
+ if (startRng && !rng.item && rng.compareEndPoints('StartToEnd', rng) === 0)
+ startRng.select();
- if (v !== null)
- w.writeAttribute(a.name, v);
- }
- }
+ dom.unbind(doc, 'mouseup', endSelection);
+ dom.unbind(doc, 'mousemove', selectionChange);
+ startRng = started = 0;
+ };
- // Add wild attributes
- if (ru.validAttribsRE) {
- at = t.dom.getAttribs(n);
- for (i=at.length-1; i>-1; i--) {
- no = at[i];
+ // Make HTML element unselectable since we are going to handle selection by hand
+ doc.documentElement.unselectable = true;
+
+ // Detect when user selects outside BODY
+ dom.bind(doc, ['mousedown', 'contextmenu'], function(e) {
+ if (e.target.nodeName === 'HTML') {
+ if (started)
+ endSelection();
- if (no.specified) {
- a = no.nodeName.toLowerCase();
+ // Detect vertical scrollbar, since IE will fire a mousedown on the scrollbar and have target set as HTML
+ htmlElm = doc.documentElement;
+ if (htmlElm.scrollHeight > htmlElm.clientHeight)
+ return;
- if (s.invalid_attrs.test(a) || !ru.validAttribsRE.test(a))
- continue;
+ started = 1;
+ // Setup start position
+ startRng = rngFromPoint(e.x, e.y);
+ if (startRng) {
+ // Listen for selection change events
+ dom.bind(doc, 'mouseup', endSelection);
+ dom.bind(doc, 'mousemove', selectionChange);
- ar = t.findAttribRule(ru, a);
- v = t._getAttrib(n, ar, a);
+ dom.win.focus();
+ startRng.select();
+ }
+ }
+ });
+ }
+ });
+})(tinymce);
- if (v !== null)
- w.writeAttribute(a, v);
- }
- }
- }
+(function(tinymce) {
+ tinymce.dom.Serializer = function(settings, dom, schema) {
+ var onPreProcess, onPostProcess, isIE = tinymce.isIE, each = tinymce.each, htmlParser;
- // Keep type attribute
- if (type && keep)
- w.writeAttribute('_mce_type', type);
+ // Support the old apply_source_formatting option
+ if (!settings.apply_source_formatting)
+ settings.indent = false;
- // Write text from script
- if (nn === 'script' && tinymce.trim(n.innerHTML)) {
- w.writeText('// '); // Padd it with a comment so it will parse on older browsers
- w.writeCDATA(n.innerHTML.replace(/<!--|-->|<\[CDATA\[|\]\]>/g, '')); // Remove comments and cdata stuctures
- hc = false;
- break;
- }
+ // Default DOM and Schema if they are undefined
+ dom = dom || tinymce.DOM;
+ schema = schema || new tinymce.html.Schema(settings);
+ settings.entity_encoding = settings.entity_encoding || 'named';
+ settings.remove_trailing_brs = "remove_trailing_brs" in settings ? settings.remove_trailing_brs : true;
- // Padd empty nodes with a
- if (ru.padd) {
- // If it has only one bogus child, padd it anyway workaround for <td><br /></td> bug
- if (hc && (cn = n.firstChild) && cn.nodeType === 1 && n.childNodes.length === 1) {
- if (cn.hasAttribute ? cn.hasAttribute('_mce_bogus') : cn.getAttribute('_mce_bogus'))
- w.writeText('\u00a0');
- } else if (!hc)
- w.writeText('\u00a0'); // No children then padd it
- }
+ onPreProcess = new tinymce.util.Dispatcher(self);
- break;
+ onPostProcess = new tinymce.util.Dispatcher(self);
- case 3: // Text
- // Check if valid child
- if (s.validate_children && t.elementName && !t.schema.isValid(t.elementName, '#text'))
- return;
+ htmlParser = new tinymce.html.DomParser(settings, schema);
- return w.writeText(n.nodeValue);
+ // Convert move data-mce-src, data-mce-href and data-mce-style into nodes or process them if needed
+ htmlParser.addAttributeFilter('src,href,style', function(nodes, name) {
+ var i = nodes.length, node, value, internalName = 'data-mce-' + name, urlConverter = settings.url_converter, urlConverterScope = settings.url_converter_scope, undef;
- case 4: // CDATA
- return w.writeCDATA(n.nodeValue);
+ while (i--) {
+ node = nodes[i];
- case 8: // Comment
- return w.writeComment(n.nodeValue);
- }
- } else if (n.nodeType == 1)
- hc = n.hasChildNodes();
+ value = node.attributes.map[internalName];
+ if (value !== undef) {
+ // Set external name to internal value and remove internal
+ node.attr(name, value.length > 0 ? value : null);
+ node.attr(internalName, null);
+ } else {
+ // No internal attribute found then convert the value we have in the DOM
+ value = node.attributes.map[name];
- if (hc && !closed) {
- cn = n.firstChild;
+ if (name === "style")
+ value = dom.serializeStyle(dom.parseStyle(value), node.name);
+ else if (urlConverter)
+ value = urlConverter.call(urlConverterScope, value, name, node.name);
- while (cn) {
- t._serializeNode(cn);
- t.elementName = nn;
- cn = cn.nextSibling;
+ node.attr(name, value.length > 0 ? value : null);
}
}
+ });
- // Write element end
- if (!iv) {
- if (!closed)
- w.writeFullEndElement();
- else
- w.writeEndElement();
- }
- },
-
- _protect : function(o) {
- var t = this;
-
- o.items = o.items || [];
-
- function enc(s) {
- return s.replace(/[\r\n\\]/g, function(c) {
- if (c === '\n')
- return '\\n';
- else if (c === '\\')
- return '\\\\';
+ // Remove internal classes mceItem<..> or mceSelected
+ htmlParser.addAttributeFilter('class', function(nodes, name) {
+ var i = nodes.length, node, value;
- return '\\r';
- });
- };
+ while (i--) {
+ node = nodes[i];
+ value = node.attr('class').replace(/(?:^|\s)mce(Item\w+|Selected)(?!\S)/g, '');
+ node.attr('class', value.length > 0 ? value : null);
+ }
+ });
- function dec(s) {
- return s.replace(/\\[\\rn]/g, function(c) {
- if (c === '\\n')
- return '\n';
- else if (c === '\\\\')
- return '\\';
+ // Remove bookmark elements
+ htmlParser.addAttributeFilter('data-mce-type', function(nodes, name, args) {
+ var i = nodes.length, node;
- return '\r';
- });
- };
+ while (i--) {
+ node = nodes[i];
- each(o.patterns, function(p) {
- o.content = dec(enc(o.content).replace(p.pattern, function(x, a, b, c) {
- b = dec(b);
+ if (node.attributes.map['data-mce-type'] === 'bookmark' && !args.cleanup)
+ node.remove();
+ }
+ });
- if (p.encode)
- b = t._encode(b);
+ // Remove expando attributes
+ htmlParser.addAttributeFilter('data-mce-expando', function(nodes, name, args) {
+ var i = nodes.length;
- o.items.push(b);
- return a + '<!--mce:' + (o.items.length - 1) + '-->' + c;
- }));
- });
+ while (i--) {
+ nodes[i].attr(name, null);
+ }
+ });
- return o;
- },
+ htmlParser.addNodeFilter('noscript', function(nodes) {
+ var i = nodes.length, node;
- _unprotect : function(h, o) {
- h = h.replace(/\<!--mce:([0-9]+)--\>/g, function(a, b) {
- return o.items[parseInt(b)];
- });
+ while (i--) {
+ node = nodes[i].firstChild;
- o.items = [];
+ if (node) {
+ node.value = tinymce.html.Entities.decode(node.value);
+ }
+ }
+ });
- return h;
- },
+ // Force script into CDATA sections and remove the mce- prefix also add comments around styles
+ htmlParser.addNodeFilter('script,style', function(nodes, name) {
+ var i = nodes.length, node, value;
- _encode : function(h) {
- var t = this, s = t.settings, l;
+ function trim(value) {
+ return value.replace(/(<!--\[CDATA\[|\]\]-->)/g, '\n')
+ .replace(/^[\r\n]*|[\r\n]*$/g, '')
+ .replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi, '')
+ .replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g, '');
+ };
- // Entity encode
- if (s.entity_encoding !== 'raw') {
- if (s.entity_encoding.indexOf('named') != -1) {
- t.setEntities(s.entities);
- l = t.entityLookup;
+ while (i--) {
+ node = nodes[i];
+ value = node.firstChild ? node.firstChild.value : '';
- h = h.replace(/[\u007E-\uFFFF]/g, function(a) {
- var v;
+ if (name === "script") {
+ // Remove mce- prefix from script elements
+ node.attr('type', (node.attr('type') || 'text/javascript').replace(/^mce\-/, ''));
- if (v = l[a])
- a = '&' + v + ';';
+ if (value.length > 0)
+ node.firstChild.value = '// <![CDATA[\n' + trim(value) + '\n// ]]>';
+ } else {
+ if (value.length > 0)
+ node.firstChild.value = '<!--\n' + trim(value) + '\n-->';
+ }
+ }
+ });
- return a;
- });
+ // Convert comments to cdata and handle protected comments
+ htmlParser.addNodeFilter('#comment', function(nodes, name) {
+ var i = nodes.length, node;
+
+ while (i--) {
+ node = nodes[i];
+
+ if (node.value.indexOf('[CDATA[') === 0) {
+ node.name = '#cdata';
+ node.type = 4;
+ node.value = node.value.replace(/^\[CDATA\[|\]\]$/g, '');
+ } else if (node.value.indexOf('mce:protected ') === 0) {
+ node.name = "#text";
+ node.type = 3;
+ node.raw = true;
+ node.value = unescape(node.value).substr(14);
}
+ }
+ });
- if (s.entity_encoding.indexOf('numeric') != -1) {
- h = h.replace(/[\u007E-\uFFFF]/g, function(a) {
- return '&#' + a.charCodeAt(0) + ';';
- });
+ htmlParser.addNodeFilter('xml:namespace,input', function(nodes, name) {
+ var i = nodes.length, node;
+
+ while (i--) {
+ node = nodes[i];
+ if (node.type === 7)
+ node.remove();
+ else if (node.type === 1) {
+ if (name === "input" && !("type" in node.attributes.map))
+ node.attr('type', 'text');
}
}
+ });
- return h;
- },
+ // Fix list elements, TODO: Replace this later
+ if (settings.fix_list_elements) {
+ htmlParser.addNodeFilter('ul,ol', function(nodes, name) {
+ var i = nodes.length, node, parentNode;
- _setup : function() {
- var t = this, s = this.settings;
+ while (i--) {
+ node = nodes[i];
+ parentNode = node.parent;
- if (t.done)
- return;
+ if (parentNode.name === 'ul' || parentNode.name === 'ol') {
+ if (node.prev && node.prev.name === 'li') {
+ node.prev.append(node);
+ }
+ }
+ }
+ });
+ }
- t.done = 1;
+ // Remove internal data attributes
+ htmlParser.addAttributeFilter('data-mce-src,data-mce-href,data-mce-style', function(nodes, name) {
+ var i = nodes.length;
- t.setRules(s.valid_elements);
- t.addRules(s.extended_valid_elements);
+ while (i--) {
+ nodes[i].attr(name, null);
+ }
+ });
- if (s.invalid_elements)
- t.invalidElementsRE = new RegExp('^(' + wildcardToRE(s.invalid_elements.replace(/,/g, '|').toLowerCase()) + ')$');
+ // Return public methods
+ return {
+ schema : schema,
- if (s.attrib_value_filter)
- t.attribValueFilter = s.attribValueFilter;
- },
+ addNodeFilter : htmlParser.addNodeFilter,
- _getAttrib : function(n, a, na) {
- var i, v;
+ addAttributeFilter : htmlParser.addAttributeFilter,
- na = na || a.name;
+ onPreProcess : onPreProcess,
- if (a.forcedVal && (v = a.forcedVal)) {
- if (v === '{$uid}')
- return this.dom.uniqueId();
+ onPostProcess : onPostProcess,
- return v;
- }
+ serialize : function(node, args) {
+ var impl, doc, oldDoc, htmlSerializer, content;
- v = this.dom.getAttrib(n, na);
+ // Explorer won't clone contents of script and style and the
+ // selected index of select elements are cleared on a clone operation.
+ if (isIE && dom.select('script,style,select,map').length > 0) {
+ content = node.innerHTML;
+ node = node.cloneNode(false);
+ dom.setHTML(node, content);
+ } else
+ node = node.cloneNode(true);
+
+ // Nodes needs to be attached to something in WebKit/Opera
+ // Older builds of Opera crashes if you attach the node to an document created dynamically
+ // and since we can't feature detect a crash we need to sniff the acutal build number
+ // This fix will make DOM ranges and make Sizzle happy!
+ impl = node.ownerDocument.implementation;
+ if (impl.createHTMLDocument) {
+ // Create an empty HTML document
+ doc = impl.createHTMLDocument("");
+
+ // Add the element or it's children if it's a body element to the new document
+ each(node.nodeName == 'BODY' ? node.childNodes : [node], function(node) {
+ doc.body.appendChild(doc.importNode(node, true));
+ });
- switch (na) {
- case 'rowspan':
- case 'colspan':
- // Whats the point? Remove usless attribute value
- if (v == '1')
- v = '';
+ // Grab first child or body element for serialization
+ if (node.nodeName != 'BODY')
+ node = doc.body.firstChild;
+ else
+ node = doc.body;
- break;
- }
+ // set the new document in DOMUtils so createElement etc works
+ oldDoc = dom.doc;
+ dom.doc = doc;
+ }
- if (this.attribValueFilter)
- v = this.attribValueFilter(na, v, n);
+ args = args || {};
+ args.format = args.format || 'html';
- if (a.validVals) {
- for (i = a.validVals.length - 1; i >= 0; i--) {
- if (v == a.validVals[i])
- break;
+ // Pre process
+ if (!args.no_events) {
+ args.node = node;
+ onPreProcess.dispatch(self, args);
}
- if (i == -1)
- return null;
- }
+ // Setup serializer
+ htmlSerializer = new tinymce.html.Serializer(settings, schema);
- if (v === '' && typeof(a.defaultVal) != 'undefined') {
- v = a.defaultVal;
+ // Parse and serialize HTML
+ args.content = htmlSerializer.serialize(
+ htmlParser.parse(tinymce.trim(args.getInner ? node.innerHTML : dom.getOuterHTML(node)), args)
+ );
- if (v === '{$uid}')
- return this.dom.uniqueId();
+ // Replace all BOM characters for now until we can find a better solution
+ if (!args.cleanup)
+ args.content = args.content.replace(/\uFEFF/g, '');
- return v;
- } else {
- // Remove internal mceItemXX classes when content is extracted from editor
- if (na == 'class' && this.processObj.get)
- v = v.replace(/\s?mceItem\w+\s?/g, '');
- }
+ // Post process
+ if (!args.no_events)
+ onPostProcess.dispatch(self, args);
- if (v === '')
- return null;
+ // Restore the old document if it was changed
+ if (oldDoc)
+ dom.doc = oldDoc;
+ args.node = null;
- return v;
- }
- });
-})(tinymce);
+ return args.content;
+ },
+
+ addRules : function(rules) {
+ schema.addValidElements(rules);
+ },
+ setRules : function(rules) {
+ schema.setValidElements(rules);
+ }
+ };
+ };
+})(tinymce);
(function(tinymce) {
tinymce.dom.ScriptLoader = function(settings) {
var QUEUED = 0,
@@ -6835,7 +10694,7 @@ window.tinymce.dom.Sizzle = Sizzle;
scriptLoadedCallbacks = {},
queueLoadedCallbacks = [],
loading = 0,
- undefined;
+ undef;
function loadScript(url, callback) {
var t = this, dom = tinymce.DOM, elm, uri, loc, id;
@@ -6849,6 +10708,17 @@ window.tinymce.dom.Sizzle = Sizzle;
callback();
};
+
+ function error() {
+ // Report the error so it's easier for people to spot loading errors
+ if (typeof(console) !== "undefined" && console.log)
+ console.log("Failed to load: " + url);
+
+ // We can't mark it as done if there is a load error since
+ // A) We don't want to produce 404 errors on the server and
+ // B) the onerror event won't fire on all browsers.
+ // done();
+ };
id = dom.uniqueId();
@@ -6858,7 +10728,7 @@ window.tinymce.dom.Sizzle = Sizzle;
// If script is from same domain and we
// use IE 6 then use XHR since it's more reliable
- if (uri.host == loc.hostname && uri.port == loc.port && (uri.protocol + ':') == loc.protocol) {
+ if (uri.host == loc.hostname && uri.port == loc.port && (uri.protocol + ':') == loc.protocol && uri.protocol.toLowerCase() != 'file') {
tinymce.util.XHR.send({
url : tinymce._addVer(uri.getURI()),
success : function(content) {
@@ -6873,7 +10743,9 @@ window.tinymce.dom.Sizzle = Sizzle;
dom.remove(script);
done();
- }
+ },
+
+ error : error
});
return;
@@ -6881,26 +10753,31 @@ window.tinymce.dom.Sizzle = Sizzle;
}
// Create new script element
- elm = dom.create('script', {
- id : id,
- type : 'text/javascript',
- src : tinymce._addVer(url)
- });
+ elm = document.createElement('script');
+ elm.id = id;
+ elm.type = 'text/javascript';
+ elm.src = tinymce._addVer(url);
// Add onload listener for non IE browsers since IE9
// fires onload event before the script is parsed and executed
if (!tinymce.isIE)
elm.onload = done;
- elm.onreadystatechange = function() {
- var state = elm.readyState;
+ // Add onerror event will get fired on some browsers but not all of them
+ elm.onerror = error;
- // Loaded state is passed on IE 6 however there
- // are known issues with this method but we can't use
- // XHR in a cross domain loading
- if (state == 'complete' || state == 'loaded')
- done();
- };
+ // Opera 9.60 doesn't seem to fire the onreadystate event at correctly
+ if (!tinymce.isOpera) {
+ elm.onreadystatechange = function() {
+ var state = elm.readyState;
+
+ // Loaded state is passed on IE 6 however there
+ // are known issues with this method but we can't use
+ // XHR in a cross domain loading
+ if (state == 'complete' || state == 'loaded')
+ done();
+ };
+ }
// Most browsers support this feature so we report errors
// for those at least to help users track their missing plugins etc
@@ -6925,7 +10802,7 @@ window.tinymce.dom.Sizzle = Sizzle;
var item, state = states[url];
// Add url to load queue
- if (state == undefined) {
+ if (state == undef) {
queue.push(url);
states[url] = QUEUED;
}
@@ -6955,7 +10832,7 @@ window.tinymce.dom.Sizzle = Sizzle;
callback.func.call(callback.scope);
});
- scriptLoadedCallbacks[url] = undefined;
+ scriptLoadedCallbacks[url] = undef;
};
queueLoadedCallbacks.push({
@@ -7012,200 +10889,6 @@ window.tinymce.dom.Sizzle = Sizzle;
tinymce.ScriptLoader = new tinymce.dom.ScriptLoader();
})(tinymce);
-tinymce.dom.TreeWalker = function(start_node, root_node) {
- var node = start_node;
-
- function findSibling(node, start_name, sibling_name, shallow) {
- var sibling, parent;
-
- if (node) {
- // Walk into nodes if it has a start
- if (!shallow && node[start_name])
- return node[start_name];
-
- // Return the sibling if it has one
- if (node != root_node) {
- sibling = node[sibling_name];
- if (sibling)
- return sibling;
-
- // Walk up the parents to look for siblings
- for (parent = node.parentNode; parent && parent != root_node; parent = parent.parentNode) {
- sibling = parent[sibling_name];
- if (sibling)
- return sibling;
- }
- }
- }
- };
-
- this.current = function() {
- return node;
- };
-
- this.next = function(shallow) {
- return (node = findSibling(node, 'firstChild', 'nextSibling', shallow));
- };
-
- this.prev = function(shallow) {
- return (node = findSibling(node, 'lastChild', 'lastSibling', shallow));
- };
-};
-
-(function() {
- var transitional = {};
-
- function unpack(lookup, data) {
- var key;
-
- function replace(value) {
- return value.replace(/[A-Z]+/g, function(key) {
- return replace(lookup[key]);
- });
- };
-
- // Unpack lookup
- for (key in lookup) {
- if (lookup.hasOwnProperty(key))
- lookup[key] = replace(lookup[key]);
- }
-
- // Unpack and parse data into object map
- replace(data).replace(/#/g, '#text').replace(/(\w+)\[([^\]]+)\]/g, function(str, name, children) {
- var i, map = {};
-
- children = children.split(/\|/);
-
- for (i = children.length - 1; i >= 0; i--)
- map[children[i]] = 1;
-
- transitional[name] = map;
- });
- };
-
- // This is the XHTML 1.0 transitional elements with it's children packed to reduce it's size
- // we will later include the attributes here and use it as a default for valid elements but it
- // requires us to rewrite the serializer engine
- unpack({
- Z : '#|H|K|N|O|P',
- Y : '#|X|form|R|Q',
- X : 'p|T|div|U|W|isindex|fieldset|table',
- W : 'pre|hr|blockquote|address|center|noframes',
- U : 'ul|ol|dl|menu|dir',
- ZC : '#|p|Y|div|U|W|table|br|span|bdo|object|applet|img|map|K|N|Q',
- T : 'h1|h2|h3|h4|h5|h6',
- ZB : '#|X|S|Q',
- S : 'R|P',
- ZA : '#|a|G|J|M|O|P',
- R : '#|a|H|K|N|O',
- Q : 'noscript|P',
- P : 'ins|del|script',
- O : 'input|select|textarea|label|button',
- N : 'M|L',
- M : 'em|strong|dfn|code|q|samp|kbd|var|cite|abbr|acronym',
- L : 'sub|sup',
- K : 'J|I',
- J : 'tt|i|b|u|s|strike',
- I : 'big|small|font|basefont',
- H : 'G|F',
- G : 'br|span|bdo',
- F : 'object|applet|img|map|iframe'
- }, 'script[]' +
- 'style[]' +
- 'object[#|param|X|form|a|H|K|N|O|Q]' +
- 'param[]' +
- 'p[S]' +
- 'a[Z]' +
- 'br[]' +
- 'span[S]' +
- 'bdo[S]' +
- 'applet[#|param|X|form|a|H|K|N|O|Q]' +
- 'h1[S]' +
- 'img[]' +
- 'map[X|form|Q|area]' +
- 'h2[S]' +
- 'iframe[#|X|form|a|H|K|N|O|Q]' +
- 'h3[S]' +
- 'tt[S]' +
- 'i[S]' +
- 'b[S]' +
- 'u[S]' +
- 's[S]' +
- 'strike[S]' +
- 'big[S]' +
- 'small[S]' +
- 'font[S]' +
- 'basefont[]' +
- 'em[S]' +
- 'strong[S]' +
- 'dfn[S]' +
- 'code[S]' +
- 'q[S]' +
- 'samp[S]' +
- 'kbd[S]' +
- 'var[S]' +
- 'cite[S]' +
- 'abbr[S]' +
- 'acronym[S]' +
- 'sub[S]' +
- 'sup[S]' +
- 'input[]' +
- 'select[optgroup|option]' +
- 'optgroup[option]' +
- 'option[]' +
- 'textarea[]' +
- 'label[S]' +
- 'button[#|p|T|div|U|W|table|G|object|applet|img|map|K|N|Q]' +
- 'h4[S]' +
- 'ins[#|X|form|a|H|K|N|O|Q]' +
- 'h5[S]' +
- 'del[#|X|form|a|H|K|N|O|Q]' +
- 'h6[S]' +
- 'div[#|X|form|a|H|K|N|O|Q]' +
- 'ul[li]' +
- 'li[#|X|form|a|H|K|N|O|Q]' +
- 'ol[li]' +
- 'dl[dt|dd]' +
- 'dt[S]' +
- 'dd[#|X|form|a|H|K|N|O|Q]' +
- 'menu[li]' +
- 'dir[li]' +
- 'pre[ZA]' +
- 'hr[]' +
- 'blockquote[#|X|form|a|H|K|N|O|Q]' +
- 'address[S|p]' +
- 'center[#|X|form|a|H|K|N|O|Q]' +
- 'noframes[#|X|form|a|H|K|N|O|Q]' +
- 'isindex[]' +
- 'fieldset[#|legend|X|form|a|H|K|N|O|Q]' +
- 'legend[S]' +
- 'table[caption|col|colgroup|thead|tfoot|tbody|tr]' +
- 'caption[S]' +
- 'col[]' +
- 'colgroup[col]' +
- 'thead[tr]' +
- 'tr[th|td]' +
- 'th[#|X|form|a|H|K|N|O|Q]' +
- 'form[#|X|a|H|K|N|O|Q]' +
- 'noscript[#|X|form|a|H|K|N|O|Q]' +
- 'td[#|X|form|a|H|K|N|O|Q]' +
- 'tfoot[tr]' +
- 'tbody[tr]' +
- 'area[]' +
- 'base[]' +
- 'body[#|X|form|a|H|K|N|O|Q]'
- );
-
- tinymce.dom.Schema = function() {
- var t = this, elements = transitional;
-
- t.isValid = function(name, child_name) {
- var element = elements[name];
-
- return !!(element && (!child_name || element[child_name]));
- };
- };
-})();
(function(tinymce) {
tinymce.dom.RangeUtils = function(dom) {
var INVISIBLE_CHAR = '\uFEFF';
@@ -7229,6 +10912,24 @@ tinymce.dom.TreeWalker = function(start_node, root_node) {
return;
}
+ function exclude(nodes) {
+ var node;
+
+ // First node is excluded
+ node = nodes[0];
+ if (node.nodeType === 3 && node === startContainer && startOffset >= node.nodeValue.length) {
+ nodes.splice(0, 1);
+ }
+
+ // Last node is excluded
+ node = nodes[nodes.length - 1];
+ if (endOffset === 0 && nodes.length > 0 && node === endContainer && node.nodeType === 3) {
+ nodes.splice(nodes.length - 1, 1);
+ }
+
+ return nodes;
+ };
+
function collectSiblings(node, name, end_node) {
var siblings = [];
@@ -7258,7 +10959,7 @@ tinymce.dom.TreeWalker = function(start_node, root_node) {
if (!next)
siblings.reverse();
- callback(siblings);
+ callback(exclude(siblings));
}
}
};
@@ -7269,30 +10970,30 @@ tinymce.dom.TreeWalker = function(start_node, root_node) {
// If index based end position then resolve it
if (endContainer.nodeType == 1 && endContainer.hasChildNodes())
- endContainer = endContainer.childNodes[Math.min(startOffset == endOffset ? endOffset : endOffset - 1, endContainer.childNodes.length - 1)];
-
- // Find common ancestor and end points
- ancestor = dom.findCommonAncestor(startContainer, endContainer);
+ endContainer = endContainer.childNodes[Math.min(endOffset - 1, endContainer.childNodes.length - 1)];
// Same container
if (startContainer == endContainer)
- return callback([startContainer]);
+ return callback(exclude([startContainer]));
+ // Find common ancestor and end points
+ ancestor = dom.findCommonAncestor(startContainer, endContainer);
+
// Process left side
for (node = startContainer; node; node = node.parentNode) {
- if (node == endContainer)
+ if (node === endContainer)
return walkBoundary(startContainer, ancestor, true);
- if (node == ancestor)
+ if (node === ancestor)
break;
}
// Process right side
for (node = endContainer; node; node = node.parentNode) {
- if (node == startContainer)
+ if (node === startContainer)
return walkBoundary(endContainer, ancestor);
- if (node == ancestor)
+ if (node === ancestor)
break;
}
@@ -7311,48 +11012,46 @@ tinymce.dom.TreeWalker = function(start_node, root_node) {
);
if (siblings.length)
- callback(siblings);
+ callback(exclude(siblings));
// Walk right leaf
walkBoundary(endContainer, endPoint);
};
- /* this.split = function(rng) {
+ this.split = function(rng) {
var startContainer = rng.startContainer,
startOffset = rng.startOffset,
endContainer = rng.endContainer,
endOffset = rng.endOffset;
function splitText(node, offset) {
- if (offset == node.nodeValue.length)
- node.appendData(INVISIBLE_CHAR);
-
- node = node.splitText(offset);
-
- if (node.nodeValue === INVISIBLE_CHAR)
- node.nodeValue = '';
-
- return node;
+ return node.splitText(offset);
};
// Handle single text node
- if (startContainer == endContainer) {
- if (startContainer.nodeType == 3) {
- if (startOffset != 0)
- startContainer = endContainer = splitText(startContainer, startOffset);
-
- if (endOffset - startOffset != startContainer.nodeValue.length)
- splitText(startContainer, endOffset - startOffset);
+ if (startContainer == endContainer && startContainer.nodeType == 3) {
+ if (startOffset > 0 && startOffset < startContainer.nodeValue.length) {
+ endContainer = splitText(startContainer, startOffset);
+ startContainer = endContainer.previousSibling;
+
+ if (endOffset > startOffset) {
+ endOffset = endOffset - startOffset;
+ startContainer = endContainer = splitText(endContainer, endOffset).previousSibling;
+ endOffset = endContainer.nodeValue.length;
+ startOffset = 0;
+ } else {
+ endOffset = 0;
+ }
}
} else {
// Split startContainer text node if needed
- if (startContainer.nodeType == 3 && startOffset != 0) {
+ if (startContainer.nodeType == 3 && startOffset > 0 && startOffset < startContainer.nodeValue.length) {
startContainer = splitText(startContainer, startOffset);
startOffset = 0;
}
// Split endContainer text node if needed
- if (endContainer.nodeType == 3 && endOffset != endContainer.nodeValue.length) {
+ if (endContainer.nodeType == 3 && endOffset > 0 && endOffset < endContainer.nodeValue.length) {
endContainer = splitText(endContainer, endOffset).previousSibling;
endOffset = endContainer.nodeValue.length;
}
@@ -7365,7 +11064,7 @@ tinymce.dom.TreeWalker = function(start_node, root_node) {
endOffset : endOffset
};
};
-*/
+
};
tinymce.dom.RangeUtils.compareRanges = function(rng1, rng2) {
@@ -7390,11 +11089,164 @@ tinymce.dom.TreeWalker = function(start_node, root_node) {
})(tinymce);
(function(tinymce) {
+ var Event = tinymce.dom.Event, each = tinymce.each;
+
+ tinymce.create('tinymce.ui.KeyboardNavigation', {
+ KeyboardNavigation: function(settings, dom) {
+ var t = this, root = settings.root, items = settings.items,
+ enableUpDown = settings.enableUpDown, enableLeftRight = settings.enableLeftRight || !settings.enableUpDown,
+ excludeFromTabOrder = settings.excludeFromTabOrder,
+ itemFocussed, itemBlurred, rootKeydown, rootFocussed, focussedId;
+
+ dom = dom || tinymce.DOM;
+
+ itemFocussed = function(evt) {
+ focussedId = evt.target.id;
+ };
+
+ itemBlurred = function(evt) {
+ dom.setAttrib(evt.target.id, 'tabindex', '-1');
+ };
+
+ rootFocussed = function(evt) {
+ var item = dom.get(focussedId);
+ dom.setAttrib(item, 'tabindex', '0');
+ item.focus();
+ };
+
+ t.focus = function() {
+ dom.get(focussedId).focus();
+ };
+
+ t.destroy = function() {
+ each(items, function(item) {
+ var elm = dom.get(item.id);
+
+ dom.unbind(elm, 'focus', itemFocussed);
+ dom.unbind(elm, 'blur', itemBlurred);
+ });
+
+ var rootElm = dom.get(root);
+ dom.unbind(rootElm, 'focus', rootFocussed);
+ dom.unbind(rootElm, 'keydown', rootKeydown);
+
+ items = dom = root = t.focus = itemFocussed = itemBlurred = rootKeydown = rootFocussed = null;
+ t.destroy = function() {};
+ };
+
+ t.moveFocus = function(dir, evt) {
+ var idx = -1, controls = t.controls, newFocus;
+
+ if (!focussedId)
+ return;
+
+ each(items, function(item, index) {
+ if (item.id === focussedId) {
+ idx = index;
+ return false;
+ }
+ });
+
+ idx += dir;
+ if (idx < 0) {
+ idx = items.length - 1;
+ } else if (idx >= items.length) {
+ idx = 0;
+ }
+
+ newFocus = items[idx];
+ dom.setAttrib(focussedId, 'tabindex', '-1');
+ dom.setAttrib(newFocus.id, 'tabindex', '0');
+ dom.get(newFocus.id).focus();
+
+ if (settings.actOnFocus) {
+ settings.onAction(newFocus.id);
+ }
+
+ if (evt)
+ Event.cancel(evt);
+ };
+
+ rootKeydown = function(evt) {
+ var DOM_VK_LEFT = 37, DOM_VK_RIGHT = 39, DOM_VK_UP = 38, DOM_VK_DOWN = 40, DOM_VK_ESCAPE = 27, DOM_VK_ENTER = 14, DOM_VK_RETURN = 13, DOM_VK_SPACE = 32;
+
+ switch (evt.keyCode) {
+ case DOM_VK_LEFT:
+ if (enableLeftRight) t.moveFocus(-1);
+ break;
+
+ case DOM_VK_RIGHT:
+ if (enableLeftRight) t.moveFocus(1);
+ break;
+
+ case DOM_VK_UP:
+ if (enableUpDown) t.moveFocus(-1);
+ break;
+
+ case DOM_VK_DOWN:
+ if (enableUpDown) t.moveFocus(1);
+ break;
+
+ case DOM_VK_ESCAPE:
+ if (settings.onCancel) {
+ settings.onCancel();
+ Event.cancel(evt);
+ }
+ break;
+
+ case DOM_VK_ENTER:
+ case DOM_VK_RETURN:
+ case DOM_VK_SPACE:
+ if (settings.onAction) {
+ settings.onAction(focussedId);
+ Event.cancel(evt);
+ }
+ break;
+ }
+ };
+
+ // Set up state and listeners for each item.
+ each(items, function(item, idx) {
+ var tabindex, elm;
+
+ if (!item.id) {
+ item.id = dom.uniqueId('_mce_item_');
+ }
+
+ elm = dom.get(item.id);
+
+ if (excludeFromTabOrder) {
+ dom.bind(elm, 'blur', itemBlurred);
+ tabindex = '-1';
+ } else {
+ tabindex = (idx === 0 ? '0' : '-1');
+ }
+
+ elm.setAttribute('tabindex', tabindex);
+ dom.bind(elm, 'focus', itemFocussed);
+ });
+
+ // Setup initial state for root element.
+ if (items[0]){
+ focussedId = items[0].id;
+ }
+
+ dom.setAttrib(root, 'tabindex', '-1');
+
+ // Setup listeners for root element.
+ var rootElm = dom.get(root);
+ dom.bind(rootElm, 'focus', rootFocussed);
+ dom.bind(rootElm, 'keydown', rootKeydown);
+ }
+ });
+})(tinymce);
+
+(function(tinymce) {
// Shorten class names
var DOM = tinymce.DOM, is = tinymce.is;
tinymce.create('tinymce.ui.Control', {
- Control : function(id, s) {
+ Control : function(id, s, editor) {
this.id = id;
this.settings = s = s || {};
this.rendered = false;
@@ -7403,22 +11255,23 @@ tinymce.dom.TreeWalker = function(start_node, root_node) {
this.scope = s.scope || this;
this.disabled = 0;
this.active = 0;
+ this.editor = editor;
+ },
+
+ setAriaProperty : function(property, value) {
+ var element = DOM.get(this.id + '_aria') || DOM.get(this.id);
+ if (element) {
+ DOM.setAttrib(element, 'aria-' + property, !!value);
+ }
+ },
+
+ focus : function() {
+ DOM.get(this.id).focus();
},
setDisabled : function(s) {
- var e;
-
if (s != this.disabled) {
- e = DOM.get(this.id);
-
- // Add accessibility title for unavailable actions
- if (e && this.settings.unavailable_prefix) {
- if (s) {
- this.prevTitle = e.title;
- e.title = this.settings.unavailable_prefix + ": " + e.title;
- } else
- e.title = this.prevTitle;
- }
+ this.setAriaProperty('disabled', s);
this.setState('Disabled', s);
this.setState('Enabled', !s);
@@ -7434,6 +11287,7 @@ tinymce.dom.TreeWalker = function(start_node, root_node) {
if (s != this.active) {
this.setState('Active', s);
this.active = s;
+ this.setAriaProperty('pressed', s);
}
},
@@ -7491,8 +11345,8 @@ tinymce.dom.TreeWalker = function(start_node, root_node) {
});
})(tinymce);
tinymce.create('tinymce.ui.Container:tinymce.ui.Control', {
- Container : function(id, s) {
- this.parent(id, s);
+ Container : function(id, s, editor) {
+ this.parent(id, s, editor);
this.controls = [];
@@ -7516,10 +11370,11 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
Separator : function(id, s) {
this.parent(id, s);
this.classPrefix = 'mceSeparator';
+ this.setDisabled(true);
},
renderHTML : function() {
- return tinymce.DOM.createHTML('span', {'class' : this.classPrefix});
+ return tinymce.DOM.createHTML('span', {'class' : this.classPrefix, role : 'separator', 'aria-orientation' : 'vertical', tabindex : '-1'});
}
});
@@ -7534,6 +11389,7 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
setSelected : function(s) {
this.setState('Selected', s);
+ this.setAriaProperty('checked', !!s);
this.selected = s;
},
@@ -7681,18 +11537,26 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
s['class'] = s['class'] || cs['class'];
s.vp_offset_x = s.vp_offset_x || cs.vp_offset_x;
s.vp_offset_y = s.vp_offset_y || cs.vp_offset_y;
+ s.keyboard_focus = cs.keyboard_focus;
m = new tinymce.ui.DropMenu(s.id || DOM.uniqueId(), s);
m.onAddItem.add(t.onAddItem.dispatch, t.onAddItem);
return m;
},
+
+ focus : function() {
+ var t = this;
+ if (t.keyboardNav) {
+ t.keyboardNav.focus();
+ }
+ },
update : function() {
var t = this, s = t.settings, tb = DOM.get('menu_' + t.id + '_tbl'), co = DOM.get('menu_' + t.id + '_co'), tw, th;
- tw = s.max_width ? Math.min(tb.clientWidth, s.max_width) : tb.clientWidth;
- th = s.max_height ? Math.min(tb.clientHeight, s.max_height) : tb.clientHeight;
+ tw = s.max_width ? Math.min(tb.offsetWidth, s.max_width) : tb.offsetWidth;
+ th = s.max_height ? Math.min(tb.offsetHeight, s.max_height) : tb.offsetHeight;
if (!DOM.boxModel)
t.element.setStyles({width : tw + 2, height : th + 2});
@@ -7782,7 +11646,7 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
if (m.settings.onclick)
m.settings.onclick(e);
- return Event.cancel(e); // Cancel to fix onbeforeunload problem
+ return false; // Cancel to fix onbeforeunload problem
}
});
@@ -7810,13 +11674,13 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
}
});
}
+
+ Event.add(co, 'keydown', t._keyHandler, t);
t.onShowMenu.dispatch(t);
- if (s.keyboard_focus) {
- Event.add(co, 'keydown', t._keyHandler, t);
- DOM.select('a', 'menu_' + t.id)[0].focus(); // Select first link
- t._focusIdx = 0;
+ if (s.keyboard_focus) {
+ t._setupKeyboardNav();
}
},
@@ -7826,6 +11690,7 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
if (!t.isMenuVisible)
return;
+ if (t.keyboardNav) t.keyboardNav.destroy();
Event.remove(co, 'mouseover', t.mouseOverFunc);
Event.remove(co, 'click', t.mouseClickFunc);
Event.remove(co, 'keydown', t._keyHandler);
@@ -7870,8 +11735,11 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
destroy : function() {
var t = this, co = DOM.get('menu_' + t.id);
+ if (t.keyboardNav) t.keyboardNav.destroy();
Event.remove(co, 'mouseover', t.mouseOverFunc);
+ Event.remove(DOM.select('a', co), 'focus', t.mouseOverFunc);
Event.remove(co, 'click', t.mouseClickFunc);
+ Event.remove(co, 'keydown', t._keyHandler);
if (t.element)
t.element.remove();
@@ -7882,15 +11750,18 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
renderNode : function() {
var t = this, s = t.settings, n, tb, co, w;
- w = DOM.create('div', {id : 'menu_' + t.id, 'class' : s['class'], 'style' : 'position:absolute;left:0;top:0;z-index:200000'});
- co = DOM.add(w, 'div', {id : 'menu_' + t.id + '_co', 'class' : t.classPrefix + (s['class'] ? ' ' + s['class'] : '')});
+ w = DOM.create('div', {role: 'listbox', id : 'menu_' + t.id, 'class' : s['class'], 'style' : 'position:absolute;left:0;top:0;z-index:200000;outline:0'});
+ if (t.settings.parent) {
+ DOM.setAttrib(w, 'aria-parent', 'menu_' + t.settings.parent.id);
+ }
+ co = DOM.add(w, 'div', {role: 'presentation', id : 'menu_' + t.id + '_co', 'class' : t.classPrefix + (s['class'] ? ' ' + s['class'] : '')});
t.element = new Element('menu_' + t.id, {blocker : 1, container : s.container});
if (s.menu_line)
DOM.add(co, 'span', {'class' : t.classPrefix + 'Line'});
// n = DOM.add(co, 'div', {id : 'menu_' + t.id + '_co', 'class' : 'mceMenuContainer'});
- n = DOM.add(co, 'table', {id : 'menu_' + t.id + '_tbl', border : 0, cellPadding : 0, cellSpacing : 0});
+ n = DOM.add(co, 'table', {role: 'presentation', id : 'menu_' + t.id + '_tbl', border : 0, cellPadding : 0, cellSpacing : 0});
tb = DOM.add(n, 'tbody');
each(t.items, function(o) {
@@ -7903,33 +11774,36 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
},
// Internal functions
+ _setupKeyboardNav : function(){
+ var contextMenu, menuItems, t=this;
+ contextMenu = DOM.get('menu_' + t.id);
+ menuItems = DOM.select('a[role=option]', 'menu_' + t.id);
+ menuItems.splice(0,0,contextMenu);
+ t.keyboardNav = new tinymce.ui.KeyboardNavigation({
+ root: 'menu_' + t.id,
+ items: menuItems,
+ onCancel: function() {
+ t.hideMenu();
+ },
+ enableUpDown: true
+ });
+ contextMenu.focus();
+ },
- _keyHandler : function(e) {
- var t = this, kc = e.keyCode;
-
- function focus(d) {
- var i = t._focusIdx + d, e = DOM.select('a', 'menu_' + t.id)[i];
-
- if (e) {
- t._focusIdx = i;
- e.focus();
- }
- };
-
- switch (kc) {
- case 38:
- focus(-1); // Select first link
- return;
-
- case 40:
- focus(1);
- return;
-
- case 13:
- return;
-
- case 27:
- return this.hideMenu();
+ _keyHandler : function(evt) {
+ var t = this, e;
+ switch (evt.keyCode) {
+ case 37: // Left
+ if (t.settings.parent) {
+ t.hideMenu();
+ t.settings.parent.focus();
+ Event.cancel(evt);
+ }
+ break;
+ case 39: // Right
+ if (t.mouseOverFunc)
+ t.mouseOverFunc(evt);
+ break;
}
},
@@ -7947,8 +11821,13 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
}
n = ro = DOM.add(tb, 'tr', {id : o.id, 'class' : cp + 'Item ' + cp + 'ItemEnabled'});
- n = it = DOM.add(n, 'td');
- n = a = DOM.add(n, 'a', {href : 'javascript:;', onclick : "return false;", onmousedown : 'return false;'});
+ n = it = DOM.add(n, s.titleItem ? 'th' : 'td');
+ n = a = DOM.add(n, 'a', {id: o.id + '_aria', role: s.titleItem ? 'presentation' : 'option', href : 'javascript:;', onclick : "return false;", onmousedown : 'return false;'});
+
+ if (s.parent) {
+ DOM.setAttrib(a, 'aria-haspopup', 'true');
+ DOM.setAttrib(a, 'aria-owns', 'menu_' + o.id);
+ }
DOM.addClass(it, s['class']);
// n = DOM.add(n, 'span', {'class' : 'item'});
@@ -7960,8 +11839,12 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
n = DOM.add(n, s.element || 'span', {'class' : 'mceText', title : o.settings.title}, o.settings.title);
- if (o.settings.style)
+ if (o.settings.style) {
+ if (typeof o.settings.style == "function")
+ o.settings.style = o.settings.style();
+
DOM.setAttrib(n, 'style', o.settings.style);
+ }
if (tb.childNodes.length == 1)
DOM.addClass(ro, 'mceFirst');
@@ -7983,8 +11866,8 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
var DOM = tinymce.DOM;
tinymce.create('tinymce.ui.Button:tinymce.ui.Control', {
- Button : function(id, s) {
- this.parent(id, s);
+ Button : function(id, s, ed) {
+ this.parent(id, s, ed);
this.classPrefix = 'mceButton';
},
@@ -7992,21 +11875,39 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
var cp = this.classPrefix, s = this.settings, h, l;
l = DOM.encode(s.label || '');
- h = '<a id="' + this.id + '" href="javascript:;" class="' + cp + ' ' + cp + 'Enabled ' + s['class'] + (l ? ' ' + cp + 'Labeled' : '') +'" onmousedown="return false;" onclick="return false;" title="' + DOM.encode(s.title) + '">';
-
- if (s.image)
- h += '<img class="mceIcon" src="' + s.image + '" />' + l + '</a>';
+ h = '<a role="button" id="' + this.id + '" href="javascript:;" class="' + cp + ' ' + cp + 'Enabled ' + s['class'] + (l ? ' ' + cp + 'Labeled' : '') +'" onmousedown="return false;" onclick="return false;" aria-labelledby="' + this.id + '_voice" title="' + DOM.encode(s.title) + '">';
+ if (s.image && !(this.editor &&this.editor.forcedHighContrastMode) )
+ h += '<span class="mceIcon ' + s['class'] + '"><img class="mceIcon" src="' + s.image + '" alt="' + DOM.encode(s.title) + '" /></span>' + (l ? '<span class="' + cp + 'Label">' + l + '</span>' : '');
else
- h += '<span class="mceIcon ' + s['class'] + '"></span>' + (l ? '<span class="' + cp + 'Label">' + l + '</span>' : '') + '</a>';
+ h += '<span class="mceIcon ' + s['class'] + '"></span>' + (l ? '<span class="' + cp + 'Label">' + l + '</span>' : '');
+ h += '<span class="mceVoiceLabel mceIconOnly" style="display: none;" id="' + this.id + '_voice">' + s.title + '</span>';
+ h += '</a>';
return h;
},
postRender : function() {
- var t = this, s = t.settings;
-
+ var t = this, s = t.settings, imgBookmark;
+
+ // In IE a large image that occupies the entire editor area will be deselected when a button is clicked, so
+ // need to keep the selection in case the selection is lost
+ if (tinymce.isIE && t.editor) {
+ tinymce.dom.Event.add(t.id, 'mousedown', function(e) {
+ var nodeName = t.editor.selection.getNode().nodeName;
+ imgBookmark = nodeName === 'IMG' ? t.editor.selection.getBookmark() : null;
+ });
+ }
tinymce.dom.Event.add(t.id, 'click', function(e) {
- if (!t.isDisabled())
+ if (!t.isDisabled()) {
+ // restore the selection in case the selection is lost in IE
+ if (tinymce.isIE && t.editor && imgBookmark !== null) {
+ t.editor.selection.moveToBookmark(imgBookmark);
+ }
+ return s.onclick.call(s.scope, e);
+ }
+ });
+ tinymce.dom.Event.add(t.id, 'keyup', function(e) {
+ if (!t.isDisabled() && e.keyCode==tinymce.VK.SPACEBAR)
return s.onclick.call(s.scope, e);
});
}
@@ -8014,13 +11915,13 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
})(tinymce);
(function(tinymce) {
- var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each, Dispatcher = tinymce.util.Dispatcher;
+ var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each, Dispatcher = tinymce.util.Dispatcher, undef;
tinymce.create('tinymce.ui.ListBox:tinymce.ui.Control', {
- ListBox : function(id, s) {
+ ListBox : function(id, s, ed) {
var t = this;
- t.parent(id, s);
+ t.parent(id, s, ed);
t.items = [];
@@ -8033,16 +11934,19 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
t.onRenderMenu = new tinymce.util.Dispatcher(this);
t.classPrefix = 'mceListBox';
+ t.marked = {};
},
select : function(va) {
var t = this, fv, f;
- if (va == undefined)
+ t.marked = {};
+
+ if (va == undef)
return t.selectByIndex(-1);
// Is string or number make function selector
- if (va && va.call)
+ if (va && typeof(va)=="function")
f = va;
else {
f = function(v) {
@@ -8067,27 +11971,37 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
},
selectByIndex : function(idx) {
- var t = this, e, o;
+ var t = this, e, o, label;
+
+ t.marked = {};
if (idx != t.selectedIndex) {
e = DOM.get(t.id + '_text');
+ label = DOM.get(t.id + '_voiceDesc');
o = t.items[idx];
if (o) {
t.selectedValue = o.value;
t.selectedIndex = idx;
DOM.setHTML(e, DOM.encode(o.title));
+ DOM.setHTML(label, t.settings.title + " - " + o.title);
DOM.removeClass(e, 'mceTitle');
+ DOM.setAttrib(t.id, 'aria-valuenow', o.title);
} else {
DOM.setHTML(e, DOM.encode(t.settings.title));
+ DOM.setHTML(label, DOM.encode(t.settings.title));
DOM.addClass(e, 'mceTitle');
t.selectedValue = t.selectedIndex = null;
+ DOM.setAttrib(t.id, 'aria-valuenow', t.settings.title);
}
-
e = 0;
}
},
+ mark : function(value) {
+ this.marked[value] = true;
+ },
+
add : function(n, v, o) {
var t = this;
@@ -8108,18 +12022,19 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
renderHTML : function() {
var h = '', t = this, s = t.settings, cp = t.classPrefix;
- h = '<table id="' + t.id + '" cellpadding="0" cellspacing="0" class="' + cp + ' ' + cp + 'Enabled' + (s['class'] ? (' ' + s['class']) : '') + '"><tbody><tr>';
- h += '<td>' + DOM.createHTML('a', {id : t.id + '_text', href : 'javascript:;', 'class' : 'mceText', onclick : "return false;", onmousedown : 'return false;'}, DOM.encode(t.settings.title)) + '</td>';
- h += '<td>' + DOM.createHTML('a', {id : t.id + '_open', tabindex : -1, href : 'javascript:;', 'class' : 'mceOpen', onclick : "return false;", onmousedown : 'return false;'}, '<span></span>') + '</td>';
- h += '</tr></tbody></table>';
+ h = '<span role="listbox" aria-haspopup="true" aria-labelledby="' + t.id +'_voiceDesc" aria-describedby="' + t.id + '_voiceDesc"><table role="presentation" tabindex="0" id="' + t.id + '" cellpadding="0" cellspacing="0" class="' + cp + ' ' + cp + 'Enabled' + (s['class'] ? (' ' + s['class']) : '') + '"><tbody><tr>';
+ h += '<td>' + DOM.createHTML('span', {id: t.id + '_voiceDesc', 'class': 'voiceLabel', style:'display:none;'}, t.settings.title);
+ h += DOM.createHTML('a', {id : t.id + '_text', tabindex : -1, href : 'javascript:;', 'class' : 'mceText', onclick : "return false;", onmousedown : 'return false;'}, DOM.encode(t.settings.title)) + '</td>';
+ h += '<td>' + DOM.createHTML('a', {id : t.id + '_open', tabindex : -1, href : 'javascript:;', 'class' : 'mceOpen', onclick : "return false;", onmousedown : 'return false;'}, '<span><span style="display:none;" class="mceIconOnly" aria-hidden="true">\u25BC</span></span>') + '</td>';
+ h += '</tr></tbody></table></span>';
return h;
},
showMenu : function() {
- var t = this, p1, p2, e = DOM.get(this.id), m;
+ var t = this, p2, e = DOM.get(this.id), m;
- if (t.isDisabled() || t.items.length == 0)
+ if (t.isDisabled() || t.items.length === 0)
return;
if (t.menu && t.menu.isMenuVisible)
@@ -8130,7 +12045,6 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
t.isMenuRendered = true;
}
- p1 = DOM.getPos(this.settings.menu_container);
p2 = DOM.getPos(e);
m = t.menu;
@@ -8139,13 +12053,19 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
m.settings.keyboard_focus = !tinymce.isOpera; // Opera is buggy when it comes to auto focus
// Select in menu
- if (t.oldID)
- m.items[t.oldID].setSelected(0);
+ each(t.items, function(o) {
+ if (m.items[o.id]) {
+ m.items[o.id].setSelected(0);
+ }
+ });
each(t.items, function(o) {
+ if (m.items[o.id] && t.marked[o.value]) {
+ m.items[o.id].setSelected(1);
+ }
+
if (o.value === t.selectedValue) {
m.items[o.id].setSelected(1);
- t.oldID = o.id;
}
});
@@ -8161,6 +12081,8 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
var t = this;
if (t.menu && t.menu.isMenuVisible) {
+ DOM.removeClass(t.id, t.classPrefix + 'Selected');
+
// Prevent double toogles by canceling the mouse click event to the button
if (e && e.type == "mousedown" && (e.target.id == t.id + '_text' || e.target.id == t.id + '_open'))
return;
@@ -8179,11 +12101,14 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
m = t.settings.control_manager.createDropMenu(t.id + '_menu', {
menu_line : 1,
'class' : t.classPrefix + 'Menu mceNoIcons',
- max_width : 150,
+ max_width : 250,
max_height : 150
});
- m.onHideMenu.add(t.hideMenu, t);
+ m.onHideMenu.add(function() {
+ t.hideMenu();
+ t.focus();
+ });
m.add({
title : t.settings.title,
@@ -8196,9 +12121,10 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
each(t.items, function(o) {
// No value then treat it as a title
- if (o.value === undefined) {
+ if (o.value === undef) {
m.add({
title : o.title,
+ role : "option",
'class' : 'mceMenuItemTitle',
onclick : function() {
if (t.settings.onselect('') !== false)
@@ -8207,6 +12133,7 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
});
} else {
o.id = DOM.uniqueId();
+ o.role= "option";
o.onclick = function() {
if (t.settings.onselect(o.value) !== false)
t.select(o.value); // Must be runned after
@@ -8224,40 +12151,39 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
var t = this, cp = t.classPrefix;
Event.add(t.id, 'click', t.showMenu, t);
- Event.add(t.id + '_text', 'focus', function() {
+ Event.add(t.id, 'keydown', function(evt) {
+ if (evt.keyCode == 32) { // Space
+ t.showMenu(evt);
+ Event.cancel(evt);
+ }
+ });
+ Event.add(t.id, 'focus', function() {
if (!t._focused) {
- t.keyDownHandler = Event.add(t.id + '_text', 'keydown', function(e) {
- var idx = -1, v, kc = e.keyCode;
-
- // Find current index
- each(t.items, function(v, i) {
- if (t.selectedValue == v.value)
- idx = i;
- });
-
- // Move up/down
- if (kc == 38)
- v = t.items[idx - 1];
- else if (kc == 40)
- v = t.items[idx + 1];
- else if (kc == 13) {
+ t.keyDownHandler = Event.add(t.id, 'keydown', function(e) {
+ if (e.keyCode == 40) {
+ t.showMenu();
+ Event.cancel(e);
+ }
+ });
+ t.keyPressHandler = Event.add(t.id, 'keypress', function(e) {
+ var v;
+ if (e.keyCode == 13) {
// Fake select on enter
v = t.selectedValue;
t.selectedValue = null; // Needs to be null to fake change
+ Event.cancel(e);
t.settings.onselect(v);
- return Event.cancel(e);
- }
-
- if (v) {
- t.hideMenu();
- t.select(v.value);
}
});
}
t._focused = 1;
});
- Event.add(t.id + '_text', 'blur', function() {Event.remove(t.id + '_text', 'keydown', t.keyDownHandler); t._focused = 0;});
+ Event.add(t.id, 'blur', function() {
+ Event.remove(t.id, 'keydown', t.keyDownHandler);
+ Event.remove(t.id, 'keypress', t.keyPressHandler);
+ t._focused = 0;
+ });
// Old IE doesn't have hover on all elements
if (tinymce.isIE6 || !DOM.boxModel) {
@@ -8283,8 +12209,9 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
}
});
})(tinymce);
+
(function(tinymce) {
- var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each, Dispatcher = tinymce.util.Dispatcher;
+ var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each, Dispatcher = tinymce.util.Dispatcher, undef;
tinymce.create('tinymce.ui.NativeListBox:tinymce.ui.ListBox', {
NativeListBox : function(id, s) {
@@ -8294,6 +12221,7 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
setDisabled : function(s) {
DOM.get(this.id).disabled = s;
+ this.setAriaProperty('disabled', s);
},
isDisabled : function() {
@@ -8303,11 +12231,11 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
select : function(va) {
var t = this, fv, f;
- if (va == undefined)
+ if (va == undef)
return t.selectByIndex(-1);
// Is string or number make function selector
- if (va && va.call)
+ if (va && typeof(va)=="function")
f = va;
else {
f = function(v) {
@@ -8368,13 +12296,13 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
h += DOM.createHTML('option', {value : it.value}, it.title);
});
- h = DOM.createHTML('select', {id : t.id, 'class' : 'mceNativeListBox'}, h);
-
+ h = DOM.createHTML('select', {id : t.id, 'class' : 'mceNativeListBox', 'aria-labelledby': t.id + '_aria'}, h);
+ h += DOM.createHTML('span', {id : t.id + '_aria', 'style': 'display: none'}, t.settings.title);
return h;
},
postRender : function() {
- var t = this, ch;
+ var t = this, ch, changeListenerAdded = true;
t.rendered = true;
@@ -8396,12 +12324,20 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
var bf;
Event.remove(t.id, 'change', ch);
+ changeListenerAdded = false;
bf = Event.add(t.id, 'blur', function() {
+ if (changeListenerAdded) return;
+ changeListenerAdded = true;
Event.add(t.id, 'change', onChange);
Event.remove(t.id, 'blur', bf);
});
+ //prevent default left and right keys on chrome - so that the keyboard navigation is used.
+ if (tinymce.isWebKit && (e.keyCode==37 ||e.keyCode==39)) {
+ return Event.prevent(e);
+ }
+
if (e.keyCode == 13 || e.keyCode == 32) {
onChange(e);
return Event.cancel(e);
@@ -8412,12 +12348,13 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
}
});
})(tinymce);
+
(function(tinymce) {
var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each;
tinymce.create('tinymce.ui.MenuButton:tinymce.ui.Button', {
- MenuButton : function(id, s) {
- this.parent(id, s);
+ MenuButton : function(id, s, ed) {
+ this.parent(id, s, ed);
this.onRenderMenu = new tinymce.util.Dispatcher(this);
@@ -8447,7 +12384,7 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
m.settings.vp_offset_x = p2.x;
m.settings.vp_offset_y = p2.y;
m.settings.keyboard_focus = t._focused;
- m.showMenu(0, e.clientHeight);
+ m.showMenu(0, e.firstChild.clientHeight);
Event.add(DOM.doc, 'mousedown', t.hideMenu, t);
t.setState('Selected', 1);
@@ -8464,7 +12401,10 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
icons : t.settings.icons
});
- m.onHideMenu.add(t.hideMenu, t);
+ m.onHideMenu.add(function() {
+ t.hideMenu();
+ t.focus();
+ });
t.onRenderMenu.dispatch(t, m);
t.menu = m;
@@ -8506,8 +12446,8 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each;
tinymce.create('tinymce.ui.SplitButton:tinymce.ui.MenuButton', {
- SplitButton : function(id, s) {
- this.parent(id, s);
+ SplitButton : function(id, s, ed) {
+ this.parent(id, s, ed);
this.classPrefix = 'mceSplitButton';
},
@@ -8517,33 +12457,50 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
h = '<tbody><tr>';
if (s.image)
- h1 = DOM.createHTML('img ', {src : s.image, 'class' : 'mceAction ' + s['class']});
+ h1 = DOM.createHTML('img ', {src : s.image, role: 'presentation', 'class' : 'mceAction ' + s['class']});
else
h1 = DOM.createHTML('span', {'class' : 'mceAction ' + s['class']}, '');
- h += '<td>' + DOM.createHTML('a', {id : t.id + '_action', href : 'javascript:;', 'class' : 'mceAction ' + s['class'], onclick : "return false;", onmousedown : 'return false;', title : s.title}, h1) + '</td>';
+ h1 += DOM.createHTML('span', {'class': 'mceVoiceLabel mceIconOnly', id: t.id + '_voice', style: 'display:none;'}, s.title);
+ h += '<td >' + DOM.createHTML('a', {role: 'button', id : t.id + '_action', tabindex: '-1', href : 'javascript:;', 'class' : 'mceAction ' + s['class'], onclick : "return false;", onmousedown : 'return false;', title : s.title}, h1) + '</td>';
- h1 = DOM.createHTML('span', {'class' : 'mceOpen ' + s['class']});
- h += '<td>' + DOM.createHTML('a', {id : t.id + '_open', href : 'javascript:;', 'class' : 'mceOpen ' + s['class'], onclick : "return false;", onmousedown : 'return false;', title : s.title}, h1) + '</td>';
+ h1 = DOM.createHTML('span', {'class' : 'mceOpen ' + s['class']}, '<span style="display:none;" class="mceIconOnly" aria-hidden="true">\u25BC</span>');
+ h += '<td >' + DOM.createHTML('a', {role: 'button', id : t.id + '_open', tabindex: '-1', href : 'javascript:;', 'class' : 'mceOpen ' + s['class'], onclick : "return false;", onmousedown : 'return false;', title : s.title}, h1) + '</td>';
h += '</tr></tbody>';
-
- return DOM.createHTML('table', {id : t.id, 'class' : 'mceSplitButton mceSplitButtonEnabled ' + s['class'], cellpadding : '0', cellspacing : '0', onmousedown : 'return false;', title : s.title}, h);
+ h = DOM.createHTML('table', { role: 'presentation', 'class' : 'mceSplitButton mceSplitButtonEnabled ' + s['class'], cellpadding : '0', cellspacing : '0', title : s.title}, h);
+ return DOM.createHTML('div', {id : t.id, role: 'button', tabindex: '0', 'aria-labelledby': t.id + '_voice', 'aria-haspopup': 'true'}, h);
},
postRender : function() {
- var t = this, s = t.settings;
+ var t = this, s = t.settings, activate;
if (s.onclick) {
- Event.add(t.id + '_action', 'click', function() {
- if (!t.isDisabled())
+ activate = function(evt) {
+ if (!t.isDisabled()) {
s.onclick(t.value);
+ Event.cancel(evt);
+ }
+ };
+ Event.add(t.id + '_action', 'click', activate);
+ Event.add(t.id, ['click', 'keydown'], function(evt) {
+ var DOM_VK_SPACE = 32, DOM_VK_ENTER = 14, DOM_VK_RETURN = 13, DOM_VK_UP = 38, DOM_VK_DOWN = 40;
+ if ((evt.keyCode === 32 || evt.keyCode === 13 || evt.keyCode === 14) && !evt.altKey && !evt.ctrlKey && !evt.metaKey) {
+ activate();
+ Event.cancel(evt);
+ } else if (evt.type === 'click' || evt.keyCode === DOM_VK_DOWN) {
+ t.showMenu();
+ Event.cancel(evt);
+ }
});
}
- Event.add(t.id + '_open', 'click', t.showMenu, t);
- Event.add(t.id + '_open', 'focus', function() {t._focused = 1;});
- Event.add(t.id + '_open', 'blur', function() {t._focused = 0;});
+ Event.add(t.id + '_open', 'click', function (evt) {
+ t.showMenu();
+ Event.cancel(evt);
+ });
+ Event.add([t.id, t.id + '_open'], 'focus', function() {t._focused = 1;});
+ Event.add([t.id, t.id + '_open'], 'blur', function() {t._focused = 0;});
// Old IE doesn't have hover on all elements
if (tinymce.isIE6 || !DOM.boxModel) {
@@ -8564,6 +12521,7 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
Event.clear(this.id + '_action');
Event.clear(this.id + '_open');
+ Event.clear(this.id);
}
});
})(tinymce);
@@ -8572,10 +12530,10 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
var DOM = tinymce.DOM, Event = tinymce.dom.Event, is = tinymce.is, each = tinymce.each;
tinymce.create('tinymce.ui.ColorSplitButton:tinymce.ui.SplitButton', {
- ColorSplitButton : function(id, s) {
+ ColorSplitButton : function(id, s, ed) {
var t = this;
- t.parent(id, s);
+ t.parent(id, s, ed);
t.settings = s = tinymce.extend({
colors : '000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,008000,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF',
@@ -8610,7 +12568,7 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
p2 = DOM.getPos(e);
DOM.setStyles(t.id + '_menu', {
left : p2.x,
- top : p2.y + e.clientHeight,
+ top : p2.y + e.firstChild.clientHeight,
zIndex : 200000
});
e = 0;
@@ -8627,36 +12585,48 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
DOM.select('a', t.id + '_menu')[0].focus(); // Select first link
}
+ t.keyboardNav = new tinymce.ui.KeyboardNavigation({
+ root: t.id + '_menu',
+ items: DOM.select('a', t.id + '_menu'),
+ onCancel: function() {
+ t.hideMenu();
+ t.focus();
+ }
+ });
+
+ t.keyboardNav.focus();
t.isMenuVisible = 1;
},
hideMenu : function(e) {
var t = this;
- // Prevent double toogles by canceling the mouse click event to the button
- if (e && e.type == "mousedown" && DOM.getParent(e.target, function(e) {return e.id === t.id + '_open';}))
- return;
-
- if (!e || !DOM.getParent(e.target, '.mceSplitButtonMenu')) {
- DOM.removeClass(t.id, 'mceSplitButtonSelected');
- Event.remove(DOM.doc, 'mousedown', t.hideMenu, t);
- Event.remove(t.id + '_menu', 'keydown', t._keyHandler);
- DOM.hide(t.id + '_menu');
- }
+ if (t.isMenuVisible) {
+ // Prevent double toogles by canceling the mouse click event to the button
+ if (e && e.type == "mousedown" && DOM.getParent(e.target, function(e) {return e.id === t.id + '_open';}))
+ return;
- t.onHideMenu.dispatch(t);
+ if (!e || !DOM.getParent(e.target, '.mceSplitButtonMenu')) {
+ DOM.removeClass(t.id, 'mceSplitButtonSelected');
+ Event.remove(DOM.doc, 'mousedown', t.hideMenu, t);
+ Event.remove(t.id + '_menu', 'keydown', t._keyHandler);
+ DOM.hide(t.id + '_menu');
+ }
- t.isMenuVisible = 0;
+ t.isMenuVisible = 0;
+ t.onHideMenu.dispatch();
+ t.keyboardNav.destroy();
+ }
},
renderMenu : function() {
- var t = this, m, i = 0, s = t.settings, n, tb, tr, w;
+ var t = this, m, i = 0, s = t.settings, n, tb, tr, w, context;
- w = DOM.add(s.menu_container, 'div', {id : t.id + '_menu', 'class' : s['menu_class'] + ' ' + s['class'], style : 'position:absolute;left:0;top:-1000px;'});
+ w = DOM.add(s.menu_container, 'div', {role: 'listbox', id : t.id + '_menu', 'class' : s.menu_class + ' ' + s['class'], style : 'position:absolute;left:0;top:-1000px;'});
m = DOM.add(w, 'div', {'class' : s['class'] + ' mceSplitButtonMenu'});
DOM.add(m, 'span', {'class' : 'mceMenuLine'});
- n = DOM.add(m, 'table', {'class' : 'mceColorSplitMenu'});
+ n = DOM.add(m, 'table', {role: 'presentation', 'class' : 'mceColorSplitMenu'});
tb = DOM.add(n, 'tbody');
// Generate color grid
@@ -8670,20 +12640,38 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
}
n = DOM.add(tr, 'td');
-
- n = DOM.add(n, 'a', {
+ var settings = {
href : 'javascript:;',
style : {
backgroundColor : '#' + c
},
- _mce_color : '#' + c
- });
+ 'title': t.editor.getLang('colors.' + c, c),
+ 'data-mce-color' : '#' + c
+ };
+
+ // adding a proper ARIA role = button causes JAWS to read things incorrectly on IE.
+ if (!tinymce.isIE ) {
+ settings.role = 'option';
+ }
+
+ n = DOM.add(n, 'a', settings);
+
+ if (t.editor.forcedHighContrastMode) {
+ n = DOM.add(n, 'canvas', { width: 16, height: 16, 'aria-hidden': 'true' });
+ if (n.getContext && (context = n.getContext("2d"))) {
+ context.fillStyle = '#' + c;
+ context.fillRect(0, 0, 16, 16);
+ } else {
+ // No point leaving a canvas element around if it's not supported for drawing on anyway.
+ DOM.remove(n);
+ }
+ }
});
if (s.more_colors_func) {
n = DOM.add(tb, 'tr');
n = DOM.add(n, 'td', {colspan : s.grid_width, 'class' : 'mceMoreColors'});
- n = DOM.add(n, 'a', {id : t.id + '_more', href : 'javascript:;', onclick : 'return false;', 'class' : 'mceMoreColors'}, s.more_colors_title);
+ n = DOM.add(n, 'a', {role: 'option', id : t.id + '_more', href : 'javascript:;', onclick : 'return false;', 'class' : 'mceMoreColors'}, s.more_colors_title);
Event.add(n, 'click', function(e) {
s.more_colors_func.call(s.more_colors_scope || this);
@@ -8693,28 +12681,35 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
DOM.addClass(m, 'mceColorSplitMenu');
+ // Prevent IE from scrolling and hindering click to occur #4019
+ Event.add(t.id + '_menu', 'mousedown', function(e) {return Event.cancel(e);});
+
Event.add(t.id + '_menu', 'click', function(e) {
var c;
- e = e.target;
+ e = DOM.getParent(e.target, 'a', tb);
- if (e.nodeName == 'A' && (c = e.getAttribute('_mce_color')))
+ if (e && e.nodeName.toLowerCase() == 'a' && (c = e.getAttribute('data-mce-color')))
t.setColor(c);
- return Event.cancel(e); // Prevent IE auto save warning
+ return false; // Prevent IE auto save warning
});
return w;
},
setColor : function(c) {
+ this.displayColor(c);
+ this.hideMenu();
+ this.settings.onselect(c);
+ },
+
+ displayColor : function(c) {
var t = this;
DOM.setStyle(t.id + '_preview', 'backgroundColor', c);
t.value = c;
- t.hideMenu();
- t.settings.onselect(c);
},
postRender : function() {
@@ -8726,18 +12721,87 @@ tinymce.create('tinymce.ui.Separator:tinymce.ui.Control', {
},
destroy : function() {
- this.parent();
+ var self = this;
+
+ self.parent();
+
+ Event.clear(self.id + '_menu');
+ Event.clear(self.id + '_more');
+ DOM.remove(self.id + '_menu');
- Event.clear(this.id + '_menu');
- Event.clear(this.id + '_more');
- DOM.remove(this.id + '_menu');
+ if (self.keyboardNav) {
+ self.keyboardNav.destroy();
+ }
}
});
})(tinymce);
+(function(tinymce) {
+// Shorten class names
+var dom = tinymce.DOM, each = tinymce.each, Event = tinymce.dom.Event;
+tinymce.create('tinymce.ui.ToolbarGroup:tinymce.ui.Container', {
+ renderHTML : function() {
+ var t = this, h = [], controls = t.controls, each = tinymce.each, settings = t.settings;
+
+ h.push('<div id="' + t.id + '" role="group" aria-labelledby="' + t.id + '_voice">');
+ //TODO: ACC test this out - adding a role = application for getting the landmarks working well.
+ h.push("<span role='application'>");
+ h.push('<span id="' + t.id + '_voice" class="mceVoiceLabel" style="display:none;">' + dom.encode(settings.name) + '</span>');
+ each(controls, function(toolbar) {
+ h.push(toolbar.renderHTML());
+ });
+ h.push("</span>");
+ h.push('</div>');
+
+ return h.join('');
+ },
+
+ focus : function() {
+ var t = this;
+ dom.get(t.id).focus();
+ },
+
+ postRender : function() {
+ var t = this, items = [];
+
+ each(t.controls, function(toolbar) {
+ each (toolbar.controls, function(control) {
+ if (control.id) {
+ items.push(control);
+ }
+ });
+ });
+
+ t.keyNav = new tinymce.ui.KeyboardNavigation({
+ root: t.id,
+ items: items,
+ onCancel: function() {
+ //Move focus if webkit so that navigation back will read the item.
+ if (tinymce.isWebKit) {
+ dom.get(t.editor.id+"_ifr").focus();
+ }
+ t.editor.focus();
+ },
+ excludeFromTabOrder: !t.settings.tab_focus_toolbar
+ });
+ },
+
+ destroy : function() {
+ var self = this;
+
+ self.parent();
+ self.keyNav.destroy();
+ Event.clear(self.id);
+ }
+});
+})(tinymce);
+
+(function(tinymce) {
+// Shorten class names
+var dom = tinymce.DOM, each = tinymce.each;
tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
renderHTML : function() {
- var t = this, h = '', c, co, dom = tinymce.DOM, s = t.settings, i, pr, nx, cl;
+ var t = this, h = '', c, co, s = t.settings, i, pr, nx, cl;
cl = t.controls;
for (i=0; i<cl.length; i++) {
@@ -8794,9 +12858,10 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
h += dom.createHTML('td', {'class' : c}, dom.createHTML('span', null, '<!-- IE -->'));
- return dom.createHTML('table', {id : t.id, 'class' : 'mceToolbar' + (s['class'] ? ' ' + s['class'] : ''), cellpadding : '0', cellspacing : '0', align : t.settings.align || ''}, '<tbody><tr>' + h + '</tr></tbody>');
+ return dom.createHTML('table', {id : t.id, 'class' : 'mceToolbar' + (s['class'] ? ' ' + s['class'] : ''), cellpadding : '0', cellspacing : '0', align : t.settings.align || '', role: 'presentation', tabindex: '-1'}, '<tbody><tr>' + h + '</tr></tbody>');
}
});
+})(tinymce);
(function(tinymce) {
var Dispatcher = tinymce.util.Dispatcher, each = tinymce.each;
@@ -8812,37 +12877,83 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
},
get : function(n) {
- return this.lookup[n];
+ if (this.lookup[n]) {
+ return this.lookup[n].instance;
+ } else {
+ return undefined;
+ }
+ },
+
+ dependencies : function(n) {
+ var result;
+ if (this.lookup[n]) {
+ result = this.lookup[n].dependencies;
+ }
+ return result || [];
},
requireLangPack : function(n) {
var s = tinymce.settings;
- if (s && s.language)
+ if (s && s.language && s.language_load !== false)
tinymce.ScriptLoader.add(this.urls[n] + '/langs/' + s.language + '.js');
},
- add : function(id, o) {
+ add : function(id, o, dependencies) {
this.items.push(o);
- this.lookup[id] = o;
+ this.lookup[id] = {instance:o, dependencies:dependencies};
this.onAdd.dispatch(this, id, o);
- return o;
+ return o;
+ },
+ createUrl: function(baseUrl, dep) {
+ if (typeof dep === "object") {
+ return dep
+ } else {
+ return {prefix: baseUrl.prefix, resource: dep, suffix: baseUrl.suffix};
+ }
+ },
+
+ addComponents: function(pluginName, scripts) {
+ var pluginUrl = this.urls[pluginName];
+ tinymce.each(scripts, function(script){
+ tinymce.ScriptLoader.add(pluginUrl+"/"+script);
+ });
},
load : function(n, u, cb, s) {
- var t = this;
+ var t = this, url = u;
+
+ function loadDependencies() {
+ var dependencies = t.dependencies(n);
+ tinymce.each(dependencies, function(dep) {
+ var newUrl = t.createUrl(u, dep);
+ t.load(newUrl.resource, newUrl, undefined, undefined);
+ });
+ if (cb) {
+ if (s) {
+ cb.call(s);
+ } else {
+ cb.call(tinymce.ScriptLoader);
+ }
+ }
+ }
if (t.urls[n])
return;
+ if (typeof u === "object")
+ url = u.prefix + u.resource + u.suffix;
- if (u.indexOf('/') != 0 && u.indexOf('://') == -1)
- u = tinymce.baseURL + '/' + u;
+ if (url.indexOf('/') !== 0 && url.indexOf('://') == -1)
+ url = tinymce.baseURL + '/' + url;
- t.urls[n] = u.substring(0, u.lastIndexOf('/'));
+ t.urls[n] = url.substring(0, url.lastIndexOf('/'));
- if (!t.lookup[n])
- tinymce.ScriptLoader.add(u, cb, s);
+ if (t.lookup[n]) {
+ loadDependencies();
+ } else {
+ tinymce.ScriptLoader.add(url, loadDependencies, s);
+ }
}
});
@@ -8857,7 +12968,7 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
DOM = tinymce.DOM, Event = tinymce.dom.Event,
ThemeManager = tinymce.ThemeManager, PluginManager = tinymce.PluginManager,
explode = tinymce.explode,
- Dispatcher = tinymce.util.Dispatcher, undefined, instanceCounter = 0;
+ Dispatcher = tinymce.util.Dispatcher, undef, instanceCounter = 0;
// Setup some URLs where the editor API is located and where the document is
tinymce.documentBaseURL = window.location.href.replace(/[\?#].*$/, '').replace(/[\/\\][^\/]+$/, '');
@@ -8892,6 +13003,26 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
init : function(s) {
var t = this, pl, sl = tinymce.ScriptLoader, e, el = [], ed;
+ function createId(elm) {
+ var id = elm.id;
+
+ // Use element id, or unique name or generate a unique id
+ if (!id) {
+ id = elm.name;
+
+ if (id && !DOM.get(id)) {
+ id = elm.name;
+ } else {
+ // Generate unique name
+ id = DOM.uniqueId();
+ }
+
+ elm.setAttribute('id', id);
+ }
+
+ return id;
+ };
+
function execCallback(se, n, s) {
var f = se[n];
@@ -8907,15 +13038,14 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
return f.apply(s || this, Array.prototype.slice.call(arguments, 2));
};
- s = extend({
- theme : "simple",
- language : "en"
- }, s);
+ function hasClass(n, c) {
+ return c.constructor === RegExp ? c.test(n.className) : DOM.hasClass(n, c);
+ };
t.settings = s;
// Legacy call
- Event.add(document, 'init', function() {
+ Event.bind(window, 'ready', function() {
var l, co;
execCallback(s, 'onpageload');
@@ -8950,30 +13080,36 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
case "textareas":
case "specific_textareas":
- function hasClass(n, c) {
- return c.constructor === RegExp ? c.test(n.className) : DOM.hasClass(n, c);
- };
-
- each(DOM.select('textarea'), function(v) {
- if (s.editor_deselector && hasClass(v, s.editor_deselector))
+ each(DOM.select('textarea'), function(elm) {
+ if (s.editor_deselector && hasClass(elm, s.editor_deselector))
return;
- if (!s.editor_selector || hasClass(v, s.editor_selector)) {
- // Can we use the name
- e = DOM.get(v.name);
- if (!v.id && !e)
- v.id = v.name;
-
- // Generate unique name if missing or already exists
- if (!v.id || t.get(v.id))
- v.id = DOM.uniqueId();
-
- ed = new tinymce.Editor(v.id, s);
+ if (!s.editor_selector || hasClass(elm, s.editor_selector)) {
+ ed = new tinymce.Editor(createId(elm), s);
el.push(ed);
ed.render(1);
}
});
break;
+
+ default:
+ if (s.types) {
+ // Process type specific selector
+ each(s.types, function(type) {
+ each(DOM.select(type.selector), function(elm) {
+ var editor = new tinymce.Editor(createId(elm), tinymce.extend({}, s, type));
+ el.push(editor);
+ editor.render(1);
+ });
+ });
+ } else if (s.selector) {
+ // Process global selector
+ each(DOM.select(s.selector), function(elm) {
+ var editor = new tinymce.Editor(createId(elm), s);
+ el.push(editor);
+ editor.render(1);
+ });
+ }
}
// Call onInit when all editors are initialized
@@ -9004,9 +13140,12 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
},
get : function(id) {
- if (id === undefined)
+ if (id === undef)
return this.editors;
+ if (!this.editors.hasOwnProperty(id))
+ return undef;
+
return this.editors[id];
},
@@ -9057,6 +13196,12 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
execCommand : function(c, u, v) {
var t = this, ed = t.get(v), w;
+ function clr() {
+ ed.destroy();
+ w.detachEvent('onunload', clr);
+ w = w.tinyMCE = w.tinymce = null; // IE leak
+ };
+
// Manager commands
switch (c) {
case "mceFocus":
@@ -9085,12 +13230,6 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
// Fix IE memory leaks
if (tinymce.isIE) {
- function clr() {
- ed.destroy();
- w.detachEvent('onunload', clr);
- w = w.tinyMCE = w.tinymce = null; // IE leak
- };
-
w.attachEvent('onunload', clr);
}
@@ -9173,153 +13312,84 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
(function(tinymce) {
// Shorten these names
var DOM = tinymce.DOM, Event = tinymce.dom.Event, extend = tinymce.extend,
- Dispatcher = tinymce.util.Dispatcher, each = tinymce.each, isGecko = tinymce.isGecko,
+ each = tinymce.each, isGecko = tinymce.isGecko,
isIE = tinymce.isIE, isWebKit = tinymce.isWebKit, is = tinymce.is,
ThemeManager = tinymce.ThemeManager, PluginManager = tinymce.PluginManager,
- inArray = tinymce.inArray, grep = tinymce.grep, explode = tinymce.explode;
+ explode = tinymce.explode;
tinymce.create('tinymce.Editor', {
- Editor : function(id, s) {
- var t = this;
-
- t.id = t.editorId = id;
-
- t.execCommands = {};
- t.queryStateCommands = {};
- t.queryValueCommands = {};
-
- t.isNotDirty = false;
-
- t.plugins = {};
-
- // Add events to the editor
- each([
- 'onPreInit',
-
- 'onBeforeRenderUI',
-
- 'onPostRender',
-
- 'onInit',
-
- 'onRemove',
-
- 'onActivate',
-
- 'onDeactivate',
-
- 'onClick',
-
- 'onEvent',
-
- 'onMouseUp',
-
- 'onMouseDown',
-
- 'onDblClick',
-
- 'onKeyDown',
-
- 'onKeyUp',
-
- 'onKeyPress',
-
- 'onContextMenu',
-
- 'onSubmit',
-
- 'onReset',
+ Editor : function(id, settings) {
+ var self = this, TRUE = true;
- 'onPaste',
-
- 'onPreProcess',
-
- 'onPostProcess',
-
- 'onBeforeSetContent',
-
- 'onBeforeGetContent',
-
- 'onSetContent',
-
- 'onGetContent',
-
- 'onLoadContent',
-
- 'onSaveContent',
-
- 'onNodeChange',
-
- 'onChange',
-
- 'onBeforeExecCommand',
-
- 'onExecCommand',
-
- 'onUndo',
-
- 'onRedo',
-
- 'onVisualAid',
-
- 'onSetProgressState'
- ], function(e) {
- t[e] = new Dispatcher(t);
- });
-
- t.settings = s = extend({
+ self.settings = settings = extend({
id : id,
language : 'en',
- docs_language : 'en',
- theme : 'simple',
+ theme : 'advanced',
skin : 'default',
delta_width : 0,
delta_height : 0,
popup_css : '',
plugins : '',
document_base_url : tinymce.documentBaseURL,
- add_form_submit_trigger : 1,
- submit_patch : 1,
- add_unload_trigger : 1,
- convert_urls : 1,
- relative_urls : 1,
- remove_script_host : 1,
- table_inline_editing : 0,
- object_resizing : 1,
- cleanup : 1,
- accessibility_focus : 1,
- custom_shortcuts : 1,
- custom_undo_redo_keyboard_shortcuts : 1,
- custom_undo_redo_restore_selection : 1,
- custom_undo_redo : 1,
+ add_form_submit_trigger : TRUE,
+ submit_patch : TRUE,
+ add_unload_trigger : TRUE,
+ convert_urls : TRUE,
+ relative_urls : TRUE,
+ remove_script_host : TRUE,
+ table_inline_editing : false,
+ object_resizing : TRUE,
+ accessibility_focus : TRUE,
doctype : tinymce.isIE6 ? '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">' : '<!DOCTYPE>', // Use old doctype on IE 6 to avoid horizontal scroll
- visual_table_class : 'mceItemTable',
- visual : 1,
+ visual : TRUE,
font_size_style_values : 'xx-small,x-small,small,medium,large,x-large,xx-large',
- apply_source_formatting : 1,
+ font_size_legacy_values : 'xx-small,small,medium,large,x-large,xx-large,300%', // See: http://www.w3.org/TR/CSS2/fonts.html#propdef-font-size
+ apply_source_formatting : TRUE,
directionality : 'ltr',
forced_root_block : 'p',
- valid_elements : '@[id|class|style|title|dir<ltr?rtl|lang|xml::lang|onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup],a[rel|rev|charset|hreflang|tabindex|accesskey|type|name|href|target|title|class|onfocus|onblur],strong/b,em/i,strike,u,#p,-ol[type|compact],-ul[type|compact],-li,br,img[longdesc|usemap|src|border|alt=|title|hspace|vspace|width|height|align],-sub,-sup,-blockquote[cite],-table[border|cellspacing|cellpadding|width|frame|rules|height|align|summary|bgcolor|background|bordercolor],-tr[rowspan|width|height|align|valign|bgcolor|background|bordercolor],tbody,thead,tfoot,#td[colspan|rowspan|width|height|align|valign|bgcolor|background|bordercolor|scope],#th[colspan|rowspan|width|height|align|valign|scope],caption,-div,-span,-code,-pre,address,-h1,-h2,-h3,-h4,-h5,-h6,hr[size|noshade],-font[face|size|color],dd,dl,dt,cite,abbr,acronym,del[datetime|cite],ins[datetime|cite],object[classid|width|height|codebase|*],param[name|value],embed[type|width|height|src|*],script[src|type],map[name],area[shape|coords|href|alt|target],bdo,button,col[align|char|charoff|span|valign|width],colgroup[align|char|charoff|span|valign|width],dfn,fieldset,form[action|accept|accept-charset|enctype|method],input[accept|alt|checked|disabled|maxlength|name|readonly|size|src|type|value|tabindex|accesskey],kbd,label[for],legend,noscript,optgroup[label|disabled],option[disabled|label|selected|value],q[cite],samp,select[disabled|multiple|name|size],small,textarea[cols|rows|disabled|name|readonly],tt,var,big',
- hidden_input : 1,
- padd_empty_editor : 1,
- render_ui : 1,
- init_theme : 1,
- force_p_newlines : 1,
+ hidden_input : TRUE,
+ padd_empty_editor : TRUE,
+ render_ui : TRUE,
indentation : '30px',
- keep_styles : 1,
- fix_table_elements : 1,
- inline_styles : 1,
- convert_fonts_to_spans : true
- }, s);
+ fix_table_elements : TRUE,
+ inline_styles : TRUE,
+ convert_fonts_to_spans : TRUE,
+ indent : 'simple',
+ indent_before : 'p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,ul,li,area,table,thead,tfoot,tbody,tr,section,article,hgroup,aside,figure,option,optgroup,datalist',
+ indent_after : 'p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,ul,li,area,table,thead,tfoot,tbody,tr,section,article,hgroup,aside,figure,option,optgroup,datalist',
+ validate : TRUE,
+ entity_encoding : 'named',
+ url_converter : self.convertURL,
+ url_converter_scope : self,
+ ie7_compat : TRUE
+ }, settings);
- t.documentBaseURI = new tinymce.util.URI(s.document_base_url || tinymce.documentBaseURL, {
+ self.id = self.editorId = id;
+
+ self.isNotDirty = false;
+
+ self.plugins = {};
+
+ self.documentBaseURI = new tinymce.util.URI(settings.document_base_url || tinymce.documentBaseURL, {
base_uri : tinyMCE.baseURI
});
- t.baseURI = tinymce.baseURI;
+ self.baseURI = tinymce.baseURI;
+
+ self.contentCSS = [];
+
+ self.contentStyles = [];
+
+ // Creates all events like onClick, onSetContent etc see Editor.Events.js for the actual logic
+ self.setupEvents();
+
+ // Internal command handler objects
+ self.execCommands = {};
+ self.queryStateCommands = {};
+ self.queryValueCommands = {};
// Call setup
- t.execCallback('setup', t);
+ self.execCallback('setup', self);
},
render : function(nst) {
@@ -9327,7 +13397,7 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
// Page is not loaded yet, wait for it
if (!Event.domLoaded) {
- Event.add(document, 'init', function() {
+ Event.add(window, 'ready', function() {
t.render();
});
return;
@@ -9339,16 +13409,21 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
if (!t.getElement())
return;
- // Is a iPad/iPhone, then skip initialization. We need to sniff here since the
- // browser says it has contentEditable support but there is no visible caret
- // We will remove this check ones Apple implements full contentEditable support
- if (tinymce.isIDevice)
+ // Is a iPad/iPhone and not on iOS5, then skip initialization. We need to sniff
+ // here since the browser says it has contentEditable support but there is no visible caret.
+ if (tinymce.isIDevice && !tinymce.isIOS5)
return;
// Add hidden input for non input elements inside form elements
if (!/TEXTAREA|INPUT/i.test(t.getElement().nodeName) && s.hidden_input && DOM.getParent(id, 'form'))
DOM.insertAfter(DOM.create('input', {type : 'hidden', name : id}), id);
+ // Hide target element early to prevent content flashing
+ if (!s.content_editable) {
+ t.orgVisibility = t.getElement().style.visibility;
+ t.getElement().style.visibility = 'hidden';
+ }
+
if (tinymce.WindowManager)
t.windowManager = new tinymce.WindowManager(t);
@@ -9407,19 +13482,29 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
// Load scripts
function loadScripts() {
- if (s.language)
+ if (s.language && s.language_load !== false)
sl.add(tinymce.baseURL + '/langs/' + s.language + '.js');
- if (s.theme && s.theme.charAt(0) != '-' && !ThemeManager.urls[s.theme])
+ if (s.theme && typeof s.theme != "function" && s.theme.charAt(0) != '-' && !ThemeManager.urls[s.theme])
ThemeManager.load(s.theme, 'themes/' + s.theme + '/editor_template' + tinymce.suffix + '.js');
each(explode(s.plugins), function(p) {
- if (p && p.charAt(0) != '-' && !PluginManager.urls[p]) {
- // Skip safari plugin, since it is removed as of 3.3b1
- if (p == 'safari')
- return;
-
- PluginManager.load(p, 'plugins/' + p + '/editor_plugin' + tinymce.suffix + '.js');
+ if (p &&!PluginManager.urls[p]) {
+ if (p.charAt(0) == '-') {
+ p = p.substr(1, p.length);
+ var dependencies = PluginManager.dependencies(p);
+ each(dependencies, function(dep) {
+ var defaultSettings = {prefix:'plugins/', resource: dep, suffix:'/editor_plugin' + tinymce.suffix + '.js'};
+ dep = PluginManager.createUrl(defaultSettings, dep);
+ PluginManager.load(dep.resource, dep);
+ });
+ } else {
+ // Skip safari plugin, since it is removed as of 3.3b1
+ if (p == 'safari') {
+ return;
+ }
+ PluginManager.load(p, {prefix:'plugins/', resource: p, suffix:'/editor_plugin' + tinymce.suffix + '.js'});
+ }
}
});
@@ -9434,32 +13519,44 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
},
init : function() {
- var n, t = this, s = t.settings, w, h, e = t.getElement(), o, ti, u, bi, bc, re;
+ var n, t = this, s = t.settings, w, h, mh, e = t.getElement(), o, ti, u, bi, bc, re, i, initializedPlugins = [];
tinymce.add(t);
+ s.aria_label = s.aria_label || DOM.getAttrib(e, 'aria-label', t.getLang('aria.rich_text_area'));
+
if (s.theme) {
- s.theme = s.theme.replace(/-/, '');
- o = ThemeManager.get(s.theme);
- t.theme = new o();
+ if (typeof s.theme != "function") {
+ s.theme = s.theme.replace(/-/, '');
+ o = ThemeManager.get(s.theme);
+ t.theme = new o();
- if (t.theme.init && s.init_theme)
- t.theme.init(t, ThemeManager.urls[s.theme] || tinymce.documentBaseURL.replace(/\/$/, ''));
+ if (t.theme.init)
+ t.theme.init(t, ThemeManager.urls[s.theme] || tinymce.documentBaseURL.replace(/\/$/, ''));
+ } else {
+ t.theme = s.theme;
+ }
}
- // Create all plugins
- each(explode(s.plugins.replace(/\-/g, '')), function(p) {
+ function initPlugin(p) {
var c = PluginManager.get(p), u = PluginManager.urls[p] || tinymce.documentBaseURL.replace(/\/$/, ''), po;
-
- if (c) {
+ if (c && tinymce.inArray(initializedPlugins,p) === -1) {
+ each(PluginManager.dependencies(p), function(dep){
+ initPlugin(dep);
+ });
po = new c(t, u);
t.plugins[p] = po;
- if (po.init)
+ if (po.init) {
po.init(t, u);
+ initializedPlugins.push(p);
+ }
}
- });
+ }
+
+ // Create all plugins
+ each(explode(s.plugins.replace(/\-/g, '')), initPlugin);
// Setup popup CSS path(s)
if (s.popup_css !== false) {
@@ -9474,82 +13571,94 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
t.controlManager = new tinymce.ControlManager(t);
- if (s.custom_undo_redo) {
- // Add initial undo level
- t.onBeforeExecCommand.add(function(ed, cmd, ui, val, a) {
- if (cmd != 'Undo' && cmd != 'Redo' && cmd != 'mceRepaint' && (!a || !a.skip_undo)) {
- if (!t.undoManager.hasUndo())
- t.undoManager.add();
- }
- });
+ // Enables users to override the control factory
+ t.onBeforeRenderUI.dispatch(t, t.controlManager);
- t.onExecCommand.add(function(ed, cmd, ui, val, a) {
- if (cmd != 'Undo' && cmd != 'Redo' && cmd != 'mceRepaint' && (!a || !a.skip_undo))
- t.undoManager.add();
- });
- }
+ // Measure box
+ if (s.render_ui && t.theme) {
+ t.orgDisplay = e.style.display;
- t.onExecCommand.add(function(ed, c) {
- // Don't refresh the select lists until caret move
- if (!/^(FontName|FontSize)$/.test(c))
- t.nodeChanged();
- });
+ if (typeof s.theme != "function") {
+ w = s.width || e.style.width || e.offsetWidth;
+ h = s.height || e.style.height || e.offsetHeight;
+ mh = s.min_height || 100;
+ re = /^[0-9\.]+(|px)$/i;
+
+ if (re.test('' + w))
+ w = Math.max(parseInt(w, 10) + (o.deltaWidth || 0), 100);
+
+ if (re.test('' + h))
+ h = Math.max(parseInt(h, 10) + (o.deltaHeight || 0), mh);
+
+ // Render UI
+ o = t.theme.renderUI({
+ targetNode : e,
+ width : w,
+ height : h,
+ deltaWidth : s.delta_width,
+ deltaHeight : s.delta_height
+ });
- // Remove ghost selections on images and tables in Gecko
- if (isGecko) {
- function repaint(a, o) {
- if (!o || !o.initial)
- t.execCommand('mceRepaint');
- };
+ // Resize editor
+ DOM.setStyles(o.sizeContainer || o.editorContainer, {
+ width : w,
+ height : h
+ });
- t.onUndo.add(repaint);
- t.onRedo.add(repaint);
- t.onSetContent.add(repaint);
- }
+ h = (o.iframeHeight || h) + (typeof(h) == 'number' ? (o.deltaHeight || 0) : '');
+ if (h < mh)
+ h = mh;
+ } else {
+ o = s.theme(t, e);
- // Enables users to override the control factory
- t.onBeforeRenderUI.dispatch(t, t.controlManager);
+ // Convert element type to id:s
+ if (o.editorContainer.nodeType) {
+ o.editorContainer = o.editorContainer.id = o.editorContainer.id || t.id + "_parent";
+ }
- // Measure box
- if (s.render_ui) {
- w = s.width || e.style.width || e.offsetWidth;
- h = s.height || e.style.height || e.offsetHeight;
- t.orgDisplay = e.style.display;
- re = /^[0-9\.]+(|px)$/i;
+ // Convert element type to id:s
+ if (o.iframeContainer.nodeType) {
+ o.iframeContainer = o.iframeContainer.id = o.iframeContainer.id || t.id + "_iframecontainer";
+ }
- if (re.test('' + w))
- w = Math.max(parseInt(w) + (o.deltaWidth || 0), 100);
+ // Use specified iframe height or the targets offsetHeight
+ h = o.iframeHeight || e.offsetHeight;
- if (re.test('' + h))
- h = Math.max(parseInt(h) + (o.deltaHeight || 0), 100);
+ // Store away the selection when it's changed to it can be restored later with a editor.focus() call
+ if (isIE) {
+ t.onInit.add(function(ed) {
+ ed.dom.bind(ed.getBody(), 'beforedeactivate keydown', function() {
+ ed.lastIERng = ed.selection.getRng();
+ });
+ });
+ }
+ }
- // Render UI
- o = t.theme.renderUI({
- targetNode : e,
- width : w,
- height : h,
- deltaWidth : s.delta_width,
- deltaHeight : s.delta_height
+ t.editorContainer = o.editorContainer;
+ }
+
+ // Load specified content CSS last
+ if (s.content_css) {
+ each(explode(s.content_css), function(u) {
+ t.contentCSS.push(t.documentBaseURI.toAbsolute(u));
});
+ }
- t.editorContainer = o.editorContainer;
+ // Load specified content CSS last
+ if (s.content_style) {
+ t.contentStyles.push(s.content_style);
}
+ // Content editable mode ends here
+ if (s.content_editable) {
+ e = n = o = null; // Fix IE leak
+ return t.initContentBody();
+ }
// User specified a document.domain value
if (document.domain && location.hostname != document.domain)
tinymce.relaxedDomain = document.domain;
- // Resize editor
- DOM.setStyles(o.sizeContainer || o.editorContainer, {
- width : w,
- height : h
- });
-
- h = (o.iframeHeight || h) + (typeof(h) == 'number' ? (o.deltaHeight || 0) : '');
- if (h < 100)
- h = 100;
-
t.iframeHTML = s.doctype + '<html><head xmlns="http://www.w3.org/1999/xhtml">';
// We only need to override paths if we have to
@@ -9557,10 +13666,20 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
if (s.document_base_url != tinymce.documentBaseURL)
t.iframeHTML += '<base href="' + t.documentBaseURI.getURI() + '" />';
- t.iframeHTML += '<meta http-equiv="X-UA-Compatible" content="IE=7" /><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';
+ // IE8 doesn't support carets behind images setting ie7_compat would force IE8+ to run in IE7 compat mode.
+ if (s.ie7_compat)
+ t.iframeHTML += '<meta http-equiv="X-UA-Compatible" content="IE=7" />';
+ else
+ t.iframeHTML += '<meta http-equiv="X-UA-Compatible" content="IE=edge" />';
+
+ t.iframeHTML += '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';
+
+ // Load the CSS by injecting them into the HTML this will reduce "flicker"
+ for (i = 0; i < t.contentCSS.length; i++) {
+ t.iframeHTML += '<link type="text/css" rel="stylesheet" href="' + t.contentCSS[i] + '" />';
+ }
- if (tinymce.relaxedDomain)
- t.iframeHTML += '<script type="text/javascript">document.domain = "' + tinymce.relaxedDomain + '";</script>';
+ t.contentCSS = [];
bi = s.body_id || 'tinymce';
if (bi.indexOf('=') != -1) {
@@ -9574,433 +13693,293 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
bc = bc[t.id] || '';
}
- t.iframeHTML += '</head><body id="' + bi + '" class="mceContentBody ' + bc + '"></body></html>';
+ t.iframeHTML += '</head><body id="' + bi + '" class="mceContentBody ' + bc + '" onload="window.parent.tinyMCE.get(\'' + t.id + '\').onLoad.dispatch();"><br></body></html>';
// Domain relaxing enabled, then set document domain
- if (tinymce.relaxedDomain) {
+ if (tinymce.relaxedDomain && (isIE || (tinymce.isOpera && parseFloat(opera.version()) < 11))) {
// We need to write the contents here in IE since multiple writes messes up refresh button and back button
- if (isIE || (tinymce.isOpera && parseFloat(opera.version()) >= 9.5))
- u = 'javascript:(function(){document.open();document.domain="' + document.domain + '";var ed = window.parent.tinyMCE.get("' + t.id + '");document.write(ed.iframeHTML);document.close();ed.setupIframe();})()';
- else if (tinymce.isOpera)
- u = 'javascript:(function(){document.open();document.domain="' + document.domain + '";document.close();ed.setupIframe();})()';
+ u = 'javascript:(function(){document.open();document.domain="' + document.domain + '";var ed = window.parent.tinyMCE.get("' + t.id + '");document.write(ed.iframeHTML);document.close();ed.initContentBody();})()';
}
// Create iframe
- n = DOM.add(o.iframeContainer, 'iframe', {
+ // TODO: ACC add the appropriate description on this.
+ n = DOM.add(o.iframeContainer, 'iframe', {
id : t.id + "_ifr",
src : u || 'javascript:""', // Workaround for HTTPS warning in IE6/7
frameBorder : '0',
+ allowTransparency : "true",
+ title : s.aria_label,
style : {
width : '100%',
- height : h
+ height : h,
+ display : 'block' // Important for Gecko to render the iframe correctly
}
});
t.contentAreaContainer = o.iframeContainer;
- DOM.get(o.editorContainer).style.display = t.orgDisplay;
+
+ if (o.editorContainer) {
+ DOM.get(o.editorContainer).style.display = t.orgDisplay;
+ }
+
+ // Restore visibility on target element
+ e.style.visibility = t.orgVisibility;
+
DOM.get(t.id).style.display = 'none';
+ DOM.setAttrib(t.id, 'aria-hidden', true);
- if (!isIE || !tinymce.relaxedDomain)
- t.setupIframe();
+ if (!tinymce.relaxedDomain || !u)
+ t.initContentBody();
e = n = o = null; // Cleanup
},
- setupIframe : function() {
- var t = this, s = t.settings, e = DOM.get(t.id), d = t.getDoc(), h, b;
+ initContentBody : function() {
+ var self = this, settings = self.settings, targetElm = DOM.get(self.id), doc = self.getDoc(), html, body, contentCssText;
// Setup iframe body
- if (!isIE || !tinymce.relaxedDomain) {
- d.open();
- d.write(t.iframeHTML);
- d.close();
- }
+ if ((!isIE || !tinymce.relaxedDomain) && !settings.content_editable) {
+ doc.open();
+ doc.write(self.iframeHTML);
+ doc.close();
- // Design mode needs to be added here Ctrl+A will fail otherwise
- if (!isIE) {
- try {
- if (!s.readonly)
- d.designMode = 'On';
- } catch (ex) {
- // Will fail on Gecko if the editor is placed in an hidden container element
- // The design mode will be set ones the editor is focused
- }
+ if (tinymce.relaxedDomain)
+ doc.domain = tinymce.relaxedDomain;
}
- // IE needs to use contentEditable or it will display non secure items for HTTPS
- if (isIE) {
- // It will not steal focus if we hide it while setting contentEditable
- b = t.getBody();
- DOM.hide(b);
-
- if (!s.readonly)
- b.contentEditable = true;
+ if (settings.content_editable) {
+ DOM.addClass(targetElm, 'mceContentBody');
+ self.contentDocument = doc = settings.content_document || document;
+ self.contentWindow = settings.content_window || window;
+ self.bodyElement = targetElm;
- DOM.show(b);
+ // Prevent leak in IE
+ settings.content_document = settings.content_window = null;
}
- t.dom = new tinymce.dom.DOMUtils(t.getDoc(), {
- keep_values : true,
- url_converter : t.convertURL,
- url_converter_scope : t,
- hex_colors : s.force_hex_style_colors,
- class_filter : s.class_filter,
- update_styles : 1,
- fix_ie_paragraphs : 1,
- valid_styles : s.valid_styles
- });
-
- t.schema = new tinymce.dom.Schema();
-
- t.serializer = new tinymce.dom.Serializer(extend(s, {
- valid_elements : s.verify_html === false ? '*[*]' : s.valid_elements,
- dom : t.dom,
- schema : t.schema
- }));
-
- t.selection = new tinymce.dom.Selection(t.dom, t.getWin(), t.serializer);
-
- t.formatter = new tinymce.Formatter(this);
-
- // Register default formats
- t.formatter.register({
- alignleft : [
- {selector : 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'left'}},
- {selector : 'img,table', styles : {'float' : 'left'}}
- ],
-
- aligncenter : [
- {selector : 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'center'}},
- {selector : 'img', styles : {display : 'block', marginLeft : 'auto', marginRight : 'auto'}},
- {selector : 'table', styles : {marginLeft : 'auto', marginRight : 'auto'}}
- ],
-
- alignright : [
- {selector : 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'right'}},
- {selector : 'img,table', styles : {'float' : 'right'}}
- ],
-
- alignfull : [
- {selector : 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'justify'}}
- ],
-
- bold : [
- {inline : 'strong'},
- {inline : 'span', styles : {fontWeight : 'bold'}},
- {inline : 'b'}
- ],
-
- italic : [
- {inline : 'em'},
- {inline : 'span', styles : {fontStyle : 'italic'}},
- {inline : 'i'}
- ],
-
- underline : [
- {inline : 'span', styles : {textDecoration : 'underline'}, exact : true},
- {inline : 'u'}
- ],
+ // It will not steal focus while setting contentEditable
+ body = self.getBody();
+ body.disabled = true;
- strikethrough : [
- {inline : 'span', styles : {textDecoration : 'line-through'}, exact : true},
- {inline : 'u'}
- ],
+ if (!settings.readonly)
+ body.contentEditable = self.getParam('content_editable_state', true);
- forecolor : {inline : 'span', styles : {color : '%value'}},
- hilitecolor : {inline : 'span', styles : {backgroundColor : '%value'}},
- fontname : {inline : 'span', styles : {fontFamily : '%value'}},
- fontsize : {inline : 'span', styles : {fontSize : '%value'}},
- fontsize_class : {inline : 'span', attributes : {'class' : '%value'}},
- blockquote : {block : 'blockquote', wrapper : 1, remove : 'all'},
+ body.disabled = false;
- removeformat : [
- {selector : 'b,strong,em,i,font,u,strike', remove : 'all', split : true, expand : false, block_expand : true, deep : true},
- {selector : 'span', attributes : ['style', 'class'], remove : 'empty', split : true, expand : false, deep : true},
- {selector : '*', attributes : ['style', 'class'], split : false, expand : false, deep : true}
- ]
- });
+ self.schema = new tinymce.html.Schema(settings);
- // Register default block formats
- each('p h1 h2 h3 h4 h5 h6 div address pre div code dt dd samp'.split(/\s/), function(name) {
- t.formatter.register(name, {block : name, remove : 'all'});
+ self.dom = new tinymce.dom.DOMUtils(doc, {
+ keep_values : true,
+ url_converter : self.convertURL,
+ url_converter_scope : self,
+ hex_colors : settings.force_hex_style_colors,
+ class_filter : settings.class_filter,
+ update_styles : true,
+ root_element : settings.content_editable ? self.id : null,
+ schema : self.schema
});
- // Register user defined formats
- t.formatter.register(t.settings.formats);
+ self.parser = new tinymce.html.DomParser(settings, self.schema);
- t.undoManager = new tinymce.UndoManager(t);
+ // Convert src and href into data-mce-src, data-mce-href and data-mce-style
+ self.parser.addAttributeFilter('src,href,style', function(nodes, name) {
+ var i = nodes.length, node, dom = self.dom, value, internalName;
- // Pass through
- t.undoManager.onAdd.add(function(um, l) {
- if (!l.initial)
- return t.onChange.dispatch(t, l, um);
- });
+ while (i--) {
+ node = nodes[i];
+ value = node.attr(name);
+ internalName = 'data-mce-' + name;
- t.undoManager.onUndo.add(function(um, l) {
- return t.onUndo.dispatch(t, l, um);
+ // Add internal attribute if we need to we don't on a refresh of the document
+ if (!node.attributes.map[internalName]) {
+ if (name === "style")
+ node.attr(internalName, dom.serializeStyle(dom.parseStyle(value), node.name));
+ else
+ node.attr(internalName, self.convertURL(value, name, node.name));
+ }
+ }
});
- t.undoManager.onRedo.add(function(um, l) {
- return t.onRedo.dispatch(t, l, um);
- });
+ // Keep scripts from executing
+ self.parser.addNodeFilter('script', function(nodes, name) {
+ var i = nodes.length, node;
- t.forceBlocks = new tinymce.ForceBlocks(t, {
- forced_root_block : s.forced_root_block
+ while (i--) {
+ node = nodes[i];
+ node.attr('type', 'mce-' + (node.attr('type') || 'text/javascript'));
+ }
});
- t.editorCommands = new tinymce.EditorCommands(t);
-
- // Pass through
- t.serializer.onPreProcess.add(function(se, o) {
- return t.onPreProcess.dispatch(t, o, se);
- });
+ self.parser.addNodeFilter('#cdata', function(nodes, name) {
+ var i = nodes.length, node;
- t.serializer.onPostProcess.add(function(se, o) {
- return t.onPostProcess.dispatch(t, o, se);
+ while (i--) {
+ node = nodes[i];
+ node.type = 8;
+ node.name = '#comment';
+ node.value = '[CDATA[' + node.value + ']]';
+ }
});
- t.onPreInit.dispatch(t);
-
- if (!s.gecko_spellcheck)
- t.getBody().spellcheck = 0;
-
- if (!s.readonly)
- t._addEvents();
-
- t.controlManager.onPostRender.dispatch(t, t.controlManager);
- t.onPostRender.dispatch(t);
-
- if (s.directionality)
- t.getBody().dir = s.directionality;
-
- if (s.nowrap)
- t.getBody().style.whiteSpace = "nowrap";
-
- if (s.custom_elements) {
- function handleCustom(ed, o) {
- each(explode(s.custom_elements), function(v) {
- var n;
-
- if (v.indexOf('~') === 0) {
- v = v.substring(1);
- n = 'span';
- } else
- n = 'div';
-
- o.content = o.content.replace(new RegExp('<(' + v + ')([^>]*)>', 'g'), '<' + n + ' _mce_name="$1"$2>');
- o.content = o.content.replace(new RegExp('</(' + v + ')>', 'g'), '</' + n + '>');
- });
- };
-
- t.onBeforeSetContent.add(handleCustom);
- t.onPostProcess.add(function(ed, o) {
- if (o.set)
- handleCustom(ed, o);
- });
- }
-
- if (s.handle_node_change_callback) {
- t.onNodeChange.add(function(ed, cm, n) {
- t.execCallback('handle_node_change_callback', t.id, n, -1, -1, true, t.selection.isCollapsed());
- });
- }
-
- if (s.save_callback) {
- t.onSaveContent.add(function(ed, o) {
- var h = t.execCallback('save_callback', t.id, o.content, t.getBody());
-
- if (h)
- o.content = h;
- });
- }
-
- if (s.onchange_callback) {
- t.onChange.add(function(ed, l) {
- t.execCallback('onchange_callback', t, l);
- });
- }
-
- if (s.convert_newlines_to_brs) {
- t.onBeforeSetContent.add(function(ed, o) {
- if (o.initial)
- o.content = o.content.replace(/\r?\n/g, '<br />');
- });
- }
-
- if (s.fix_nesting && isIE) {
- t.onBeforeSetContent.add(function(ed, o) {
- o.content = t._fixNesting(o.content);
- });
- }
-
- if (s.preformatted) {
- t.onPostProcess.add(function(ed, o) {
- o.content = o.content.replace(/^\s*<pre.*?>/, '');
- o.content = o.content.replace(/<\/pre>\s*$/, '');
+ self.parser.addNodeFilter('p,h1,h2,h3,h4,h5,h6,div', function(nodes, name) {
+ var i = nodes.length, node, nonEmptyElements = self.schema.getNonEmptyElements();
- if (o.set)
- o.content = '<pre class="mceItemHidden">' + o.content + '</pre>';
- });
- }
+ while (i--) {
+ node = nodes[i];
- if (s.verify_css_classes) {
- t.serializer.attribValueFilter = function(n, v) {
- var s, cl;
+ if (node.isEmpty(nonEmptyElements))
+ node.empty().append(new tinymce.html.Node('br', 1)).shortEnded = true;
+ }
+ });
- if (n == 'class') {
- // Build regexp for classes
- if (!t.classesRE) {
- cl = t.dom.getClasses();
+ self.serializer = new tinymce.dom.Serializer(settings, self.dom, self.schema);
- if (cl.length > 0) {
- s = '';
+ self.selection = new tinymce.dom.Selection(self.dom, self.getWin(), self.serializer, self);
- each (cl, function(o) {
- s += (s ? '|' : '') + o['class'];
- });
+ self.formatter = new tinymce.Formatter(self);
- t.classesRE = new RegExp('(' + s + ')', 'gi');
- }
- }
+ self.undoManager = new tinymce.UndoManager(self);
- return !t.classesRE || /(\bmceItem\w+\b|\bmceTemp\w+\b)/g.test(v) || t.classesRE.test(v) ? v : '';
- }
+ self.forceBlocks = new tinymce.ForceBlocks(self);
+ self.enterKey = new tinymce.EnterKey(self);
+ self.editorCommands = new tinymce.EditorCommands(self);
- return v;
- };
- }
+ self.onExecCommand.add(function(editor, command) {
+ // Don't refresh the select lists until caret move
+ if (!/^(FontName|FontSize)$/.test(command))
+ self.nodeChanged();
+ });
- if (s.cleanup_callback) {
- t.onBeforeSetContent.add(function(ed, o) {
- o.content = t.execCallback('cleanup_callback', 'insert_to_editor', o.content, o);
- });
+ // Pass through
+ self.serializer.onPreProcess.add(function(se, o) {
+ return self.onPreProcess.dispatch(self, o, se);
+ });
- t.onPreProcess.add(function(ed, o) {
- if (o.set)
- t.execCallback('cleanup_callback', 'insert_to_editor_dom', o.node, o);
+ self.serializer.onPostProcess.add(function(se, o) {
+ return self.onPostProcess.dispatch(self, o, se);
+ });
- if (o.get)
- t.execCallback('cleanup_callback', 'get_from_editor_dom', o.node, o);
- });
+ self.onPreInit.dispatch(self);
- t.onPostProcess.add(function(ed, o) {
- if (o.set)
- o.content = t.execCallback('cleanup_callback', 'insert_to_editor', o.content, o);
+ if (!settings.browser_spellcheck && !settings.gecko_spellcheck)
+ doc.body.spellcheck = false;
- if (o.get)
- o.content = t.execCallback('cleanup_callback', 'get_from_editor', o.content, o);
- });
+ if (!settings.readonly) {
+ self.bindNativeEvents();
}
- if (s.save_callback) {
- t.onGetContent.add(function(ed, o) {
- if (o.save)
- o.content = t.execCallback('save_callback', t.id, o.content, t.getBody());
- });
- }
+ self.controlManager.onPostRender.dispatch(self, self.controlManager);
+ self.onPostRender.dispatch(self);
+
+ self.quirks = tinymce.util.Quirks(self);
- if (s.handle_event_callback) {
- t.onEvent.add(function(ed, e, o) {
- if (t.execCallback('handle_event_callback', e, ed, o) === false)
- Event.cancel(e);
+ if (settings.directionality)
+ body.dir = settings.directionality;
+
+ if (settings.nowrap)
+ body.style.whiteSpace = "nowrap";
+
+ if (settings.protect) {
+ self.onBeforeSetContent.add(function(ed, o) {
+ each(settings.protect, function(pattern) {
+ o.content = o.content.replace(pattern, function(str) {
+ return '<!--mce:protected ' + escape(str) + '-->';
+ });
+ });
});
}
// Add visual aids when new contents is added
- t.onSetContent.add(function() {
- t.addVisual(t.getBody());
+ self.onSetContent.add(function() {
+ self.addVisual(self.getBody());
});
// Remove empty contents
- if (s.padd_empty_editor) {
- t.onPostProcess.add(function(ed, o) {
+ if (settings.padd_empty_editor) {
+ self.onPostProcess.add(function(ed, o) {
o.content = o.content.replace(/^(<p[^>]*>( | |\s|\u00a0|)<\/p>[\r\n]*|<br \/>[\r\n]*)$/, '');
});
}
- if (isGecko) {
- // Fix gecko link bug, when a link is placed at the end of block elements there is
- // no way to move the caret behind the link. This fix adds a bogus br element after the link
- function fixLinks(ed, o) {
- each(ed.dom.select('a'), function(n) {
- var pn = n.parentNode;
-
- if (ed.dom.isBlock(pn) && pn.lastChild === n)
- ed.dom.add(pn, 'br', {'_mce_bogus' : 1});
- });
- };
+ self.load({initial : true, format : 'html'});
+ self.startContent = self.getContent({format : 'raw'});
- t.onExecCommand.add(function(ed, cmd) {
- if (cmd === 'CreateLink')
- fixLinks(ed);
- });
+ self.initialized = true;
- t.onSetContent.add(t.selection.onSetContent.add(fixLinks));
+ self.onInit.dispatch(self);
+ self.execCallback('setupcontent_callback', self.id, body, doc);
+ self.execCallback('init_instance_callback', self);
+ self.focus(true);
+ self.nodeChanged({initial : true});
- if (!s.readonly) {
- try {
- // Design mode must be set here once again to fix a bug where
- // Ctrl+A/Delete/Backspace didn't work if the editor was added using mceAddControl then removed then added again
- d.designMode = 'Off';
- d.designMode = 'On';
- } catch (ex) {
- // Will fail on Gecko if the editor is placed in an hidden container element
- // The design mode will be set ones the editor is focused
- }
- }
- }
+ // Add editor specific CSS styles
+ if (self.contentStyles.length > 0) {
+ contentCssText = '';
- // A small timeout was needed since firefox will remove. Bug: #1838304
- setTimeout(function () {
- if (t.removed)
- return;
+ each(self.contentStyles, function(style) {
+ contentCssText += style + "\r\n";
+ });
- t.load({initial : true, format : (s.cleanup_on_startup ? 'html' : 'raw')});
- t.startContent = t.getContent({format : 'raw'});
- t.initialized = true;
+ self.dom.addStyle(contentCssText);
+ }
- t.onInit.dispatch(t);
- t.execCallback('setupcontent_callback', t.id, t.getBody(), t.getDoc());
- t.execCallback('init_instance_callback', t);
- t.focus(true);
- t.nodeChanged({initial : 1});
+ // Load specified content CSS last
+ each(self.contentCSS, function(url) {
+ self.dom.loadCSS(url);
+ });
- // Load specified content CSS last
- if (s.content_css) {
- tinymce.each(explode(s.content_css), function(u) {
- t.dom.loadCSS(t.documentBaseURI.toAbsolute(u));
- });
- }
+ // Handle auto focus
+ if (settings.auto_focus) {
+ setTimeout(function () {
+ var ed = tinymce.get(settings.auto_focus);
- // Handle auto focus
- if (s.auto_focus) {
- setTimeout(function () {
- var ed = tinymce.get(s.auto_focus);
+ ed.selection.select(ed.getBody(), 1);
+ ed.selection.collapse(1);
+ ed.getBody().focus();
+ ed.getWin().focus();
+ }, 100);
+ }
- ed.selection.select(ed.getBody(), 1);
- ed.selection.collapse(1);
- ed.getWin().focus();
- }, 100);
- }
- }, 1);
-
- e = null;
+ // Clean up references for IE
+ targetElm = doc = body = null;
},
+ focus : function(skip_focus) {
+ var oed, self = this, selection = self.selection, contentEditable = self.settings.content_editable, ieRng, controlElm, doc = self.getDoc(), body;
- focus : function(sf) {
- var oed, t = this, ce = t.settings.content_editable, ieRng, controlElm, doc = t.getDoc();
+ if (!skip_focus) {
+ if (self.lastIERng) {
+ selection.setRng(self.lastIERng);
+ }
- if (!sf) {
// Get selected control element
- ieRng = t.selection.getRng();
+ ieRng = selection.getRng();
if (ieRng.item) {
controlElm = ieRng.item(0);
}
- // Is not content editable
- if (!ce)
- t.getWin().focus();
+ self._refreshContentEditable();
+
+ // Focus the window iframe
+ if (!contentEditable) {
+ self.getWin().focus();
+ }
+
+ // Focus the body as well since it's contentEditable
+ if (tinymce.isGecko || contentEditable) {
+ body = self.getBody();
+
+ // Check for setActive since it doesn't scroll to the element
+ if (body.setActive) {
+ body.setActive();
+ } else {
+ body.focus();
+ }
+
+ if (contentEditable) {
+ selection.normalize();
+ }
+ }
// Restore selected control element
// This is needed when for example an image is selected within a
@@ -10010,17 +13989,16 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
ieRng.addElement(controlElm);
ieRng.select();
}
-
}
- if (tinymce.activeEditor != t) {
+ if (tinymce.activeEditor != self) {
if ((oed = tinymce.activeEditor) != null)
- oed.onDeactivate.dispatch(oed, t);
+ oed.onDeactivate.dispatch(oed, self);
- t.onActivate.dispatch(t, oed);
+ self.onActivate.dispatch(self, oed);
}
- tinymce._setActive(t);
+ tinymce._setActive(self);
},
execCallback : function(n) {
@@ -10052,7 +14030,7 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
if (!s)
return '';
- return i18n[c + '.' + s] || s.replace(/{\#([^}]+)\}/g, function(a, b) {
+ return i18n[c + '.' + s] || s.replace(/\{\#([^\}]+)\}/g, function(a, b) {
return i18n[c + '.' + b] || '{#' + b + '}';
});
},
@@ -10086,55 +14064,58 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
},
nodeChanged : function(o) {
- var t = this, s = t.selection, n = (isIE ? s.getNode() : s.getStart()) || t.getBody();
+ var self = this, selection = self.selection, node;
// Fix for bug #1896577 it seems that this can not be fired while the editor is loading
- if (t.initialized) {
+ if (self.initialized) {
o = o || {};
- n = isIE && n.ownerDocument != t.getDoc() ? t.getBody() : n; // Fix for IE initial state
+
+ // Get start node
+ node = selection.getStart() || self.getBody();
+ node = isIE && node.ownerDocument != self.getDoc() ? self.getBody() : node; // Fix for IE initial state
// Get parents and add them to object
o.parents = [];
- t.dom.getParent(n, function(node) {
+ self.dom.getParent(node, function(node) {
if (node.nodeName == 'BODY')
return true;
o.parents.push(node);
});
- t.onNodeChange.dispatch(
- t,
- o ? o.controlManager || t.controlManager : t.controlManager,
- n,
- s.isCollapsed(),
+ self.onNodeChange.dispatch(
+ self,
+ o ? o.controlManager || self.controlManager : self.controlManager,
+ node,
+ selection.isCollapsed(),
o
);
}
},
- addButton : function(n, s) {
- var t = this;
+ addButton : function(name, settings) {
+ var self = this;
- t.buttons = t.buttons || {};
- t.buttons[n] = s;
+ self.buttons = self.buttons || {};
+ self.buttons[name] = settings;
},
- addCommand : function(n, f, s) {
- this.execCommands[n] = {func : f, scope : s || this};
+ addCommand : function(name, callback, scope) {
+ this.execCommands[name] = {func : callback, scope : scope || this};
},
- addQueryStateHandler : function(n, f, s) {
- this.queryStateCommands[n] = {func : f, scope : s || this};
+ addQueryStateHandler : function(name, callback, scope) {
+ this.queryStateCommands[name] = {func : callback, scope : scope || this};
},
- addQueryValueHandler : function(n, f, s) {
- this.queryValueCommands[n] = {func : f, scope : s || this};
+ addQueryValueHandler : function(name, callback, scope) {
+ this.queryValueCommands[name] = {func : callback, scope : scope || this};
},
addShortcut : function(pa, desc, cmd_func, sc) {
var t = this, c;
- if (!t.settings.custom_shortcuts)
+ if (t.settings.custom_shortcuts === false)
return false;
t.shortcuts = t.shortcuts || {};
@@ -10159,7 +14140,7 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
var o = {
func : cmd_func,
scope : sc || this,
- desc : desc,
+ desc : t.translate(desc),
alt : false,
ctrl : false,
shift : false
@@ -10191,9 +14172,9 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
if (!/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint|SelectAll)$/.test(cmd) && (!a || !a.skip_focus))
t.focus();
- o = {};
- t.onBeforeExecCommand.dispatch(t, cmd, ui, val, o);
- if (o.terminate)
+ a = extend({}, a);
+ t.onBeforeExecCommand.dispatch(t, cmd, ui, val, a);
+ if (a.terminate)
return false;
// Command callback
@@ -10231,12 +14212,6 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
return true;
}
- // Execute global commands
- if (tinymce.GlobalCommands.execCommand(t, cmd, ui, val)) {
- t.onExecCommand.dispatch(t, cmd, ui, val, a);
- return true;
- }
-
// Editor commands
if (t.editorCommands.execCommand(cmd, ui, val)) {
t.onExecCommand.dispatch(t, cmd, ui, val, a);
@@ -10307,24 +14282,28 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
},
show : function() {
- var t = this;
+ var self = this;
- DOM.show(t.getContainer());
- DOM.hide(t.id);
- t.load();
+ DOM.show(self.getContainer());
+ DOM.hide(self.id);
+ self.load();
},
hide : function() {
- var t = this, d = t.getDoc();
+ var self = this, doc = self.getDoc();
// Fixed bug where IE has a blinking cursor left from the editor
- if (isIE && d)
- d.execCommand('SelectAll');
+ if (isIE && doc)
+ doc.execCommand('SelectAll');
// We must save before we hide so Safari doesn't crash
- t.save();
- DOM.hide(t.getContainer());
- DOM.setStyle(t.id, 'display', t.orgDisplay);
+ self.save();
+
+ // defer the call to hide to prevent an IE9 crash #4921
+ setTimeout(function() {
+ DOM.hide(self.getContainer());
+ }, 1);
+ DOM.setStyle(self.id, 'display', self.orgDisplay);
},
isHidden : function() {
@@ -10366,12 +14345,6 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
o = o || {};
o.save = true;
- // Add undo level will trigger onchange event
- if (!o.no_events) {
- t.undoManager.typing = 0;
- t.undoManager.add();
- }
-
o.element = e;
h = o.content = t.getContent(o);
@@ -10400,75 +14373,107 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
return h;
},
- setContent : function(h, o) {
- var t = this;
+ setContent : function(content, args) {
+ var self = this, rootNode, body = self.getBody(), forcedRootBlockName;
- o = o || {};
- o.format = o.format || 'html';
- o.set = true;
- o.content = h;
+ // Setup args object
+ args = args || {};
+ args.format = args.format || 'html';
+ args.set = true;
+ args.content = content;
- if (!o.no_events)
- t.onBeforeSetContent.dispatch(t, o);
+ // Do preprocessing
+ if (!args.no_events)
+ self.onBeforeSetContent.dispatch(self, args);
+
+ content = args.content;
// Padd empty content in Gecko and Safari. Commands will otherwise fail on the content
// It will also be impossible to place the caret in the editor unless there is a BR element present
- if (!tinymce.isIE && (h.length === 0 || /^\s+$/.test(h))) {
- o.content = t.dom.setHTML(t.getBody(), '<br _mce_bogus="1" />');
- o.format = 'raw';
- }
+ if (!tinymce.isIE && (content.length === 0 || /^\s+$/.test(content))) {
+ forcedRootBlockName = self.settings.forced_root_block;
+ if (forcedRootBlockName)
+ content = '<' + forcedRootBlockName + '><br data-mce-bogus="1"></' + forcedRootBlockName + '>';
+ else
+ content = '<br data-mce-bogus="1">';
- o.content = t.dom.setHTML(t.getBody(), tinymce.trim(o.content));
+ body.innerHTML = content;
+ self.selection.select(body, true);
+ self.selection.collapse(true);
+ return;
+ }
- if (o.format != 'raw' && t.settings.cleanup) {
- o.getInner = true;
- o.content = t.dom.setHTML(t.getBody(), t.serializer.serialize(t.getBody(), o));
+ // Parse and serialize the html
+ if (args.format !== 'raw') {
+ content = new tinymce.html.Serializer({}, self.schema).serialize(
+ self.parser.parse(content)
+ );
}
- if (!o.no_events)
- t.onSetContent.dispatch(t, o);
+ // Set the new cleaned contents to the editor
+ args.content = tinymce.trim(content);
+ self.dom.setHTML(body, args.content);
+
+ // Do post processing
+ if (!args.no_events)
+ self.onSetContent.dispatch(self, args);
+
+ // Don't normalize selection if the focused element isn't the body in content editable mode since it will steal focus otherwise
+ if (!self.settings.content_editable || document.activeElement === self.getBody()) {
+ self.selection.normalize();
+ }
- return o.content;
+ return args.content;
},
- getContent : function(o) {
- var t = this, h;
+ getContent : function(args) {
+ var self = this, content, body = self.getBody();
- o = o || {};
- o.format = o.format || 'html';
- o.get = true;
+ // Setup args object
+ args = args || {};
+ args.format = args.format || 'html';
+ args.get = true;
+ args.getInner = true;
- if (!o.no_events)
- t.onBeforeGetContent.dispatch(t, o);
+ // Do preprocessing
+ if (!args.no_events)
+ self.onBeforeGetContent.dispatch(self, args);
- if (o.format != 'raw' && t.settings.cleanup) {
- o.getInner = true;
- h = t.serializer.serialize(t.getBody(), o);
- } else
- h = t.getBody().innerHTML;
+ // Get raw contents or by default the cleaned contents
+ if (args.format == 'raw')
+ content = body.innerHTML;
+ else if (args.format == 'text')
+ content = body.innerText || body.textContent;
+ else
+ content = self.serializer.serialize(body, args);
- h = h.replace(/^\s*|\s*$/g, '');
- o.content = h;
+ // Trim whitespace in beginning/end of HTML
+ if (args.format != 'text') {
+ args.content = tinymce.trim(content);
+ } else {
+ args.content = content;
+ }
- if (!o.no_events)
- t.onGetContent.dispatch(t, o);
+ // Do post processing
+ if (!args.no_events)
+ self.onGetContent.dispatch(self, args);
- return o.content;
+ return args.content;
},
isDirty : function() {
- var t = this;
+ var self = this;
- return tinymce.trim(t.startContent) != tinymce.trim(t.getContent({format : 'raw', no_events : 1})) && !t.isNotDirty;
+ return tinymce.trim(self.startContent) != tinymce.trim(self.getContent({format : 'raw', no_events : 1})) && !self.isNotDirty;
},
getContainer : function() {
- var t = this;
+ var self = this;
- if (!t.container)
- t.container = DOM.get(t.editorContainer || t.id + '_parent');
+ if (!self.container)
+ self.container = DOM.get(self.editorContainer || self.id + '_parent');
- return t.container;
+ return self.container;
},
getContentAreaContainer : function() {
@@ -10480,111 +14485,127 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
},
getWin : function() {
- var t = this, e;
+ var self = this, elm;
- if (!t.contentWindow) {
- e = DOM.get(t.id + "_ifr");
+ if (!self.contentWindow) {
+ elm = DOM.get(self.id + "_ifr");
- if (e)
- t.contentWindow = e.contentWindow;
+ if (elm)
+ self.contentWindow = elm.contentWindow;
}
- return t.contentWindow;
+ return self.contentWindow;
},
getDoc : function() {
- var t = this, w;
+ var self = this, win;
- if (!t.contentDocument) {
- w = t.getWin();
+ if (!self.contentDocument) {
+ win = self.getWin();
- if (w)
- t.contentDocument = w.document;
+ if (win)
+ self.contentDocument = win.document;
}
- return t.contentDocument;
+ return self.contentDocument;
},
getBody : function() {
return this.bodyElement || this.getDoc().body;
},
- convertURL : function(u, n, e) {
- var t = this, s = t.settings;
+ convertURL : function(url, name, elm) {
+ var self = this, settings = self.settings;
// Use callback instead
- if (s.urlconverter_callback)
- return t.execCallback('urlconverter_callback', u, e, true, n);
+ if (settings.urlconverter_callback)
+ return self.execCallback('urlconverter_callback', url, elm, true, name);
// Don't convert link href since thats the CSS files that gets loaded into the editor also skip local file URLs
- if (!s.convert_urls || (e && e.nodeName == 'LINK') || u.indexOf('file:') === 0)
- return u;
+ if (!settings.convert_urls || (elm && elm.nodeName == 'LINK') || url.indexOf('file:') === 0)
+ return url;
// Convert to relative
- if (s.relative_urls)
- return t.documentBaseURI.toRelative(u);
+ if (settings.relative_urls)
+ return self.documentBaseURI.toRelative(url);
// Convert to absolute
- u = t.documentBaseURI.toAbsolute(u, s.remove_script_host);
+ url = self.documentBaseURI.toAbsolute(url, settings.remove_script_host);
- return u;
+ return url;
},
- addVisual : function(e) {
- var t = this, s = t.settings;
+ addVisual : function(elm) {
+ var self = this, settings = self.settings, dom = self.dom, cls;
- e = e || t.getBody();
+ elm = elm || self.getBody();
- if (!is(t.hasVisual))
- t.hasVisual = s.visual;
+ if (!is(self.hasVisual))
+ self.hasVisual = settings.visual;
- each(t.dom.select('table,a', e), function(e) {
- var v;
+ each(dom.select('table,a', elm), function(elm) {
+ var value;
- switch (e.nodeName) {
+ switch (elm.nodeName) {
case 'TABLE':
- v = t.dom.getAttrib(e, 'border');
+ cls = settings.visual_table_class || 'mceItemTable';
+ value = dom.getAttrib(elm, 'border');
- if (!v || v == '0') {
- if (t.hasVisual)
- t.dom.addClass(e, s.visual_table_class);
+ if (!value || value == '0') {
+ if (self.hasVisual)
+ dom.addClass(elm, cls);
else
- t.dom.removeClass(e, s.visual_table_class);
+ dom.removeClass(elm, cls);
}
return;
case 'A':
- v = t.dom.getAttrib(e, 'name');
+ if (!dom.getAttrib(elm, 'href', false)) {
+ value = dom.getAttrib(elm, 'name') || elm.id;
+ cls = 'mceItemAnchor';
- if (v) {
- if (t.hasVisual)
- t.dom.addClass(e, 'mceItemAnchor');
- else
- t.dom.removeClass(e, 'mceItemAnchor');
+ if (value) {
+ if (self.hasVisual)
+ dom.addClass(elm, cls);
+ else
+ dom.removeClass(elm, cls);
+ }
}
return;
}
});
- t.onVisualAid.dispatch(t, e, t.hasVisual);
+ self.onVisualAid.dispatch(self, elm, self.hasVisual);
},
remove : function() {
- var t = this, e = t.getContainer();
+ var self = this, elm = self.getContainer();
+
+ if (!self.removed) {
+ self.removed = 1; // Cancels post remove event execution
+ self.hide();
+
+ // Don't clear the window or document if content editable
+ // is enabled since other instances might still be present
+ if (!self.settings.content_editable) {
+ Event.unbind(self.getWin());
+ Event.unbind(self.getDoc());
+ }
- t.removed = 1; // Cancels post remove event execution
- t.hide();
+ Event.unbind(self.getBody());
+ Event.clear(elm);
- t.execCallback('remove_instance_callback', t);
- t.onRemove.dispatch(t);
+ self.execCallback('remove_instance_callback', self);
+ self.onRemove.dispatch(self);
- // Clear all execCommand listeners this is required to avoid errors if the editor was removed inside another command
- t.onExecCommand.listeners = [];
+ // Clear all execCommand listeners this is required to avoid errors if the editor was removed inside another command
+ self.onExecCommand.listeners = [];
- tinymce.remove(t);
- DOM.remove(e);
+ tinymce.remove(self);
+ DOM.remove(elm);
+ }
},
destroy : function(s) {
@@ -10594,6 +14615,13 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
if (t.destroyed)
return;
+ // We must unbind on Gecko since it would otherwise produce the pesky "attempt to run compile-and-go script on a cleared scope" message
+ if (isGecko) {
+ Event.unbind(t.getDoc());
+ Event.unbind(t.getWin());
+ Event.unbind(t.getBody());
+ }
+
if (!s) {
tinymce.removeUnload(t.destroy);
tinyMCE.onBeforeUnload.remove(t._beforeUnload);
@@ -10606,18 +14634,6 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
t.controlManager.destroy();
t.selection.destroy();
t.dom.destroy();
-
- // Remove all events
-
- // Don't clear the window or document if content editable
- // is enabled since other instances might still be present
- if (!t.settings.content_editable) {
- Event.clear(t.getWin());
- Event.clear(t.getDoc());
- }
-
- Event.clear(t.getBody());
- Event.clear(t.formElement);
}
if (t.formElement) {
@@ -10635,449 +14651,329 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
// Internal functions
- _addEvents : function() {
- // 'focus', 'blur', 'dblclick', 'beforedeactivate', submit, reset
- var t = this, i, s = t.settings, dom = t.dom, lo = {
- mouseup : 'onMouseUp',
- mousedown : 'onMouseDown',
- click : 'onClick',
- keyup : 'onKeyUp',
- keydown : 'onKeyDown',
- keypress : 'onKeyPress',
- submit : 'onSubmit',
- reset : 'onReset',
- contextmenu : 'onContextMenu',
- dblclick : 'onDblClick',
- paste : 'onPaste' // Doesn't work in all browsers yet
- };
-
- function eventHandler(e, o) {
- var ty = e.type;
-
- // Don't fire events when it's removed
- if (t.removed)
- return;
+ _refreshContentEditable : function() {
+ var self = this, body, parent;
- // Generic event handler
- if (t.onEvent.dispatch(t, e, o) !== false) {
- // Specific event handler
- t[lo[e.fakeType || e.type]].dispatch(t, e, o);
- }
- };
+ // Check if the editor was hidden and the re-initalize contentEditable mode by removing and adding the body again
+ if (self._isHidden()) {
+ body = self.getBody();
+ parent = body.parentNode;
- // Add DOM events
- each(lo, function(v, k) {
- switch (k) {
- case 'contextmenu':
- if (tinymce.isOpera) {
- // Fake contextmenu on Opera
- dom.bind(t.getBody(), 'mousedown', function(e) {
- if (e.ctrlKey) {
- e.fakeType = 'contextmenu';
- eventHandler(e);
- }
- });
- } else
- dom.bind(t.getBody(), k, eventHandler);
- break;
+ parent.removeChild(body);
+ parent.appendChild(body);
- case 'paste':
- dom.bind(t.getBody(), k, function(e) {
- eventHandler(e);
- });
- break;
+ body.focus();
+ }
+ },
- case 'submit':
- case 'reset':
- dom.bind(t.getElement().form || DOM.getParent(t.id, 'form'), k, eventHandler);
- break;
+ _isHidden : function() {
+ var s;
- default:
- dom.bind(s.content_editable ? t.getBody() : t.getDoc(), k, eventHandler);
- }
- });
+ if (!isGecko)
+ return 0;
- dom.bind(s.content_editable ? t.getBody() : (isGecko ? t.getDoc() : t.getWin()), 'focus', function(e) {
- t.focus(true);
- });
+ // Weird, wheres that cursor selection?
+ s = this.selection.getSel();
+ return (!s || !s.rangeCount || s.rangeCount === 0);
+ }
+ });
+})(tinymce);
+(function(tinymce) {
+ var each = tinymce.each;
+ tinymce.Editor.prototype.setupEvents = function() {
+ var self = this, settings = self.settings;
- // Fixes bug where a specified document_base_uri could result in broken images
- // This will also fix drag drop of images in Gecko
- if (tinymce.isGecko) {
- dom.bind(t.getDoc(), 'DOMNodeInserted', function(e) {
- var v;
+ // Add events to the editor
+ each([
+ 'onPreInit',
- e = e.target;
+ 'onBeforeRenderUI',
- if (e.nodeType === 1 && e.nodeName === 'IMG' && (v = e.getAttribute('_mce_src')))
- e.src = t.documentBaseURI.toAbsolute(v);
- });
- }
+ 'onPostRender',
- // Set various midas options in Gecko
- if (isGecko) {
- function setOpts() {
- var t = this, d = t.getDoc(), s = t.settings;
-
- if (isGecko && !s.readonly) {
- if (t._isHidden()) {
- try {
- if (!s.content_editable)
- d.designMode = 'On';
- } catch (ex) {
- // Fails if it's hidden
- }
- }
+ 'onLoad',
- try {
- // Try new Gecko method
- d.execCommand("styleWithCSS", 0, false);
- } catch (ex) {
- // Use old method
- if (!t._isHidden())
- try {d.execCommand("useCSS", 0, true);} catch (ex) {}
- }
+ 'onInit',
- if (!s.table_inline_editing)
- try {d.execCommand('enableInlineTableEditing', false, false);} catch (ex) {}
+ 'onRemove',
- if (!s.object_resizing)
- try {d.execCommand('enableObjectResizing', false, false);} catch (ex) {}
- }
- };
+ 'onActivate',
- t.onBeforeExecCommand.add(setOpts);
- t.onMouseDown.add(setOpts);
- }
+ 'onDeactivate',
- // Workaround for bug, http://bugs.webkit.org/show_bug.cgi?id=12250
- // WebKit can't even do simple things like selecting an image
- // This also fixes so it's possible to select mceItemAnchors
- if (tinymce.isWebKit) {
- t.onClick.add(function(ed, e) {
- e = e.target;
+ 'onClick',
- // Needs tobe the setBaseAndExtend or it will fail to select floated images
- if (e.nodeName == 'IMG' || (e.nodeName == 'A' && dom.hasClass(e, 'mceItemAnchor'))) {
- t.selection.getSel().setBaseAndExtent(e, 0, e, 1);
- t.nodeChanged();
- }
- });
- }
+ 'onEvent',
- // Add node change handlers
- t.onMouseUp.add(t.nodeChanged);
- //t.onClick.add(t.nodeChanged);
- t.onKeyUp.add(function(ed, e) {
- var c = e.keyCode;
+ 'onMouseUp',
- if ((c >= 33 && c <= 36) || (c >= 37 && c <= 40) || c == 13 || c == 45 || c == 46 || c == 8 || (tinymce.isMac && (c == 91 || c == 93)) || e.ctrlKey)
- t.nodeChanged();
- });
+ 'onMouseDown',
- // Add reset handler
- t.onReset.add(function() {
- t.setContent(t.startContent, {format : 'raw'});
- });
+ 'onDblClick',
- // Add shortcuts
- if (s.custom_shortcuts) {
- if (s.custom_undo_redo_keyboard_shortcuts) {
- t.addShortcut('ctrl+z', t.getLang('undo_desc'), 'Undo');
- t.addShortcut('ctrl+y', t.getLang('redo_desc'), 'Redo');
- }
+ 'onKeyDown',
- // Add default shortcuts for gecko
- t.addShortcut('ctrl+b', t.getLang('bold_desc'), 'Bold');
- t.addShortcut('ctrl+i', t.getLang('italic_desc'), 'Italic');
- t.addShortcut('ctrl+u', t.getLang('underline_desc'), 'Underline');
+ 'onKeyUp',
- // BlockFormat shortcuts keys
- for (i=1; i<=6; i++)
- t.addShortcut('ctrl+' + i, '', ['FormatBlock', false, 'h' + i]);
+ 'onKeyPress',
- t.addShortcut('ctrl+7', '', ['FormatBlock', false, '<p>']);
- t.addShortcut('ctrl+8', '', ['FormatBlock', false, '<div>']);
- t.addShortcut('ctrl+9', '', ['FormatBlock', false, '<address>']);
+ 'onContextMenu',
- function find(e) {
- var v = null;
+ 'onSubmit',
- if (!e.altKey && !e.ctrlKey && !e.metaKey)
- return v;
+ 'onReset',
- each(t.shortcuts, function(o) {
- if (tinymce.isMac && o.ctrl != e.metaKey)
- return;
- else if (!tinymce.isMac && o.ctrl != e.ctrlKey)
- return;
+ 'onPaste',
- if (o.alt != e.altKey)
- return;
+ 'onPreProcess',
- if (o.shift != e.shiftKey)
- return;
+ 'onPostProcess',
- if (e.keyCode == o.keyCode || (e.charCode && e.charCode == o.charCode)) {
- v = o;
- return false;
- }
- });
+ 'onBeforeSetContent',
- return v;
- };
+ 'onBeforeGetContent',
- t.onKeyUp.add(function(ed, e) {
- var o = find(e);
+ 'onSetContent',
- if (o)
- return Event.cancel(e);
- });
+ 'onGetContent',
- t.onKeyPress.add(function(ed, e) {
- var o = find(e);
+ 'onLoadContent',
- if (o)
- return Event.cancel(e);
- });
+ 'onSaveContent',
- t.onKeyDown.add(function(ed, e) {
- var o = find(e);
+ 'onNodeChange',
- if (o) {
- o.func.call(o.scope);
- return Event.cancel(e);
- }
- });
- }
+ 'onChange',
- if (tinymce.isIE) {
- // Fix so resize will only update the width and height attributes not the styles of an image
- // It will also block mceItemNoResize items
- dom.bind(t.getDoc(), 'controlselect', function(e) {
- var re = t.resizeInfo, cb;
+ 'onBeforeExecCommand',
- e = e.target;
+ 'onExecCommand',
- // Don't do this action for non image elements
- if (e.nodeName !== 'IMG')
- return;
+ 'onUndo',
- if (re)
- dom.unbind(re.node, re.ev, re.cb);
+ 'onRedo',
- if (!dom.hasClass(e, 'mceItemNoResize')) {
- ev = 'resizeend';
- cb = dom.bind(e, ev, function(e) {
- var v;
+ 'onVisualAid',
- e = e.target;
+ 'onSetProgressState',
- if (v = dom.getStyle(e, 'width')) {
- dom.setAttrib(e, 'width', v.replace(/[^0-9%]+/g, ''));
- dom.setStyle(e, 'width', '');
- }
+ 'onSetAttrib'
+ ], function(name) {
+ self[name] = new tinymce.util.Dispatcher(self);
+ });
- if (v = dom.getStyle(e, 'height')) {
- dom.setAttrib(e, 'height', v.replace(/[^0-9%]+/g, ''));
- dom.setStyle(e, 'height', '');
- }
- });
- } else {
- ev = 'resizestart';
- cb = dom.bind(e, 'resizestart', Event.cancel, Event);
- }
+ // Handle legacy cleanup_callback option
+ if (settings.cleanup_callback) {
+ self.onBeforeSetContent.add(function(ed, o) {
+ o.content = ed.execCallback('cleanup_callback', 'insert_to_editor', o.content, o);
+ });
- re = t.resizeInfo = {
- node : e,
- ev : ev,
- cb : cb
- };
- });
+ self.onPreProcess.add(function(ed, o) {
+ if (o.set)
+ ed.execCallback('cleanup_callback', 'insert_to_editor_dom', o.node, o);
- t.onKeyDown.add(function(ed, e) {
- switch (e.keyCode) {
- case 8:
- // Fix IE control + backspace browser bug
- if (t.selection.getRng().item) {
- ed.dom.remove(t.selection.getRng().item(0));
- return Event.cancel(e);
- }
- }
- });
+ if (o.get)
+ ed.execCallback('cleanup_callback', 'get_from_editor_dom', o.node, o);
+ });
- /*if (t.dom.boxModel) {
- t.getBody().style.height = '100%';
+ self.onPostProcess.add(function(ed, o) {
+ if (o.set)
+ o.content = ed.execCallback('cleanup_callback', 'insert_to_editor', o.content, o);
- Event.add(t.getWin(), 'resize', function(e) {
- var docElm = t.getDoc().documentElement;
+ if (o.get)
+ o.content = ed.execCallback('cleanup_callback', 'get_from_editor', o.content, o);
+ });
+ }
- docElm.style.height = (docElm.offsetHeight - 10) + 'px';
- });
- }*/
- }
+ // Handle legacy save_callback option
+ if (settings.save_callback) {
+ self.onGetContent.add(function(ed, o) {
+ if (o.save)
+ o.content = ed.execCallback('save_callback', ed.id, o.content, ed.getBody());
+ });
+ }
- if (tinymce.isOpera) {
- t.onClick.add(function(ed, e) {
- Event.prevent(e);
- });
- }
+ // Handle legacy handle_event_callback option
+ if (settings.handle_event_callback) {
+ self.onEvent.add(function(ed, e, o) {
+ if (self.execCallback('handle_event_callback', e, ed, o) === false) {
+ e.preventDefault();
+ e.stopPropagation();
+ }
+ });
+ }
- // Add custom undo/redo handlers
- if (s.custom_undo_redo) {
- function addUndo() {
- t.undoManager.typing = 0;
- t.undoManager.add();
- };
+ // Handle legacy handle_node_change_callback option
+ if (settings.handle_node_change_callback) {
+ self.onNodeChange.add(function(ed, cm, n) {
+ ed.execCallback('handle_node_change_callback', ed.id, n, -1, -1, true, ed.selection.isCollapsed());
+ });
+ }
- dom.bind(t.getDoc(), 'focusout', function(e) {
- if (!t.removed && t.undoManager.typing)
- addUndo();
- });
+ // Handle legacy save_callback option
+ if (settings.save_callback) {
+ self.onSaveContent.add(function(ed, o) {
+ var h = ed.execCallback('save_callback', ed.id, o.content, ed.getBody());
- t.onKeyUp.add(function(ed, e) {
- if ((e.keyCode >= 33 && e.keyCode <= 36) || (e.keyCode >= 37 && e.keyCode <= 40) || e.keyCode == 13 || e.keyCode == 45 || e.ctrlKey)
- addUndo();
- });
+ if (h)
+ o.content = h;
+ });
+ }
- t.onKeyDown.add(function(ed, e) {
- var rng, parent, bookmark;
+ // Handle legacy onchange_callback option
+ if (settings.onchange_callback) {
+ self.onChange.add(function(ed, l) {
+ ed.execCallback('onchange_callback', ed, l);
+ });
+ }
+ };
- // IE has a really odd bug where the DOM might include an node that doesn't have
- // a proper structure. If you try to access nodeValue it would throw an illegal value exception.
- // This seems to only happen when you delete contents and it seems to be avoidable if you refresh the element
- // after you delete contents from it. See: #3008923
- if (isIE && e.keyCode == 46) {
- rng = t.selection.getRng();
+ tinymce.Editor.prototype.bindNativeEvents = function() {
+ // 'focus', 'blur', 'dblclick', 'beforedeactivate', submit, reset
+ var self = this, i, settings = self.settings, dom = self.dom, nativeToDispatcherMap;
+
+ nativeToDispatcherMap = {
+ mouseup : 'onMouseUp',
+ mousedown : 'onMouseDown',
+ click : 'onClick',
+ keyup : 'onKeyUp',
+ keydown : 'onKeyDown',
+ keypress : 'onKeyPress',
+ submit : 'onSubmit',
+ reset : 'onReset',
+ contextmenu : 'onContextMenu',
+ dblclick : 'onDblClick',
+ paste : 'onPaste' // Doesn't work in all browsers yet
+ };
- if (rng.parentElement) {
- parent = rng.parentElement();
+ // Handler that takes a native event and sends it out to a dispatcher like onKeyDown
+ function eventHandler(evt, args) {
+ var type = evt.type;
- // Select next word when ctrl key is used in combo with delete
- if (e.ctrlKey) {
- rng.moveEnd('word', 1);
- rng.select();
- }
+ // Don't fire events when it's removed
+ if (self.removed)
+ return;
- // Delete contents
- t.selection.getSel().clear();
+ // Sends the native event out to a global dispatcher then to the specific event dispatcher
+ if (self.onEvent.dispatch(self, evt, args) !== false) {
+ self[nativeToDispatcherMap[evt.fakeType || evt.type]].dispatch(self, evt, args);
+ }
+ };
- // Check if we are within the same parent
- if (rng.parentElement() == parent) {
- bookmark = t.selection.getBookmark();
+ // Opera doesn't support focus event for contentEditable elements so we need to fake it
+ function doOperaFocus(e) {
+ self.focus(true);
+ };
- try {
- // Update the HTML and hopefully it will remove the artifacts
- parent.innerHTML = parent.innerHTML;
- } catch (ex) {
- // And since it's IE it can sometimes produce an unknown runtime error
- }
+ function nodeChanged(ed, e) {
+ // Normalize selection for example <b>a</b><i>|a</i> becomes <b>a|</b><i>a</i> except for Ctrl+A since it selects everything
+ if (e.keyCode != 65 || !tinymce.VK.metaKeyPressed(e)) {
+ self.selection.normalize();
+ }
- // Restore the caret position
- t.selection.moveToBookmark(bookmark);
- }
+ self.nodeChanged();
+ }
- // Block the default delete behavior since it might be broken
- e.preventDefault();
- return;
- }
- }
+ // Add DOM events
+ each(nativeToDispatcherMap, function(dispatcherName, nativeName) {
+ var root = settings.content_editable ? self.getBody() : self.getDoc();
- // Is caracter positon keys
- if ((e.keyCode >= 33 && e.keyCode <= 36) || (e.keyCode >= 37 && e.keyCode <= 40) || e.keyCode == 13 || e.keyCode == 45) {
- if (t.undoManager.typing)
- addUndo();
+ switch (nativeName) {
+ case 'contextmenu':
+ dom.bind(root, nativeName, eventHandler);
+ break;
- return;
- }
+ case 'paste':
+ dom.bind(self.getBody(), nativeName, eventHandler);
+ break;
- if (!t.undoManager.typing) {
- t.undoManager.add();
- t.undoManager.typing = 1;
- }
- });
+ case 'submit':
+ case 'reset':
+ dom.bind(self.getElement().form || tinymce.DOM.getParent(self.id, 'form'), nativeName, eventHandler);
+ break;
- t.onMouseDown.add(function() {
- if (t.undoManager.typing)
- addUndo();
- });
+ default:
+ dom.bind(root, nativeName, eventHandler);
}
- },
+ });
- _isHidden : function() {
- var s;
+ // Set the editor as active when focused
+ dom.bind(settings.content_editable ? self.getBody() : (tinymce.isGecko ? self.getDoc() : self.getWin()), 'focus', function(e) {
+ self.focus(true);
+ });
- if (!isGecko)
- return 0;
+ if (settings.content_editable && tinymce.isOpera) {
+ dom.bind(self.getBody(), 'click', doOperaFocus);
+ dom.bind(self.getBody(), 'keydown', doOperaFocus);
+ }
- // Weird, wheres that cursor selection?
- s = this.selection.getSel();
- return (!s || !s.rangeCount || s.rangeCount == 0);
- },
+ // Add node change handler
+ self.onMouseUp.add(nodeChanged);
+
+ self.onKeyUp.add(function(ed, e) {
+ var keyCode = e.keyCode;
- // Fix for bug #1867292
- _fixNesting : function(s) {
- var d = [], i;
+ if ((keyCode >= 33 && keyCode <= 36) || (keyCode >= 37 && keyCode <= 40) || keyCode == 13 || keyCode == 45 || keyCode == 46 || keyCode == 8 || (tinymce.isMac && (keyCode == 91 || keyCode == 93)) || e.ctrlKey)
+ nodeChanged(ed, e);
+ });
- s = s.replace(/<(\/)?([^\s>]+)[^>]*?>/g, function(a, b, c) {
- var e;
+ // Add reset handler
+ self.onReset.add(function() {
+ self.setContent(self.startContent, {format : 'raw'});
+ });
- // Handle end element
- if (b === '/') {
- if (!d.length)
- return '';
+ // Add shortcuts
+ function handleShortcut(e, execute) {
+ if (e.altKey || e.ctrlKey || e.metaKey) {
+ each(self.shortcuts, function(shortcut) {
+ var ctrlState = tinymce.isMac ? e.metaKey : e.ctrlKey;
- if (c !== d[d.length - 1].tag) {
- for (i=d.length - 1; i>=0; i--) {
- if (d[i].tag === c) {
- d[i].close = 1;
- break;
- }
- }
+ if (shortcut.ctrl != ctrlState || shortcut.alt != e.altKey || shortcut.shift != e.shiftKey)
+ return;
- return '';
- } else {
- d.pop();
+ if (e.keyCode == shortcut.keyCode || (e.charCode && e.charCode == shortcut.charCode)) {
+ e.preventDefault();
- if (d.length && d[d.length - 1].close) {
- a = a + '</' + d[d.length - 1].tag + '>';
- d.pop();
+ if (execute) {
+ shortcut.func.call(shortcut.scope);
}
- }
- } else {
- // Ignore these
- if (/^(br|hr|input|meta|img|link|param)$/i.test(c))
- return a;
- // Ignore closed ones
- if (/\/>$/.test(a))
- return a;
+ return true;
+ }
+ });
+ }
+ };
- d.push({tag : c}); // Push start element
- }
+ self.onKeyUp.add(function(ed, e) {
+ handleShortcut(e);
+ });
- return a;
- });
+ self.onKeyPress.add(function(ed, e) {
+ handleShortcut(e);
+ });
- // End all open tags
- for (i=d.length - 1; i>=0; i--)
- s += '</' + d[i].tag + '>';
+ self.onKeyDown.add(function(ed, e) {
+ handleShortcut(e, true);
+ });
- return s;
+ if (tinymce.isOpera) {
+ self.onClick.add(function(ed, e) {
+ e.preventDefault();
+ });
}
- });
+ };
})(tinymce);
-
(function(tinymce) {
// Added for compression purposes
- var each = tinymce.each, undefined, TRUE = true, FALSE = false;
+ var each = tinymce.each, undef, TRUE = true, FALSE = false;
tinymce.EditorCommands = function(editor) {
var dom = editor.dom,
selection = editor.selection,
commands = {state: {}, exec : {}, value : {}},
settings = editor.settings,
+ formatter = editor.formatter,
bookmark;
function execCommand(command, ui, value) {
@@ -11133,21 +15029,21 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
// Private methods
function execNativeCommand(command, ui, value) {
- if (ui === undefined)
+ if (ui === undef)
ui = FALSE;
- if (value === undefined)
+ if (value === undef)
value = null;
-
+
return editor.getDoc().execCommand(command, ui, value);
};
function isFormatMatch(name) {
- return editor.formatter.match(name);
+ return formatter.match(name);
};
function toggleFormat(name, value) {
- editor.formatter.toggle(name, value ? {value : value} : undefined);
+ formatter.toggle(name, value ? {value : value} : undef);
};
function storeSelection(type) {
@@ -11207,10 +15103,11 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
// Remove all other alignments first
each('left,center,right,full'.split(','), function(name) {
if (align != name)
- editor.formatter.remove('align' + name);
+ formatter.remove('align' + name);
});
toggleFormat('align' + align);
+ execCommand('mceRepaint');
},
// Override list commands to fix WebKit bug
@@ -11236,7 +15133,7 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
},
// Override commands to use the text formatter engine
- 'Bold,Italic,Underline,Strikethrough' : function(command) {
+ 'Bold,Italic,Underline,Strikethrough,Superscript,Subscript' : function(command) {
toggleFormat(command);
},
@@ -11263,7 +15160,7 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
},
RemoveFormat : function(command) {
- editor.formatter.remove(command);
+ formatter.remove(command);
},
mceBlockQuote : function(command) {
@@ -11309,7 +15206,135 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
},
mceInsertContent : function(command, ui, value) {
- selection.setContent(value);
+ var parser, serializer, parentNode, rootNode, fragment, args,
+ marker, nodeRect, viewPortRect, rng, node, node2, bookmarkHtml, viewportBodyElement;
+
+ //selection.normalize();
+
+ // Setup parser and serializer
+ parser = editor.parser;
+ serializer = new tinymce.html.Serializer({}, editor.schema);
+ bookmarkHtml = '<span id="mce_marker" data-mce-type="bookmark">\uFEFF</span>';
+
+ // Run beforeSetContent handlers on the HTML to be inserted
+ args = {content: value, format: 'html'};
+ selection.onBeforeSetContent.dispatch(selection, args);
+ value = args.content;
+
+ // Add caret at end of contents if it's missing
+ if (value.indexOf('{$caret}') == -1)
+ value += '{$caret}';
+
+ // Replace the caret marker with a span bookmark element
+ value = value.replace(/\{\$caret\}/, bookmarkHtml);
+
+ // Insert node maker where we will insert the new HTML and get it's parent
+ if (!selection.isCollapsed())
+ editor.getDoc().execCommand('Delete', false, null);
+
+ parentNode = selection.getNode();
+
+ // Parse the fragment within the context of the parent node
+ args = {context : parentNode.nodeName.toLowerCase()};
+ fragment = parser.parse(value, args);
+
+ // Move the caret to a more suitable location
+ node = fragment.lastChild;
+ if (node.attr('id') == 'mce_marker') {
+ marker = node;
+
+ for (node = node.prev; node; node = node.walk(true)) {
+ if (node.type == 3 || !dom.isBlock(node.name)) {
+ node.parent.insert(marker, node, node.name === 'br');
+ break;
+ }
+ }
+ }
+
+ // If parser says valid we can insert the contents into that parent
+ if (!args.invalid) {
+ value = serializer.serialize(fragment);
+
+ // Check if parent is empty or only has one BR element then set the innerHTML of that parent
+ node = parentNode.firstChild;
+ node2 = parentNode.lastChild;
+ if (!node || (node === node2 && node.nodeName === 'BR'))
+ dom.setHTML(parentNode, value);
+ else
+ selection.setContent(value);
+ } else {
+ // If the fragment was invalid within that context then we need
+ // to parse and process the parent it's inserted into
+
+ // Insert bookmark node and get the parent
+ selection.setContent(bookmarkHtml);
+ parentNode = selection.getNode();
+ rootNode = editor.getBody();
+
+ // Opera will return the document node when selection is in root
+ if (parentNode.nodeType == 9)
+ parentNode = node = rootNode;
+ else
+ node = parentNode;
+
+ // Find the ancestor just before the root element
+ while (node !== rootNode) {
+ parentNode = node;
+ node = node.parentNode;
+ }
+
+ // Get the outer/inner HTML depending on if we are in the root and parser and serialize that
+ value = parentNode == rootNode ? rootNode.innerHTML : dom.getOuterHTML(parentNode);
+ value = serializer.serialize(
+ parser.parse(
+ // Need to replace by using a function since $ in the contents would otherwise be a problem
+ value.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i, function() {
+ return serializer.serialize(fragment);
+ })
+ )
+ );
+
+ // Set the inner/outer HTML depending on if we are in the root or not
+ if (parentNode == rootNode)
+ dom.setHTML(rootNode, value);
+ else
+ dom.setOuterHTML(parentNode, value);
+ }
+
+ marker = dom.get('mce_marker');
+
+ // Scroll range into view scrollIntoView on element can't be used since it will scroll the main view port as well
+ nodeRect = dom.getRect(marker);
+ viewPortRect = dom.getViewPort(editor.getWin());
+
+ // Check if node is out side the viewport if it is then scroll to it
+ if ((nodeRect.y + nodeRect.h > viewPortRect.y + viewPortRect.h || nodeRect.y < viewPortRect.y) ||
+ (nodeRect.x > viewPortRect.x + viewPortRect.w || nodeRect.x < viewPortRect.x)) {
+ viewportBodyElement = tinymce.isIE ? editor.getDoc().documentElement : editor.getBody();
+ viewportBodyElement.scrollLeft = nodeRect.x;
+ viewportBodyElement.scrollTop = nodeRect.y - viewPortRect.h + 25;
+ }
+
+ // Move selection before marker and remove it
+ rng = dom.createRng();
+
+ // If previous sibling is a text node set the selection to the end of that node
+ node = marker.previousSibling;
+ if (node && node.nodeType == 3) {
+ rng.setStart(node, node.nodeValue.length);
+ } else {
+ // If the previous sibling isn't a text node or doesn't exist set the selection before the marker node
+ rng.setStartBefore(marker);
+ rng.setEndBefore(marker);
+ }
+
+ // Remove the marker node and set the new range
+ dom.remove(marker);
+ selection.setRng(rng);
+
+ // Dispatch after event and add any visual elements needed
+ selection.onSetContent.dispatch(selection, args);
+ editor.addVisual();
},
mceInsertRawHTML : function(command, ui, value) {
@@ -11317,6 +15342,10 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
editor.setContent(editor.getContent().replace(/tiny_mce_marker/g, function() { return value }));
},
+ mceToggleFormat : function(command, ui, value) {
+ toggleFormat(value);
+ },
+
mceSetContent : function(command, ui, value) {
editor.setContent(value);
},
@@ -11330,6 +15359,11 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
intentValue = parseInt(intentValue);
if (!queryCommandState('InsertUnorderedList') && !queryCommandState('InsertOrderedList')) {
+ // If forced_root_blocks is set to false we don't have a block to indent so lets create a div
+ if (!settings.forced_root_block && !dom.getParent(selection.getNode(), dom.isBlock)) {
+ formatter.apply('div');
+ }
+
each(selection.getSelectedBlocks(), function(element) {
if (command == 'outdent') {
value = Math.max(0, parseInt(element.style.paddingLeft || 0) - intentValue);
@@ -11360,11 +15394,11 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
},
mceToggleFormat : function(command, ui, value) {
- editor.formatter.toggle(value);
+ formatter.toggle(value);
},
InsertHorizontalRule : function() {
- selection.setContent('<hr />');
+ editor.execCommand('mceInsertContent', false, '<hr />');
},
mceToggleVisualAid : function() {
@@ -11373,35 +15407,43 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
},
mceReplaceContent : function(command, ui, value) {
- selection.setContent(value.replace(/\{\$selection\}/g, selection.getContent({format : 'text'})));
+ editor.execCommand('mceInsertContent', false, value.replace(/\{\$selection\}/g, selection.getContent({format : 'text'})));
},
mceInsertLink : function(command, ui, value) {
- var link = dom.getParent(selection.getNode(), 'a');
+ var anchor;
- if (tinymce.is(value, 'string'))
+ if (typeof(value) == 'string')
value = {href : value};
- if (!link) {
- execNativeCommand('CreateLink', FALSE, 'javascript:mctmp(0);');
- each(dom.select('a[href=javascript:mctmp(0);]'), function(link) {
- dom.setAttribs(link, value);
- });
- } else {
- if (value.href)
- dom.setAttribs(link, value);
- else
- editor.dom.remove(link, TRUE);
+ anchor = dom.getParent(selection.getNode(), 'a');
+
+ // Spaces are never valid in URLs and it's a very common mistake for people to make so we fix it here.
+ value.href = value.href.replace(' ', '%20');
+
+ // Remove existing links if there could be child links or that the href isn't specified
+ if (!anchor || !value.href) {
+ formatter.remove('link');
+ }
+
+ // Apply new link to selection
+ if (value.href) {
+ formatter.apply('link', value, anchor);
}
},
-
+
selectAll : function() {
var root = dom.getRoot(), rng = dom.createRng();
- rng.setStart(root, 0);
- rng.setEnd(root, root.childNodes.length);
+ // Old IE does a better job with selectall than new versions
+ if (selection.getRng().setStart) {
+ rng.setStart(root, 0);
+ rng.setEnd(root, root.childNodes.length);
- editor.selection.setRng(rng);
+ selection.setRng(rng);
+ } else {
+ execNativeCommand('SelectAll');
+ }
}
});
@@ -11409,10 +15451,15 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
addCommands({
// Override justify commands
'JustifyLeft,JustifyCenter,JustifyRight,JustifyFull' : function(command) {
- return isFormatMatch('align' + command.substring(7));
+ var name = 'align' + command.substring(7);
+ var nodes = selection.isCollapsed() ? [dom.getParent(selection.getNode(), dom.isBlock)] : selection.getSelectedBlocks();
+ var matches = tinymce.map(nodes, function(node) {
+ return !!formatter.matchNode(node, name);
+ });
+ return tinymce.inArray(matches, TRUE) !== -1;
},
- 'Bold,Italic,Underline,Strikethrough' : function(command) {
+ 'Bold,Italic,Underline,Strikethrough,Superscript,Subscript' : function(command) {
return isFormatMatch(command);
},
@@ -11435,7 +15482,10 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
},
'InsertUnorderedList,InsertOrderedList' : function(command) {
- return dom.getParent(selection.getNode(), command == 'insertunorderedlist' ? 'UL' : 'OL');
+ var list = dom.getParent(selection.getNode(), 'ul,ol');
+ return list &&
+ (command === 'insertunorderedlist' && list.tagName === 'UL'
+ || command === 'insertorderedlist' && list.tagName === 'OL');
}
}, 'state');
@@ -11456,48 +15506,156 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
}, 'value');
// Add undo manager logic
- if (settings.custom_undo_redo) {
- addCommands({
- Undo : function() {
- editor.undoManager.undo();
- },
+ addCommands({
+ Undo : function() {
+ editor.undoManager.undo();
+ },
- Redo : function() {
- editor.undoManager.redo();
- }
- });
- }
+ Redo : function() {
+ editor.undoManager.redo();
+ }
+ });
};
})(tinymce);
+
(function(tinymce) {
var Dispatcher = tinymce.util.Dispatcher;
tinymce.UndoManager = function(editor) {
- var self, index = 0, data = [];
+ var self, index = 0, data = [], beforeBookmark, onAdd, onUndo, onRedo;
function getContent() {
- return tinymce.trim(editor.getContent({format : 'raw', no_events : 1}));
+ // Remove whitespace before/after and remove pure bogus nodes
+ return tinymce.trim(editor.getContent({format : 'raw', no_events : 1}).replace(/<span[^>]+data-mce-bogus[^>]+>[\u200B\uFEFF]+<\/span>/g, ''));
+ };
+
+ function addNonTypingUndoLevel() {
+ self.typing = false;
+ self.add();
};
- return self = {
- typing : 0,
+ // Create event instances
+ onBeforeAdd = new Dispatcher(self);
+ onAdd = new Dispatcher(self);
+ onUndo = new Dispatcher(self);
+ onRedo = new Dispatcher(self);
+
+ // Pass though onAdd event from UndoManager to Editor as onChange
+ onAdd.add(function(undoman, level) {
+ if (undoman.hasUndo())
+ return editor.onChange.dispatch(editor, level, undoman);
+ });
+
+ // Pass though onUndo event from UndoManager to Editor
+ onUndo.add(function(undoman, level) {
+ return editor.onUndo.dispatch(editor, level, undoman);
+ });
+
+ // Pass though onRedo event from UndoManager to Editor
+ onRedo.add(function(undoman, level) {
+ return editor.onRedo.dispatch(editor, level, undoman);
+ });
+
+ // Add initial undo level when the editor is initialized
+ editor.onInit.add(function() {
+ self.add();
+ });
+
+ // Get position before an execCommand is processed
+ editor.onBeforeExecCommand.add(function(ed, cmd, ui, val, args) {
+ if (cmd != 'Undo' && cmd != 'Redo' && cmd != 'mceRepaint' && (!args || !args.skip_undo)) {
+ self.beforeChange();
+ }
+ });
+
+ // Add undo level after an execCommand call was made
+ editor.onExecCommand.add(function(ed, cmd, ui, val, args) {
+ if (cmd != 'Undo' && cmd != 'Redo' && cmd != 'mceRepaint' && (!args || !args.skip_undo)) {
+ self.add();
+ }
+ });
+
+ // Add undo level on save contents, drag end and blur/focusout
+ editor.onSaveContent.add(addNonTypingUndoLevel);
+ editor.dom.bind(editor.dom.getRoot(), 'dragend', addNonTypingUndoLevel);
+ editor.dom.bind(editor.getDoc(), tinymce.isGecko ? 'blur' : 'focusout', function(e) {
+ if (!editor.removed && self.typing) {
+ addNonTypingUndoLevel();
+ }
+ });
+
+ editor.onKeyUp.add(function(editor, e) {
+ var keyCode = e.keyCode;
+
+ if ((keyCode >= 33 && keyCode <= 36) || (keyCode >= 37 && keyCode <= 40) || keyCode == 45 || keyCode == 13 || e.ctrlKey) {
+ addNonTypingUndoLevel();
+ }
+ });
+
+ editor.onKeyDown.add(function(editor, e) {
+ var keyCode = e.keyCode;
+
+ // Is caracter positon keys left,right,up,down,home,end,pgdown,pgup,enter
+ if ((keyCode >= 33 && keyCode <= 36) || (keyCode >= 37 && keyCode <= 40) || keyCode == 45) {
+ if (self.typing) {
+ addNonTypingUndoLevel();
+ }
+
+ return;
+ }
+
+ // If key isn't shift,ctrl,alt,capslock,metakey
+ if ((keyCode < 16 || keyCode > 20) && keyCode != 224 && keyCode != 91 && !self.typing) {
+ self.beforeChange();
+ self.typing = true;
+ self.add();
+ }
+ });
+
+ editor.onMouseDown.add(function(editor, e) {
+ if (self.typing) {
+ addNonTypingUndoLevel();
+ }
+ });
+
+ // Add keyboard shortcuts for undo/redo keys
+ editor.addShortcut('ctrl+z', 'undo_desc', 'Undo');
+ editor.addShortcut('ctrl+y', 'redo_desc', 'Redo');
+
+ self = {
+ // Explose for debugging reasons
+ data : data,
+
+ typing : false,
+
+ onBeforeAdd: onBeforeAdd,
+
+ onAdd : onAdd,
+
+ onUndo : onUndo,
+
+ onRedo : onRedo,
- onAdd : new Dispatcher(self),
- onUndo : new Dispatcher(self),
- onRedo : new Dispatcher(self),
+ beforeChange : function() {
+ beforeBookmark = editor.selection.getBookmark(2, true);
+ },
add : function(level) {
var i, settings = editor.settings, lastLevel;
level = level || {};
level.content = getContent();
+
+ self.onBeforeAdd.dispatch(self, level);
// Add undo level if needed
lastLevel = data[index];
- if (lastLevel && lastLevel.content == level.content) {
- if (index > 0 || data.length == 1)
- return null;
- }
+ if (lastLevel && lastLevel.content == level.content)
+ return null;
+
+ // Set before bookmark on previous level
+ if (data[index])
+ data[index].beforeBookmark = beforeBookmark;
// Time to compress
if (settings.custom_undo_redo_levels) {
@@ -11514,13 +15672,8 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
level.bookmark = editor.selection.getBookmark(2, true);
// Crop array if needed
- if (index < data.length - 1) {
- // Treat first level as initial
- if (index == 0)
- data = [];
- else
- data.length = index + 1;
- }
+ if (index < data.length - 1)
+ data.length = index + 1;
data.push(level);
index = data.length - 1;
@@ -11536,14 +15689,14 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
if (self.typing) {
self.add();
- self.typing = 0;
+ self.typing = false;
}
if (index > 0) {
level = data[--index];
editor.setContent(level.content, {format : 'raw'});
- editor.selection.moveToBookmark(level.bookmark);
+ editor.selection.moveToBookmark(level.beforeBookmark);
self.onUndo.dispatch(self, level);
}
@@ -11566,2678 +15719,3270 @@ tinymce.create('tinymce.ui.Toolbar:tinymce.ui.Container', {
return level;
},
- clear : function() {
- data = [];
- index = self.typing = 0;
- },
+ clear : function() {
+ data = [];
+ index = 0;
+ self.typing = false;
+ },
+
+ hasUndo : function() {
+ return index > 0 || this.typing;
+ },
+
+ hasRedo : function() {
+ return index < data.length - 1 && !this.typing;
+ }
+ };
+
+ return self;
+ };
+})(tinymce);
+
+tinymce.ForceBlocks = function(editor) {
+ var settings = editor.settings, dom = editor.dom, selection = editor.selection, blockElements = editor.schema.getBlockElements();
+
+ function addRootBlocks() {
+ var node = selection.getStart(), rootNode = editor.getBody(), rng, startContainer, startOffset, endContainer, endOffset, rootBlockNode, tempNode, offset = -0xFFFFFF, wrapped, isInEditorDocument;
+
+ if (!node || node.nodeType !== 1 || !settings.forced_root_block)
+ return;
+
+ // Check if node is wrapped in block
+ while (node && node != rootNode) {
+ if (blockElements[node.nodeName])
+ return;
+
+ node = node.parentNode;
+ }
+
+ // Get current selection
+ rng = selection.getRng();
+ if (rng.setStart) {
+ startContainer = rng.startContainer;
+ startOffset = rng.startOffset;
+ endContainer = rng.endContainer;
+ endOffset = rng.endOffset;
+ } else {
+ // Force control range into text range
+ if (rng.item) {
+ node = rng.item(0);
+ rng = editor.getDoc().body.createTextRange();
+ rng.moveToElementText(node);
+ }
+
+ isInEditorDocument = rng.parentElement().ownerDocument === editor.getDoc();
+ tmpRng = rng.duplicate();
+ tmpRng.collapse(true);
+ startOffset = tmpRng.move('character', offset) * -1;
+
+ if (!tmpRng.collapsed) {
+ tmpRng = rng.duplicate();
+ tmpRng.collapse(false);
+ endOffset = (tmpRng.move('character', offset) * -1) - startOffset;
+ }
+ }
+
+ // Wrap non block elements and text nodes
+ node = rootNode.firstChild;
+ while (node) {
+ if (node.nodeType === 3 || (node.nodeType == 1 && !blockElements[node.nodeName])) {
+ // Remove empty text nodes
+ if (node.nodeType === 3 && node.nodeValue.length == 0) {
+ tempNode = node;
+ node = node.nextSibling;
+ dom.remove(tempNode);
+ continue;
+ }
+
+ if (!rootBlockNode) {
+ rootBlockNode = dom.create(settings.forced_root_block);
+ node.parentNode.insertBefore(rootBlockNode, node);
+ wrapped = true;
+ }
+
+ tempNode = node;
+ node = node.nextSibling;
+ rootBlockNode.appendChild(tempNode);
+ } else {
+ rootBlockNode = null;
+ node = node.nextSibling;
+ }
+ }
+
+ if (wrapped) {
+ if (rng.setStart) {
+ rng.setStart(startContainer, startOffset);
+ rng.setEnd(endContainer, endOffset);
+ selection.setRng(rng);
+ } else {
+ // Only select if the previous selection was inside the document to prevent auto focus in quirks mode
+ if (isInEditorDocument) {
+ try {
+ rng = editor.getDoc().body.createTextRange();
+ rng.moveToElementText(rootNode);
+ rng.collapse(true);
+ rng.moveStart('character', startOffset);
+
+ if (endOffset > 0)
+ rng.moveEnd('character', endOffset);
+
+ rng.select();
+ } catch (ex) {
+ // Ignore
+ }
+ }
+ }
+
+ editor.nodeChanged();
+ }
+ };
+
+ // Force root blocks
+ if (settings.forced_root_block) {
+ editor.onKeyUp.add(addRootBlocks);
+ editor.onNodeChange.add(addRootBlocks);
+ }
+};
+
+(function(tinymce) {
+ // Shorten names
+ var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each, extend = tinymce.extend;
+
+ tinymce.create('tinymce.ControlManager', {
+ ControlManager : function(ed, s) {
+ var t = this, i;
+
+ s = s || {};
+ t.editor = ed;
+ t.controls = {};
+ t.onAdd = new tinymce.util.Dispatcher(t);
+ t.onPostRender = new tinymce.util.Dispatcher(t);
+ t.prefix = s.prefix || ed.id + '_';
+ t._cls = {};
+
+ t.onPostRender.add(function() {
+ each(t.controls, function(c) {
+ c.postRender();
+ });
+ });
+ },
+
+ get : function(id) {
+ return this.controls[this.prefix + id] || this.controls[id];
+ },
+
+ setActive : function(id, s) {
+ var c = null;
+
+ if (c = this.get(id))
+ c.setActive(s);
+
+ return c;
+ },
+
+ setDisabled : function(id, s) {
+ var c = null;
+
+ if (c = this.get(id))
+ c.setDisabled(s);
+
+ return c;
+ },
+
+ add : function(c) {
+ var t = this;
+
+ if (c) {
+ t.controls[c.id] = c;
+ t.onAdd.dispatch(c, t);
+ }
+
+ return c;
+ },
- hasUndo : function() {
- return index > 0 || self.typing;
- },
+ createControl : function(name) {
+ var ctrl, i, l, self = this, editor = self.editor, factories, ctrlName;
- hasRedo : function() {
- return index < data.length - 1;
+ // Build control factory cache
+ if (!self.controlFactories) {
+ self.controlFactories = [];
+ each(editor.plugins, function(plugin) {
+ if (plugin.createControl) {
+ self.controlFactories.push(plugin);
+ }
+ });
}
- };
- };
-})(tinymce);
-(function(tinymce) {
- // Shorten names
- var Event = tinymce.dom.Event,
- isIE = tinymce.isIE,
- isGecko = tinymce.isGecko,
- isOpera = tinymce.isOpera,
- each = tinymce.each,
- extend = tinymce.extend,
- TRUE = true,
- FALSE = false;
-
- function cloneFormats(node) {
- var clone, temp, inner;
-
- do {
- if (/^(SPAN|STRONG|B|EM|I|FONT|STRIKE|U)$/.test(node.nodeName)) {
- if (clone) {
- temp = node.cloneNode(false);
- temp.appendChild(clone);
- clone = temp;
- } else {
- clone = inner = node.cloneNode(false);
+ // Create controls by asking cached factories
+ factories = self.controlFactories;
+ for (i = 0, l = factories.length; i < l; i++) {
+ ctrl = factories[i].createControl(name, self);
+
+ if (ctrl) {
+ return self.add(ctrl);
}
+ }
- clone.removeAttribute('id');
+ // Create sepearator
+ if (name === "|" || name === "separator") {
+ return self.createSeparator();
}
- } while (node = node.parentNode);
- if (clone)
- return {wrapper : clone, inner : inner};
- };
+ // Create control from button collection
+ if (editor.buttons && (ctrl = editor.buttons[name])) {
+ return self.createButton(name, ctrl);
+ }
+
+ return self.add(ctrl);
+ },
- // Checks if the selection/caret is at the end of the specified block element
- function isAtEnd(rng, par) {
- var rng2 = par.ownerDocument.createRange();
+ createDropMenu : function(id, s, cc) {
+ var t = this, ed = t.editor, c, bm, v, cls;
- rng2.setStart(rng.endContainer, rng.endOffset);
- rng2.setEndAfter(par);
+ s = extend({
+ 'class' : 'mceDropDown',
+ constrain : ed.settings.constrain_menus
+ }, s);
- // Get number of characters to the right of the cursor if it's zero then we are at the end and need to merge the next block element
- return rng2.cloneContents().textContent.length == 0;
- };
+ s['class'] = s['class'] + ' ' + ed.getParam('skin') + 'Skin';
+ if (v = ed.getParam('skin_variant'))
+ s['class'] += ' ' + ed.getParam('skin') + 'Skin' + v.substring(0, 1).toUpperCase() + v.substring(1);
+
+ s['class'] += ed.settings.directionality == "rtl" ? ' mceRtl' : '';
- function isEmpty(n) {
- n = n.innerHTML;
+ id = t.prefix + id;
+ cls = cc || t._cls.dropmenu || tinymce.ui.DropMenu;
+ c = t.controls[id] = new cls(id, s);
+ c.onAddItem.add(function(c, o) {
+ var s = o.settings;
- n = n.replace(/<(img|hr|table|input|select|textarea)[ \>]/gi, '-'); // Keep these convert them to - chars
- n = n.replace(/<[^>]+>/g, ''); // Remove all tags
+ s.title = ed.getLang(s.title, s.title);
- return n.replace(/[ \u00a0\t\r\n]+/g, '') == '';
- };
+ if (!s.onclick) {
+ s.onclick = function(v) {
+ if (s.cmd)
+ ed.execCommand(s.cmd, s.ui || false, s.value);
+ };
+ }
+ });
+
+ ed.onRemove.add(function() {
+ c.destroy();
+ });
- function splitList(selection, dom, li) {
- var listBlock, block;
+ // Fix for bug #1897785, #1898007
+ if (tinymce.isIE) {
+ c.onShowMenu.add(function() {
+ // IE 8 needs focus in order to store away a range with the current collapsed caret location
+ ed.focus();
- if (isEmpty(li)) {
- listBlock = dom.getParent(li, 'ul,ol');
+ bm = ed.selection.getBookmark(1);
+ });
- if (!dom.getParent(listBlock.parentNode, 'ul,ol')) {
- dom.split(listBlock, li);
- block = dom.create('p', 0, '<br _mce_bogus="1" />');
- dom.replace(block, li);
- selection.select(block, 1);
+ c.onHideMenu.add(function() {
+ if (bm) {
+ ed.selection.moveToBookmark(bm);
+ bm = 0;
+ }
+ });
}
- return FALSE;
- }
+ return t.add(c);
+ },
- return TRUE;
- };
+ createListBox : function(id, s, cc) {
+ var t = this, ed = t.editor, cmd, c, cls;
+
+ if (t.get(id))
+ return null;
- tinymce.create('tinymce.ForceBlocks', {
- ForceBlocks : function(ed) {
- var t = this, s = ed.settings, elm;
+ s.title = ed.translate(s.title);
+ s.scope = s.scope || ed;
- t.editor = ed;
- t.dom = ed.dom;
- elm = (s.forced_root_block || 'p').toLowerCase();
- s.element = elm.toUpperCase();
+ if (!s.onselect) {
+ s.onselect = function(v) {
+ ed.execCommand(s.cmd, s.ui || false, v || s.value);
+ };
+ }
- ed.onPreInit.add(t.setup, t);
+ s = extend({
+ title : s.title,
+ 'class' : 'mce_' + id,
+ scope : s.scope,
+ control_manager : t
+ }, s);
- t.reOpera = new RegExp('(\\u00a0| | )<\/' + elm + '>', 'gi');
- t.rePadd = new RegExp('<p( )([^>]+)><\\\/p>|<p( )([^>]+)\\\/>|<p( )([^>]+)>\\s+<\\\/p>|<p><\\\/p>|<p\\\/>|<p>\\s+<\\\/p>'.replace(/p/g, elm), 'gi');
- t.reNbsp2BR1 = new RegExp('<p( )([^>]+)>[\\s\\u00a0]+<\\\/p>|<p>[\\s\\u00a0]+<\\\/p>'.replace(/p/g, elm), 'gi');
- t.reNbsp2BR2 = new RegExp('<%p()([^>]+)>( | )<\\\/%p>|<%p>( | )<\\\/%p>'.replace(/%p/g, elm), 'gi');
- t.reBR2Nbsp = new RegExp('<p( )([^>]+)>\\s*<br \\\/>\\s*<\\\/p>|<p>\\s*<br \\\/>\\s*<\\\/p>'.replace(/p/g, elm), 'gi');
+ id = t.prefix + id;
- function padd(ed, o) {
- if (isOpera)
- o.content = o.content.replace(t.reOpera, '</' + elm + '>');
- o.content = tinymce._replace(t.rePadd, '<' + elm + '$1$2$3$4$5$6>\u00a0</' + elm + '>', o.content);
+ function useNativeListForAccessibility(ed) {
+ return ed.settings.use_accessible_selects && !tinymce.isGecko
+ }
- if (!isIE && !isOpera && o.set) {
- // Use instead of BR in padded paragraphs
- o.content = o.content.replace(t.reNbsp2BR1, '<' + elm + '$1$2><br /></' + elm + '>');
- o.content = o.content.replace(t.reNbsp2BR2, '<' + elm + '$1$2><br /></' + elm + '>');
- } else
- o.content = tinymce._replace(t.reBR2Nbsp, '<' + elm + '$1$2>\u00a0</' + elm + '>', o.content);
- };
+ if (ed.settings.use_native_selects || useNativeListForAccessibility(ed))
+ c = new tinymce.ui.NativeListBox(id, s);
+ else {
+ cls = cc || t._cls.listbox || tinymce.ui.ListBox;
+ c = new cls(id, s, ed);
+ }
+
+ t.controls[id] = c;
- ed.onBeforeSetContent.add(padd);
- ed.onPostProcess.add(padd);
+ // Fix focus problem in Safari
+ if (tinymce.isWebKit) {
+ c.onPostRender.add(function(c, n) {
+ // Store bookmark on mousedown
+ Event.add(n, 'mousedown', function() {
+ ed.bookmark = ed.selection.getBookmark(1);
+ });
- if (s.forced_root_block) {
- ed.onInit.add(t.forceRoots, t);
- ed.onSetContent.add(t.forceRoots, t);
- ed.onBeforeGetContent.add(t.forceRoots, t);
+ // Restore on focus, since it might be lost
+ Event.add(n, 'focus', function() {
+ ed.selection.moveToBookmark(ed.bookmark);
+ ed.bookmark = null;
+ });
+ });
}
+
+ if (c.hideMenu)
+ ed.onMouseDown.add(c.hideMenu, c);
+
+ return t.add(c);
},
- setup : function() {
- var t = this, ed = t.editor, s = ed.settings, dom = ed.dom, selection = ed.selection;
+ createButton : function(id, s, cc) {
+ var t = this, ed = t.editor, o, c, cls;
- // Force root blocks when typing and when getting output
- if (s.forced_root_block) {
- ed.onBeforeExecCommand.add(t.forceRoots, t);
- ed.onKeyUp.add(t.forceRoots, t);
- ed.onPreProcess.add(t.forceRoots, t);
- }
+ if (t.get(id))
+ return null;
- if (s.force_br_newlines) {
- // Force IE to produce BRs on enter
- if (isIE) {
- ed.onKeyPress.add(function(ed, e) {
- var n;
+ s.title = ed.translate(s.title);
+ s.label = ed.translate(s.label);
+ s.scope = s.scope || ed;
- if (e.keyCode == 13 && selection.getNode().nodeName != 'LI') {
- selection.setContent('<br id="__" /> ', {format : 'raw'});
- n = dom.get('__');
- n.removeAttribute('id');
- selection.select(n);
- selection.collapse();
- return Event.cancel(e);
- }
- });
- }
+ if (!s.onclick && !s.menu_button) {
+ s.onclick = function() {
+ ed.execCommand(s.cmd, s.ui || false, s.value);
+ };
}
- if (s.force_p_newlines) {
- if (!isIE) {
- ed.onKeyPress.add(function(ed, e) {
- if (e.keyCode == 13 && !e.shiftKey && !t.insertPara(e))
- Event.cancel(e);
- });
- } else {
- // Ungly hack to for IE to preserve the formatting when you press
- // enter at the end of a block element with formatted contents
- // This logic overrides the browsers default logic with
- // custom logic that enables us to control the output
- tinymce.addUnload(function() {
- t._previousFormats = 0; // Fix IE leak
- });
+ s = extend({
+ title : s.title,
+ 'class' : 'mce_' + id,
+ unavailable_prefix : ed.getLang('unavailable', ''),
+ scope : s.scope,
+ control_manager : t
+ }, s);
- ed.onKeyPress.add(function(ed, e) {
- t._previousFormats = 0;
+ id = t.prefix + id;
- // Clone the current formats, this will later be applied to the new block contents
- if (e.keyCode == 13 && !e.shiftKey && ed.selection.isCollapsed() && s.keep_styles)
- t._previousFormats = cloneFormats(ed.selection.getStart());
- });
+ if (s.menu_button) {
+ cls = cc || t._cls.menubutton || tinymce.ui.MenuButton;
+ c = new cls(id, s, ed);
+ ed.onMouseDown.add(c.hideMenu, c);
+ } else {
+ cls = t._cls.button || tinymce.ui.Button;
+ c = new cls(id, s, ed);
+ }
+
+ return t.add(c);
+ },
- ed.onKeyUp.add(function(ed, e) {
- // Let IE break the element and the wrap the new caret location in the previous formats
- if (e.keyCode == 13 && !e.shiftKey) {
- var parent = ed.selection.getStart(), fmt = t._previousFormats;
+ createMenuButton : function(id, s, cc) {
+ s = s || {};
+ s.menu_button = 1;
- // Parent is an empty block
- if (!parent.hasChildNodes() && fmt) {
- parent = dom.getParent(parent, dom.isBlock);
+ return this.createButton(id, s, cc);
+ },
- if (parent && parent.nodeName != 'LI') {
- parent.innerHTML = '';
+ createSplitButton : function(id, s, cc) {
+ var t = this, ed = t.editor, cmd, c, cls;
- if (t._previousFormats) {
- parent.appendChild(fmt.wrapper);
- fmt.inner.innerHTML = '\uFEFF';
- } else
- parent.innerHTML = '\uFEFF';
+ if (t.get(id))
+ return null;
- selection.select(parent, 1);
- ed.getDoc().execCommand('Delete', false, null);
- t._previousFormats = 0;
- }
- }
- }
- });
- }
+ s.title = ed.translate(s.title);
+ s.scope = s.scope || ed;
- if (isGecko) {
- ed.onKeyDown.add(function(ed, e) {
- if ((e.keyCode == 8 || e.keyCode == 46) && !e.shiftKey)
- t.backspaceDelete(e, e.keyCode == 8);
- });
- }
+ if (!s.onclick) {
+ s.onclick = function(v) {
+ ed.execCommand(s.cmd, s.ui || false, v || s.value);
+ };
}
- // Workaround for missing shift+enter support, http://bugs.webkit.org/show_bug.cgi?id=16973
- if (tinymce.isWebKit) {
- function insertBr(ed) {
- var rng = selection.getRng(), br, div = dom.create('div', null, ' '), divYPos, vpHeight = dom.getViewPort(ed.getWin()).h;
+ if (!s.onselect) {
+ s.onselect = function(v) {
+ ed.execCommand(s.cmd, s.ui || false, v || s.value);
+ };
+ }
- // Insert BR element
- rng.insertNode(br = dom.create('br'));
+ s = extend({
+ title : s.title,
+ 'class' : 'mce_' + id,
+ scope : s.scope,
+ control_manager : t
+ }, s);
- // Place caret after BR
- rng.setStartAfter(br);
- rng.setEndAfter(br);
- selection.setRng(rng);
+ id = t.prefix + id;
+ cls = cc || t._cls.splitbutton || tinymce.ui.SplitButton;
+ c = t.add(new cls(id, s, ed));
+ ed.onMouseDown.add(c.hideMenu, c);
- // Could not place caret after BR then insert an nbsp entity and move the caret
- if (selection.getSel().focusNode == br.previousSibling) {
- selection.select(dom.insertAfter(dom.doc.createTextNode('\u00a0'), br));
- selection.collapse(TRUE);
- }
+ return c;
+ },
+
+ createColorSplitButton : function(id, s, cc) {
+ var t = this, ed = t.editor, cmd, c, cls, bm;
+
+ if (t.get(id))
+ return null;
+
+ s.title = ed.translate(s.title);
+ s.scope = s.scope || ed;
- // Create a temporary DIV after the BR and get the position as it
- // seems like getPos() returns 0 for text nodes and BR elements.
- dom.insertAfter(div, br);
- divYPos = dom.getPos(div).y;
- dom.remove(div);
+ if (!s.onclick) {
+ s.onclick = function(v) {
+ if (tinymce.isIE)
+ bm = ed.selection.getBookmark(1);
- // Scroll to new position, scrollIntoView can't be used due to bug: http://bugs.webkit.org/show_bug.cgi?id=16117
- if (divYPos > vpHeight) // It is not necessary to scroll if the DIV is inside the view port.
- ed.getWin().scrollTo(0, divYPos);
+ ed.execCommand(s.cmd, s.ui || false, v || s.value);
};
+ }
- ed.onKeyPress.add(function(ed, e) {
- if (e.keyCode == 13 && (e.shiftKey || (s.force_br_newlines && !dom.getParent(selection.getNode(), 'h1,h2,h3,h4,h5,h6,ol,ul')))) {
- insertBr(ed);
- Event.cancel(e);
- }
- });
+ if (!s.onselect) {
+ s.onselect = function(v) {
+ ed.execCommand(s.cmd, s.ui || false, v || s.value);
+ };
}
- // Padd empty inline elements within block elements
- // For example: <p><strong><em></em></strong></p> becomes <p><strong><em> </em></strong></p>
- ed.onPreProcess.add(function(ed, o) {
- each(dom.select('p,h1,h2,h3,h4,h5,h6,div', o.node), function(p) {
- if (isEmpty(p)) {
- each(dom.select('span,em,strong,b,i', o.node), function(n) {
- if (!n.hasChildNodes()) {
- n.appendChild(ed.getDoc().createTextNode('\u00a0'));
- return FALSE; // Break the loop one padding is enough
- }
- });
- }
- });
- });
+ s = extend({
+ title : s.title,
+ 'class' : 'mce_' + id,
+ 'menu_class' : ed.getParam('skin') + 'Skin',
+ scope : s.scope,
+ more_colors_title : ed.getLang('more_colors')
+ }, s);
- // IE specific fixes
- if (isIE) {
- // Replaces IE:s auto generated paragraphs with the specified element name
- if (s.element != 'P') {
- ed.onKeyPress.add(function(ed, e) {
- t.lastElm = selection.getNode().nodeName;
- });
+ id = t.prefix + id;
+ cls = cc || t._cls.colorsplitbutton || tinymce.ui.ColorSplitButton;
+ c = new cls(id, s, ed);
+ ed.onMouseDown.add(c.hideMenu, c);
- ed.onKeyUp.add(function(ed, e) {
- var bl, n = selection.getNode(), b = ed.getBody();
+ // Remove the menu element when the editor is removed
+ ed.onRemove.add(function() {
+ c.destroy();
+ });
- if (b.childNodes.length === 1 && n.nodeName == 'P') {
- n = dom.rename(n, s.element);
- selection.select(n);
- selection.collapse();
- ed.nodeChanged();
- } else if (e.keyCode == 13 && !e.shiftKey && t.lastElm != 'P') {
- bl = dom.getParent(n, 'p');
+ // Fix for bug #1897785, #1898007
+ if (tinymce.isIE) {
+ c.onShowMenu.add(function() {
+ // IE 8 needs focus in order to store away a range with the current collapsed caret location
+ ed.focus();
+ bm = ed.selection.getBookmark(1);
+ });
- if (bl) {
- dom.rename(bl, s.element);
- ed.nodeChanged();
- }
- }
- });
- }
+ c.onHideMenu.add(function() {
+ if (bm) {
+ ed.selection.moveToBookmark(bm);
+ bm = 0;
+ }
+ });
}
- },
- find : function(n, t, s) {
- var ed = this.editor, w = ed.getDoc().createTreeWalker(n, 4, null, FALSE), c = -1;
+ return t.add(c);
+ },
- while (n = w.nextNode()) {
- c++;
+ createToolbar : function(id, s, cc) {
+ var c, t = this, cls;
- // Index by node
- if (t == 0 && n == s)
- return c;
+ id = t.prefix + id;
+ cls = cc || t._cls.toolbar || tinymce.ui.Toolbar;
+ c = new cls(id, s, t.editor);
- // Node by index
- if (t == 1 && c == s)
- return n;
- }
+ if (t.get(id))
+ return null;
- return -1;
+ return t.add(c);
+ },
+
+ createToolbarGroup : function(id, s, cc) {
+ var c, t = this, cls;
+ id = t.prefix + id;
+ cls = cc || this._cls.toolbarGroup || tinymce.ui.ToolbarGroup;
+ c = new cls(id, s, t.editor);
+
+ if (t.get(id))
+ return null;
+
+ return t.add(c);
},
- forceRoots : function(ed, e) {
- var t = this, ed = t.editor, b = ed.getBody(), d = ed.getDoc(), se = ed.selection, s = se.getSel(), r = se.getRng(), si = -2, ei, so, eo, tr, c = -0xFFFFFF;
- var nx, bl, bp, sp, le, nl = b.childNodes, i, n, eid;
+ createSeparator : function(cc) {
+ var cls = cc || this._cls.separator || tinymce.ui.Separator;
- // Fix for bug #1863847
- //if (e && e.keyCode == 13)
- // return TRUE;
+ return new cls();
+ },
- // Wrap non blocks into blocks
- for (i = nl.length - 1; i >= 0; i--) {
- nx = nl[i];
+ setControlType : function(n, c) {
+ return this._cls[n.toLowerCase()] = c;
+ },
+
+ destroy : function() {
+ each(this.controls, function(c) {
+ c.destroy();
+ });
- // Ignore internal elements
- if (nx.nodeType === 1 && nx.getAttribute('_mce_type')) {
- bl = null;
- continue;
- }
+ this.controls = null;
+ }
+ });
+})(tinymce);
- // Is text or non block element
- if (nx.nodeType === 3 || (!t.dom.isBlock(nx) && nx.nodeType !== 8 && !/^(script|mce:script|style|mce:style)$/i.test(nx.nodeName))) {
- if (!bl) {
- // Create new block but ignore whitespace
- if (nx.nodeType != 3 || /[^\s]/g.test(nx.nodeValue)) {
- // Store selection
- if (si == -2 && r) {
- if (!isIE || r.setStart) {
- // If selection is element then mark it
- if (r.startContainer.nodeType == 1 && (n = r.startContainer.childNodes[r.startOffset]) && n.nodeType == 1) {
- // Save the id of the selected element
- eid = n.getAttribute("id");
- n.setAttribute("id", "__mce");
- } else {
- // If element is inside body, might not be the case in contentEdiable mode
- if (ed.dom.getParent(r.startContainer, function(e) {return e === b;})) {
- so = r.startOffset;
- eo = r.endOffset;
- si = t.find(b, 0, r.startContainer);
- ei = t.find(b, 0, r.endContainer);
- }
- }
- } else {
- // Force control range into text range
- if (r.item) {
- tr = d.body.createTextRange();
- tr.moveToElementText(r.item(0));
- r = tr;
- }
+(function(tinymce) {
+ var Dispatcher = tinymce.util.Dispatcher, each = tinymce.each, isIE = tinymce.isIE, isOpera = tinymce.isOpera;
- tr = d.body.createTextRange();
- tr.moveToElementText(b);
- tr.collapse(1);
- bp = tr.move('character', c) * -1;
+ tinymce.create('tinymce.WindowManager', {
+ WindowManager : function(ed) {
+ var t = this;
- tr = r.duplicate();
- tr.collapse(1);
- sp = tr.move('character', c) * -1;
+ t.editor = ed;
+ t.onOpen = new Dispatcher(t);
+ t.onClose = new Dispatcher(t);
+ t.params = {};
+ t.features = {};
+ },
- tr = r.duplicate();
- tr.collapse(0);
- le = (tr.move('character', c) * -1) - sp;
+ open : function(s, p) {
+ var t = this, f = '', x, y, mo = t.editor.settings.dialog_type == 'modal', w, sw, sh, vp = tinymce.DOM.getViewPort(), u;
- si = sp - bp;
- ei = le;
- }
- }
+ // Default some options
+ s = s || {};
+ p = p || {};
+ sw = isOpera ? vp.w : screen.width; // Opera uses windows inside the Opera window
+ sh = isOpera ? vp.h : screen.height;
+ s.name = s.name || 'mc_' + new Date().getTime();
+ s.width = parseInt(s.width || 320);
+ s.height = parseInt(s.height || 240);
+ s.resizable = true;
+ s.left = s.left || parseInt(sw / 2.0) - (s.width / 2.0);
+ s.top = s.top || parseInt(sh / 2.0) - (s.height / 2.0);
+ p.inline = false;
+ p.mce_width = s.width;
+ p.mce_height = s.height;
+ p.mce_auto_focus = s.auto_focus;
- // Uses replaceChild instead of cloneNode since it removes selected attribute from option elements on IE
- // See: http://support.microsoft.com/kb/829907
- bl = ed.dom.create(ed.settings.forced_root_block);
- nx.parentNode.replaceChild(bl, nx);
- bl.appendChild(nx);
- }
- } else {
- if (bl.hasChildNodes())
- bl.insertBefore(nx, bl.firstChild);
- else
- bl.appendChild(nx);
- }
- } else
- bl = null; // Time to create new block
+ if (mo) {
+ if (isIE) {
+ s.center = true;
+ s.help = false;
+ s.dialogWidth = s.width + 'px';
+ s.dialogHeight = s.height + 'px';
+ s.scroll = s.scrollbars || false;
+ }
}
- // Restore selection
- if (si != -2) {
- if (!isIE || r.setStart) {
- bl = b.getElementsByTagName(ed.settings.element)[0];
- r = d.createRange();
+ // Build features string
+ each(s, function(v, k) {
+ if (tinymce.is(v, 'boolean'))
+ v = v ? 'yes' : 'no';
- // Select last location or generated block
- if (si != -1)
- r.setStart(t.find(b, 1, si), so);
+ if (!/^(name|url)$/.test(k)) {
+ if (isIE && mo)
+ f += (f ? ';' : '') + k + ':' + v;
else
- r.setStart(bl, 0);
+ f += (f ? ',' : '') + k + '=' + v;
+ }
+ });
- // Select last location or generated block
- if (ei != -1)
- r.setEnd(t.find(b, 1, ei), eo);
- else
- r.setEnd(bl, 0);
+ t.features = s;
+ t.params = p;
+ t.onOpen.dispatch(t, s, p);
- if (s) {
- s.removeAllRanges();
- s.addRange(r);
- }
- } else {
- try {
- r = s.createRange();
- r.moveToElementText(b);
- r.collapse(1);
- r.moveStart('character', si);
- r.moveEnd('character', ei);
- r.select();
- } catch (ex) {
- // Ignore
- }
- }
- } else if ((!isIE || r.setStart) && (n = ed.dom.get('__mce'))) {
- // Restore the id of the selected element
- if (eid)
- n.setAttribute('id', eid);
- else
- n.removeAttribute('id');
+ u = s.url || s.file;
+ u = tinymce._addVer(u);
- // Move caret before selected element
- r = d.createRange();
- r.setStartBefore(n);
- r.setEndBefore(n);
- se.setRng(r);
+ try {
+ if (isIE && mo) {
+ w = 1;
+ window.showModalDialog(u, window, f);
+ } else
+ w = window.open(u, s.name, f);
+ } catch (ex) {
+ // Ignore
}
- },
- getParentBlock : function(n) {
- var d = this.dom;
+ if (!w)
+ alert(t.editor.getLang('popup_blocked'));
+ },
- return d.getParent(n, d.isBlock);
+ close : function(w) {
+ w.close();
+ this.onClose.dispatch(this);
},
- insertPara : function(e) {
- var t = this, ed = t.editor, dom = ed.dom, d = ed.getDoc(), se = ed.settings, s = ed.selection.getSel(), r = s.getRangeAt(0), b = d.body;
- var rb, ra, dir, sn, so, en, eo, sb, eb, bn, bef, aft, sc, ec, n, vp = dom.getViewPort(ed.getWin()), y, ch, car;
+ createInstance : function(cl, a, b, c, d, e) {
+ var f = tinymce.resolve(cl);
- // If root blocks are forced then use Operas default behavior since it's really good
-// Removed due to bug: #1853816
-// if (se.forced_root_block && isOpera)
-// return TRUE;
+ return new f(a, b, c, d, e);
+ },
- // Setup before range
- rb = d.createRange();
+ confirm : function(t, cb, s, w) {
+ w = w || window;
- // If is before the first block element and in body, then move it into first block element
- rb.setStart(s.anchorNode, s.anchorOffset);
- rb.collapse(TRUE);
+ cb.call(s || this, w.confirm(this._decode(this.editor.getLang(t, t))));
+ },
- // Setup after range
- ra = d.createRange();
+ alert : function(tx, cb, s, w) {
+ var t = this;
- // If is before the first block element and in body, then move it into first block element
- ra.setStart(s.focusNode, s.focusOffset);
- ra.collapse(TRUE);
+ w = w || window;
+ w.alert(t._decode(t.editor.getLang(tx, tx)));
- // Setup start/end points
- dir = rb.compareBoundaryPoints(rb.START_TO_END, ra) < 0;
- sn = dir ? s.anchorNode : s.focusNode;
- so = dir ? s.anchorOffset : s.focusOffset;
- en = dir ? s.focusNode : s.anchorNode;
- eo = dir ? s.focusOffset : s.anchorOffset;
+ if (cb)
+ cb.call(s || t);
+ },
- // If selection is in empty table cell
- if (sn === en && /^(TD|TH)$/.test(sn.nodeName)) {
- if (sn.firstChild.nodeName == 'BR')
- dom.remove(sn.firstChild); // Remove BR
+ resizeBy : function(dw, dh, win) {
+ win.resizeBy(dw, dh);
+ },
- // Create two new block elements
- if (sn.childNodes.length == 0) {
- ed.dom.add(sn, se.element, null, '<br />');
- aft = ed.dom.add(sn, se.element, null, '<br />');
- } else {
- n = sn.innerHTML;
- sn.innerHTML = '';
- ed.dom.add(sn, se.element, null, n);
- aft = ed.dom.add(sn, se.element, null, '<br />');
- }
+ // Internal functions
- // Move caret into the last one
- r = d.createRange();
- r.selectNodeContents(aft);
- r.collapse(1);
- ed.selection.setRng(r);
+ _decode : function(s) {
+ return tinymce.DOM.decode(s).replace(/\\n/g, '\n');
+ }
+ });
+}(tinymce));
+(function(tinymce) {
+ tinymce.Formatter = function(ed) {
+ var formats = {},
+ each = tinymce.each,
+ dom = ed.dom,
+ selection = ed.selection,
+ TreeWalker = tinymce.dom.TreeWalker,
+ rangeUtils = new tinymce.dom.RangeUtils(dom),
+ isValid = ed.schema.isValidChild,
+ isArray = tinymce.isArray,
+ isBlock = dom.isBlock,
+ forcedRootBlock = ed.settings.forced_root_block,
+ nodeIndex = dom.nodeIndex,
+ INVISIBLE_CHAR = '\uFEFF',
+ MCE_ATTR_RE = /^(src|href|style)$/,
+ FALSE = false,
+ TRUE = true,
+ formatChangeData,
+ undef,
+ getContentEditable = dom.getContentEditable;
- return FALSE;
- }
+ function isTextBlock(name) {
+ return !!ed.schema.getTextBlocks()[name.toLowerCase()];
+ }
- // If the caret is in an invalid location in FF we need to move it into the first block
- if (sn == b && en == b && b.firstChild && ed.dom.isBlock(b.firstChild)) {
- sn = en = sn.firstChild;
- so = eo = 0;
- rb = d.createRange();
- rb.setStart(sn, 0);
- ra = d.createRange();
- ra.setStart(en, 0);
- }
+ function getParents(node, selector) {
+ return dom.getParents(node, selector, dom.getRoot());
+ };
- // Never use body as start or end node
- sn = sn.nodeName == "HTML" ? d.body : sn; // Fix for Opera bug: https://bugs.opera.com/show_bug.cgi?id=273224&comments=yes
- sn = sn.nodeName == "BODY" ? sn.firstChild : sn;
- en = en.nodeName == "HTML" ? d.body : en; // Fix for Opera bug: https://bugs.opera.com/show_bug.cgi?id=273224&comments=yes
- en = en.nodeName == "BODY" ? en.firstChild : en;
+ function isCaretNode(node) {
+ return node.nodeType === 1 && node.id === '_mce_caret';
+ };
- // Get start and end blocks
- sb = t.getParentBlock(sn);
- eb = t.getParentBlock(en);
- bn = sb ? sb.nodeName : se.element; // Get block name to create
+ function defaultFormats() {
+ register({
+ alignleft : [
+ {selector : 'figure,p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'left'}, defaultBlock: 'div'},
+ {selector : 'img,table', collapsed : false, styles : {'float' : 'left'}}
+ ],
- // Return inside list use default browser behavior
- if (n = t.dom.getParent(sb, 'li,pre')) {
- if (n.nodeName == 'LI')
- return splitList(ed.selection, t.dom, n);
+ aligncenter : [
+ {selector : 'figure,p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'center'}, defaultBlock: 'div'},
+ {selector : 'img', collapsed : false, styles : {display : 'block', marginLeft : 'auto', marginRight : 'auto'}},
+ {selector : 'table', collapsed : false, styles : {marginLeft : 'auto', marginRight : 'auto'}}
+ ],
- return TRUE;
- }
+ alignright : [
+ {selector : 'figure,p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'right'}, defaultBlock: 'div'},
+ {selector : 'img,table', collapsed : false, styles : {'float' : 'right'}}
+ ],
- // If caption or absolute layers then always generate new blocks within
- if (sb && (sb.nodeName == 'CAPTION' || /absolute|relative|fixed/gi.test(dom.getStyle(sb, 'position', 1)))) {
- bn = se.element;
- sb = null;
- }
+ alignfull : [
+ {selector : 'figure,p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'justify'}, defaultBlock: 'div'}
+ ],
- // If caption or absolute layers then always generate new blocks within
- if (eb && (eb.nodeName == 'CAPTION' || /absolute|relative|fixed/gi.test(dom.getStyle(sb, 'position', 1)))) {
- bn = se.element;
- eb = null;
- }
+ bold : [
+ {inline : 'strong', remove : 'all'},
+ {inline : 'span', styles : {fontWeight : 'bold'}},
+ {inline : 'b', remove : 'all'}
+ ],
- // Use P instead
- if (/(TD|TABLE|TH|CAPTION)/.test(bn) || (sb && bn == "DIV" && /left|right/gi.test(dom.getStyle(sb, 'float', 1)))) {
- bn = se.element;
- sb = eb = null;
- }
+ italic : [
+ {inline : 'em', remove : 'all'},
+ {inline : 'span', styles : {fontStyle : 'italic'}},
+ {inline : 'i', remove : 'all'}
+ ],
- // Setup new before and after blocks
- bef = (sb && sb.nodeName == bn) ? sb.cloneNode(0) : ed.dom.create(bn);
- aft = (eb && eb.nodeName == bn) ? eb.cloneNode(0) : ed.dom.create(bn);
+ underline : [
+ {inline : 'span', styles : {textDecoration : 'underline'}, exact : true},
+ {inline : 'u', remove : 'all'}
+ ],
- // Remove id from after clone
- aft.removeAttribute('id');
+ strikethrough : [
+ {inline : 'span', styles : {textDecoration : 'line-through'}, exact : true},
+ {inline : 'strike', remove : 'all'}
+ ],
- // Is header and cursor is at the end, then force paragraph under
- if (/^(H[1-6])$/.test(bn) && isAtEnd(r, sb))
- aft = ed.dom.create(se.element);
+ forecolor : {inline : 'span', styles : {color : '%value'}, wrap_links : false},
+ hilitecolor : {inline : 'span', styles : {backgroundColor : '%value'}, wrap_links : false},
+ fontname : {inline : 'span', styles : {fontFamily : '%value'}},
+ fontsize : {inline : 'span', styles : {fontSize : '%value'}},
+ fontsize_class : {inline : 'span', attributes : {'class' : '%value'}},
+ blockquote : {block : 'blockquote', wrapper : 1, remove : 'all'},
+ subscript : {inline : 'sub'},
+ superscript : {inline : 'sup'},
- // Find start chop node
- n = sc = sn;
- do {
- if (n == b || n.nodeType == 9 || t.dom.isBlock(n) || /(TD|TABLE|TH|CAPTION)/.test(n.nodeName))
- break;
+ link : {inline : 'a', selector : 'a', remove : 'all', split : true, deep : true,
+ onmatch : function(node) {
+ return true;
+ },
- sc = n;
- } while ((n = n.previousSibling ? n.previousSibling : n.parentNode));
+ onformat : function(elm, fmt, vars) {
+ each(vars, function(value, key) {
+ dom.setAttrib(elm, key, value);
+ });
+ }
+ },
- // Find end chop node
- n = ec = en;
- do {
- if (n == b || n.nodeType == 9 || t.dom.isBlock(n) || /(TD|TABLE|TH|CAPTION)/.test(n.nodeName))
- break;
+ removeformat : [
+ {selector : 'b,strong,em,i,font,u,strike', remove : 'all', split : true, expand : false, block_expand : true, deep : true},
+ {selector : 'span', attributes : ['style', 'class'], remove : 'empty', split : true, expand : false, deep : true},
+ {selector : '*', attributes : ['style', 'class'], split : false, expand : false, deep : true}
+ ]
+ });
- ec = n;
- } while ((n = n.nextSibling ? n.nextSibling : n.parentNode));
+ // Register default block formats
+ each('p h1 h2 h3 h4 h5 h6 div address pre div code dt dd samp'.split(/\s/), function(name) {
+ register(name, {block : name, remove : 'all'});
+ });
- // Place first chop part into before block element
- if (sc.nodeName == bn)
- rb.setStart(sc, 0);
- else
- rb.setStartBefore(sc);
+ // Register user defined formats
+ register(ed.settings.formats);
+ };
- rb.setEnd(sn, so);
- bef.appendChild(rb.cloneContents() || d.createTextNode('')); // Empty text node needed for Safari
+ function addKeyboardShortcuts() {
+ // Add some inline shortcuts
+ ed.addShortcut('ctrl+b', 'bold_desc', 'Bold');
+ ed.addShortcut('ctrl+i', 'italic_desc', 'Italic');
+ ed.addShortcut('ctrl+u', 'underline_desc', 'Underline');
- // Place secnd chop part within new block element
- try {
- ra.setEndAfter(ec);
- } catch(ex) {
- //console.debug(s.focusNode, s.focusOffset);
+ // BlockFormat shortcuts keys
+ for (var i = 1; i <= 6; i++) {
+ ed.addShortcut('ctrl+' + i, '', ['FormatBlock', false, 'h' + i]);
}
- ra.setStart(en, eo);
- aft.appendChild(ra.cloneContents() || d.createTextNode('')); // Empty text node needed for Safari
-
- // Create range around everything
- r = d.createRange();
- if (!sc.previousSibling && sc.parentNode.nodeName == bn) {
- r.setStartBefore(sc.parentNode);
- } else {
- if (rb.startContainer.nodeName == bn && rb.startOffset == 0)
- r.setStartBefore(rb.startContainer);
- else
- r.setStart(rb.startContainer, rb.startOffset);
- }
+ ed.addShortcut('ctrl+7', '', ['FormatBlock', false, 'p']);
+ ed.addShortcut('ctrl+8', '', ['FormatBlock', false, 'div']);
+ ed.addShortcut('ctrl+9', '', ['FormatBlock', false, 'address']);
+ };
- if (!ec.nextSibling && ec.parentNode.nodeName == bn)
- r.setEndAfter(ec.parentNode);
- else
- r.setEnd(ra.endContainer, ra.endOffset);
+ // Public functions
- // Delete and replace it with new block elements
- r.deleteContents();
+ function get(name) {
+ return name ? formats[name] : formats;
+ };
- if (isOpera)
- ed.getWin().scrollTo(0, vp.y);
+ function register(name, format) {
+ if (name) {
+ if (typeof(name) !== 'string') {
+ each(name, function(format, name) {
+ register(name, format);
+ });
+ } else {
+ // Force format into array and add it to internal collection
+ format = format.length ? format : [format];
- // Never wrap blocks in blocks
- if (bef.firstChild && bef.firstChild.nodeName == bn)
- bef.innerHTML = bef.firstChild.innerHTML;
+ each(format, function(format) {
+ // Set deep to false by default on selector formats this to avoid removing
+ // alignment on images inside paragraphs when alignment is changed on paragraphs
+ if (format.deep === undef)
+ format.deep = !format.selector;
- if (aft.firstChild && aft.firstChild.nodeName == bn)
- aft.innerHTML = aft.firstChild.innerHTML;
+ // Default to true
+ if (format.split === undef)
+ format.split = !format.selector || format.inline;
- // Padd empty blocks
- if (isEmpty(bef))
- bef.innerHTML = '<br />';
+ // Default to true
+ if (format.remove === undef && format.selector && !format.inline)
+ format.remove = 'none';
- function appendStyles(e, en) {
- var nl = [], nn, n, i;
+ // Mark format as a mixed format inline + block level
+ if (format.selector && format.inline) {
+ format.mixed = true;
+ format.block_expand = true;
+ }
- e.innerHTML = '';
+ // Split classes if needed
+ if (typeof(format.classes) === 'string')
+ format.classes = format.classes.split(/\s+/);
+ });
- // Make clones of style elements
- if (se.keep_styles) {
- n = en;
- do {
- // We only want style specific elements
- if (/^(SPAN|STRONG|B|EM|I|FONT|STRIKE|U)$/.test(n.nodeName)) {
- nn = n.cloneNode(FALSE);
- dom.setAttrib(nn, 'id', ''); // Remove ID since it needs to be unique
- nl.push(nn);
- }
- } while (n = n.parentNode);
+ formats[name] = format;
}
+ }
+ };
- // Append style elements to aft
- if (nl.length > 0) {
- for (i = nl.length - 1, nn = e; i >= 0; i--)
- nn = nn.appendChild(nl[i]);
+ var getTextDecoration = function(node) {
+ var decoration;
- // Padd most inner style element
- nl[0].innerHTML = isOpera ? ' ' : '<br />'; // Extra space for Opera so that the caret can move there
- return nl[0]; // Move caret to most inner element
- } else
- e.innerHTML = isOpera ? ' ' : '<br />'; // Extra space for Opera so that the caret can move there
- };
+ ed.dom.getParent(node, function(n) {
+ decoration = ed.dom.getStyle(n, 'text-decoration');
+ return decoration && decoration !== 'none';
+ });
- // Fill empty afterblook with current style
- if (isEmpty(aft))
- car = appendStyles(aft, en);
+ return decoration;
+ };
- // Opera needs this one backwards for older versions
- if (isOpera && parseFloat(opera.version()) < 9.5) {
- r.insertNode(bef);
- r.insertNode(aft);
- } else {
- r.insertNode(aft);
- r.insertNode(bef);
+ var processUnderlineAndColor = function(node) {
+ var textDecoration;
+ if (node.nodeType === 1 && node.parentNode && node.parentNode.nodeType === 1) {
+ textDecoration = getTextDecoration(node.parentNode);
+ if (ed.dom.getStyle(node, 'color') && textDecoration) {
+ ed.dom.setStyle(node, 'text-decoration', textDecoration);
+ } else if (ed.dom.getStyle(node, 'textdecoration') === textDecoration) {
+ ed.dom.setStyle(node, 'text-decoration', null);
+ }
}
+ };
- // Normalize
- aft.normalize();
- bef.normalize();
-
- function first(n) {
- return d.createTreeWalker(n, NodeFilter.SHOW_TEXT, null, FALSE).nextNode() || n;
- };
-
- // Move cursor and scroll into view
- r = d.createRange();
- r.selectNodeContents(isGecko ? first(car || aft) : car || aft);
- r.collapse(1);
- s.removeAllRanges();
- s.addRange(r);
+ function apply(name, vars, node) {
+ var formatList = get(name), format = formatList[0], bookmark, rng, i, isCollapsed = selection.isCollapsed();
- // scrollIntoView seems to scroll the parent window in most browsers now including FF 3.0b4 so it's time to stop using it and do it our selfs
- y = ed.dom.getPos(aft).y;
- ch = aft.clientHeight;
+ function setElementFormat(elm, fmt) {
+ fmt = fmt || format;
- // Is element within viewport
- if (y < vp.y || y + ch > vp.y + vp.h) {
- ed.getWin().scrollTo(0, y < vp.y ? y : y - vp.h + 25); // Needs to be hardcoded to roughly one line of text if a huge text block is broken into two blocks
- //console.debug('SCROLL!', 'vp.y: ' + vp.y, 'y' + y, 'vp.h' + vp.h, 'clientHeight' + aft.clientHeight, 'yyy: ' + (y < vp.y ? y : y - vp.h + aft.clientHeight));
- }
+ if (elm) {
+ if (fmt.onformat) {
+ fmt.onformat(elm, fmt, vars, node);
+ }
- return FALSE;
- },
+ each(fmt.styles, function(value, name) {
+ dom.setStyle(elm, name, replaceVars(value, vars));
+ });
- backspaceDelete : function(e, bs) {
- var t = this, ed = t.editor, b = ed.getBody(), dom = ed.dom, n, se = ed.selection, r = se.getRng(), sc = r.startContainer, n, w, tn, walker;
+ each(fmt.attributes, function(value, name) {
+ dom.setAttrib(elm, name, replaceVars(value, vars));
+ });
- // Delete when caret is behind a element doesn't work correctly on Gecko see #3011651
- if (!bs && r.collapsed && sc.nodeType == 1 && r.startOffset == sc.childNodes.length) {
- walker = new tinymce.dom.TreeWalker(sc.lastChild, sc);
+ each(fmt.classes, function(value) {
+ value = replaceVars(value, vars);
- // Walk the dom backwards until we find a text node
- for (n = sc.lastChild; n; n = walker.prev()) {
- if (n.nodeType == 3) {
- r.setStart(n, n.nodeValue.length);
- r.collapse(true);
- se.setRng(r);
- return;
- }
+ if (!dom.hasClass(elm, value))
+ dom.addClass(elm, value);
+ });
}
- }
+ };
+ function adjustSelectionToVisibleSelection() {
+ function findSelectionEnd(start, end) {
+ var walker = new TreeWalker(end);
+ for (node = walker.current(); node; node = walker.prev()) {
+ if (node.childNodes.length > 1 || node == start || node.tagName == 'BR') {
+ return node;
+ }
+ }
+ };
- // The caret sometimes gets stuck in Gecko if you delete empty paragraphs
- // This workaround removes the element by hand and moves the caret to the previous element
- if (sc && ed.dom.isBlock(sc) && !/^(TD|TH)$/.test(sc.nodeName) && bs) {
- if (sc.childNodes.length == 0 || (sc.childNodes.length == 1 && sc.firstChild.nodeName == 'BR')) {
- // Find previous block element
- n = sc;
- while ((n = n.previousSibling) && !ed.dom.isBlock(n)) ;
+ // Adjust selection so that a end container with a end offset of zero is not included in the selection
+ // as this isn't visible to the user.
+ var rng = ed.selection.getRng();
+ var start = rng.startContainer;
+ var end = rng.endContainer;
- if (n) {
- if (sc != b.firstChild) {
- // Find last text node
- w = ed.dom.doc.createTreeWalker(n, NodeFilter.SHOW_TEXT, null, FALSE);
- while (tn = w.nextNode())
- n = tn;
+ if (start != end && rng.endOffset === 0) {
+ var newEnd = findSelectionEnd(start, end);
+ var endOffset = newEnd.nodeType == 3 ? newEnd.length : newEnd.childNodes.length;
- // Place caret at the end of last text node
- r = ed.getDoc().createRange();
- r.setStart(n, n.nodeValue ? n.nodeValue.length : 0);
- r.setEnd(n, n.nodeValue ? n.nodeValue.length : 0);
- se.setRng(r);
+ rng.setEnd(newEnd, endOffset);
+ }
- // Remove the target container
- ed.dom.remove(sc);
+ return rng;
+ }
+
+ function applyStyleToList(node, bookmark, wrapElm, newWrappers, process){
+ var nodes = [], listIndex = -1, list, startIndex = -1, endIndex = -1, currentWrapElm;
+
+ // find the index of the first child list.
+ each(node.childNodes, function(n, index) {
+ if (n.nodeName === "UL" || n.nodeName === "OL") {
+ listIndex = index;
+ list = n;
+ return false;
+ }
+ });
+
+ // get the index of the bookmarks
+ each(node.childNodes, function(n, index) {
+ if (n.nodeName === "SPAN" && dom.getAttrib(n, "data-mce-type") == "bookmark") {
+ if (n.id == bookmark.id + "_start") {
+ startIndex = index;
+ } else if (n.id == bookmark.id + "_end") {
+ endIndex = index;
}
-
- return Event.cancel(e);
}
- }
- }
- }
- });
-})(tinymce);
+ });
+
+ // if the selection spans across an embedded list, or there isn't an embedded list - handle processing normally
+ if (listIndex <= 0 || (startIndex < listIndex && endIndex > listIndex)) {
+ each(tinymce.grep(node.childNodes), process);
+ return 0;
+ } else {
+ currentWrapElm = dom.clone(wrapElm, FALSE);
-(function(tinymce) {
- // Shorten names
- var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each, extend = tinymce.extend;
+ // create a list of the nodes on the same side of the list as the selection
+ each(tinymce.grep(node.childNodes), function(n, index) {
+ if ((startIndex < listIndex && index < listIndex) || (startIndex > listIndex && index > listIndex)) {
+ nodes.push(n);
+ n.parentNode.removeChild(n);
+ }
+ });
- tinymce.create('tinymce.ControlManager', {
- ControlManager : function(ed, s) {
- var t = this, i;
+ // insert the wrapping element either before or after the list.
+ if (startIndex < listIndex) {
+ node.insertBefore(currentWrapElm, list);
+ } else if (startIndex > listIndex) {
+ node.insertBefore(currentWrapElm, list.nextSibling);
+ }
+
+ // add the new nodes to the list.
+ newWrappers.push(currentWrapElm);
- s = s || {};
- t.editor = ed;
- t.controls = {};
- t.onAdd = new tinymce.util.Dispatcher(t);
- t.onPostRender = new tinymce.util.Dispatcher(t);
- t.prefix = s.prefix || ed.id + '_';
- t._cls = {};
+ each(nodes, function(node) {
+ currentWrapElm.appendChild(node);
+ });
- t.onPostRender.add(function() {
- each(t.controls, function(c) {
- c.postRender();
- });
- });
- },
+ return currentWrapElm;
+ }
+ };
- get : function(id) {
- return this.controls[this.prefix + id] || this.controls[id];
- },
+ function applyRngStyle(rng, bookmark, node_specific) {
+ var newWrappers = [], wrapName, wrapElm, contentEditable = true;
- setActive : function(id, s) {
- var c = null;
+ // Setup wrapper element
+ wrapName = format.inline || format.block;
+ wrapElm = dom.create(wrapName);
+ setElementFormat(wrapElm);
- if (c = this.get(id))
- c.setActive(s);
+ rangeUtils.walk(rng, function(nodes) {
+ var currentWrapElm;
- return c;
- },
+ function process(node) {
+ var nodeName, parentName, found, hasContentEditableState, lastContentEditable;
- setDisabled : function(id, s) {
- var c = null;
+ lastContentEditable = contentEditable;
+ nodeName = node.nodeName.toLowerCase();
+ parentName = node.parentNode.nodeName.toLowerCase();
- if (c = this.get(id))
- c.setDisabled(s);
+ // Node has a contentEditable value
+ if (node.nodeType === 1 && getContentEditable(node)) {
+ lastContentEditable = contentEditable;
+ contentEditable = getContentEditable(node) === "true";
+ hasContentEditableState = true; // We don't want to wrap the container only it's children
+ }
- return c;
- },
+ // Stop wrapping on br elements
+ if (isEq(nodeName, 'br')) {
+ currentWrapElm = 0;
- add : function(c) {
- var t = this;
+ // Remove any br elements when we wrap things
+ if (format.block)
+ dom.remove(node);
- if (c) {
- t.controls[c.id] = c;
- t.onAdd.dispatch(c, t);
- }
+ return;
+ }
- return c;
- },
+ // If node is wrapper type
+ if (format.wrapper && matchNode(node, name, vars)) {
+ currentWrapElm = 0;
+ return;
+ }
- createControl : function(n) {
- var c, t = this, ed = t.editor;
+ // Can we rename the block
+ if (contentEditable && !hasContentEditableState && format.block && !format.wrapper && isTextBlock(nodeName)) {
+ node = dom.rename(node, wrapName);
+ setElementFormat(node);
+ newWrappers.push(node);
+ currentWrapElm = 0;
+ return;
+ }
- each(ed.plugins, function(p) {
- if (p.createControl) {
- c = p.createControl(n, t);
+ // Handle selector patterns
+ if (format.selector) {
+ // Look for matching formats
+ each(formatList, function(format) {
+ // Check collapsed state if it exists
+ if ('collapsed' in format && format.collapsed !== isCollapsed) {
+ return;
+ }
- if (c)
- return false;
- }
- });
+ if (dom.is(node, format.selector) && !isCaretNode(node)) {
+ setElementFormat(node, format);
+ found = true;
+ }
+ });
- switch (n) {
- case "|":
- case "separator":
- return t.createSeparator();
- }
+ // Continue processing if a selector match wasn't found and a inline element is defined
+ if (!format.inline || found) {
+ currentWrapElm = 0;
+ return;
+ }
+ }
- if (!c && ed.buttons && (c = ed.buttons[n]))
- return t.createButton(n, c);
+ // Is it valid to wrap this item
+ if (contentEditable && !hasContentEditableState && isValid(wrapName, nodeName) && isValid(parentName, wrapName) &&
+ !(!node_specific && node.nodeType === 3 && node.nodeValue.length === 1 && node.nodeValue.charCodeAt(0) === 65279) && !isCaretNode(node)) {
+ // Start wrapping
+ if (!currentWrapElm) {
+ // Wrap the node
+ currentWrapElm = dom.clone(wrapElm, FALSE);
+ node.parentNode.insertBefore(currentWrapElm, node);
+ newWrappers.push(currentWrapElm);
+ }
- return t.add(c);
- },
+ currentWrapElm.appendChild(node);
+ } else if (nodeName == 'li' && bookmark) {
+ // Start wrapping - if we are in a list node and have a bookmark, then we will always begin by wrapping in a new element.
+ currentWrapElm = applyStyleToList(node, bookmark, wrapElm, newWrappers, process);
+ } else {
+ // Start a new wrapper for possible children
+ currentWrapElm = 0;
+
+ each(tinymce.grep(node.childNodes), process);
- createDropMenu : function(id, s, cc) {
- var t = this, ed = t.editor, c, bm, v, cls;
+ if (hasContentEditableState) {
+ contentEditable = lastContentEditable; // Restore last contentEditable state from stack
+ }
- s = extend({
- 'class' : 'mceDropDown',
- constrain : ed.settings.constrain_menus
- }, s);
+ // End the last wrapper
+ currentWrapElm = 0;
+ }
+ };
- s['class'] = s['class'] + ' ' + ed.getParam('skin') + 'Skin';
- if (v = ed.getParam('skin_variant'))
- s['class'] += ' ' + ed.getParam('skin') + 'Skin' + v.substring(0, 1).toUpperCase() + v.substring(1);
+ // Process siblings from range
+ each(nodes, process);
+ });
- id = t.prefix + id;
- cls = cc || t._cls.dropmenu || tinymce.ui.DropMenu;
- c = t.controls[id] = new cls(id, s);
- c.onAddItem.add(function(c, o) {
- var s = o.settings;
+ // Wrap links inside as well, for example color inside a link when the wrapper is around the link
+ if (format.wrap_links === false) {
+ each(newWrappers, function(node) {
+ function process(node) {
+ var i, currentWrapElm, children;
- s.title = ed.getLang(s.title, s.title);
+ if (node.nodeName === 'A') {
+ currentWrapElm = dom.clone(wrapElm, FALSE);
+ newWrappers.push(currentWrapElm);
- if (!s.onclick) {
- s.onclick = function(v) {
- if (s.cmd)
- ed.execCommand(s.cmd, s.ui || false, s.value);
- };
- }
- });
+ children = tinymce.grep(node.childNodes);
+ for (i = 0; i < children.length; i++)
+ currentWrapElm.appendChild(children[i]);
- ed.onRemove.add(function() {
- c.destroy();
- });
+ node.appendChild(currentWrapElm);
+ }
- // Fix for bug #1897785, #1898007
- if (tinymce.isIE) {
- c.onShowMenu.add(function() {
- // IE 8 needs focus in order to store away a range with the current collapsed caret location
- ed.focus();
+ each(tinymce.grep(node.childNodes), process);
+ };
- bm = ed.selection.getBookmark(1);
- });
+ process(node);
+ });
+ }
- c.onHideMenu.add(function() {
- if (bm) {
- ed.selection.moveToBookmark(bm);
- bm = 0;
- }
- });
- }
+ // Cleanup
+
+ each(newWrappers, function(node) {
+ var childCount;
- return t.add(c);
- },
+ function getChildCount(node) {
+ var count = 0;
- createListBox : function(id, s, cc) {
- var t = this, ed = t.editor, cmd, c, cls;
+ each(node.childNodes, function(node) {
+ if (!isWhiteSpaceNode(node) && !isBookmarkNode(node))
+ count++;
+ });
- if (t.get(id))
- return null;
+ return count;
+ };
- s.title = ed.translate(s.title);
- s.scope = s.scope || ed;
+ function mergeStyles(node) {
+ var child, clone;
- if (!s.onselect) {
- s.onselect = function(v) {
- ed.execCommand(s.cmd, s.ui || false, v || s.value);
- };
- }
+ each(node.childNodes, function(node) {
+ if (node.nodeType == 1 && !isBookmarkNode(node) && !isCaretNode(node)) {
+ child = node;
+ return FALSE; // break loop
+ }
+ });
- s = extend({
- title : s.title,
- 'class' : 'mce_' + id,
- scope : s.scope,
- control_manager : t
- }, s);
+ // If child was found and of the same type as the current node
+ if (child && matchName(child, format)) {
+ clone = dom.clone(child, FALSE);
+ setElementFormat(clone);
- id = t.prefix + id;
+ dom.replace(clone, node, TRUE);
+ dom.remove(child, 1);
+ }
- if (ed.settings.use_native_selects)
- c = new tinymce.ui.NativeListBox(id, s);
- else {
- cls = cc || t._cls.listbox || tinymce.ui.ListBox;
- c = new cls(id, s);
- }
+ return clone || node;
+ };
- t.controls[id] = c;
+ childCount = getChildCount(node);
- // Fix focus problem in Safari
- if (tinymce.isWebKit) {
- c.onPostRender.add(function(c, n) {
- // Store bookmark on mousedown
- Event.add(n, 'mousedown', function() {
- ed.bookmark = ed.selection.getBookmark(1);
- });
+ // Remove empty nodes but only if there is multiple wrappers and they are not block
+ // elements so never remove single <h1></h1> since that would remove the currrent empty block element where the caret is at
+ if ((newWrappers.length > 1 || !isBlock(node)) && childCount === 0) {
+ dom.remove(node, 1);
+ return;
+ }
- // Restore on focus, since it might be lost
- Event.add(n, 'focus', function() {
- ed.selection.moveToBookmark(ed.bookmark);
- ed.bookmark = null;
- });
- });
- }
+ if (format.inline || format.wrapper) {
+ // Merges the current node with it's children of similar type to reduce the number of elements
+ if (!format.exact && childCount === 1)
+ node = mergeStyles(node);
- if (c.hideMenu)
- ed.onMouseDown.add(c.hideMenu, c);
+ // Remove/merge children
+ each(formatList, function(format) {
+ // Merge all children of similar type will move styles from child to parent
+ // this: <span style="color:red"><b><span style="color:red; font-size:10px">text</span></b></span>
+ // will become: <span style="color:red"><b><span style="font-size:10px">text</span></b></span>
+ each(dom.select(format.inline, node), function(child) {
+ var parent;
- return t.add(c);
- },
+ // When wrap_links is set to false we don't want
+ // to remove the format on children within links
+ if (format.wrap_links === false) {
+ parent = child.parentNode;
- createButton : function(id, s, cc) {
- var t = this, ed = t.editor, o, c, cls;
+ do {
+ if (parent.nodeName === 'A')
+ return;
+ } while (parent = parent.parentNode);
+ }
- if (t.get(id))
- return null;
+ removeFormat(format, vars, child, format.exact ? child : null);
+ });
+ });
- s.title = ed.translate(s.title);
- s.label = ed.translate(s.label);
- s.scope = s.scope || ed;
+ // Remove child if direct parent is of same type
+ if (matchNode(node.parentNode, name, vars)) {
+ dom.remove(node, 1);
+ node = 0;
+ return TRUE;
+ }
- if (!s.onclick && !s.menu_button) {
- s.onclick = function() {
- ed.execCommand(s.cmd, s.ui || false, s.value);
- };
- }
+ // Look for parent with similar style format
+ if (format.merge_with_parents) {
+ dom.getParent(node.parentNode, function(parent) {
+ if (matchNode(parent, name, vars)) {
+ dom.remove(node, 1);
+ node = 0;
+ return TRUE;
+ }
+ });
+ }
- s = extend({
- title : s.title,
- 'class' : 'mce_' + id,
- unavailable_prefix : ed.getLang('unavailable', ''),
- scope : s.scope,
- control_manager : t
- }, s);
+ // Merge next and previous siblings if they are similar <b>text</b><b>text</b> becomes <b>texttext</b>
+ if (node && format.merge_siblings !== false) {
+ node = mergeSiblings(getNonWhiteSpaceSibling(node), node);
+ node = mergeSiblings(node, getNonWhiteSpaceSibling(node, TRUE));
+ }
+ }
+ });
+ };
- id = t.prefix + id;
+ if (format) {
+ if (node) {
+ if (node.nodeType) {
+ rng = dom.createRng();
+ rng.setStartBefore(node);
+ rng.setEndAfter(node);
+ applyRngStyle(expandRng(rng, formatList), null, true);
+ } else {
+ applyRngStyle(node, null, true);
+ }
+ } else {
+ if (!isCollapsed || !format.inline || dom.select('td.mceSelected,th.mceSelected').length) {
+ // Obtain selection node before selection is unselected by applyRngStyle()
+ var curSelNode = ed.selection.getNode();
+
+ // If the formats have a default block and we can't find a parent block then start wrapping it with a DIV this is for forced_root_blocks: false
+ // It's kind of a hack but people should be using the default block type P since all desktop editors work that way
+ if (!forcedRootBlock && formatList[0].defaultBlock && !dom.getParent(curSelNode, dom.isBlock)) {
+ apply(formatList[0].defaultBlock);
+ }
- if (s.menu_button) {
- cls = cc || t._cls.menubutton || tinymce.ui.MenuButton;
- c = new cls(id, s);
- ed.onMouseDown.add(c.hideMenu, c);
- } else {
- cls = t._cls.button || tinymce.ui.Button;
- c = new cls(id, s);
- }
+ // Apply formatting to selection
+ ed.selection.setRng(adjustSelectionToVisibleSelection());
+ bookmark = selection.getBookmark();
+ applyRngStyle(expandRng(selection.getRng(TRUE), formatList), bookmark);
- return t.add(c);
- },
+ // Colored nodes should be underlined so that the color of the underline matches the text color.
+ if (format.styles && (format.styles.color || format.styles.textDecoration)) {
+ tinymce.walk(curSelNode, processUnderlineAndColor, 'childNodes');
+ processUnderlineAndColor(curSelNode);
+ }
- createMenuButton : function(id, s, cc) {
- s = s || {};
- s.menu_button = 1;
+ selection.moveToBookmark(bookmark);
+ moveStart(selection.getRng(TRUE));
+ ed.nodeChanged();
+ } else
+ performCaretAction('apply', name, vars);
+ }
+ }
+ };
- return this.createButton(id, s, cc);
- },
+ function remove(name, vars, node) {
+ var formatList = get(name), format = formatList[0], bookmark, i, rng, contentEditable = true;
- createSplitButton : function(id, s, cc) {
- var t = this, ed = t.editor, cmd, c, cls;
+ // Merges the styles for each node
+ function process(node) {
+ var children, i, l, localContentEditable, lastContentEditable, hasContentEditableState;
- if (t.get(id))
- return null;
+ // Node has a contentEditable value
+ if (node.nodeType === 1 && getContentEditable(node)) {
+ lastContentEditable = contentEditable;
+ contentEditable = getContentEditable(node) === "true";
+ hasContentEditableState = true; // We don't want to wrap the container only it's children
+ }
- s.title = ed.translate(s.title);
- s.scope = s.scope || ed;
+ // Grab the children first since the nodelist might be changed
+ children = tinymce.grep(node.childNodes);
- if (!s.onclick) {
- s.onclick = function(v) {
- ed.execCommand(s.cmd, s.ui || false, v || s.value);
- };
- }
+ // Process current node
+ if (contentEditable && !hasContentEditableState) {
+ for (i = 0, l = formatList.length; i < l; i++) {
+ if (removeFormat(formatList[i], vars, node, node))
+ break;
+ }
+ }
- if (!s.onselect) {
- s.onselect = function(v) {
- ed.execCommand(s.cmd, s.ui || false, v || s.value);
- };
- }
+ // Process the children
+ if (format.deep) {
+ if (children.length) {
+ for (i = 0, l = children.length; i < l; i++)
+ process(children[i]);
- s = extend({
- title : s.title,
- 'class' : 'mce_' + id,
- scope : s.scope,
- control_manager : t
- }, s);
+ if (hasContentEditableState) {
+ contentEditable = lastContentEditable; // Restore last contentEditable state from stack
+ }
+ }
+ }
+ };
- id = t.prefix + id;
- cls = cc || t._cls.splitbutton || tinymce.ui.SplitButton;
- c = t.add(new cls(id, s));
- ed.onMouseDown.add(c.hideMenu, c);
+ function findFormatRoot(container) {
+ var formatRoot;
- return c;
- },
+ // Find format root
+ each(getParents(container.parentNode).reverse(), function(parent) {
+ var format;
- createColorSplitButton : function(id, s, cc) {
- var t = this, ed = t.editor, cmd, c, cls, bm;
+ // Find format root element
+ if (!formatRoot && parent.id != '_start' && parent.id != '_end') {
+ // Is the node matching the format we are looking for
+ format = matchNode(parent, name, vars);
+ if (format && format.split !== false)
+ formatRoot = parent;
+ }
+ });
- if (t.get(id))
- return null;
+ return formatRoot;
+ };
- s.title = ed.translate(s.title);
- s.scope = s.scope || ed;
+ function wrapAndSplit(format_root, container, target, split) {
+ var parent, clone, lastClone, firstClone, i, formatRootParent;
- if (!s.onclick) {
- s.onclick = function(v) {
- if (tinymce.isIE)
- bm = ed.selection.getBookmark(1);
+ // Format root found then clone formats and split it
+ if (format_root) {
+ formatRootParent = format_root.parentNode;
- ed.execCommand(s.cmd, s.ui || false, v || s.value);
- };
- }
+ for (parent = container.parentNode; parent && parent != formatRootParent; parent = parent.parentNode) {
+ clone = dom.clone(parent, FALSE);
- if (!s.onselect) {
- s.onselect = function(v) {
- ed.execCommand(s.cmd, s.ui || false, v || s.value);
- };
- }
+ for (i = 0; i < formatList.length; i++) {
+ if (removeFormat(formatList[i], vars, clone, clone)) {
+ clone = 0;
+ break;
+ }
+ }
- s = extend({
- title : s.title,
- 'class' : 'mce_' + id,
- 'menu_class' : ed.getParam('skin') + 'Skin',
- scope : s.scope,
- more_colors_title : ed.getLang('more_colors')
- }, s);
+ // Build wrapper node
+ if (clone) {
+ if (lastClone)
+ clone.appendChild(lastClone);
- id = t.prefix + id;
- cls = cc || t._cls.colorsplitbutton || tinymce.ui.ColorSplitButton;
- c = new cls(id, s);
- ed.onMouseDown.add(c.hideMenu, c);
+ if (!firstClone)
+ firstClone = clone;
- // Remove the menu element when the editor is removed
- ed.onRemove.add(function() {
- c.destroy();
- });
+ lastClone = clone;
+ }
+ }
- // Fix for bug #1897785, #1898007
- if (tinymce.isIE) {
- c.onShowMenu.add(function() {
- // IE 8 needs focus in order to store away a range with the current collapsed caret location
- ed.focus();
- bm = ed.selection.getBookmark(1);
- });
+ // Never split block elements if the format is mixed
+ if (split && (!format.mixed || !isBlock(format_root)))
+ container = dom.split(format_root, container);
- c.onHideMenu.add(function() {
- if (bm) {
- ed.selection.moveToBookmark(bm);
- bm = 0;
+ // Wrap container in cloned formats
+ if (lastClone) {
+ target.parentNode.insertBefore(lastClone, target);
+ firstClone.appendChild(target);
}
- });
- }
+ }
- return t.add(c);
- },
+ return container;
+ };
- createToolbar : function(id, s, cc) {
- var c, t = this, cls;
+ function splitToFormatRoot(container) {
+ return wrapAndSplit(findFormatRoot(container), container, container, true);
+ };
- id = t.prefix + id;
- cls = cc || t._cls.toolbar || tinymce.ui.Toolbar;
- c = new cls(id, s);
+ function unwrap(start) {
+ var node = dom.get(start ? '_start' : '_end'),
+ out = node[start ? 'firstChild' : 'lastChild'];
- if (t.get(id))
- return null;
+ // If the end is placed within the start the result will be removed
+ // So this checks if the out node is a bookmark node if it is it
+ // checks for another more suitable node
+ if (isBookmarkNode(out))
+ out = out[start ? 'firstChild' : 'lastChild'];
- return t.add(c);
- },
+ dom.remove(node, true);
- createSeparator : function(cc) {
- var cls = cc || this._cls.separator || tinymce.ui.Separator;
+ return out;
+ };
- return new cls();
- },
+ function removeRngStyle(rng) {
+ var startContainer, endContainer, node;
- setControlType : function(n, c) {
- return this._cls[n.toLowerCase()] = c;
- },
-
- destroy : function() {
- each(this.controls, function(c) {
- c.destroy();
- });
+ rng = expandRng(rng, formatList, TRUE);
- this.controls = null;
- }
- });
-})(tinymce);
+ if (format.split) {
+ startContainer = getContainer(rng, TRUE);
+ endContainer = getContainer(rng);
-(function(tinymce) {
- var Dispatcher = tinymce.util.Dispatcher, each = tinymce.each, isIE = tinymce.isIE, isOpera = tinymce.isOpera;
+ if (startContainer != endContainer) {
+ // WebKit will render the table incorrectly if we wrap a TD in a SPAN so lets see if the can use the first child instead
+ // This will happen if you tripple click a table cell and use remove formatting
+ if (/^(TR|TD)$/.test(startContainer.nodeName) && startContainer.firstChild) {
+ startContainer = (startContainer.nodeName == "TD" ? startContainer.firstChild : startContainer.firstChild.firstChild) || startContainer;
+ }
- tinymce.create('tinymce.WindowManager', {
- WindowManager : function(ed) {
- var t = this;
+ // Wrap start/end nodes in span element since these might be cloned/moved
+ startContainer = wrap(startContainer, 'span', {id : '_start', 'data-mce-type' : 'bookmark'});
+ endContainer = wrap(endContainer, 'span', {id : '_end', 'data-mce-type' : 'bookmark'});
- t.editor = ed;
- t.onOpen = new Dispatcher(t);
- t.onClose = new Dispatcher(t);
- t.params = {};
- t.features = {};
- },
+ // Split start/end
+ splitToFormatRoot(startContainer);
+ splitToFormatRoot(endContainer);
- open : function(s, p) {
- var t = this, f = '', x, y, mo = t.editor.settings.dialog_type == 'modal', w, sw, sh, vp = tinymce.DOM.getViewPort(), u;
+ // Unwrap start/end to get real elements again
+ startContainer = unwrap(TRUE);
+ endContainer = unwrap();
+ } else
+ startContainer = endContainer = splitToFormatRoot(startContainer);
- // Default some options
- s = s || {};
- p = p || {};
- sw = isOpera ? vp.w : screen.width; // Opera uses windows inside the Opera window
- sh = isOpera ? vp.h : screen.height;
- s.name = s.name || 'mc_' + new Date().getTime();
- s.width = parseInt(s.width || 320);
- s.height = parseInt(s.height || 240);
- s.resizable = true;
- s.left = s.left || parseInt(sw / 2.0) - (s.width / 2.0);
- s.top = s.top || parseInt(sh / 2.0) - (s.height / 2.0);
- p.inline = false;
- p.mce_width = s.width;
- p.mce_height = s.height;
- p.mce_auto_focus = s.auto_focus;
+ // Update range positions since they might have changed after the split operations
+ rng.startContainer = startContainer.parentNode;
+ rng.startOffset = nodeIndex(startContainer);
+ rng.endContainer = endContainer.parentNode;
+ rng.endOffset = nodeIndex(endContainer) + 1;
+ }
- if (mo) {
- if (isIE) {
- s.center = true;
- s.help = false;
- s.dialogWidth = s.width + 'px';
- s.dialogHeight = s.height + 'px';
- s.scroll = s.scrollbars || false;
+ // Remove items between start/end
+ rangeUtils.walk(rng, function(nodes) {
+ each(nodes, function(node) {
+ process(node);
+
+ // Remove parent span if it only contains text-decoration: underline, yet a parent node is also underlined.
+ if (node.nodeType === 1 && ed.dom.getStyle(node, 'text-decoration') === 'underline' && node.parentNode && getTextDecoration(node.parentNode) === 'underline') {
+ removeFormat({'deep': false, 'exact': true, 'inline': 'span', 'styles': {'textDecoration' : 'underline'}}, null, node);
+ }
+ });
+ });
+ };
+
+ // Handle node
+ if (node) {
+ if (node.nodeType) {
+ rng = dom.createRng();
+ rng.setStartBefore(node);
+ rng.setEndAfter(node);
+ removeRngStyle(rng);
+ } else {
+ removeRngStyle(node);
}
+
+ return;
}
- // Build features string
- each(s, function(v, k) {
- if (tinymce.is(v, 'boolean'))
- v = v ? 'yes' : 'no';
+ if (!selection.isCollapsed() || !format.inline || dom.select('td.mceSelected,th.mceSelected').length) {
+ bookmark = selection.getBookmark();
+ removeRngStyle(selection.getRng(TRUE));
+ selection.moveToBookmark(bookmark);
- if (!/^(name|url)$/.test(k)) {
- if (isIE && mo)
- f += (f ? ';' : '') + k + ':' + v;
- else
- f += (f ? ',' : '') + k + '=' + v;
+ // Check if start element still has formatting then we are at: "<b>text|</b>text" and need to move the start into the next text node
+ if (format.inline && match(name, vars, selection.getStart())) {
+ moveStart(selection.getRng(true));
}
- });
- t.features = s;
- t.params = p;
- t.onOpen.dispatch(t, s, p);
+ ed.nodeChanged();
+ } else
+ performCaretAction('remove', name, vars);
+ };
- u = s.url || s.file;
- u = tinymce._addVer(u);
+ function toggle(name, vars, node) {
+ var fmt = get(name);
- try {
- if (isIE && mo) {
- w = 1;
- window.showModalDialog(u, window, f);
- } else
- w = window.open(u, s.name, f);
- } catch (ex) {
- // Ignore
- }
-
- // Added by Dan S./Zotero
- zoteroFixWindow(w);
+ if (match(name, vars, node) && (!('toggle' in fmt[0]) || fmt[0].toggle))
+ remove(name, vars, node);
+ else
+ apply(name, vars, node);
+ };
- if (!w)
- alert(t.editor.getLang('popup_blocked'));
- },
+ function matchNode(node, name, vars, similar) {
+ var formatList = get(name), format, i, classes;
- close : function(w) {
- w.close();
- this.onClose.dispatch(this);
- },
+ function matchItems(node, format, item_name) {
+ var key, value, items = format[item_name], i;
- createInstance : function(cl, a, b, c, d, e) {
- var f = tinymce.resolve(cl);
+ // Custom match
+ if (format.onmatch) {
+ return format.onmatch(node, format, item_name);
+ }
- return new f(a, b, c, d, e);
- },
+ // Check all items
+ if (items) {
+ // Non indexed object
+ if (items.length === undef) {
+ for (key in items) {
+ if (items.hasOwnProperty(key)) {
+ if (item_name === 'attributes')
+ value = dom.getAttrib(node, key);
+ else
+ value = getStyle(node, key);
- confirm : function(t, cb, s, w) {
- w = w || window;
+ if (similar && !value && !format.exact)
+ return;
- cb.call(s || this, w.confirm(this._decode(this.editor.getLang(t, t))));
- },
+ if ((!similar || format.exact) && !isEq(value, replaceVars(items[key], vars)))
+ return;
+ }
+ }
+ } else {
+ // Only one match needed for indexed arrays
+ for (i = 0; i < items.length; i++) {
+ if (item_name === 'attributes' ? dom.getAttrib(node, items[i]) : getStyle(node, items[i]))
+ return format;
+ }
+ }
+ }
- alert : function(tx, cb, s, w) {
- var t = this;
+ return format;
+ };
- w = w || window;
- w.alert(t._decode(t.editor.getLang(tx, tx)));
+ if (formatList && node) {
+ // Check each format in list
+ for (i = 0; i < formatList.length; i++) {
+ format = formatList[i];
- if (cb)
- cb.call(s || t);
- },
+ // Name name, attributes, styles and classes
+ if (matchName(node, format) && matchItems(node, format, 'attributes') && matchItems(node, format, 'styles')) {
+ // Match classes
+ if (classes = format.classes) {
+ for (i = 0; i < classes.length; i++) {
+ if (!dom.hasClass(node, classes[i]))
+ return;
+ }
+ }
+
+ return format;
+ }
+ }
+ }
+ };
+
+ function match(name, vars, node) {
+ var startNode;
+
+ function matchParents(node) {
+ // Find first node with similar format settings
+ node = dom.getParent(node, function(node) {
+ return !!matchNode(node, name, vars, true);
+ });
- resizeBy : function(dw, dh, win) {
- win.resizeBy(dw, dh);
- },
+ // Do an exact check on the similar format element
+ return matchNode(node, name, vars);
+ };
- // Internal functions
+ // Check specified node
+ if (node)
+ return matchParents(node);
- _decode : function(s) {
- return tinymce.DOM.decode(s).replace(/\\n/g, '\n');
- }
- });
-}(tinymce));
-(function(tinymce) {
- function CommandManager() {
- var execCommands = {}, queryStateCommands = {}, queryValueCommands = {};
+ // Check selected node
+ node = selection.getNode();
+ if (matchParents(node))
+ return TRUE;
- function add(collection, cmd, func, scope) {
- if (typeof(cmd) == 'string')
- cmd = [cmd];
+ // Check start node if it's different
+ startNode = selection.getStart();
+ if (startNode != node) {
+ if (matchParents(startNode))
+ return TRUE;
+ }
- tinymce.each(cmd, function(cmd) {
- collection[cmd.toLowerCase()] = {func : func, scope : scope};
- });
+ return FALSE;
};
- tinymce.extend(this, {
- add : function(cmd, func, scope) {
- add(execCommands, cmd, func, scope);
- },
+ function matchAll(names, vars) {
+ var startElement, matchedFormatNames = [], checkedMap = {}, i, ni, name;
- addQueryStateHandler : function(cmd, func, scope) {
- add(queryStateCommands, cmd, func, scope);
- },
+ // Check start of selection for formats
+ startElement = selection.getStart();
+ dom.getParent(startElement, function(node) {
+ var i, name;
- addQueryValueHandler : function(cmd, func, scope) {
- add(queryValueCommands, cmd, func, scope);
- },
+ for (i = 0; i < names.length; i++) {
+ name = names[i];
- execCommand : function(scope, cmd, ui, value, args) {
- if (cmd = execCommands[cmd.toLowerCase()]) {
- if (cmd.func.call(scope || cmd.scope, ui, value, args) !== false)
- return true;
+ if (!checkedMap[name] && matchNode(node, name, vars)) {
+ checkedMap[name] = true;
+ matchedFormatNames.push(name);
+ }
}
- },
-
- queryCommandValue : function() {
- if (cmd = queryValueCommands[cmd.toLowerCase()])
- return cmd.func.call(scope || cmd.scope, ui, value, args);
- },
+ }, dom.getRoot());
- queryCommandState : function() {
- if (cmd = queryStateCommands[cmd.toLowerCase()])
- return cmd.func.call(scope || cmd.scope, ui, value, args);
- }
- });
- };
+ return matchedFormatNames;
+ };
- tinymce.GlobalCommands = new CommandManager();
-})(tinymce);
-(function(tinymce) {
- tinymce.Formatter = function(ed) {
- var formats = {},
- each = tinymce.each,
- dom = ed.dom,
- selection = ed.selection,
- TreeWalker = tinymce.dom.TreeWalker,
- rangeUtils = new tinymce.dom.RangeUtils(dom),
- isValid = ed.schema.isValid,
- isBlock = dom.isBlock,
- forcedRootBlock = ed.settings.forced_root_block,
- nodeIndex = dom.nodeIndex,
- INVISIBLE_CHAR = '\uFEFF',
- MCE_ATTR_RE = /^(src|href|style)$/,
- FALSE = false,
- TRUE = true,
- undefined,
- pendingFormats = {apply : [], remove : []};
+ function canApply(name) {
+ var formatList = get(name), startNode, parents, i, x, selector;
- function isArray(obj) {
- return obj instanceof Array;
- };
+ if (formatList) {
+ startNode = selection.getStart();
+ parents = getParents(startNode);
- function getParents(node, selector) {
- return dom.getParents(node, selector, dom.getRoot());
- };
+ for (x = formatList.length - 1; x >= 0; x--) {
+ selector = formatList[x].selector;
- function isCaretNode(node) {
- return node.nodeType === 1 && (node.face === 'mceinline' || node.style.fontFamily === 'mceinline');
- };
+ // Format is not selector based, then always return TRUE
+ if (!selector)
+ return TRUE;
- // Public functions
+ for (i = parents.length - 1; i >= 0; i--) {
+ if (dom.is(parents[i], selector))
+ return TRUE;
+ }
+ }
+ }
- function get(name) {
- return name ? formats[name] : formats;
+ return FALSE;
};
- function register(name, format) {
- if (name) {
- if (typeof(name) !== 'string') {
- each(name, function(format, name) {
- register(name, format);
- });
- } else {
- // Force format into array and add it to internal collection
- format = format.length ? format : [format];
+ function formatChanged(formats, callback, similar) {
+ var currentFormats;
+
+ // Setup format node change logic
+ if (!formatChangeData) {
+ formatChangeData = {};
+ currentFormats = {};
+
+ ed.onNodeChange.addToTop(function(ed, cm, node) {
+ var parents = getParents(node), matchedFormats = {};
+
+ // Check for new formats
+ each(formatChangeData, function(callbacks, format) {
+ each(parents, function(node) {
+ if (matchNode(node, format, {}, callbacks.similar)) {
+ if (!currentFormats[format]) {
+ // Execute callbacks
+ each(callbacks, function(callback) {
+ callback(true, {node: node, format: format, parents: parents});
+ });
- each(format, function(format) {
- // Set deep to false by default on selector formats this to avoid removing
- // alignment on images inside paragraphs when alignment is changed on paragraphs
- if (format.deep === undefined)
- format.deep = !format.selector;
+ currentFormats[format] = callbacks;
+ }
- // Default to true
- if (format.split === undefined)
- format.split = !format.selector || format.inline;
+ matchedFormats[format] = callbacks;
+ return false;
+ }
+ });
+ });
- // Default to true
- if (format.remove === undefined && format.selector && !format.inline)
- format.remove = 'none';
+ // Check if current formats still match
+ each(currentFormats, function(callbacks, format) {
+ if (!matchedFormats[format]) {
+ delete currentFormats[format];
- // Mark format as a mixed format inline + block level
- if (format.selector && format.inline) {
- format.mixed = true;
- format.block_expand = true;
+ each(callbacks, function(callback) {
+ callback(false, {node: node, format: format, parents: parents});
+ });
}
-
- // Split classes if needed
- if (typeof(format.classes) === 'string')
- format.classes = format.classes.split(/\s+/);
});
+ });
+ }
- formats[name] = format;
+ // Add format listeners
+ each(formats.split(','), function(format) {
+ if (!formatChangeData[format]) {
+ formatChangeData[format] = [];
+ formatChangeData[format].similar = similar;
}
- }
+
+ formatChangeData[format].push(callback);
+ });
+
+ return this;
};
- function apply(name, vars, node) {
- var formatList = get(name), format = formatList[0], bookmark, rng, i;
-
- function moveStart(rng) {
- var container = rng.startContainer,
- offset = rng.startOffset,
- walker, node;
-
- // Move startContainer/startOffset in to a suitable node
- if (container.nodeType == 1 || container.nodeValue === "") {
- container = container.nodeType == 1 ? container.childNodes[offset] : container;
-
- // Might fail if the offset is behind the last element in it's container
- if (container) {
- walker = new TreeWalker(container, container.parentNode);
- for (node = walker.current(); node; node = walker.next()) {
- if (node.nodeType == 3 && !isWhiteSpaceNode(node)) {
- rng.setStart(node, 0);
- break;
- }
- }
- }
- }
+ // Expose to public
+ tinymce.extend(this, {
+ get : get,
+ register : register,
+ apply : apply,
+ remove : remove,
+ toggle : toggle,
+ match : match,
+ matchAll : matchAll,
+ matchNode : matchNode,
+ canApply : canApply,
+ formatChanged: formatChanged
+ });
- return rng;
- };
+ // Initialize
+ defaultFormats();
+ addKeyboardShortcuts();
- function setElementFormat(elm, fmt) {
- fmt = fmt || format;
+ // Private functions
- if (elm) {
- each(fmt.styles, function(value, name) {
- dom.setStyle(elm, name, replaceVars(value, vars));
- });
+ function matchName(node, format) {
+ // Check for inline match
+ if (isEq(node, format.inline))
+ return TRUE;
- each(fmt.attributes, function(value, name) {
- dom.setAttrib(elm, name, replaceVars(value, vars));
- });
+ // Check for block match
+ if (isEq(node, format.block))
+ return TRUE;
- each(fmt.classes, function(value) {
- value = replaceVars(value, vars);
+ // Check for selector match
+ if (format.selector)
+ return dom.is(node, format.selector);
+ };
- if (!dom.hasClass(elm, value))
- dom.addClass(elm, value);
- });
- }
- };
+ function isEq(str1, str2) {
+ str1 = str1 || '';
+ str2 = str2 || '';
- function applyRngStyle(rng) {
- var newWrappers = [], wrapName, wrapElm;
+ str1 = '' + (str1.nodeName || str1);
+ str2 = '' + (str2.nodeName || str2);
- // Setup wrapper element
- wrapName = format.inline || format.block;
- wrapElm = dom.create(wrapName);
- setElementFormat(wrapElm);
+ return str1.toLowerCase() == str2.toLowerCase();
+ };
- rangeUtils.walk(rng, function(nodes) {
- var currentWrapElm;
+ function getStyle(node, name) {
+ var styleVal = dom.getStyle(node, name);
- function process(node) {
- var nodeName = node.nodeName.toLowerCase(), parentName = node.parentNode.nodeName.toLowerCase(), found;
+ // Force the format to hex
+ if (name == 'color' || name == 'backgroundColor')
+ styleVal = dom.toHex(styleVal);
- // Stop wrapping on br elements
- if (isEq(nodeName, 'br')) {
- currentWrapElm = 0;
+ // Opera will return bold as 700
+ if (name == 'fontWeight' && styleVal == 700)
+ styleVal = 'bold';
- // Remove any br elements when we wrap things
- if (format.block)
- dom.remove(node);
+ return '' + styleVal;
+ };
- return;
- }
+ function replaceVars(value, vars) {
+ if (typeof(value) != "string")
+ value = value(vars);
+ else if (vars) {
+ value = value.replace(/%(\w+)/g, function(str, name) {
+ return vars[name] || str;
+ });
+ }
- // If node is wrapper type
- if (format.wrapper && matchNode(node, name, vars)) {
- currentWrapElm = 0;
- return;
- }
+ return value;
+ };
- // Can we rename the block
- if (format.block && !format.wrapper && isTextBlock(nodeName)) {
- node = dom.rename(node, wrapName);
- setElementFormat(node);
- newWrappers.push(node);
- currentWrapElm = 0;
- return;
- }
+ function isWhiteSpaceNode(node) {
+ return node && node.nodeType === 3 && /^([\t \r\n]+|)$/.test(node.nodeValue);
+ };
- // Handle selector patterns
- if (format.selector) {
- // Look for matching formats
- each(formatList, function(format) {
- if (dom.is(node, format.selector) && !isCaretNode(node)) {
- setElementFormat(node, format);
- found = true;
- }
- });
+ function wrap(node, name, attrs) {
+ var wrapper = dom.create(name, attrs);
+
+ node.parentNode.insertBefore(wrapper, node);
+ wrapper.appendChild(node);
+
+ return wrapper;
+ };
- // Continue processing if a selector match wasn't found and a inline element is defined
- if (!format.inline || found) {
- currentWrapElm = 0;
- return;
- }
- }
+ function expandRng(rng, format, remove) {
+ var sibling, lastIdx, leaf, endPoint,
+ startContainer = rng.startContainer,
+ startOffset = rng.startOffset,
+ endContainer = rng.endContainer,
+ endOffset = rng.endOffset;
- // Is it valid to wrap this item
- if (isValid(wrapName, nodeName) && isValid(parentName, wrapName)) {
- // Start wrapping
- if (!currentWrapElm) {
- // Wrap the node
- currentWrapElm = wrapElm.cloneNode(FALSE);
- node.parentNode.insertBefore(currentWrapElm, node);
- newWrappers.push(currentWrapElm);
- }
+ // This function walks up the tree if there is no siblings before/after the node
+ function findParentContainer(start) {
+ var container, parent, child, sibling, siblingName, root;
- currentWrapElm.appendChild(node);
- } else {
- // Start a new wrapper for possible children
- currentWrapElm = 0;
+ container = parent = start ? startContainer : endContainer;
+ siblingName = start ? 'previousSibling' : 'nextSibling';
+ root = dom.getRoot();
- each(tinymce.grep(node.childNodes), process);
+ function isBogusBr(node) {
+ return node.nodeName == "BR" && node.getAttribute('data-mce-bogus') && !node.nextSibling;
+ };
- // End the last wrapper
- currentWrapElm = 0;
+ // If it's a text node and the offset is inside the text
+ if (container.nodeType == 3 && !isWhiteSpaceNode(container)) {
+ if (start ? startOffset > 0 : endOffset < container.nodeValue.length) {
+ return container;
+ }
+ }
+
+ for (;;) {
+ // Stop expanding on block elements
+ if (!format[0].block_expand && isBlock(parent))
+ return parent;
+
+ // Walk left/right
+ for (sibling = parent[siblingName]; sibling; sibling = sibling[siblingName]) {
+ if (!isBookmarkNode(sibling) && !isWhiteSpaceNode(sibling) && !isBogusBr(sibling)) {
+ return parent;
}
- };
+ }
- // Process siblings from range
- each(nodes, process);
- });
+ // Check if we can move up are we at root level or body level
+ if (parent.parentNode == root) {
+ container = parent;
+ break;
+ }
- // Cleanup
- each(newWrappers, function(node) {
- var childCount;
+ parent = parent.parentNode;
+ }
- function getChildCount(node) {
- var count = 0;
+ return container;
+ };
- each(node.childNodes, function(node) {
- if (!isWhiteSpaceNode(node) && !isBookmarkNode(node))
- count++;
- });
+ // This function walks down the tree to find the leaf at the selection.
+ // The offset is also returned as if node initially a leaf, the offset may be in the middle of the text node.
+ function findLeaf(node, offset) {
+ if (offset === undef)
+ offset = node.nodeType === 3 ? node.length : node.childNodes.length;
+ while (node && node.hasChildNodes()) {
+ node = node.childNodes[offset];
+ if (node)
+ offset = node.nodeType === 3 ? node.length : node.childNodes.length;
+ }
+ return { node: node, offset: offset };
+ }
- return count;
- };
+ // If index based start position then resolve it
+ if (startContainer.nodeType == 1 && startContainer.hasChildNodes()) {
+ lastIdx = startContainer.childNodes.length - 1;
+ startContainer = startContainer.childNodes[startOffset > lastIdx ? lastIdx : startOffset];
- function mergeStyles(node) {
- var child, clone;
+ if (startContainer.nodeType == 3)
+ startOffset = 0;
+ }
- each(node.childNodes, function(node) {
- if (node.nodeType == 1 && !isBookmarkNode(node) && !isCaretNode(node)) {
- child = node;
- return FALSE; // break loop
- }
- });
+ // If index based end position then resolve it
+ if (endContainer.nodeType == 1 && endContainer.hasChildNodes()) {
+ lastIdx = endContainer.childNodes.length - 1;
+ endContainer = endContainer.childNodes[endOffset > lastIdx ? lastIdx : endOffset - 1];
- // If child was found and of the same type as the current node
- if (child && matchName(child, format)) {
- clone = child.cloneNode(FALSE);
- setElementFormat(clone);
+ if (endContainer.nodeType == 3)
+ endOffset = endContainer.nodeValue.length;
+ }
- dom.replace(clone, node, TRUE);
- dom.remove(child, 1);
- }
+ // Expands the node to the closes contentEditable false element if it exists
+ function findParentContentEditable(node) {
+ var parent = node;
- return clone || node;
- };
+ while (parent) {
+ if (parent.nodeType === 1 && getContentEditable(parent)) {
+ return getContentEditable(parent) === "false" ? parent : node;
+ }
- childCount = getChildCount(node);
+ parent = parent.parentNode;
+ }
- // Remove empty nodes
- if (childCount === 0) {
- dom.remove(node, 1);
- return;
- }
+ return node;
+ };
- if (format.inline || format.wrapper) {
- // Merges the current node with it's children of similar type to reduce the number of elements
- if (!format.exact && childCount === 1)
- node = mergeStyles(node);
+ function findWordEndPoint(container, offset, start) {
+ var walker, node, pos, lastTextNode;
- // Remove/merge children
- each(formatList, function(format) {
- // Merge all children of similar type will move styles from child to parent
- // this: <span style="color:red"><b><span style="color:red; font-size:10px">text</span></b></span>
- // will become: <span style="color:red"><b><span style="font-size:10px">text</span></b></span>
- each(dom.select(format.inline, node), function(child) {
- removeFormat(format, vars, child, format.exact ? child : null);
- });
- });
+ function findSpace(node, offset) {
+ var pos, pos2, str = node.nodeValue;
- // Remove child if direct parent is of same type
- if (matchNode(node.parentNode, name, vars)) {
- dom.remove(node, 1);
- node = 0;
- return TRUE;
- }
+ if (typeof(offset) == "undefined") {
+ offset = start ? str.length : 0;
+ }
- // Look for parent with similar style format
- if (format.merge_with_parents) {
- dom.getParent(node.parentNode, function(parent) {
- if (matchNode(parent, name, vars)) {
- dom.remove(node, 1);
- node = 0;
- return TRUE;
- }
- });
- }
+ if (start) {
+ pos = str.lastIndexOf(' ', offset);
+ pos2 = str.lastIndexOf('\u00a0', offset);
+ pos = pos > pos2 ? pos : pos2;
- // Merge next and previous siblings if they are similar <b>text</b><b>text</b> becomes <b>texttext</b>
- if (node) {
- node = mergeSiblings(getNonWhiteSpaceSibling(node), node);
- node = mergeSiblings(node, getNonWhiteSpaceSibling(node, TRUE));
+ // Include the space on remove to avoid tag soup
+ if (pos !== -1 && !remove) {
+ pos++;
}
+ } else {
+ pos = str.indexOf(' ', offset);
+ pos2 = str.indexOf('\u00a0', offset);
+ pos = pos !== -1 && (pos2 === -1 || pos < pos2) ? pos : pos2;
}
- });
- };
- if (format) {
- if (node) {
- rng = dom.createRng();
+ return pos;
+ };
- rng.setStartBefore(node);
- rng.setEndAfter(node);
+ if (container.nodeType === 3) {
+ pos = findSpace(container, offset);
- applyRngStyle(expandRng(rng, formatList));
- } else {
- if (!selection.isCollapsed() || !format.inline) {
- // Apply formatting to selection
- bookmark = selection.getBookmark();
- applyRngStyle(expandRng(selection.getRng(TRUE), formatList));
+ if (pos !== -1) {
+ return {container : container, offset : pos};
+ }
- selection.moveToBookmark(bookmark);
- selection.setRng(moveStart(selection.getRng(TRUE)));
- ed.nodeChanged();
- } else
- performCaretAction('apply', name, vars);
+ lastTextNode = container;
}
- }
- };
- function remove(name, vars, node) {
- var formatList = get(name), format = formatList[0], bookmark, i, rng;
+ // Walk the nodes inside the block
+ walker = new TreeWalker(container, dom.getParent(container, isBlock) || ed.getBody());
+ while (node = walker[start ? 'prev' : 'next']()) {
+ if (node.nodeType === 3) {
+ lastTextNode = node;
+ pos = findSpace(node);
- function moveStart(rng) {
- var container = rng.startContainer,
- offset = rng.startOffset,
- walker, node, nodes, tmpNode;
+ if (pos !== -1) {
+ return {container : node, offset : pos};
+ }
+ } else if (isBlock(node)) {
+ break;
+ }
+ }
- // Convert text node into index if possible
- if (container.nodeType == 3 && offset >= container.nodeValue.length - 1) {
- container = container.parentNode;
- offset = nodeIndex(container) + 1;
+ if (lastTextNode) {
+ if (start) {
+ offset = 0;
+ } else {
+ offset = lastTextNode.length;
+ }
+
+ return {container: lastTextNode, offset: offset};
}
+ };
- // Move startContainer/startOffset in to a suitable node
- if (container.nodeType == 1) {
- nodes = container.childNodes;
- container = nodes[Math.min(offset, nodes.length - 1)];
- walker = new TreeWalker(container);
+ function findSelectorEndPoint(container, sibling_name) {
+ var parents, i, y, curFormat;
- // If offset is at end of the parent node walk to the next one
- if (offset > nodes.length - 1)
- walker.next();
+ if (container.nodeType == 3 && container.nodeValue.length === 0 && container[sibling_name])
+ container = container[sibling_name];
- for (node = walker.current(); node; node = walker.next()) {
- if (node.nodeType == 3 && !isWhiteSpaceNode(node)) {
- // IE has a "neat" feature where it moves the start node into the closest element
- // we can avoid this by inserting an element before it and then remove it after we set the selection
- tmpNode = dom.create('a', null, INVISIBLE_CHAR);
- node.parentNode.insertBefore(tmpNode, node);
+ parents = getParents(container);
+ for (i = 0; i < parents.length; i++) {
+ for (y = 0; y < format.length; y++) {
+ curFormat = format[y];
- // Set selection and remove tmpNode
- rng.setStart(node, 0);
- selection.setRng(rng);
- dom.remove(tmpNode);
+ // If collapsed state is set then skip formats that doesn't match that
+ if ("collapsed" in curFormat && curFormat.collapsed !== rng.collapsed)
+ continue;
- return;
- }
+ if (dom.is(parents[i], curFormat.selector))
+ return parents[i];
}
}
+
+ return container;
};
- // Merges the styles for each node
- function process(node) {
- var children, i, l;
+ function findBlockEndPoint(container, sibling_name, sibling_name2) {
+ var node;
- // Grab the children first since the nodelist might be changed
- children = tinymce.grep(node.childNodes);
+ // Expand to block of similar type
+ if (!format[0].wrapper)
+ node = dom.getParent(container, format[0].block);
- // Process current node
- for (i = 0, l = formatList.length; i < l; i++) {
- if (removeFormat(formatList[i], vars, node, node))
- break;
- }
+ // Expand to first wrappable block element or any block element
+ if (!node)
+ node = dom.getParent(container.nodeType == 3 ? container.parentNode : container, isTextBlock);
- // Process the children
- if (format.deep) {
- for (i = 0, l = children.length; i < l; i++)
- process(children[i]);
- }
- };
+ // Exclude inner lists from wrapping
+ if (node && format[0].wrapper)
+ node = getParents(node, 'ul,ol').reverse()[0] || node;
- function findFormatRoot(container) {
- var formatRoot;
+ // Didn't find a block element look for first/last wrappable element
+ if (!node) {
+ node = container;
- // Find format root
- each(getParents(container.parentNode).reverse(), function(parent) {
- var format;
+ while (node[sibling_name] && !isBlock(node[sibling_name])) {
+ node = node[sibling_name];
- // Find format root element
- if (!formatRoot && parent.id != '_start' && parent.id != '_end') {
- // Is the node matching the format we are looking for
- format = matchNode(parent, name, vars);
- if (format && format.split !== false)
- formatRoot = parent;
+ // Break on BR but include it will be removed later on
+ // we can't remove it now since we need to check if it can be wrapped
+ if (isEq(node, 'br'))
+ break;
}
- });
+ }
- return formatRoot;
+ return node || container;
};
- function wrapAndSplit(format_root, container, target, split) {
- var parent, clone, lastClone, firstClone, i, formatRootParent;
+ // Expand to closest contentEditable element
+ startContainer = findParentContentEditable(startContainer);
+ endContainer = findParentContentEditable(endContainer);
- // Format root found then clone formats and split it
- if (format_root) {
- formatRootParent = format_root.parentNode;
+ // Exclude bookmark nodes if possible
+ if (isBookmarkNode(startContainer.parentNode) || isBookmarkNode(startContainer)) {
+ startContainer = isBookmarkNode(startContainer) ? startContainer : startContainer.parentNode;
+ startContainer = startContainer.nextSibling || startContainer;
- for (parent = container.parentNode; parent && parent != formatRootParent; parent = parent.parentNode) {
- clone = parent.cloneNode(FALSE);
+ if (startContainer.nodeType == 3)
+ startOffset = 0;
+ }
- for (i = 0; i < formatList.length; i++) {
- if (removeFormat(formatList[i], vars, clone, clone)) {
- clone = 0;
- break;
- }
- }
+ if (isBookmarkNode(endContainer.parentNode) || isBookmarkNode(endContainer)) {
+ endContainer = isBookmarkNode(endContainer) ? endContainer : endContainer.parentNode;
+ endContainer = endContainer.previousSibling || endContainer;
- // Build wrapper node
- if (clone) {
- if (lastClone)
- clone.appendChild(lastClone);
+ if (endContainer.nodeType == 3)
+ endOffset = endContainer.length;
+ }
- if (!firstClone)
- firstClone = clone;
+ if (format[0].inline) {
+ if (rng.collapsed) {
+ // Expand left to closest word boundery
+ endPoint = findWordEndPoint(startContainer, startOffset, true);
+ if (endPoint) {
+ startContainer = endPoint.container;
+ startOffset = endPoint.offset;
+ }
- lastClone = clone;
+ // Expand right to closest word boundery
+ endPoint = findWordEndPoint(endContainer, endOffset);
+ if (endPoint) {
+ endContainer = endPoint.container;
+ endOffset = endPoint.offset;
+ }
+ }
+
+ // Avoid applying formatting to a trailing space.
+ leaf = findLeaf(endContainer, endOffset);
+ if (leaf.node) {
+ while (leaf.node && leaf.offset === 0 && leaf.node.previousSibling)
+ leaf = findLeaf(leaf.node.previousSibling);
+
+ if (leaf.node && leaf.offset > 0 && leaf.node.nodeType === 3 &&
+ leaf.node.nodeValue.charAt(leaf.offset - 1) === ' ') {
+
+ if (leaf.offset > 1) {
+ endContainer = leaf.node;
+ endContainer.splitText(leaf.offset - 1);
}
}
+ }
+ }
- // Never split block elements if the format is mixed
- if (split && (!format.mixed || !isBlock(format_root)))
- container = dom.split(format_root, container);
+ // Move start/end point up the tree if the leaves are sharp and if we are in different containers
+ // Example * becomes !: !<p><b><i>*text</i><i>text*</i></b></p>!
+ // This will reduce the number of wrapper elements that needs to be created
+ // Move start point up the tree
+ if (format[0].inline || format[0].block_expand) {
+ if (!format[0].inline || (startContainer.nodeType != 3 || startOffset === 0)) {
+ startContainer = findParentContainer(true);
+ }
+
+ if (!format[0].inline || (endContainer.nodeType != 3 || endOffset === endContainer.nodeValue.length)) {
+ endContainer = findParentContainer();
+ }
+ }
+
+ // Expand start/end container to matching selector
+ if (format[0].selector && format[0].expand !== FALSE && !format[0].inline) {
+ // Find new startContainer/endContainer if there is better one
+ startContainer = findSelectorEndPoint(startContainer, 'previousSibling');
+ endContainer = findSelectorEndPoint(endContainer, 'nextSibling');
+ }
+
+ // Expand start/end container to matching block element or text node
+ if (format[0].block || format[0].selector) {
+ // Find new startContainer/endContainer if there is better one
+ startContainer = findBlockEndPoint(startContainer, 'previousSibling');
+ endContainer = findBlockEndPoint(endContainer, 'nextSibling');
+
+ // Non block element then try to expand up the leaf
+ if (format[0].block) {
+ if (!isBlock(startContainer))
+ startContainer = findParentContainer(true);
- // Wrap container in cloned formats
- if (lastClone) {
- target.parentNode.insertBefore(lastClone, target);
- firstClone.appendChild(target);
- }
+ if (!isBlock(endContainer))
+ endContainer = findParentContainer();
}
+ }
- return container;
- };
+ // Setup index for startContainer
+ if (startContainer.nodeType == 1) {
+ startOffset = nodeIndex(startContainer);
+ startContainer = startContainer.parentNode;
+ }
- function splitToFormatRoot(container) {
- return wrapAndSplit(findFormatRoot(container), container, container, true);
+ // Setup index for endContainer
+ if (endContainer.nodeType == 1) {
+ endOffset = nodeIndex(endContainer) + 1;
+ endContainer = endContainer.parentNode;
+ }
+
+ // Return new range like object
+ return {
+ startContainer : startContainer,
+ startOffset : startOffset,
+ endContainer : endContainer,
+ endOffset : endOffset
};
+ }
- function unwrap(start) {
- var node = dom.get(start ? '_start' : '_end'),
- out = node[start ? 'firstChild' : 'lastChild'];
+ function removeFormat(format, vars, node, compare_node) {
+ var i, attrs, stylesModified;
- // If the end is placed within the start the result will be removed
- // So this checks if the out node is a bookmark node if it is it
- // checks for another more suitable node
- if (isBookmarkNode(out))
- out = out[start ? 'firstChild' : 'lastChild'];
+ // Check if node matches format
+ if (!matchName(node, format))
+ return FALSE;
- dom.remove(node, true);
+ // Should we compare with format attribs and styles
+ if (format.remove != 'all') {
+ // Remove styles
+ each(format.styles, function(value, name) {
+ value = replaceVars(value, vars);
- return out;
- };
+ // Indexed array
+ if (typeof(name) === 'number') {
+ name = value;
+ compare_node = 0;
+ }
- function removeRngStyle(rng) {
- var startContainer, endContainer;
+ if (!compare_node || isEq(getStyle(compare_node, name), value))
+ dom.setStyle(node, name, '');
- rng = expandRng(rng, formatList, TRUE);
+ stylesModified = 1;
+ });
- if (format.split) {
- startContainer = getContainer(rng, TRUE);
- endContainer = getContainer(rng);
+ // Remove style attribute if it's empty
+ if (stylesModified && dom.getAttrib(node, 'style') == '') {
+ node.removeAttribute('style');
+ node.removeAttribute('data-mce-style');
+ }
- if (startContainer != endContainer) {
- // Wrap start/end nodes in span element since these might be cloned/moved
- startContainer = wrap(startContainer, 'span', {id : '_start', _mce_type : 'bookmark'});
- endContainer = wrap(endContainer, 'span', {id : '_end', _mce_type : 'bookmark'});
+ // Remove attributes
+ each(format.attributes, function(value, name) {
+ var valueOut;
- // Split start/end
- splitToFormatRoot(startContainer);
- splitToFormatRoot(endContainer);
+ value = replaceVars(value, vars);
- // Unwrap start/end to get real elements again
- startContainer = unwrap(TRUE);
- endContainer = unwrap();
- } else
- startContainer = endContainer = splitToFormatRoot(startContainer);
+ // Indexed array
+ if (typeof(name) === 'number') {
+ name = value;
+ compare_node = 0;
+ }
- // Update range positions since they might have changed after the split operations
- rng.startContainer = startContainer.parentNode;
- rng.startOffset = nodeIndex(startContainer);
- rng.endContainer = endContainer.parentNode;
- rng.endOffset = nodeIndex(endContainer) + 1;
- }
+ if (!compare_node || isEq(dom.getAttrib(compare_node, name), value)) {
+ // Keep internal classes
+ if (name == 'class') {
+ value = dom.getAttrib(node, name);
+ if (value) {
+ // Build new class value where everything is removed except the internal prefixed classes
+ valueOut = '';
+ each(value.split(/\s+/), function(cls) {
+ if (/mce\w+/.test(cls))
+ valueOut += (valueOut ? ' ' : '') + cls;
+ });
- // Remove items between start/end
- rangeUtils.walk(rng, function(nodes) {
- each(nodes, function(node) {
- process(node);
- });
+ // We got some internal classes left
+ if (valueOut) {
+ dom.setAttrib(node, name, valueOut);
+ return;
+ }
+ }
+ }
+
+ // IE6 has a bug where the attribute doesn't get removed correctly
+ if (name == "class")
+ node.removeAttribute('className');
+
+ // Remove mce prefixed attributes
+ if (MCE_ATTR_RE.test(name))
+ node.removeAttribute('data-mce-' + name);
+
+ node.removeAttribute(name);
+ }
});
- };
- // Handle node
- if (node) {
- rng = dom.createRng();
- rng.setStartBefore(node);
- rng.setEndAfter(node);
- removeRngStyle(rng);
- return;
- }
+ // Remove classes
+ each(format.classes, function(value) {
+ value = replaceVars(value, vars);
- if (!selection.isCollapsed() || !format.inline) {
- bookmark = selection.getBookmark();
- removeRngStyle(selection.getRng(TRUE));
- selection.moveToBookmark(bookmark);
+ if (!compare_node || dom.hasClass(compare_node, value))
+ dom.removeClass(node, value);
+ });
- // Check if start element still has formatting then we are at: "<b>text|</b>text" and need to move the start into the next text node
- if (match(name, vars, selection.getStart())) {
- moveStart(selection.getRng(true));
+ // Check for non internal attributes
+ attrs = dom.getAttribs(node);
+ for (i = 0; i < attrs.length; i++) {
+ if (attrs[i].nodeName.indexOf('_') !== 0)
+ return FALSE;
}
+ }
- ed.nodeChanged();
- } else
- performCaretAction('remove', name, vars);
- };
-
- function toggle(name, vars, node) {
- if (match(name, vars, node))
- remove(name, vars, node);
- else
- apply(name, vars, node);
+ // Remove the inline child if it's empty for example <b> or <span>
+ if (format.remove != 'none') {
+ removeNode(node, format);
+ return TRUE;
+ }
};
- function matchNode(node, name, vars, similar) {
- var formatList = get(name), format, i, classes;
+ function removeNode(node, format) {
+ var parentNode = node.parentNode, rootBlockElm;
- function matchItems(node, format, item_name) {
- var key, value, items = format[item_name], i;
+ function find(node, next, inc) {
+ node = getNonWhiteSpaceSibling(node, next, inc);
- // Check all items
- if (items) {
- // Non indexed object
- if (items.length === undefined) {
- for (key in items) {
- if (items.hasOwnProperty(key)) {
- if (item_name === 'attributes')
- value = dom.getAttrib(node, key);
- else
- value = getStyle(node, key);
+ return !node || (node.nodeName == 'BR' || isBlock(node));
+ };
- if (similar && !value && !format.exact)
- return;
+ if (format.block) {
+ if (!forcedRootBlock) {
+ // Append BR elements if needed before we remove the block
+ if (isBlock(node) && !isBlock(parentNode)) {
+ if (!find(node, FALSE) && !find(node.firstChild, TRUE, 1))
+ node.insertBefore(dom.create('br'), node.firstChild);
- if ((!similar || format.exact) && !isEq(value, replaceVars(items[key], vars)))
- return;
- }
- }
- } else {
- // Only one match needed for indexed arrays
- for (i = 0; i < items.length; i++) {
- if (item_name === 'attributes' ? dom.getAttrib(node, items[i]) : getStyle(node, items[i]))
- return format;
+ if (!find(node, TRUE) && !find(node.lastChild, FALSE, 1))
+ node.appendChild(dom.create('br'));
+ }
+ } else {
+ // Wrap the block in a forcedRootBlock if we are at the root of document
+ if (parentNode == dom.getRoot()) {
+ if (!format.list_block || !isEq(node, format.list_block)) {
+ each(tinymce.grep(node.childNodes), function(node) {
+ if (isValid(forcedRootBlock, node.nodeName.toLowerCase())) {
+ if (!rootBlockElm)
+ rootBlockElm = wrap(node, forcedRootBlock);
+ else
+ rootBlockElm.appendChild(node);
+ } else
+ rootBlockElm = 0;
+ });
}
}
}
+ }
- return format;
- };
+ // Never remove nodes that isn't the specified inline element if a selector is specified too
+ if (format.selector && format.inline && !isEq(format.inline, node))
+ return;
- if (formatList && node) {
- // Check each format in list
- for (i = 0; i < formatList.length; i++) {
- format = formatList[i];
+ dom.remove(node, 1);
+ };
- // Name name, attributes, styles and classes
- if (matchName(node, format) && matchItems(node, format, 'attributes') && matchItems(node, format, 'styles')) {
- // Match classes
- if (classes = format.classes) {
- for (i = 0; i < classes.length; i++) {
- if (!dom.hasClass(node, classes[i]))
- return;
- }
- }
+ function getNonWhiteSpaceSibling(node, next, inc) {
+ if (node) {
+ next = next ? 'nextSibling' : 'previousSibling';
+
+ for (node = inc ? node : node[next]; node; node = node[next]) {
+ if (node.nodeType == 1 || !isWhiteSpaceNode(node))
+ return node;
+ }
+ }
+ };
+
+ function isBookmarkNode(node) {
+ return node && node.nodeType == 1 && node.getAttribute('data-mce-type') == 'bookmark';
+ };
+
+ function mergeSiblings(prev, next) {
+ var marker, sibling, tmpSibling;
+
+ function compareElements(node1, node2) {
+ // Not the same name
+ if (node1.nodeName != node2.nodeName)
+ return FALSE;
+
+ function getAttribs(node) {
+ var attribs = {};
- return format;
- }
- }
- }
- };
+ each(dom.getAttribs(node), function(attr) {
+ var name = attr.nodeName.toLowerCase();
- function match(name, vars, node) {
- var startNode, i;
+ // Don't compare internal attributes or style
+ if (name.indexOf('_') !== 0 && name !== 'style')
+ attribs[name] = dom.getAttrib(node, name);
+ });
- function matchParents(node) {
- // Find first node with similar format settings
- node = dom.getParent(node, function(node) {
- return !!matchNode(node, name, vars, true);
- });
+ return attribs;
+ };
- // Do an exact check on the similar format element
- return matchNode(node, name, vars);
- };
+ function compareObjects(obj1, obj2) {
+ var value, name;
- // Check specified node
- if (node)
- return matchParents(node);
+ for (name in obj1) {
+ // Obj1 has item obj2 doesn't have
+ if (obj1.hasOwnProperty(name)) {
+ value = obj2[name];
- // Check pending formats
- if (selection.isCollapsed()) {
- for (i = pendingFormats.apply.length - 1; i >= 0; i--) {
- if (pendingFormats.apply[i].name == name)
- return true;
- }
+ // Obj2 doesn't have obj1 item
+ if (value === undef)
+ return FALSE;
- for (i = pendingFormats.remove.length - 1; i >= 0; i--) {
- if (pendingFormats.remove[i].name == name)
- return false;
- }
+ // Obj2 item has a different value
+ if (obj1[name] != value)
+ return FALSE;
- return matchParents(selection.getNode());
- }
+ // Delete similar value
+ delete obj2[name];
+ }
+ }
- // Check selected node
- node = selection.getNode();
- if (matchParents(node))
- return TRUE;
+ // Check if obj 2 has something obj 1 doesn't have
+ for (name in obj2) {
+ // Obj2 has item obj1 doesn't have
+ if (obj2.hasOwnProperty(name))
+ return FALSE;
+ }
- // Check start node if it's different
- startNode = selection.getStart();
- if (startNode != node) {
- if (matchParents(startNode))
return TRUE;
- }
+ };
- return FALSE;
- };
+ // Attribs are not the same
+ if (!compareObjects(getAttribs(node1), getAttribs(node2)))
+ return FALSE;
- function matchAll(names, vars) {
- var startElement, matchedFormatNames = [], checkedMap = {}, i, ni, name;
+ // Styles are not the same
+ if (!compareObjects(dom.parseStyle(dom.getAttrib(node1, 'style')), dom.parseStyle(dom.getAttrib(node2, 'style'))))
+ return FALSE;
- // If the selection is collapsed then check pending formats
- if (selection.isCollapsed()) {
- for (ni = 0; ni < names.length; ni++) {
- // If the name is to be removed, then stop it from being added
- for (i = pendingFormats.remove.length - 1; i >= 0; i--) {
- name = names[ni];
+ return TRUE;
+ };
- if (pendingFormats.remove[i].name == name) {
- checkedMap[name] = true;
- break;
- }
- }
+ function findElementSibling(node, sibling_name) {
+ for (sibling = node; sibling; sibling = sibling[sibling_name]) {
+ if (sibling.nodeType == 3 && sibling.nodeValue.length !== 0)
+ return node;
+
+ if (sibling.nodeType == 1 && !isBookmarkNode(sibling))
+ return sibling;
}
- // If the format is to be applied
- for (i = pendingFormats.apply.length - 1; i >= 0; i--) {
- for (ni = 0; ni < names.length; ni++) {
- name = names[ni];
+ return node;
+ };
- if (!checkedMap[name] && pendingFormats.apply[i].name == name) {
- checkedMap[name] = true;
- matchedFormatNames.push(name);
- }
+ // Check if next/prev exists and that they are elements
+ if (prev && next) {
+ // If previous sibling is empty then jump over it
+ prev = findElementSibling(prev, 'previousSibling');
+ next = findElementSibling(next, 'nextSibling');
+
+ // Compare next and previous nodes
+ if (compareElements(prev, next)) {
+ // Append nodes between
+ for (sibling = prev.nextSibling; sibling && sibling != next;) {
+ tmpSibling = sibling;
+ sibling = sibling.nextSibling;
+ prev.appendChild(tmpSibling);
}
- }
- }
- // Check start of selection for formats
- startElement = selection.getStart();
- dom.getParent(startElement, function(node) {
- var i, name;
+ // Remove next node
+ dom.remove(next);
- for (i = 0; i < names.length; i++) {
- name = names[i];
+ // Move children into prev node
+ each(tinymce.grep(next.childNodes), function(node) {
+ prev.appendChild(node);
+ });
- if (!checkedMap[name] && matchNode(node, name, vars)) {
- checkedMap[name] = true;
- matchedFormatNames.push(name);
- }
+ return prev;
}
- });
+ }
- return matchedFormatNames;
+ return next;
};
- function canApply(name) {
- var formatList = get(name), startNode, parents, i, x, selector;
+ function isTextBlock(name) {
+ return /^(h[1-6]|p|div|pre|address|dl|dt|dd)$/.test(name);
+ };
- if (formatList) {
- startNode = selection.getStart();
- parents = getParents(startNode);
+ function getContainer(rng, start) {
+ var container, offset, lastIdx, walker;
- for (x = formatList.length - 1; x >= 0; x--) {
- selector = formatList[x].selector;
+ container = rng[start ? 'startContainer' : 'endContainer'];
+ offset = rng[start ? 'startOffset' : 'endOffset'];
- // Format is not selector based, then always return TRUE
- if (!selector)
- return TRUE;
+ if (container.nodeType == 1) {
+ lastIdx = container.childNodes.length - 1;
- for (i = parents.length - 1; i >= 0; i--) {
- if (dom.is(parents[i], selector))
- return TRUE;
- }
- }
+ if (!start && offset)
+ offset--;
+
+ container = container.childNodes[offset > lastIdx ? lastIdx : offset];
}
- return FALSE;
+ // If start text node is excluded then walk to the next node
+ if (container.nodeType === 3 && start && offset >= container.nodeValue.length) {
+ container = new TreeWalker(container, ed.getBody()).next() || container;
+ }
+
+ // If end text node is excluded then walk to the previous node
+ if (container.nodeType === 3 && !start && offset === 0) {
+ container = new TreeWalker(container, ed.getBody()).prev() || container;
+ }
+
+ return container;
};
- // Expose to public
- tinymce.extend(this, {
- get : get,
- register : register,
- apply : apply,
- remove : remove,
- toggle : toggle,
- match : match,
- matchAll : matchAll,
- matchNode : matchNode,
- canApply : canApply
- });
+ function performCaretAction(type, name, vars) {
+ var caretContainerId = '_mce_caret', debug = ed.settings.caret_debug;
- // Private functions
+ // Creates a caret container bogus element
+ function createCaretContainer(fill) {
+ var caretContainer = dom.create('span', {id: caretContainerId, 'data-mce-bogus': true, style: debug ? 'color:red' : ''});
- function matchName(node, format) {
- // Check for inline match
- if (isEq(node, format.inline))
- return TRUE;
+ if (fill) {
+ caretContainer.appendChild(ed.getDoc().createTextNode(INVISIBLE_CHAR));
+ }
- // Check for block match
- if (isEq(node, format.block))
- return TRUE;
+ return caretContainer;
+ };
- // Check for selector match
- if (format.selector)
- return dom.is(node, format.selector);
- };
+ function isCaretContainerEmpty(node, nodes) {
+ while (node) {
+ if ((node.nodeType === 3 && node.nodeValue !== INVISIBLE_CHAR) || node.childNodes.length > 1) {
+ return false;
+ }
- function isEq(str1, str2) {
- str1 = str1 || '';
- str2 = str2 || '';
+ // Collect nodes
+ if (nodes && node.nodeType === 1) {
+ nodes.push(node);
+ }
- str1 = '' + (str1.nodeName || str1);
- str2 = '' + (str2.nodeName || str2);
+ node = node.firstChild;
+ }
- return str1.toLowerCase() == str2.toLowerCase();
- };
+ return true;
+ };
+
+ // Returns any parent caret container element
+ function getParentCaretContainer(node) {
+ while (node) {
+ if (node.id === caretContainerId) {
+ return node;
+ }
- function getStyle(node, name) {
- var styleVal = dom.getStyle(node, name);
+ node = node.parentNode;
+ }
+ };
- // Force the format to hex
- if (name == 'color' || name == 'backgroundColor')
- styleVal = dom.toHex(styleVal);
+ // Finds the first text node in the specified node
+ function findFirstTextNode(node) {
+ var walker;
- // Opera will return bold as 700
- if (name == 'fontWeight' && styleVal == 700)
- styleVal = 'bold';
+ if (node) {
+ walker = new TreeWalker(node, node);
- return '' + styleVal;
- };
+ for (node = walker.current(); node; node = walker.next()) {
+ if (node.nodeType === 3) {
+ return node;
+ }
+ }
+ }
+ };
- function replaceVars(value, vars) {
- if (typeof(value) != "string")
- value = value(vars);
- else if (vars) {
- value = value.replace(/%(\w+)/g, function(str, name) {
- return vars[name] || str;
- });
- }
+ // Removes the caret container for the specified node or all on the current document
+ function removeCaretContainer(node, move_caret) {
+ var child, rng;
- return value;
- };
+ if (!node) {
+ node = getParentCaretContainer(selection.getStart());
- function isWhiteSpaceNode(node) {
- return node && node.nodeType === 3 && /^([\s\r\n]+|)$/.test(node.nodeValue);
- };
+ if (!node) {
+ while (node = dom.get(caretContainerId)) {
+ removeCaretContainer(node, false);
+ }
+ }
+ } else {
+ rng = selection.getRng(true);
- function wrap(node, name, attrs) {
- var wrapper = dom.create(name, attrs);
+ if (isCaretContainerEmpty(node)) {
+ if (move_caret !== false) {
+ rng.setStartBefore(node);
+ rng.setEndBefore(node);
+ }
- node.parentNode.insertBefore(wrapper, node);
- wrapper.appendChild(node);
+ dom.remove(node);
+ } else {
+ child = findFirstTextNode(node);
- return wrapper;
- };
+ if (child.nodeValue.charAt(0) === INVISIBLE_CHAR) {
+ child = child.deleteData(0, 1);
+ }
- function expandRng(rng, format, remove) {
- var startContainer = rng.startContainer,
- startOffset = rng.startOffset,
- endContainer = rng.endContainer,
- endOffset = rng.endOffset, sibling, lastIdx;
+ dom.remove(node, 1);
+ }
- // This function walks up the tree if there is no siblings before/after the node
- function findParentContainer(container, child_name, sibling_name, root) {
- var parent, child;
+ selection.setRng(rng);
+ }
+ };
+
+ // Applies formatting to the caret postion
+ function applyCaretFormat() {
+ var rng, caretContainer, textNode, offset, bookmark, container, text;
+
+ rng = selection.getRng(true);
+ offset = rng.startOffset;
+ container = rng.startContainer;
+ text = container.nodeValue;
+
+ caretContainer = getParentCaretContainer(selection.getStart());
+ if (caretContainer) {
+ textNode = findFirstTextNode(caretContainer);
+ }
- root = root || dom.getRoot();
+ // Expand to word is caret is in the middle of a text node and the char before/after is a alpha numeric character
+ if (text && offset > 0 && offset < text.length && /\w/.test(text.charAt(offset)) && /\w/.test(text.charAt(offset - 1))) {
+ // Get bookmark of caret position
+ bookmark = selection.getBookmark();
- for (;;) {
- // Check if we can move up are we at root level or body level
- parent = container.parentNode;
+ // Collapse bookmark range (WebKit)
+ rng.collapse(true);
- // Stop expanding on block elements or root depending on format
- if (parent == root || (!format[0].block_expand && isBlock(parent)))
- return container;
+ // Expand the range to the closest word and split it at those points
+ rng = expandRng(rng, get(name));
+ rng = rangeUtils.split(rng);
+
+ // Apply the format to the range
+ apply(name, vars, rng);
+
+ // Move selection back to caret position
+ selection.moveToBookmark(bookmark);
+ } else {
+ if (!caretContainer || textNode.nodeValue !== INVISIBLE_CHAR) {
+ caretContainer = createCaretContainer(true);
+ textNode = caretContainer.firstChild;
- for (sibling = parent[child_name]; sibling && sibling != container; sibling = sibling[sibling_name]) {
- if (sibling.nodeType == 1 && !isBookmarkNode(sibling))
- return container;
+ rng.insertNode(caretContainer);
+ offset = 1;
- if (sibling.nodeType == 3 && !isWhiteSpaceNode(sibling))
- return container;
+ apply(name, vars, caretContainer);
+ } else {
+ apply(name, vars, caretContainer);
}
- container = container.parentNode;
+ // Move selection to text node
+ selection.setCursorLocation(textNode, offset);
}
-
- return container;
};
- // If index based start position then resolve it
- if (startContainer.nodeType == 1 && startContainer.hasChildNodes()) {
- lastIdx = startContainer.childNodes.length - 1;
- startContainer = startContainer.childNodes[startOffset > lastIdx ? lastIdx : startOffset];
+ function removeCaretFormat() {
+ var rng = selection.getRng(true), container, offset, bookmark,
+ hasContentAfter, node, formatNode, parents = [], i, caretContainer;
- if (startContainer.nodeType == 3)
- startOffset = 0;
- }
+ container = rng.startContainer;
+ offset = rng.startOffset;
+ node = container;
- // If index based end position then resolve it
- if (endContainer.nodeType == 1 && endContainer.hasChildNodes()) {
- lastIdx = endContainer.childNodes.length - 1;
- endContainer = endContainer.childNodes[endOffset > lastIdx ? lastIdx : endOffset - 1];
+ if (container.nodeType == 3) {
+ if (offset != container.nodeValue.length || container.nodeValue === INVISIBLE_CHAR) {
+ hasContentAfter = true;
+ }
- if (endContainer.nodeType == 3)
- endOffset = endContainer.nodeValue.length;
- }
+ node = node.parentNode;
+ }
- // Exclude bookmark nodes if possible
- if (isBookmarkNode(startContainer.parentNode))
- startContainer = startContainer.parentNode;
+ while (node) {
+ if (matchNode(node, name, vars)) {
+ formatNode = node;
+ break;
+ }
- if (isBookmarkNode(startContainer))
- startContainer = startContainer.nextSibling || startContainer;
+ if (node.nextSibling) {
+ hasContentAfter = true;
+ }
- if (isBookmarkNode(endContainer.parentNode))
- endContainer = endContainer.parentNode;
+ parents.push(node);
+ node = node.parentNode;
+ }
- if (isBookmarkNode(endContainer))
- endContainer = endContainer.previousSibling || endContainer;
+ // Node doesn't have the specified format
+ if (!formatNode) {
+ return;
+ }
- // Move start/end point up the tree if the leaves are sharp and if we are in different containers
- // Example * becomes !: !<p><b><i>*text</i><i>text*</i></b></p>!
- // This will reduce the number of wrapper elements that needs to be created
- // Move start point up the tree
- if (format[0].inline || format[0].block_expand) {
- startContainer = findParentContainer(startContainer, 'firstChild', 'nextSibling');
- endContainer = findParentContainer(endContainer, 'lastChild', 'previousSibling');
- }
+ // Is there contents after the caret then remove the format on the element
+ if (hasContentAfter) {
+ // Get bookmark of caret position
+ bookmark = selection.getBookmark();
- // Expand start/end container to matching selector
- if (format[0].selector && format[0].expand !== FALSE && !format[0].inline) {
- function findSelectorEndPoint(container, sibling_name) {
- var parents, i, y;
+ // Collapse bookmark range (WebKit)
+ rng.collapse(true);
- if (container.nodeType == 3 && container.nodeValue.length == 0 && container[sibling_name])
- container = container[sibling_name];
+ // Expand the range to the closest word and split it at those points
+ rng = expandRng(rng, get(name), true);
+ rng = rangeUtils.split(rng);
- parents = getParents(container);
- for (i = 0; i < parents.length; i++) {
- for (y = 0; y < format.length; y++) {
- if (dom.is(parents[i], format[y].selector))
- return parents[i];
- }
+ // Remove the format from the range
+ remove(name, vars, rng);
+
+ // Move selection back to caret position
+ selection.moveToBookmark(bookmark);
+ } else {
+ caretContainer = createCaretContainer();
+
+ node = caretContainer;
+ for (i = parents.length - 1; i >= 0; i--) {
+ node.appendChild(dom.clone(parents[i], false));
+ node = node.firstChild;
}
- return container;
- };
+ // Insert invisible character into inner most format element
+ node.appendChild(dom.doc.createTextNode(INVISIBLE_CHAR));
+ node = node.firstChild;
- // Find new startContainer/endContainer if there is better one
- startContainer = findSelectorEndPoint(startContainer, 'previousSibling');
- endContainer = findSelectorEndPoint(endContainer, 'nextSibling');
- }
+ // Insert caret container after the formated node
+ dom.insertAfter(caretContainer, formatNode);
- // Expand start/end container to matching block element or text node
- if (format[0].block || format[0].selector) {
- function findBlockEndPoint(container, sibling_name, sibling_name2) {
- var node;
+ // Move selection to text node
+ selection.setCursorLocation(node, 1);
+ }
+ };
- // Expand to block of similar type
- if (!format[0].wrapper)
- node = dom.getParent(container, format[0].block);
+ // Checks if the parent caret container node isn't empty if that is the case it
+ // will remove the bogus state on all children that isn't empty
+ function unmarkBogusCaretParents() {
+ var i, caretContainer, node;
- // Expand to first wrappable block element or any block element
- if (!node)
- node = dom.getParent(container.nodeType == 3 ? container.parentNode : container, isBlock);
+ caretContainer = getParentCaretContainer(selection.getStart());
+ if (caretContainer && !dom.isEmpty(caretContainer)) {
+ tinymce.walk(caretContainer, function(node) {
+ if (node.nodeType == 1 && node.id !== caretContainerId && !dom.isEmpty(node)) {
+ dom.setAttrib(node, 'data-mce-bogus', null);
+ }
+ }, 'childNodes');
+ }
+ };
- // Exclude inner lists from wrapping
- if (node && format[0].wrapper)
- node = getParents(node, 'ul,ol').reverse()[0] || node;
+ // Only bind the caret events once
+ if (!self._hasCaretEvents) {
+ // Mark current caret container elements as bogus when getting the contents so we don't end up with empty elements
+ ed.onBeforeGetContent.addToTop(function() {
+ var nodes = [], i;
+
+ if (isCaretContainerEmpty(getParentCaretContainer(selection.getStart()), nodes)) {
+ // Mark children
+ i = nodes.length;
+ while (i--) {
+ dom.setAttrib(nodes[i], 'data-mce-bogus', '1');
+ }
+ }
+ });
- // Didn't find a block element look for first/last wrappable element
- if (!node) {
- node = container;
+ // Remove caret container on mouse up and on key up
+ tinymce.each('onMouseUp onKeyUp'.split(' '), function(name) {
+ ed[name].addToTop(function() {
+ removeCaretContainer();
+ unmarkBogusCaretParents();
+ });
+ });
- while (node[sibling_name] && !isBlock(node[sibling_name])) {
- node = node[sibling_name];
+ // Remove caret container on keydown and it's a backspace, enter or left/right arrow keys
+ ed.onKeyDown.addToTop(function(ed, e) {
+ var keyCode = e.keyCode;
- // Break on BR but include it will be removed later on
- // we can't remove it now since we need to check if it can be wrapped
- if (isEq(node, 'br'))
- break;
- }
+ if (keyCode == 8 || keyCode == 37 || keyCode == 39) {
+ removeCaretContainer(getParentCaretContainer(selection.getStart()));
}
- return node || container;
- };
+ unmarkBogusCaretParents();
+ });
- // Find new startContainer/endContainer if there is better one
- startContainer = findBlockEndPoint(startContainer, 'previousSibling');
- endContainer = findBlockEndPoint(endContainer, 'nextSibling');
+ // Remove bogus state if they got filled by contents using editor.selection.setContent
+ selection.onSetContent.add(unmarkBogusCaretParents);
- // Non block element then try to expand up the leaf
- if (format[0].block) {
- if (!isBlock(startContainer))
- startContainer = findParentContainer(startContainer, 'firstChild', 'nextSibling');
+ self._hasCaretEvents = true;
+ }
- if (!isBlock(endContainer))
- endContainer = findParentContainer(endContainer, 'lastChild', 'previousSibling');
- }
+ // Do apply or remove caret format
+ if (type == "apply") {
+ applyCaretFormat();
+ } else {
+ removeCaretFormat();
}
+ };
- // Setup index for startContainer
- if (startContainer.nodeType == 1) {
- startOffset = nodeIndex(startContainer);
- startContainer = startContainer.parentNode;
+ function moveStart(rng) {
+ var container = rng.startContainer,
+ offset = rng.startOffset, isAtEndOfText,
+ walker, node, nodes, tmpNode;
+
+ // Convert text node into index if possible
+ if (container.nodeType == 3 && offset >= container.nodeValue.length) {
+ // Get the parent container location and walk from there
+ offset = nodeIndex(container);
+ container = container.parentNode;
+ isAtEndOfText = true;
}
- // Setup index for endContainer
- if (endContainer.nodeType == 1) {
- endOffset = nodeIndex(endContainer) + 1;
- endContainer = endContainer.parentNode;
+ // Move startContainer/startOffset in to a suitable node
+ if (container.nodeType == 1) {
+ nodes = container.childNodes;
+ container = nodes[Math.min(offset, nodes.length - 1)];
+ walker = new TreeWalker(container, dom.getParent(container, dom.isBlock));
+
+ // If offset is at end of the parent node walk to the next one
+ if (offset > nodes.length - 1 || isAtEndOfText)
+ walker.next();
+
+ for (node = walker.current(); node; node = walker.next()) {
+ if (node.nodeType == 3 && !isWhiteSpaceNode(node)) {
+ // IE has a "neat" feature where it moves the start node into the closest element
+ // we can avoid this by inserting an element before it and then remove it after we set the selection
+ tmpNode = dom.create('a', null, INVISIBLE_CHAR);
+ node.parentNode.insertBefore(tmpNode, node);
+
+ // Set selection and remove tmpNode
+ rng.setStart(node, 0);
+ selection.setRng(rng);
+ dom.remove(tmpNode);
+
+ return;
+ }
+ }
}
+ };
+ };
+})(tinymce);
- // Return new range like object
- return {
- startContainer : startContainer,
- startOffset : startOffset,
- endContainer : endContainer,
- endOffset : endOffset
- };
- }
+tinymce.onAddEditor.add(function(tinymce, ed) {
+ var filters, fontSizes, dom, settings = ed.settings;
- function removeFormat(format, vars, node, compare_node) {
- var i, attrs, stylesModified;
+ function replaceWithSpan(node, styles) {
+ tinymce.each(styles, function(value, name) {
+ if (value)
+ dom.setStyle(node, name, value);
+ });
- // Check if node matches format
- if (!matchName(node, format))
- return FALSE;
+ dom.rename(node, 'span');
+ };
- // Should we compare with format attribs and styles
- if (format.remove != 'all') {
- // Remove styles
- each(format.styles, function(value, name) {
- value = replaceVars(value, vars);
+ function convert(editor, params) {
+ dom = editor.dom;
- // Indexed array
- if (typeof(name) === 'number') {
- name = value;
- compare_node = 0;
- }
+ if (settings.convert_fonts_to_spans) {
+ tinymce.each(dom.select('font,u,strike', params.node), function(node) {
+ filters[node.nodeName.toLowerCase()](ed.dom, node);
+ });
+ }
+ };
- if (!compare_node || isEq(getStyle(compare_node, name), value))
- dom.setStyle(node, name, '');
+ if (settings.inline_styles) {
+ fontSizes = tinymce.explode(settings.font_size_legacy_values);
- stylesModified = 1;
+ filters = {
+ font : function(dom, node) {
+ replaceWithSpan(node, {
+ backgroundColor : node.style.backgroundColor,
+ color : node.color,
+ fontFamily : node.face,
+ fontSize : fontSizes[parseInt(node.size, 10) - 1]
});
+ },
- // Remove style attribute if it's empty
- if (stylesModified && dom.getAttrib(node, 'style') == '') {
- node.removeAttribute('style');
- node.removeAttribute('_mce_style');
- }
+ u : function(dom, node) {
+ replaceWithSpan(node, {
+ textDecoration : 'underline'
+ });
+ },
- // Remove attributes
- each(format.attributes, function(value, name) {
- var valueOut;
+ strike : function(dom, node) {
+ replaceWithSpan(node, {
+ textDecoration : 'line-through'
+ });
+ }
+ };
- value = replaceVars(value, vars);
+ ed.onPreProcess.add(convert);
+ ed.onSetContent.add(convert);
- // Indexed array
- if (typeof(name) === 'number') {
- name = value;
- compare_node = 0;
- }
+ ed.onInit.add(function() {
+ ed.selection.onSetContent.add(convert);
+ });
+ }
+});
- if (!compare_node || isEq(dom.getAttrib(compare_node, name), value)) {
- // Keep internal classes
- if (name == 'class') {
- value = dom.getAttrib(node, name);
- if (value) {
- // Build new class value where everything is removed except the internal prefixed classes
- valueOut = '';
- each(value.split(/\s+/), function(cls) {
- if (/mce\w+/.test(cls))
- valueOut += (valueOut ? ' ' : '') + cls;
- });
+(function(tinymce) {
+ var TreeWalker = tinymce.dom.TreeWalker;
+
+ tinymce.EnterKey = function(editor) {
+ var dom = editor.dom, selection = editor.selection, settings = editor.settings, undoManager = editor.undoManager, nonEmptyElementsMap = editor.schema.getNonEmptyElements();
+
+ function handleEnterKey(evt) {
+ var rng = selection.getRng(true), tmpRng, editableRoot, container, offset, parentBlock, documentMode, shiftKey,
+ newBlock, fragment, containerBlock, parentBlockName, containerBlockName, newBlockName, isAfterLastNodeInContainer;
+
+ // Returns true if the block can be split into two blocks or not
+ function canSplitBlock(node) {
+ return node &&
+ dom.isBlock(node) &&
+ !/^(TD|TH|CAPTION|FORM)$/.test(node.nodeName) &&
+ !/^(fixed|absolute)/i.test(node.style.position) &&
+ dom.getContentEditable(node) !== "true";
+ };
- // We got some internal classes left
- if (valueOut) {
- dom.setAttrib(node, name, valueOut);
- return;
- }
- }
- }
+ // Renders empty block on IE
+ function renderBlockOnIE(block) {
+ var oldRng;
- // IE6 has a bug where the attribute doesn't get removed correctly
- if (name == "class")
- node.removeAttribute('className');
+ if (tinymce.isIE && dom.isBlock(block)) {
+ oldRng = selection.getRng();
+ block.appendChild(dom.create('span', null, '\u00a0'));
+ selection.select(block);
+ block.lastChild.outerHTML = '';
+ selection.setRng(oldRng);
+ }
+ };
- // Remove mce prefixed attributes
- if (MCE_ATTR_RE.test(name))
- node.removeAttribute('_mce_' + name);
+ // Remove the first empty inline element of the block so this: <p><b><em></em></b>x</p> becomes this: <p>x</p>
+ function trimInlineElementsOnLeftSideOfBlock(block) {
+ var node = block, firstChilds = [], i;
- node.removeAttribute(name);
+ // Find inner most first child ex: <p><i><b>*</b></i></p>
+ while (node = node.firstChild) {
+ if (dom.isBlock(node)) {
+ return;
}
- });
-
- // Remove classes
- each(format.classes, function(value) {
- value = replaceVars(value, vars);
-
- if (!compare_node || dom.hasClass(compare_node, value))
- dom.removeClass(node, value);
- });
- // Check for non internal attributes
- attrs = dom.getAttribs(node);
- for (i = 0; i < attrs.length; i++) {
- if (attrs[i].nodeName.indexOf('_') !== 0)
- return FALSE;
+ if (node.nodeType == 1 && !nonEmptyElementsMap[node.nodeName.toLowerCase()]) {
+ firstChilds.push(node);
+ }
}
- }
- // Remove the inline child if it's empty for example <b> or <span>
- if (format.remove != 'none') {
- removeNode(node, format);
- return TRUE;
- }
- };
+ i = firstChilds.length;
+ while (i--) {
+ node = firstChilds[i];
+ if (!node.hasChildNodes() || (node.firstChild == node.lastChild && node.firstChild.nodeValue === '')) {
+ dom.remove(node);
+ } else {
+ // Remove <a> </a> see #5381
+ if (node.nodeName == "A" && (node.innerText || node.textContent) === ' ') {
+ dom.remove(node);
+ }
+ }
+ }
+ };
+
+ // Moves the caret to a suitable position within the root for example in the first non pure whitespace text node or before an image
+ function moveToCaretPosition(root) {
+ var walker, node, rng, y, viewPort, lastNode = root, tempElm;
- function removeNode(node, format) {
- var parentNode = node.parentNode, rootBlockElm;
+ rng = dom.createRng();
- if (format.block) {
- if (!forcedRootBlock) {
- function find(node, next, inc) {
- node = getNonWhiteSpaceSibling(node, next, inc);
+ if (root.hasChildNodes()) {
+ walker = new TreeWalker(root, root);
- return !node || (node.nodeName == 'BR' || isBlock(node));
- };
+ while (node = walker.current()) {
+ if (node.nodeType == 3) {
+ rng.setStart(node, 0);
+ rng.setEnd(node, 0);
+ break;
+ }
- // Append BR elements if needed before we remove the block
- if (isBlock(node) && !isBlock(parentNode)) {
- if (!find(node, FALSE) && !find(node.firstChild, TRUE, 1))
- node.insertBefore(dom.create('br'), node.firstChild);
+ if (nonEmptyElementsMap[node.nodeName.toLowerCase()]) {
+ rng.setStartBefore(node);
+ rng.setEndBefore(node);
+ break;
+ }
- if (!find(node, TRUE) && !find(node.lastChild, FALSE, 1))
- node.appendChild(dom.create('br'));
+ lastNode = node;
+ node = walker.next();
}
- } else {
- // Wrap the block in a forcedRootBlock if we are at the root of document
- if (parentNode == dom.getRoot()) {
- if (!format.list_block || !isEq(node, format.list_block)) {
- each(tinymce.grep(node.childNodes), function(node) {
- if (isValid(forcedRootBlock, node.nodeName.toLowerCase())) {
- if (!rootBlockElm)
- rootBlockElm = wrap(node, forcedRootBlock);
- else
- rootBlockElm.appendChild(node);
- } else
- rootBlockElm = 0;
- });
+
+ if (!node) {
+ rng.setStart(lastNode, 0);
+ rng.setEnd(lastNode, 0);
+ }
+ } else {
+ if (root.nodeName == 'BR') {
+ if (root.nextSibling && dom.isBlock(root.nextSibling)) {
+ // Trick on older IE versions to render the caret before the BR between two lists
+ if (!documentMode || documentMode < 9) {
+ tempElm = dom.create('br');
+ root.parentNode.insertBefore(tempElm, root);
+ }
+
+ rng.setStartBefore(root);
+ rng.setEndBefore(root);
+ } else {
+ rng.setStartAfter(root);
+ rng.setEndAfter(root);
}
+ } else {
+ rng.setStart(root, 0);
+ rng.setEnd(root, 0);
}
}
- }
- // Never remove nodes that isn't the specified inline element if a selector is specified too
- if (format.selector && format.inline && !isEq(format.inline, node))
- return;
+ selection.setRng(rng);
- dom.remove(node, 1);
- };
+ // Remove tempElm created for old IE:s
+ dom.remove(tempElm);
- function getNonWhiteSpaceSibling(node, next, inc) {
- if (node) {
- next = next ? 'nextSibling' : 'previousSibling';
+ viewPort = dom.getViewPort(editor.getWin());
- for (node = inc ? node : node[next]; node; node = node[next]) {
- if (node.nodeType == 1 || !isWhiteSpaceNode(node))
- return node;
+ // scrollIntoView seems to scroll the parent window in most browsers now including FF 3.0b4 so it's time to stop using it and do it our selfs
+ y = dom.getPos(root).y;
+ if (y < viewPort.y || y + 25 > viewPort.y + viewPort.h) {
+ editor.getWin().scrollTo(0, y < viewPort.y ? y : y - viewPort.h + 25); // Needs to be hardcoded to roughly one line of text if a huge text block is broken into two blocks
}
- }
- };
+ };
- function isBookmarkNode(node) {
- return node && node.nodeType == 1 && node.getAttribute('_mce_type') == 'bookmark';
- };
+ // Creates a new block element by cloning the current one or creating a new one if the name is specified
+ // This function will also copy any text formatting from the parent block and add it to the new one
+ function createNewBlock(name) {
+ var node = container, block, clonedNode, caretNode;
- function mergeSiblings(prev, next) {
- var marker, sibling, tmpSibling;
+ block = name || parentBlockName == "TABLE" ? dom.create(name || newBlockName) : parentBlock.cloneNode(false);
+ caretNode = block;
- function compareElements(node1, node2) {
- // Not the same name
- if (node1.nodeName != node2.nodeName)
- return FALSE;
+ // Clone any parent styles
+ if (settings.keep_styles !== false) {
+ do {
+ if (/^(SPAN|STRONG|B|EM|I|FONT|STRIKE|U)$/.test(node.nodeName)) {
+ // Never clone a caret containers
+ if (node.id == '_mce_caret') {
+ continue;
+ }
- function getAttribs(node) {
- var attribs = {};
+ clonedNode = node.cloneNode(false);
+ dom.setAttrib(clonedNode, 'id', ''); // Remove ID since it needs to be document unique
- each(dom.getAttribs(node), function(attr) {
- var name = attr.nodeName.toLowerCase();
+ if (block.hasChildNodes()) {
+ clonedNode.appendChild(block.firstChild);
+ block.appendChild(clonedNode);
+ } else {
+ caretNode = clonedNode;
+ block.appendChild(clonedNode);
+ }
+ }
+ } while (node = node.parentNode);
+ }
- // Don't compare internal attributes or style
- if (name.indexOf('_') !== 0 && name !== 'style')
- attribs[name] = dom.getAttrib(node, name);
- });
+ // BR is needed in empty blocks on non IE browsers
+ if (!tinymce.isIE) {
+ caretNode.innerHTML = '<br data-mce-bogus="1">';
+ }
- return attribs;
- };
+ return block;
+ };
- function compareObjects(obj1, obj2) {
- var value, name;
+ // Returns true/false if the caret is at the start/end of the parent block element
+ function isCaretAtStartOrEndOfBlock(start) {
+ var walker, node, name;
- for (name in obj1) {
- // Obj1 has item obj2 doesn't have
- if (obj1.hasOwnProperty(name)) {
- value = obj2[name];
+ // Caret is in the middle of a text node like "a|b"
+ if (container.nodeType == 3 && (start ? offset > 0 : offset < container.nodeValue.length)) {
+ return false;
+ }
- // Obj2 doesn't have obj1 item
- if (value === undefined)
- return FALSE;
+ // If after the last element in block node edge case for #5091
+ if (container.parentNode == parentBlock && isAfterLastNodeInContainer && !start) {
+ return true;
+ }
- // Obj2 item has a different value
- if (obj1[name] != value)
- return FALSE;
+ // If the caret if before the first element in parentBlock
+ if (start && container.nodeType == 1 && container == parentBlock.firstChild) {
+ return true;
+ }
- // Delete similar value
- delete obj2[name];
+ // Caret can be before/after a table
+ if (container.nodeName === "TABLE" || (container.previousSibling && container.previousSibling.nodeName == "TABLE")) {
+ return (isAfterLastNodeInContainer && !start) || (!isAfterLastNodeInContainer && start);
+ }
+
+ // Walk the DOM and look for text nodes or non empty elements
+ walker = new TreeWalker(container, parentBlock);
+
+ // If caret is in beginning or end of a text block then jump to the next/previous node
+ if (container.nodeType == 3) {
+ if (start && offset == 0) {
+ walker.prev();
+ } else if (!start && offset == container.nodeValue.length) {
+ walker.next();
+ }
+ }
+
+ while (node = walker.current()) {
+ if (node.nodeType === 1) {
+ // Ignore bogus elements
+ if (!node.getAttribute('data-mce-bogus')) {
+ // Keep empty elements like <img /> <input /> but not trailing br:s like <p>text|<br></p>
+ name = node.nodeName.toLowerCase();
+ if (nonEmptyElementsMap[name] && name !== 'br') {
+ return false;
+ }
}
+ } else if (node.nodeType === 3 && !/^[ \t\r\n]*$/.test(node.nodeValue)) {
+ return false;
}
- // Check if obj 2 has something obj 1 doesn't have
- for (name in obj2) {
- // Obj2 has item obj1 doesn't have
- if (obj2.hasOwnProperty(name))
- return FALSE;
+ if (start) {
+ walker.prev();
+ } else {
+ walker.next();
}
+ }
- return TRUE;
- };
+ return true;
+ };
- // Attribs are not the same
- if (!compareObjects(getAttribs(node1), getAttribs(node2)))
- return FALSE;
+ // Wraps any text nodes or inline elements in the specified forced root block name
+ function wrapSelfAndSiblingsInDefaultBlock(container, offset) {
+ var newBlock, parentBlock, startNode, node, next, blockName = newBlockName || 'P';
+
+ // Not in a block element or in a table cell or caption
+ parentBlock = dom.getParent(container, dom.isBlock);
+ if (!parentBlock || !canSplitBlock(parentBlock)) {
+ parentBlock = parentBlock || editableRoot;
+
+ if (!parentBlock.hasChildNodes()) {
+ newBlock = dom.create(blockName);
+ parentBlock.appendChild(newBlock);
+ rng.setStart(newBlock, 0);
+ rng.setEnd(newBlock, 0);
+ return newBlock;
+ }
- // Styles are not the same
- if (!compareObjects(dom.parseStyle(dom.getAttrib(node1, 'style')), dom.parseStyle(dom.getAttrib(node2, 'style'))))
- return FALSE;
+ // Find parent that is the first child of parentBlock
+ node = container;
+ while (node.parentNode != parentBlock) {
+ node = node.parentNode;
+ }
- return TRUE;
- };
+ // Loop left to find start node start wrapping at
+ while (node && !dom.isBlock(node)) {
+ startNode = node;
+ node = node.previousSibling;
+ }
- // Check if next/prev exists and that they are elements
- if (prev && next) {
- function findElementSibling(node, sibling_name) {
- for (sibling = node; sibling; sibling = sibling[sibling_name]) {
- if (sibling.nodeType == 3 && !isWhiteSpaceNode(sibling))
- return node;
+ if (startNode) {
+ newBlock = dom.create(blockName);
+ startNode.parentNode.insertBefore(newBlock, startNode);
- if (sibling.nodeType == 1 && !isBookmarkNode(sibling))
- return sibling;
+ // Start wrapping until we hit a block
+ node = startNode;
+ while (node && !dom.isBlock(node)) {
+ next = node.nextSibling;
+ newBlock.appendChild(node);
+ node = next;
+ }
+
+ // Restore range to it's past location
+ rng.setStart(container, offset);
+ rng.setEnd(container, offset);
}
+ }
- return node;
- };
+ return container;
+ };
- // If previous sibling is empty then jump over it
- prev = findElementSibling(prev, 'previousSibling');
- next = findElementSibling(next, 'nextSibling');
+ // Inserts a block or br before/after or in the middle of a split list of the LI is empty
+ function handleEmptyListItem() {
+ function isFirstOrLastLi(first) {
+ var node = containerBlock[first ? 'firstChild' : 'lastChild'];
- // Compare next and previous nodes
- if (compareElements(prev, next)) {
- // Append nodes between
- for (sibling = prev.nextSibling; sibling && sibling != next;) {
- tmpSibling = sibling;
- sibling = sibling.nextSibling;
- prev.appendChild(tmpSibling);
- }
+ // Find first/last element since there might be whitespace there
+ while (node) {
+ if (node.nodeType == 1) {
+ break;
+ }
- // Remove next node
- dom.remove(next);
+ node = node[first ? 'nextSibling' : 'previousSibling'];
+ }
- // Move children into prev node
- each(tinymce.grep(next.childNodes), function(node) {
- prev.appendChild(node);
- });
+ return node === parentBlock;
+ };
- return prev;
+ newBlock = newBlockName ? createNewBlock(newBlockName) : dom.create('BR');
+
+ if (isFirstOrLastLi(true) && isFirstOrLastLi()) {
+ // Is first and last list item then replace the OL/UL with a text block
+ dom.replace(newBlock, containerBlock);
+ } else if (isFirstOrLastLi(true)) {
+ // First LI in list then remove LI and add text block before list
+ containerBlock.parentNode.insertBefore(newBlock, containerBlock);
+ } else if (isFirstOrLastLi()) {
+ // Last LI in list then temove LI and add text block after list
+ dom.insertAfter(newBlock, containerBlock);
+ renderBlockOnIE(newBlock);
+ } else {
+ // Middle LI in list the split the list and insert a text block in the middle
+ // Extract after fragment and insert it after the current block
+ tmpRng = rng.cloneRange();
+ tmpRng.setStartAfter(parentBlock);
+ tmpRng.setEndAfter(containerBlock);
+ fragment = tmpRng.extractContents();
+ dom.insertAfter(fragment, containerBlock);
+ dom.insertAfter(newBlock, containerBlock);
}
- }
- return next;
- };
+ dom.remove(parentBlock);
+ moveToCaretPosition(newBlock);
+ undoManager.add();
+ };
- function isTextBlock(name) {
- return /^(h[1-6]|p|div|pre|address|dl|dt|dd)$/.test(name);
- };
+ // Walks the parent block to the right and look for BR elements
+ function hasRightSideBr() {
+ var walker = new TreeWalker(container, parentBlock), node;
- function getContainer(rng, start) {
- var container, offset, lastIdx;
+ while (node = walker.current()) {
+ if (node.nodeName == 'BR') {
+ return true;
+ }
- container = rng[start ? 'startContainer' : 'endContainer'];
- offset = rng[start ? 'startOffset' : 'endOffset'];
+ node = walker.next();
+ }
+ }
+
+ // Inserts a BR element if the forced_root_block option is set to false or empty string
+ function insertBr() {
+ var brElm, extraBr;
+
+ if (container && container.nodeType == 3 && offset >= container.nodeValue.length) {
+ // Insert extra BR element at the end block elements
+ if (!tinymce.isIE && !hasRightSideBr()) {
+ brElm = dom.create('br');
+ rng.insertNode(brElm);
+ rng.setStartAfter(brElm);
+ rng.setEndAfter(brElm);
+ extraBr = true;
+ }
+ }
- if (container.nodeType == 1) {
- lastIdx = container.childNodes.length - 1;
+ brElm = dom.create('br');
+ rng.insertNode(brElm);
- if (!start && offset)
- offset--;
+ // Rendering modes below IE8 doesn't display BR elements in PRE unless we have a \n before it
+ if (tinymce.isIE && parentBlockName == 'PRE' && (!documentMode || documentMode < 8)) {
+ brElm.parentNode.insertBefore(dom.doc.createTextNode('\r'), brElm);
+ }
- container = container.childNodes[offset > lastIdx ? lastIdx : offset];
- }
+ if (!extraBr) {
+ rng.setStartAfter(brElm);
+ rng.setEndAfter(brElm);
+ } else {
+ rng.setStartBefore(brElm);
+ rng.setEndBefore(brElm);
+ }
- return container;
- };
+ selection.setRng(rng);
+ undoManager.add();
+ };
- function performCaretAction(type, name, vars) {
- var i, currentPendingFormats = pendingFormats[type],
- otherPendingFormats = pendingFormats[type == 'apply' ? 'remove' : 'apply'];
+ // Trims any linebreaks at the beginning of node user for example when pressing enter in a PRE element
+ function trimLeadingLineBreaks(node) {
+ do {
+ if (node.nodeType === 3) {
+ node.nodeValue = node.nodeValue.replace(/^[\r\n]+/, '');
+ }
- function hasPending() {
- return pendingFormats.apply.length || pendingFormats.remove.length;
+ node = node.firstChild;
+ } while (node);
};
- function resetPending() {
- pendingFormats.apply = [];
- pendingFormats.remove = [];
+ function getEditableRoot(node) {
+ var root = dom.getRoot(), parent, editableRoot;
+
+ // Get all parents until we hit a non editable parent or the root
+ parent = node;
+ while (parent !== root && dom.getContentEditable(parent) !== "false") {
+ if (dom.getContentEditable(parent) === "true") {
+ editableRoot = parent;
+ }
+
+ parent = parent.parentNode;
+ }
+
+ return parent !== root ? editableRoot : root;
};
- function perform(caret_node) {
- // Apply pending formats
- each(pendingFormats.apply.reverse(), function(item) {
- apply(item.name, item.vars, caret_node);
- });
+ // Adds a BR at the end of blocks that only contains an IMG or INPUT since these might be floated and then they won't expand the block
+ function addBrToBlockIfNeeded(block) {
+ var lastChild;
- // Remove pending formats
- each(pendingFormats.remove.reverse(), function(item) {
- remove(item.name, item.vars, caret_node);
- });
+ // IE will render the blocks correctly other browsers needs a BR
+ if (!tinymce.isIE) {
+ block.normalize(); // Remove empty text nodes that got left behind by the extract
- dom.remove(caret_node, 1);
- resetPending();
+ // Check if the block is empty or contains a floated last child
+ lastChild = block.lastChild;
+ if (!lastChild || (/^(left|right)$/gi.test(dom.getStyle(lastChild, 'float', true)))) {
+ dom.add(block, 'br');
+ }
+ }
};
- // Check if it already exists then ignore it
- for (i = currentPendingFormats.length - 1; i >= 0; i--) {
- if (currentPendingFormats[i].name == name)
- return;
+ // Delete any selected contents
+ if (!rng.collapsed) {
+ editor.execCommand('Delete');
+ return;
}
- currentPendingFormats.push({name : name, vars : vars});
-
- // Check if it's in the other type, then remove it
- for (i = otherPendingFormats.length - 1; i >= 0; i--) {
- if (otherPendingFormats[i].name == name)
- otherPendingFormats.splice(i, 1);
+ // Event is blocked by some other handler for example the lists plugin
+ if (evt.isDefaultPrevented()) {
+ return;
}
- // Pending apply or remove formats
- if (hasPending()) {
- ed.getDoc().execCommand('FontName', false, 'mceinline');
- pendingFormats.lastRng = selection.getRng();
+ // Setup range items and newBlockName
+ container = rng.startContainer;
+ offset = rng.startOffset;
+ newBlockName = (settings.force_p_newlines ? 'p' : '') || settings.forced_root_block;
+ newBlockName = newBlockName ? newBlockName.toUpperCase() : '';
+ documentMode = dom.doc.documentMode;
+ shiftKey = evt.shiftKey;
+
+ // Resolve node index
+ if (container.nodeType == 1 && container.hasChildNodes()) {
+ isAfterLastNodeInContainer = offset > container.childNodes.length - 1;
+ container = container.childNodes[Math.min(offset, container.childNodes.length - 1)] || container;
+ if (isAfterLastNodeInContainer && container.nodeType == 3) {
+ offset = container.nodeValue.length;
+ } else {
+ offset = 0;
+ }
+ }
- // IE will convert the current word
- each(dom.select('font,span'), function(node) {
- var bookmark;
+ // Get editable root node normaly the body element but sometimes a div or span
+ editableRoot = getEditableRoot(container);
- if (isCaretNode(node)) {
- bookmark = selection.getBookmark();
- perform(node);
- selection.moveToBookmark(bookmark);
- ed.nodeChanged();
- }
- });
+ // If there is no editable root then enter is done inside a contentEditable false element
+ if (!editableRoot) {
+ return;
+ }
- // Only register listeners once if we need to
- if (!pendingFormats.isListening && hasPending()) {
- pendingFormats.isListening = true;
-
- each('onKeyDown,onKeyUp,onKeyPress,onMouseUp'.split(','), function(event) {
- ed[event].addToTop(function(ed, e) {
- // Do we have pending formats and is the selection moved has moved
- if (hasPending() && !tinymce.dom.RangeUtils.compareRanges(pendingFormats.lastRng, selection.getRng())) {
- each(dom.select('font,span'), function(node) {
- var textNode, rng;
-
- // Look for marker
- if (isCaretNode(node)) {
- textNode = node.firstChild;
-
- if (textNode) {
- perform(node);
-
- rng = dom.createRng();
- rng.setStart(textNode, textNode.nodeValue.length);
- rng.setEnd(textNode, textNode.nodeValue.length);
- selection.setRng(rng);
- ed.nodeChanged();
- } else
- dom.remove(node);
- }
- });
+ undoManager.beforeChange();
- // Always unbind and clear pending styles on keyup
- if (e.type == 'keyup' || e.type == 'mouseup')
- resetPending();
- }
- });
- });
+ // If editable root isn't block nor the root of the editor
+ if (!dom.isBlock(editableRoot) && editableRoot != dom.getRoot()) {
+ if (!newBlockName || shiftKey) {
+ insertBr();
}
+
+ return;
}
- };
- };
-})(tinymce);
-tinymce.onAddEditor.add(function(tinymce, ed) {
- var filters, fontSizes, dom, settings = ed.settings;
+ // Wrap the current node and it's sibling in a default block if it's needed.
+ // for example this <td>text|<b>text2</b></td> will become this <td><p>text|<b>text2</p></b></td>
+ // This won't happen if root blocks are disabled or the shiftKey is pressed
+ if ((newBlockName && !shiftKey) || (!newBlockName && shiftKey)) {
+ container = wrapSelfAndSiblingsInDefaultBlock(container, offset);
+ }
- if (settings.inline_styles) {
- fontSizes = tinymce.explode(settings.font_size_style_values);
+ // Find parent block and setup empty block paddings
+ parentBlock = dom.getParent(container, dom.isBlock);
+ containerBlock = parentBlock ? dom.getParent(parentBlock.parentNode, dom.isBlock) : null;
- function replaceWithSpan(node, styles) {
- tinymce.each(styles, function(value, name) {
- if (value)
- dom.setStyle(node, name, value);
- });
+ // Setup block names
+ parentBlockName = parentBlock ? parentBlock.nodeName.toUpperCase() : ''; // IE < 9 & HTML5
+ containerBlockName = containerBlock ? containerBlock.nodeName.toUpperCase() : ''; // IE < 9 & HTML5
- dom.rename(node, 'span');
- };
+ // Enter inside block contained within a LI then split or insert before/after LI
+ if (containerBlockName == 'LI' && !evt.ctrlKey) {
+ parentBlock = containerBlock;
+ parentBlockName = containerBlockName;
+ }
- filters = {
- font : function(dom, node) {
- replaceWithSpan(node, {
- backgroundColor : node.style.backgroundColor,
- color : node.color,
- fontFamily : node.face,
- fontSize : fontSizes[parseInt(node.size) - 1]
- });
- },
+ // Handle enter in LI
+ if (parentBlockName == 'LI') {
+ if (!newBlockName && shiftKey) {
+ insertBr();
+ return;
+ }
- u : function(dom, node) {
- replaceWithSpan(node, {
- textDecoration : 'underline'
- });
- },
+ // Handle enter inside an empty list item
+ if (dom.isEmpty(parentBlock)) {
+ // Let the list plugin or browser handle nested lists for now
+ if (/^(UL|OL|LI)$/.test(containerBlock.parentNode.nodeName)) {
+ return false;
+ }
- strike : function(dom, node) {
- replaceWithSpan(node, {
- textDecoration : 'line-through'
- });
+ handleEmptyListItem();
+ return;
+ }
}
- };
- function convert(editor, params) {
- dom = editor.dom;
-
- if (settings.convert_fonts_to_spans) {
- tinymce.each(dom.select('font,u,strike', params.node), function(node) {
- filters[node.nodeName.toLowerCase()](ed.dom, node);
- });
+ // Don't split PRE tags but insert a BR instead easier when writing code samples etc
+ if (parentBlockName == 'PRE' && settings.br_in_pre !== false) {
+ if (!shiftKey) {
+ insertBr();
+ return;
+ }
+ } else {
+ // If no root block is configured then insert a BR by default or if the shiftKey is pressed
+ if ((!newBlockName && !shiftKey && parentBlockName != 'LI') || (newBlockName && shiftKey)) {
+ insertBr();
+ return;
+ }
}
- };
- ed.onPreProcess.add(convert);
+ // Default block name if it's not configured
+ newBlockName = newBlockName || 'P';
- ed.onInit.add(function() {
- ed.selection.onSetContent.add(convert);
+ // Insert new block before/after the parent block depending on caret location
+ if (isCaretAtStartOrEndOfBlock()) {
+ // If the caret is at the end of a header we produce a P tag after it similar to Word unless we are in a hgroup
+ if (/^(H[1-6]|PRE)$/.test(parentBlockName) && containerBlockName != 'HGROUP') {
+ newBlock = createNewBlock(newBlockName);
+ } else {
+ newBlock = createNewBlock();
+ }
+
+ // Split the current container block element if enter is pressed inside an empty inner block element
+ if (settings.end_container_on_empty_block && canSplitBlock(containerBlock) && dom.isEmpty(parentBlock)) {
+ // Split container block for example a BLOCKQUOTE at the current blockParent location for example a P
+ newBlock = dom.split(containerBlock, parentBlock);
+ } else {
+ dom.insertAfter(newBlock, parentBlock);
+ }
+
+ moveToCaretPosition(newBlock);
+ } else if (isCaretAtStartOrEndOfBlock(true)) {
+ // Insert new block before
+ newBlock = parentBlock.parentNode.insertBefore(createNewBlock(), parentBlock);
+ renderBlockOnIE(newBlock);
+ } else {
+ // Extract after fragment and insert it after the current block
+ tmpRng = rng.cloneRange();
+ tmpRng.setEndAfter(parentBlock);
+ fragment = tmpRng.extractContents();
+ trimLeadingLineBreaks(fragment);
+ newBlock = fragment.firstChild;
+ dom.insertAfter(fragment, parentBlock);
+ trimInlineElementsOnLeftSideOfBlock(newBlock);
+ addBrToBlockIfNeeded(parentBlock);
+ moveToCaretPosition(newBlock);
+ }
+
+ dom.setAttrib(newBlock, 'id', ''); // Remove ID since it needs to be document unique
+ undoManager.add();
+ }
+
+ editor.onKeyDown.add(function(ed, evt) {
+ if (evt.keyCode == 13) {
+ if (handleEnterKey(evt) !== false) {
+ evt.preventDefault();
+ }
+ }
});
- }
-});
+ };
+})(tinymce);
diff --git a/chrome/content/zotero/tinymce/tiny_mce_popup.js b/chrome/content/zotero/tinymce/tiny_mce_popup.js
@@ -2,4 +2,4 @@
// Uncomment and change this document.domain value if you are loading the script cross subdomains
// document.domain = 'moxiecode.com';
-var tinymce=null,tinyMCEPopup,tinyMCE;tinyMCEPopup={init:function(){var b=this,a,c;a=b.getWin();tinymce=a.tinymce;tinyMCE=a.tinyMCE;b.editor=tinymce.EditorManager.activeEditor;b.params=b.editor.windowManager.params;b.features=b.editor.windowManager.features;b.dom=b.editor.windowManager.createInstance("tinymce.dom.DOMUtils",document);if(b.features.popup_css!==false){b.dom.loadCSS(b.features.popup_css||b.editor.settings.popup_css)}b.listeners=[];b.onInit={add:function(e,d){b.listeners.push({func:e,scope:d})}};b.isWindow=!b.getWindowArg("mce_inline");b.id=b.getWindowArg("mce_window_id");b.editor.windowManager.onOpen.dispatch(b.editor.windowManager,window)},getWin:function(){return(!window.frameElement&&window.dialogArguments)||opener||parent||top},getWindowArg:function(c,b){var a=this.params[c];return tinymce.is(a)?a:b},getParam:function(b,a){return this.editor.getParam(b,a)},getLang:function(b,a){return this.editor.getLang(b,a)},execCommand:function(d,c,e,b){b=b||{};b.skip_focus=1;this.restoreSelection();return this.editor.execCommand(d,c,e,b)},resizeToInnerSize:function(){var a=this;setTimeout(function(){var b=a.dom.getViewPort(window);a.editor.windowManager.resizeBy(a.getWindowArg("mce_width")-b.w,a.getWindowArg("mce_height")-b.h,a.id||window)},0)},executeOnLoad:function(s){this.onInit.add(function(){eval(s)})},storeSelection:function(){this.editor.windowManager.bookmark=tinyMCEPopup.editor.selection.getBookmark(1)},restoreSelection:function(){var a=tinyMCEPopup;if(!a.isWindow&&tinymce.isIE){a.editor.selection.moveToBookmark(a.editor.windowManager.bookmark)}},requireLangPack:function(){var b=this,a=b.getWindowArg("plugin_url")||b.getWindowArg("theme_url");if(a&&b.editor.settings.language&&b.features.translate_i18n!==false){a+="/langs/"+b.editor.settings.language+"_dlg.js";if(!tinymce.ScriptLoader.isDone(a)){document.write('<script type="text/javascript" src="'+tinymce._addVer(a)+'"><\/script>');tinymce.ScriptLoader.markDone(a)}}},pickColor:function(b,a){this.execCommand("mceColorPicker",true,{color:document.getElementById(a).value,func:function(e){document.getElementById(a).value=e;try{document.getElementById(a).onchange()}catch(d){}}})},openBrowser:function(a,c,b){tinyMCEPopup.restoreSelection();this.editor.execCallback("file_browser_callback",a,document.getElementById(a).value,c,window)},confirm:function(b,a,c){this.editor.windowManager.confirm(b,a,c,window)},alert:function(b,a,c){this.editor.windowManager.alert(b,a,c,window)},close:function(){var a=this;function b(){a.editor.windowManager.close(window);tinymce=tinyMCE=a.editor=a.params=a.dom=a.dom.doc=null}if(tinymce.isOpera){a.getWin().setTimeout(b,0)}else{b()}},_restoreSelection:function(){var a=window.event.srcElement;if(a.nodeName=="INPUT"&&(a.type=="submit"||a.type=="button")){tinyMCEPopup.restoreSelection()}},_onDOMLoaded:function(){var b=tinyMCEPopup,d=document.title,e,c,a;if(b.domLoaded){return}b.domLoaded=1;if(b.features.translate_i18n!==false){c=document.body.innerHTML;if(tinymce.isIE){c=c.replace(/ (value|title|alt)=([^"][^\s>]+)/gi,' $1="$2"')}document.dir=b.editor.getParam("directionality","");if((a=b.editor.translate(c))&&a!=c){document.body.innerHTML=a}if((a=b.editor.translate(d))&&a!=d){document.title=d=a}}document.body.style.display="";if(tinymce.isIE){document.attachEvent("onmouseup",tinyMCEPopup._restoreSelection);b.dom.add(b.dom.select("head")[0],"base",{target:"_self"})}b.restoreSelection();b.resizeToInnerSize();if(!b.isWindow){b.editor.windowManager.setTitle(window,d)}else{window.focus()}if(!tinymce.isIE&&!b.isWindow){tinymce.dom.Event._add(document,"focus",function(){b.editor.windowManager.focus(b.id)})}tinymce.each(b.dom.select("select"),function(f){f.onkeydown=tinyMCEPopup._accessHandler});tinymce.each(b.listeners,function(f){f.func.call(f.scope,b.editor)});if(b.getWindowArg("mce_auto_focus",true)){window.focus();tinymce.each(document.forms,function(g){tinymce.each(g.elements,function(f){if(b.dom.hasClass(f,"mceFocus")&&!f.disabled){f.focus();return false}})})}document.onkeyup=tinyMCEPopup._closeWinKeyHandler},_accessHandler:function(a){a=a||window.event;if(a.keyCode==13||a.keyCode==32){a=a.target||a.srcElement;if(a.onchange){a.onchange()}return tinymce.dom.Event.cancel(a)}},_closeWinKeyHandler:function(a){a=a||window.event;if(a.keyCode==27){tinyMCEPopup.close()}},_wait:function(){if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);tinyMCEPopup._onDOMLoaded()}});if(document.documentElement.doScroll&&window==window.top){(function(){if(tinyMCEPopup.domLoaded){return}try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}tinyMCEPopup._onDOMLoaded()})()}document.attachEvent("onload",tinyMCEPopup._onDOMLoaded)}else{if(document.addEventListener){window.addEventListener("DOMContentLoaded",tinyMCEPopup._onDOMLoaded,false);window.addEventListener("load",tinyMCEPopup._onDOMLoaded,false)}}}};tinyMCEPopup.init();tinyMCEPopup._wait();
-\ No newline at end of file
+var tinymce=null,tinyMCEPopup,tinyMCE;tinyMCEPopup={init:function(){var b=this,a,c;a=b.getWin();tinymce=a.tinymce;tinyMCE=a.tinyMCE;b.editor=tinymce.EditorManager.activeEditor;b.params=b.editor.windowManager.params;b.features=b.editor.windowManager.features;b.dom=b.editor.windowManager.createInstance("tinymce.dom.DOMUtils",document,{ownEvents:true,proxy:tinyMCEPopup._eventProxy});b.dom.bind(window,"ready",b._onDOMLoaded,b);if(b.features.popup_css!==false){b.dom.loadCSS(b.features.popup_css||b.editor.settings.popup_css)}b.listeners=[];b.onInit={add:function(e,d){b.listeners.push({func:e,scope:d})}};b.isWindow=!b.getWindowArg("mce_inline");b.id=b.getWindowArg("mce_window_id");b.editor.windowManager.onOpen.dispatch(b.editor.windowManager,window)},getWin:function(){return(!window.frameElement&&window.dialogArguments)||opener||parent||top},getWindowArg:function(c,b){var a=this.params[c];return tinymce.is(a)?a:b},getParam:function(b,a){return this.editor.getParam(b,a)},getLang:function(b,a){return this.editor.getLang(b,a)},execCommand:function(d,c,e,b){b=b||{};b.skip_focus=1;this.restoreSelection();return this.editor.execCommand(d,c,e,b)},resizeToInnerSize:function(){var a=this;setTimeout(function(){var b=a.dom.getViewPort(window);a.editor.windowManager.resizeBy(a.getWindowArg("mce_width")-b.w,a.getWindowArg("mce_height")-b.h,a.id||window)},10)},executeOnLoad:function(s){this.onInit.add(function(){eval(s)})},storeSelection:function(){this.editor.windowManager.bookmark=tinyMCEPopup.editor.selection.getBookmark(1)},restoreSelection:function(){var a=tinyMCEPopup;if(!a.isWindow&&tinymce.isIE){a.editor.selection.moveToBookmark(a.editor.windowManager.bookmark)}},requireLangPack:function(){var b=this,a=b.getWindowArg("plugin_url")||b.getWindowArg("theme_url");if(a&&b.editor.settings.language&&b.features.translate_i18n!==false&&b.editor.settings.language_load!==false){a+="/langs/"+b.editor.settings.language+"_dlg.js";if(!tinymce.ScriptLoader.isDone(a)){document.write('<script type="text/javascript" src="'+tinymce._addVer(a)+'"><\/script>');tinymce.ScriptLoader.markDone(a)}}},pickColor:function(b,a){this.execCommand("mceColorPicker",true,{color:document.getElementById(a).value,func:function(e){document.getElementById(a).value=e;try{document.getElementById(a).onchange()}catch(d){}}})},openBrowser:function(a,c,b){tinyMCEPopup.restoreSelection();this.editor.execCallback("file_browser_callback",a,document.getElementById(a).value,c,window)},confirm:function(b,a,c){this.editor.windowManager.confirm(b,a,c,window)},alert:function(b,a,c){this.editor.windowManager.alert(b,a,c,window)},close:function(){var a=this;function b(){a.editor.windowManager.close(window);tinymce=tinyMCE=a.editor=a.params=a.dom=a.dom.doc=null}if(tinymce.isOpera){a.getWin().setTimeout(b,0)}else{b()}},_restoreSelection:function(){var a=window.event.srcElement;if(a.nodeName=="INPUT"&&(a.type=="submit"||a.type=="button")){tinyMCEPopup.restoreSelection()}},_onDOMLoaded:function(){var b=tinyMCEPopup,d=document.title,e,c,a;if(b.features.translate_i18n!==false){c=document.body.innerHTML;if(tinymce.isIE){c=c.replace(/ (value|title|alt)=([^"][^\s>]+)/gi,' $1="$2"')}document.dir=b.editor.getParam("directionality","");if((a=b.editor.translate(c))&&a!=c){document.body.innerHTML=a}if((a=b.editor.translate(d))&&a!=d){document.title=d=a}}if(!b.editor.getParam("browser_preferred_colors",false)||!b.isWindow){b.dom.addClass(document.body,"forceColors")}document.body.style.display="";if(tinymce.isIE){document.attachEvent("onmouseup",tinyMCEPopup._restoreSelection);b.dom.add(b.dom.select("head")[0],"base",{target:"_self"})}b.restoreSelection();b.resizeToInnerSize();if(!b.isWindow){b.editor.windowManager.setTitle(window,d)}else{window.focus()}if(!tinymce.isIE&&!b.isWindow){b.dom.bind(document,"focus",function(){b.editor.windowManager.focus(b.id)})}tinymce.each(b.dom.select("select"),function(f){f.onkeydown=tinyMCEPopup._accessHandler});tinymce.each(b.listeners,function(f){f.func.call(f.scope,b.editor)});if(b.getWindowArg("mce_auto_focus",true)){window.focus();tinymce.each(document.forms,function(g){tinymce.each(g.elements,function(f){if(b.dom.hasClass(f,"mceFocus")&&!f.disabled){f.focus();return false}})})}document.onkeyup=tinyMCEPopup._closeWinKeyHandler},_accessHandler:function(a){a=a||window.event;if(a.keyCode==13||a.keyCode==32){var b=a.target||a.srcElement;if(b.onchange){b.onchange()}return tinymce.dom.Event.cancel(a)}},_closeWinKeyHandler:function(a){a=a||window.event;if(a.keyCode==27){tinyMCEPopup.close()}},_eventProxy:function(a){return function(b){tinyMCEPopup.dom.events.callNativeHandler(a,b)}}};tinyMCEPopup.init();
+\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/utils/editable_selects.js b/chrome/content/zotero/tinymce/utils/editable_selects.js
@@ -16,7 +16,7 @@ var TinyMCE_EditableSelects = {
for (i=0; i<nl.length; i++) {
if (nl[i].className.indexOf('mceEditableSelect') != -1) {
- o = new Option('(value)', '__mce_add_custom__');
+ o = new Option(tinyMCEPopup.editor.translate('value'), '__mce_add_custom__');
o.className = 'mceAddSelectValue';
diff --git a/chrome/content/zotero/tinymce/utils/form_utils.js b/chrome/content/zotero/tinymce/utils/form_utils.js
@@ -11,10 +11,14 @@
var themeBaseURL = tinyMCEPopup.editor.baseURI.toAbsolute('themes/' + tinyMCEPopup.getParam("theme"));
function getColorPickerHTML(id, target_form_element) {
- var h = "";
+ var h = "", dom = tinyMCEPopup.dom;
- h += '<a id="' + id + '_link" href="javascript:;" onclick="tinyMCEPopup.pickColor(event,\'' + target_form_element +'\');" onmousedown="return false;" class="pickcolor">';
- h += '<span id="' + id + '" title="' + tinyMCEPopup.getLang('browse') + '"> </span></a>';
+ if (label = dom.select('label[for=' + target_form_element + ']')[0]) {
+ label.id = label.id || dom.uniqueId();
+ }
+
+ h += '<a role="button" aria-labelledby="' + id + '_label" id="' + id + '_link" href="javascript:;" onclick="tinyMCEPopup.pickColor(event,\'' + target_form_element +'\');" onmousedown="return false;" class="pickcolor">';
+ h += '<span id="' + id + '" title="' + tinyMCEPopup.getLang('browse') + '"> <span id="' + id + '_label" class="mceVoiceLabel mceIconOnly" style="display:none;">' + tinyMCEPopup.getLang('browse') + '</span></span></a>';
return h;
}
@@ -67,6 +71,9 @@ function selectByValue(form_obj, field_name, value, add_custom, ignore_case) {
if (!form_obj || !form_obj.elements[field_name])
return;
+ if (!value)
+ value = "";
+
var sel = form_obj.elements[field_name];
var found = false;
@@ -171,7 +178,7 @@ function convertHexToRGB(col) {
}
function trimSize(size) {
- return size.replace(/([0-9\.]+)px|(%|in|cm|mm|em|ex|pt|pc)/, '$1$2');
+ return size.replace(/([0-9\.]+)(px|%|in|cm|mm|em|ex|pt|pc)/i, '$1$2');
}
function getCSSSize(size) {
@@ -183,6 +190,9 @@ function getCSSSize(size) {
// Add px
if (/^[0-9]+$/.test(size))
size += 'px';
+ // Sanity check, IE doesn't like broken values
+ else if (!(/^[0-9\.]+(px|%|in|cm|mm|em|ex|pt|pc)$/i.test(size)))
+ return "";
return size;
}
diff --git a/chrome/content/zotero/tinymce/utils/mctabs.js b/chrome/content/zotero/tinymce/utils/mctabs.js
@@ -10,6 +10,7 @@
function MCTabs() {
this.settings = [];
+ this.onChange = tinyMCEPopup.editor.windowManager.createInstance('tinymce.util.Dispatcher');
};
MCTabs.prototype.init = function(settings) {
@@ -28,26 +29,62 @@ MCTabs.prototype.getParam = function(name, default_value) {
return value;
};
-MCTabs.prototype.displayTab = function(tab_id, panel_id) {
- var panelElm, panelContainerElm, tabElm, tabContainerElm, selectionClass, nodes, i;
+MCTabs.prototype.showTab =function(tab){
+ tab.className = 'current';
+ tab.setAttribute("aria-selected", true);
+ tab.setAttribute("aria-expanded", true);
+ tab.tabIndex = 0;
+};
+
+MCTabs.prototype.hideTab =function(tab){
+ var t=this;
+
+ tab.className = '';
+ tab.setAttribute("aria-selected", false);
+ tab.setAttribute("aria-expanded", false);
+ tab.tabIndex = -1;
+};
+
+MCTabs.prototype.showPanel = function(panel) {
+ panel.className = 'current';
+ panel.setAttribute("aria-hidden", false);
+};
+
+MCTabs.prototype.hidePanel = function(panel) {
+ panel.className = 'panel';
+ panel.setAttribute("aria-hidden", true);
+};
+
+MCTabs.prototype.getPanelForTab = function(tabElm) {
+ return tinyMCEPopup.dom.getAttrib(tabElm, "aria-controls");
+};
+
+MCTabs.prototype.displayTab = function(tab_id, panel_id, avoid_focus) {
+ var panelElm, panelContainerElm, tabElm, tabContainerElm, selectionClass, nodes, i, t = this;
+
+ tabElm = document.getElementById(tab_id);
+
+ if (panel_id === undefined) {
+ panel_id = t.getPanelForTab(tabElm);
+ }
panelElm= document.getElementById(panel_id);
panelContainerElm = panelElm ? panelElm.parentNode : null;
- tabElm = document.getElementById(tab_id);
tabContainerElm = tabElm ? tabElm.parentNode : null;
- selectionClass = this.getParam('selection_class', 'current');
+ selectionClass = t.getParam('selection_class', 'current');
if (tabElm && tabContainerElm) {
nodes = tabContainerElm.childNodes;
// Hide all other tabs
for (i = 0; i < nodes.length; i++) {
- if (nodes[i].nodeName == "LI")
- nodes[i].className = '';
+ if (nodes[i].nodeName == "LI") {
+ t.hideTab(nodes[i]);
+ }
}
// Show selected tab
- tabElm.className = 'current';
+ t.showTab(tabElm);
}
if (panelElm && panelContainerElm) {
@@ -56,11 +93,15 @@ MCTabs.prototype.displayTab = function(tab_id, panel_id) {
// Hide all other panels
for (i = 0; i < nodes.length; i++) {
if (nodes[i].nodeName == "DIV")
- nodes[i].className = 'panel';
+ t.hidePanel(nodes[i]);
+ }
+
+ if (!avoid_focus) {
+ tabElm.focus();
}
// Show selected panel
- panelElm.className = 'current';
+ t.showPanel(panelElm);
}
};
@@ -73,5 +114,49 @@ MCTabs.prototype.getAnchor = function() {
return "";
};
-// Global instance
+
+//Global instance
var mcTabs = new MCTabs();
+
+tinyMCEPopup.onInit.add(function() {
+ var tinymce = tinyMCEPopup.getWin().tinymce, dom = tinyMCEPopup.dom, each = tinymce.each;
+
+ each(dom.select('div.tabs'), function(tabContainerElm) {
+ var keyNav;
+
+ dom.setAttrib(tabContainerElm, "role", "tablist");
+
+ var items = tinyMCEPopup.dom.select('li', tabContainerElm);
+ var action = function(id) {
+ mcTabs.displayTab(id, mcTabs.getPanelForTab(id));
+ mcTabs.onChange.dispatch(id);
+ };
+
+ each(items, function(item) {
+ dom.setAttrib(item, 'role', 'tab');
+ dom.bind(item, 'click', function(evt) {
+ action(item.id);
+ });
+ });
+
+ dom.bind(dom.getRoot(), 'keydown', function(evt) {
+ if (evt.keyCode === 9 && evt.ctrlKey && !evt.altKey) { // Tab
+ keyNav.moveFocus(evt.shiftKey ? -1 : 1);
+ tinymce.dom.Event.cancel(evt);
+ }
+ });
+
+ each(dom.select('a', tabContainerElm), function(a) {
+ dom.setAttrib(a, 'tabindex', '-1');
+ });
+
+ keyNav = tinyMCEPopup.editor.windowManager.createInstance('tinymce.ui.KeyboardNavigation', {
+ root: tabContainerElm,
+ items: items,
+ onAction: action,
+ actOnFocus: true,
+ enableLeftRight: true,
+ enableUpDown: true
+ }, tinyMCEPopup.dom);
+ });
+});
+\ No newline at end of file
diff --git a/chrome/content/zotero/tinymce/utils/validate.js b/chrome/content/zotero/tinymce/utils/validate.js
@@ -32,7 +32,7 @@ var Validator = {
},
isSize : function(s) {
- return this.test(s, '^[0-9]+(%|in|cm|mm|em|ex|pt|pc|px)?$');
+ return this.test(s, '^[0-9.]+(%|in|cm|mm|em|ex|pt|pc|px)?$');
},
isId : function(s) {
@@ -96,8 +96,10 @@ var AutoValidator = {
var i, nl, s = this.settings, c = 0;
nl = this.tags(f, 'label');
- for (i=0; i<nl.length; i++)
+ for (i=0; i<nl.length; i++) {
this.removeClass(nl[i], s.invalid_cls);
+ nl[i].setAttribute('aria-invalid', false);
+ }
c += this.validateElms(f, 'input');
c += this.validateElms(f, 'select');
@@ -109,6 +111,33 @@ var AutoValidator = {
invalidate : function(n) {
this.mark(n.form, n);
},
+
+ getErrorMessages : function(f) {
+ var nl, i, s = this.settings, field, msg, values, messages = [], ed = tinyMCEPopup.editor;
+ nl = this.tags(f, "label");
+ for (i=0; i<nl.length; i++) {
+ if (this.hasClass(nl[i], s.invalid_cls)) {
+ field = document.getElementById(nl[i].getAttribute("for"));
+ values = { field: nl[i].textContent };
+ if (this.hasClass(field, s.min_cls, true)) {
+ message = ed.getLang('invalid_data_min');
+ values.min = this.getNum(field, s.min_cls);
+ } else if (this.hasClass(field, s.number_cls)) {
+ message = ed.getLang('invalid_data_number');
+ } else if (this.hasClass(field, s.size_cls)) {
+ message = ed.getLang('invalid_data_size');
+ } else {
+ message = ed.getLang('invalid_data');
+ }
+
+ message = message.replace(/{\#([^}]+)\}/g, function(a, b) {
+ return values[b] || '{#' + b + '}';
+ });
+ messages.push(message);
+ }
+ }
+ return messages;
+ },
reset : function(e) {
var t = ['label', 'input', 'select', 'textarea'];
@@ -119,8 +148,10 @@ var AutoValidator = {
for (i=0; i<t.length; i++) {
nl = this.tags(e.form ? e.form : e, t[i]);
- for (j=0; j<nl.length; j++)
+ for (j=0; j<nl.length; j++) {
this.removeClass(nl[j], s.invalid_cls);
+ nl[j].setAttribute('aria-invalid', false);
+ }
}
},
@@ -201,6 +232,7 @@ var AutoValidator = {
var s = this.settings;
this.addClass(n, s.invalid_cls);
+ n.setAttribute('aria-invalid', 'true');
this.markLabels(f, n, s.invalid_cls);
return false;