diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-06-27 16:58:53 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-06-27 16:58:53 +0200 |
| commit | 420506e58fdfc84f1a5bede0a01dedf0af3bb4f3 (patch) | |
| tree | 57726b40e8aa9ccf80f874f39d3facefc0331420 /public/javascripts/tiny_mce/plugins/xhtmlxtras | |
| parent | 241d5e91b2b6716e2861cc77d319c3d3568343a8 (diff) | |
Stage 7: Rails 7.2 → 8.1 on Ruby 3.2.11
- Bump Rails to 8.1.3 (Ruby unchanged at 3.2.11, new gemset rails8-upgrade)
- config.load_defaults 8.1; merge app:update diffs for all environment files
- Remove routing-filter 0.7.0; replace with native scope '(:locale)' in
routes.rb and default_url_options in ApplicationController
- Delete config/initializers/routing_filter_rails71_patch.rb
- Replace vendored TinyMCE 3.x (~200 files) with tinymce-rails ~> 8.3;
migrate admin_interface.js from jQuery .tinymce()/advanced theme to
tinymce.init(); add config/tinymce.yml; note: TinyMCE 7+ is GPL
- rails-i18n ~> 8.0 added explicitly (previously indirect dependency)
- awesome_nested_set, acts-as-taggable-on pinned to git main/master
(gemspec activerecord < 8.1 ceiling; no functional incompatibility;
repin to version once upstream releases updated gemspecs)
- globalize ~> 7.0, libxml-ruby ~> 5.0, nokogiri ~> 1.18, pg ~> 1.5
- sass-rails, coffee-rails, uglifier moved from :assets group to main
(Sprockets 4 convention; :assets group no longer meaningful)
- Node: head, draft, lock_owner marked belongs_to optional: true
- Page: node, user, editor marked belongs_to optional: true
- Static assets in public/images/ and public/javascripts/ referenced via
plain HTML tags; Rails 8 load_defaults raises on pipeline helpers for
undeclared assets
- sessions_controller_test.rb: remove stale require and dead rescue_action
- users_controller_test.rb: assert button[type=submit] not input[type=submit]
(Rails 8 button_to renders <button> not <input>)
- test_helper.rb: node.reload after children.create! (awesome_nested_set
3.9.0 does not refresh parent in memory after callback)
- 129 runs, 339 assertions, 3 failures, 0 errors — identical baseline to 7.2
Diffstat (limited to 'public/javascripts/tiny_mce/plugins/xhtmlxtras')
18 files changed, 0 insertions, 1672 deletions
diff --git a/public/javascripts/tiny_mce/plugins/xhtmlxtras/abbr.htm b/public/javascripts/tiny_mce/plugins/xhtmlxtras/abbr.htm deleted file mode 100644 index 3928a17..0000000 --- a/public/javascripts/tiny_mce/plugins/xhtmlxtras/abbr.htm +++ /dev/null | |||
| @@ -1,148 +0,0 @@ | |||
| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
| 3 | <head> | ||
| 4 | <title>{#xhtmlxtras_dlg.title_abbr_element}</title> | ||
| 5 | <script type="text/javascript" src="../../tiny_mce_popup.js"></script> | ||
| 6 | <script type="text/javascript" src="../../utils/mctabs.js"></script> | ||
| 7 | <script type="text/javascript" src="../../utils/form_utils.js"></script> | ||
| 8 | <script type="text/javascript" src="../../utils/editable_selects.js"></script> | ||
| 9 | <script type="text/javascript" src="js/element_common.js"></script> | ||
| 10 | <script type="text/javascript" src="js/abbr.js"></script> | ||
| 11 | <link rel="stylesheet" type="text/css" href="css/popup.css" /> | ||
| 12 | </head> | ||
| 13 | <body style="display: none"> | ||
| 14 | <form onsubmit="insertAbbr();return false;" action="#"> | ||
| 15 | <div class="tabs"> | ||
| 16 | <ul> | ||
| 17 | <li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.general_tab}</a></span></li> | ||
| 18 | <!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.events_tab}</a></span></li> --> | ||
| 19 | </ul> | ||
| 20 | </div> | ||
| 21 | |||
| 22 | <div class="panel_wrapper"> | ||
| 23 | <div id="general_panel" class="panel current"> | ||
| 24 | <fieldset> | ||
| 25 | <legend>{#xhtmlxtras_dlg.fieldset_attrib_tab}</legend> | ||
| 26 | <table border="0" cellpadding="0" cellspacing="4"> | ||
| 27 | <tr> | ||
| 28 | <td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td> | ||
| 29 | <td><input id="title" name="title" type="text" value="" class="field mceFocus" /></td> | ||
| 30 | </tr> | ||
| 31 | <tr> | ||
| 32 | <td class="label"><label id="idlabel" for="id">{#xhtmlxtras_dlg.attribute_label_id}</label>:</td> | ||
| 33 | <td><input id="id" name="id" type="text" value="" class="field" /></td> | ||
| 34 | </tr> | ||
| 35 | <tr> | ||
| 36 | <td class="label"><label id="classlabel" for="class">{#xhtmlxtras_dlg.attribute_label_class}</label>:</td> | ||
| 37 | <td> | ||
| 38 | <select id="class" name="class" class="field mceEditableSelect"> | ||
| 39 | <option value="">{#not_set}</option> | ||
| 40 | </select> | ||
| 41 | </td> | ||
| 42 | </tr> | ||
| 43 | <tr> | ||
| 44 | <td class="label"><label id="stylelabel" for="class">{#xhtmlxtras_dlg.attribute_label_style}</label>:</td> | ||
| 45 | <td><input id="style" name="style" type="text" value="" class="field" /></td> | ||
| 46 | </tr> | ||
| 47 | <tr> | ||
| 48 | <td class="label"><label id="dirlabel" for="dir">{#xhtmlxtras_dlg.attribute_label_langdir}</label>:</td> | ||
| 49 | <td> | ||
| 50 | <select id="dir" name="dir" class="field"> | ||
| 51 | <option value="">{#not_set}</option> | ||
| 52 | <option value="ltr">{#xhtmlxtras_dlg.attribute_option_ltr}</option> | ||
| 53 | <option value="rtl">{#xhtmlxtras_dlg.attribute_option_rtl}</option> | ||
| 54 | </select> | ||
| 55 | </td> | ||
| 56 | </tr> | ||
| 57 | <tr> | ||
| 58 | <td class="label"><label id="langlabel" for="lang">{#xhtmlxtras_dlg.attribute_label_langcode}</label>:</td> | ||
| 59 | <td> | ||
| 60 | <input id="lang" name="lang" type="text" value="" class="field" /> | ||
| 61 | </td> | ||
| 62 | </tr> | ||
| 63 | </table> | ||
| 64 | </fieldset> | ||
| 65 | </div> | ||
| 66 | <div id="events_panel" class="panel"> | ||
| 67 | <fieldset> | ||
| 68 | <legend>{#xhtmlxtras_dlg.fieldset_events_tab}</legend> | ||
| 69 | |||
| 70 | <table border="0" cellpadding="0" cellspacing="4"> | ||
| 71 | <tr> | ||
| 72 | <td class="label"><label for="onfocus">onfocus</label>:</td> | ||
| 73 | <td><input id="onfocus" name="onfocus" type="text" value="" class="field" /></td> | ||
| 74 | </tr> | ||
| 75 | |||
| 76 | <tr> | ||
| 77 | <td class="label"><label for="onblur">onblur</label>:</td> | ||
| 78 | <td><input id="onblur" name="onblur" type="text" value="" class="field" /></td> | ||
| 79 | </tr> | ||
| 80 | |||
| 81 | <tr> | ||
| 82 | <td class="label"><label for="onclick">onclick</label>:</td> | ||
| 83 | <td><input id="onclick" name="onclick" type="text" value="" class="field" /></td> | ||
| 84 | </tr> | ||
| 85 | |||
| 86 | <tr> | ||
| 87 | <td class="label"><label for="ondblclick">ondblclick</label>:</td> | ||
| 88 | <td><input id="ondblclick" name="ondblclick" type="text" value="" class="field" /></td> | ||
| 89 | </tr> | ||
| 90 | |||
| 91 | <tr> | ||
| 92 | <td class="label"><label for="onmousedown">onmousedown</label>:</td> | ||
| 93 | <td><input id="onmousedown" name="onmousedown" type="text" value="" class="field" /></td> | ||
| 94 | </tr> | ||
| 95 | |||
| 96 | <tr> | ||
| 97 | <td class="label"><label for="onmouseup">onmouseup</label>:</td> | ||
| 98 | <td><input id="onmouseup" name="onmouseup" type="text" value="" class="field" /></td> | ||
| 99 | </tr> | ||
| 100 | |||
| 101 | <tr> | ||
| 102 | <td class="label"><label for="onmouseover">onmouseover</label>:</td> | ||
| 103 | <td><input id="onmouseover" name="onmouseover" type="text" value="" class="field" /></td> | ||
| 104 | </tr> | ||
| 105 | |||
| 106 | <tr> | ||
| 107 | <td class="label"><label for="onmousemove">onmousemove</label>:</td> | ||
| 108 | <td><input id="onmousemove" name="onmousemove" type="text" value="" class="field" /></td> | ||
| 109 | </tr> | ||
| 110 | |||
| 111 | <tr> | ||
| 112 | <td class="label"><label for="onmouseout">onmouseout</label>:</td> | ||
| 113 | <td><input id="onmouseout" name="onmouseout" type="text" value="" class="field" /></td> | ||
| 114 | </tr> | ||
| 115 | |||
| 116 | <tr> | ||
| 117 | <td class="label"><label for="onkeypress">onkeypress</label>:</td> | ||
| 118 | <td><input id="onkeypress" name="onkeypress" type="text" value="" class="field" /></td> | ||
| 119 | </tr> | ||
| 120 | |||
| 121 | <tr> | ||
| 122 | <td class="label"><label for="onkeydown">onkeydown</label>:</td> | ||
| 123 | <td><input id="onkeydown" name="onkeydown" type="text" value="" class="field" /></td> | ||
| 124 | </tr> | ||
| 125 | |||
| 126 | <tr> | ||
| 127 | <td class="label"><label for="onkeyup">onkeyup</label>:</td> | ||
| 128 | <td><input id="onkeyup" name="onkeyup" type="text" value="" class="field" /></td> | ||
| 129 | </tr> | ||
| 130 | </table> | ||
| 131 | </fieldset> | ||
| 132 | </div> | ||
| 133 | </div> | ||
| 134 | <div class="mceActionPanel"> | ||
| 135 | <div style="float: left"> | ||
| 136 | <input type="submit" id="insert" name="insert" value="{#update}" /> | ||
| 137 | </div> | ||
| 138 | <div style="float: left"> | ||
| 139 | <input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeAbbr();" style="display: none;" /> | ||
| 140 | </div> | ||
| 141 | <div style="float: right"> | ||
| 142 | <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" /> | ||
| 143 | </div> | ||
| 144 | </div> | ||
| 145 | |||
| 146 | </form> | ||
| 147 | </body> | ||
| 148 | </html> | ||
diff --git a/public/javascripts/tiny_mce/plugins/xhtmlxtras/acronym.htm b/public/javascripts/tiny_mce/plugins/xhtmlxtras/acronym.htm deleted file mode 100644 index 4d4ebaa..0000000 --- a/public/javascripts/tiny_mce/plugins/xhtmlxtras/acronym.htm +++ /dev/null | |||
| @@ -1,148 +0,0 @@ | |||
| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
| 3 | <head> | ||
| 4 | <title>{#xhtmlxtras_dlg.title_acronym_element}</title> | ||
| 5 | <script type="text/javascript" src="../../tiny_mce_popup.js"></script> | ||
| 6 | <script type="text/javascript" src="../../utils/mctabs.js"></script> | ||
| 7 | <script type="text/javascript" src="../../utils/form_utils.js"></script> | ||
| 8 | <script type="text/javascript" src="../../utils/editable_selects.js"></script> | ||
| 9 | <script type="text/javascript" src="js/element_common.js"></script> | ||
| 10 | <script type="text/javascript" src="js/acronym.js"></script> | ||
| 11 | <link rel="stylesheet" type="text/css" href="css/popup.css" /> | ||
| 12 | </head> | ||
| 13 | <body style="display: none"> | ||
| 14 | <form onsubmit="insertAcronym();return false;" action="#"> | ||
| 15 | <div class="tabs"> | ||
| 16 | <ul> | ||
| 17 | <li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.general_tab}</a></span></li> | ||
| 18 | <!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.events_tab}</a></span></li> --> | ||
| 19 | </ul> | ||
| 20 | </div> | ||
| 21 | |||
| 22 | <div class="panel_wrapper"> | ||
| 23 | <div id="general_panel" class="panel current"> | ||
| 24 | <fieldset> | ||
| 25 | <legend>{#xhtmlxtras_dlg.fieldset_attrib_tab}</legend> | ||
| 26 | <table border="0" cellpadding="0" cellspacing="4"> | ||
| 27 | <tr> | ||
| 28 | <td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td> | ||
| 29 | <td><input id="title" name="title" type="text" value="" class="field mceFocus" /></td> | ||
| 30 | </tr> | ||
| 31 | <tr> | ||
| 32 | <td class="label"><label id="idlabel" for="id">{#xhtmlxtras_dlg.attribute_label_id}</label>:</td> | ||
| 33 | <td><input id="id" name="id" type="text" value="" class="field" /></td> | ||
| 34 | </tr> | ||
| 35 | <tr> | ||
| 36 | <td class="label"><label id="classlabel" for="class">{#xhtmlxtras_dlg.attribute_label_class}</label>:</td> | ||
| 37 | <td> | ||
| 38 | <select id="class" name="class" class="field mceEditableSelect"> | ||
| 39 | <option value="">{#not_set}</option> | ||
| 40 | </select> | ||
| 41 | </td> | ||
| 42 | </tr> | ||
| 43 | <tr> | ||
| 44 | <td class="label"><label id="stylelabel" for="class">{#xhtmlxtras_dlg.attribute_label_style}</label>:</td> | ||
| 45 | <td><input id="style" name="style" type="text" value="" class="field" /></td> | ||
| 46 | </tr> | ||
| 47 | <tr> | ||
| 48 | <td class="label"><label id="dirlabel" for="dir">{#xhtmlxtras_dlg.attribute_label_langdir}</label>:</td> | ||
| 49 | <td> | ||
| 50 | <select id="dir" name="dir" class="field"> | ||
| 51 | <option value="">{#not_set}</option> | ||
| 52 | <option value="ltr">{#xhtmlxtras_dlg.attribute_option_ltr}</option> | ||
| 53 | <option value="rtl">{#xhtmlxtras_dlg.attribute_option_rtl}</option> | ||
| 54 | </select> | ||
| 55 | </td> | ||
| 56 | </tr> | ||
| 57 | <tr> | ||
| 58 | <td class="label"><label id="langlabel" for="lang">{#xhtmlxtras_dlg.attribute_label_langcode}</label>:</td> | ||
| 59 | <td> | ||
| 60 | <input id="lang" name="lang" type="text" value="" class="field" /> | ||
| 61 | </td> | ||
| 62 | </tr> | ||
| 63 | </table> | ||
| 64 | </fieldset> | ||
| 65 | </div> | ||
| 66 | <div id="events_panel" class="panel"> | ||
| 67 | <fieldset> | ||
| 68 | <legend>{#xhtmlxtras_dlg.fieldset_events_tab}</legend> | ||
| 69 | |||
| 70 | <table border="0" cellpadding="0" cellspacing="4"> | ||
| 71 | <tr> | ||
| 72 | <td class="label"><label for="onfocus">onfocus</label>:</td> | ||
| 73 | <td><input id="onfocus" name="onfocus" type="text" value="" class="field" /></td> | ||
| 74 | </tr> | ||
| 75 | |||
| 76 | <tr> | ||
| 77 | <td class="label"><label for="onblur">onblur</label>:</td> | ||
| 78 | <td><input id="onblur" name="onblur" type="text" value="" class="field" /></td> | ||
| 79 | </tr> | ||
| 80 | |||
| 81 | <tr> | ||
| 82 | <td class="label"><label for="onclick">onclick</label>:</td> | ||
| 83 | <td><input id="onclick" name="onclick" type="text" value="" class="field" /></td> | ||
| 84 | </tr> | ||
| 85 | |||
| 86 | <tr> | ||
| 87 | <td class="label"><label for="ondblclick">ondblclick</label>:</td> | ||
| 88 | <td><input id="ondblclick" name="ondblclick" type="text" value="" class="field" /></td> | ||
| 89 | </tr> | ||
| 90 | |||
| 91 | <tr> | ||
| 92 | <td class="label"><label for="onmousedown">onmousedown</label>:</td> | ||
| 93 | <td><input id="onmousedown" name="onmousedown" type="text" value="" class="field" /></td> | ||
| 94 | </tr> | ||
| 95 | |||
| 96 | <tr> | ||
| 97 | <td class="label"><label for="onmouseup">onmouseup</label>:</td> | ||
| 98 | <td><input id="onmouseup" name="onmouseup" type="text" value="" class="field" /></td> | ||
| 99 | </tr> | ||
| 100 | |||
| 101 | <tr> | ||
| 102 | <td class="label"><label for="onmouseover">onmouseover</label>:</td> | ||
| 103 | <td><input id="onmouseover" name="onmouseover" type="text" value="" class="field" /></td> | ||
| 104 | </tr> | ||
| 105 | |||
| 106 | <tr> | ||
| 107 | <td class="label"><label for="onmousemove">onmousemove</label>:</td> | ||
| 108 | <td><input id="onmousemove" name="onmousemove" type="text" value="" class="field" /></td> | ||
| 109 | </tr> | ||
| 110 | |||
| 111 | <tr> | ||
| 112 | <td class="label"><label for="onmouseout">onmouseout</label>:</td> | ||
| 113 | <td><input id="onmouseout" name="onmouseout" type="text" value="" class="field" /></td> | ||
| 114 | </tr> | ||
| 115 | |||
| 116 | <tr> | ||
| 117 | <td class="label"><label for="onkeypress">onkeypress</label>:</td> | ||
| 118 | <td><input id="onkeypress" name="onkeypress" type="text" value="" class="field" /></td> | ||
| 119 | </tr> | ||
| 120 | |||
| 121 | <tr> | ||
| 122 | <td class="label"><label for="onkeydown">onkeydown</label>:</td> | ||
| 123 | <td><input id="onkeydown" name="onkeydown" type="text" value="" class="field" /></td> | ||
| 124 | </tr> | ||
| 125 | |||
| 126 | <tr> | ||
| 127 | <td class="label"><label for="onkeyup">onkeyup</label>:</td> | ||
| 128 | <td><input id="onkeyup" name="onkeyup" type="text" value="" class="field" /></td> | ||
| 129 | </tr> | ||
| 130 | </table> | ||
| 131 | </fieldset> | ||
| 132 | </div> | ||
| 133 | </div> | ||
| 134 | <div class="mceActionPanel"> | ||
| 135 | <div style="float: left"> | ||
| 136 | <input type="submit" id="insert" name="insert" value="{#update}" /> | ||
| 137 | </div> | ||
| 138 | <div style="float: left"> | ||
| 139 | <input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeAcronym();" style="display: none;" /> | ||
| 140 | </div> | ||
| 141 | <div style="float: right"> | ||
| 142 | <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" /> | ||
| 143 | </div> | ||
| 144 | </div> | ||
| 145 | |||
| 146 | </form> | ||
| 147 | </body> | ||
| 148 | </html> | ||
diff --git a/public/javascripts/tiny_mce/plugins/xhtmlxtras/attributes.htm b/public/javascripts/tiny_mce/plugins/xhtmlxtras/attributes.htm deleted file mode 100644 index 322b468..0000000 --- a/public/javascripts/tiny_mce/plugins/xhtmlxtras/attributes.htm +++ /dev/null | |||
| @@ -1,153 +0,0 @@ | |||
| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
| 3 | <head> | ||
| 4 | <title>{#xhtmlxtras_dlg.attribs_title}</title> | ||
| 5 | <script type="text/javascript" src="../../tiny_mce_popup.js"></script> | ||
| 6 | <script type="text/javascript" src="../../utils/mctabs.js"></script> | ||
| 7 | <script type="text/javascript" src="../../utils/editable_selects.js"></script> | ||
| 8 | <script type="text/javascript" src="../../utils/form_utils.js"></script> | ||
| 9 | <script type="text/javascript" src="js/attributes.js"></script> | ||
| 10 | <link rel="stylesheet" type="text/css" href="css/attributes.css" /> | ||
| 11 | </head> | ||
| 12 | <body style="display: none"> | ||
| 13 | <form onsubmit="insertAction();return false;" action="#"> | ||
| 14 | <div class="tabs"> | ||
| 15 | <ul> | ||
| 16 | <li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.attribute_attrib_tab}</a></span></li> | ||
| 17 | <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.attribute_events_tab}</a></span></li> | ||
| 18 | </ul> | ||
| 19 | </div> | ||
| 20 | |||
| 21 | <div class="panel_wrapper"> | ||
| 22 | <div id="general_panel" class="panel current"> | ||
| 23 | <fieldset> | ||
| 24 | <legend>{#xhtmlxtras_dlg.attribute_attrib_tab}</legend> | ||
| 25 | <table border="0" cellpadding="0" cellspacing="4"> | ||
| 26 | <tr> | ||
| 27 | <td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td> | ||
| 28 | <td><input id="title" name="title" type="text" value="" class="mceFocus" /></td> | ||
| 29 | </tr> | ||
| 30 | <tr> | ||
| 31 | <td class="label"><label id="idlabel" for="id">{#xhtmlxtras_dlg.attribute_label_id}</label>:</td> | ||
| 32 | <td><input id="id" name="id" type="text" value="" /></td> | ||
| 33 | </tr> | ||
| 34 | <tr> | ||
| 35 | <td><label id="classlabel" for="classlist">{#class_name}</label></td> | ||
| 36 | <td> | ||
| 37 | <select id="classlist" name="classlist" class="mceEditableSelect"> | ||
| 38 | <option value="" selected="selected">{#not_set}</option> | ||
| 39 | </select> | ||
| 40 | </td> | ||
| 41 | </tr> | ||
| 42 | <tr> | ||
| 43 | <td class="label"><label id="stylelabel" for="style">{#xhtmlxtras_dlg.attribute_label_style}</label>:</td> | ||
| 44 | <td><input id="style" name="style" type="text" value="" /></td> | ||
| 45 | </tr> | ||
| 46 | <tr> | ||
| 47 | <td class="label"><label id="dirlabel" for="dir">{#xhtmlxtras_dlg.attribute_label_langdir}</label>:</td> | ||
| 48 | <td> | ||
| 49 | <select id="dir" name="dir"> | ||
| 50 | <option value="">{#not_set}</option> | ||
| 51 | <option value="ltr">{#xhtmlxtras_dlg.option_ltr}</option> | ||
| 52 | <option value="rtl">{#xhtmlxtras_dlg.option_rtl}</option> | ||
| 53 | </select> | ||
| 54 | </td> | ||
| 55 | </tr> | ||
| 56 | <tr> | ||
| 57 | <td class="label"><label id="langlabel" for="lang">{#xhtmlxtras_dlg.attribute_label_langcode}</label>:</td> | ||
| 58 | <td> | ||
| 59 | <input id="lang" name="lang" type="text" value="" /> | ||
| 60 | </td> | ||
| 61 | </tr> | ||
| 62 | <tr> | ||
| 63 | <td><label id="tabindexlabel" for="tabindex">{#xhtmlxtras_dlg.attribute_label_tabindex}</label></td> | ||
| 64 | <td><input type="text" id="tabindex" name="tabindex" value="" /></td> | ||
| 65 | </tr> | ||
| 66 | |||
| 67 | <tr> | ||
| 68 | <td><label id="accesskeylabel" for="accesskey">{#xhtmlxtras_dlg.attribute_label_accesskey}</label></td> | ||
| 69 | <td><input type="text" id="accesskey" name="accesskey" value="" /></td> | ||
| 70 | </tr> | ||
| 71 | </table> | ||
| 72 | </fieldset> | ||
| 73 | </div> | ||
| 74 | <div id="events_panel" class="panel"> | ||
| 75 | <fieldset> | ||
| 76 | <legend>{#xhtmlxtras_dlg.attribute_events_tab}</legend> | ||
| 77 | |||
| 78 | <table border="0" cellpadding="0" cellspacing="4"> | ||
| 79 | <tr> | ||
| 80 | <td class="label"><label for="onfocus">onfocus</label>:</td> | ||
| 81 | <td><input id="onfocus" name="onfocus" type="text" value="" /></td> | ||
| 82 | </tr> | ||
| 83 | |||
| 84 | <tr> | ||
| 85 | <td class="label"><label for="onblur">onblur</label>:</td> | ||
| 86 | <td><input id="onblur" name="onblur" type="text" value="" /></td> | ||
| 87 | </tr> | ||
| 88 | |||
| 89 | <tr> | ||
| 90 | <td class="label"><label for="onclick">onclick</label>:</td> | ||
| 91 | <td><input id="onclick" name="onclick" type="text" value="" /></td> | ||
| 92 | </tr> | ||
| 93 | |||
| 94 | <tr> | ||
| 95 | <td class="label"><label for="ondblclick">ondblclick</label>:</td> | ||
| 96 | <td><input id="ondblclick" name="ondblclick" type="text" value="" /></td> | ||
| 97 | </tr> | ||
| 98 | |||
| 99 | <tr> | ||
| 100 | <td class="label"><label for="onmousedown">onmousedown</label>:</td> | ||
| 101 | <td><input id="onmousedown" name="onmousedown" type="text" value="" /></td> | ||
| 102 | </tr> | ||
| 103 | |||
| 104 | <tr> | ||
| 105 | <td class="label"><label for="onmouseup">onmouseup</label>:</td> | ||
| 106 | <td><input id="onmouseup" name="onmouseup" type="text" value="" /></td> | ||
| 107 | </tr> | ||
| 108 | |||
| 109 | <tr> | ||
| 110 | <td class="label"><label for="onmouseover">onmouseover</label>:</td> | ||
| 111 | <td><input id="onmouseover" name="onmouseover" type="text" value="" /></td> | ||
| 112 | </tr> | ||
| 113 | |||
| 114 | <tr> | ||
| 115 | <td class="label"><label for="onmousemove">onmousemove</label>:</td> | ||
| 116 | <td><input id="onmousemove" name="onmousemove" type="text" value="" /></td> | ||
| 117 | </tr> | ||
| 118 | |||
| 119 | <tr> | ||
| 120 | <td class="label"><label for="onmouseout">onmouseout</label>:</td> | ||
| 121 | <td><input id="onmouseout" name="onmouseout" type="text" value="" /></td> | ||
| 122 | </tr> | ||
| 123 | |||
| 124 | <tr> | ||
| 125 | <td class="label"><label for="onkeypress">onkeypress</label>:</td> | ||
| 126 | <td><input id="onkeypress" name="onkeypress" type="text" value="" /></td> | ||
| 127 | </tr> | ||
| 128 | |||
| 129 | <tr> | ||
| 130 | <td class="label"><label for="onkeydown">onkeydown</label>:</td> | ||
| 131 | <td><input id="onkeydown" name="onkeydown" type="text" value="" /></td> | ||
| 132 | </tr> | ||
| 133 | |||
| 134 | <tr> | ||
| 135 | <td class="label"><label for="onkeyup">onkeyup</label>:</td> | ||
| 136 | <td><input id="onkeyup" name="onkeyup" type="text" value="" /></td> | ||
| 137 | </tr> | ||
| 138 | </table> | ||
| 139 | </fieldset> | ||
| 140 | </div> | ||
| 141 | </div> | ||
| 142 | <div class="mceActionPanel"> | ||
| 143 | <div style="float: left"> | ||
| 144 | <input type="submit" id="insert" name="insert" value="{#insert}" /> | ||
| 145 | </div> | ||
| 146 | <div style="float: right"> | ||
| 147 | <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" /> | ||
| 148 | </div> | ||
| 149 | </div> | ||
| 150 | |||
| 151 | </form> | ||
| 152 | </body> | ||
| 153 | </html> | ||
diff --git a/public/javascripts/tiny_mce/plugins/xhtmlxtras/cite.htm b/public/javascripts/tiny_mce/plugins/xhtmlxtras/cite.htm deleted file mode 100644 index cdfaf4e..0000000 --- a/public/javascripts/tiny_mce/plugins/xhtmlxtras/cite.htm +++ /dev/null | |||
| @@ -1,148 +0,0 @@ | |||
| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
| 3 | <head> | ||
| 4 | <title>{#xhtmlxtras_dlg.title_cite_element}</title> | ||
| 5 | <script type="text/javascript" src="../../tiny_mce_popup.js"></script> | ||
| 6 | <script type="text/javascript" src="../../utils/mctabs.js"></script> | ||
| 7 | <script type="text/javascript" src="../../utils/form_utils.js"></script> | ||
| 8 | <script type="text/javascript" src="../../utils/editable_selects.js"></script> | ||
| 9 | <script type="text/javascript" src="js/element_common.js"></script> | ||
| 10 | <script type="text/javascript" src="js/cite.js"></script> | ||
| 11 | <link rel="stylesheet" type="text/css" href="css/popup.css" /> | ||
| 12 | </head> | ||
| 13 | <body style="display: none"> | ||
| 14 | <form onsubmit="insertCite();return false;" action="#"> | ||
| 15 | <div class="tabs"> | ||
| 16 | <ul> | ||
| 17 | <li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.general_tab}</a></span></li> | ||
| 18 | <!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.events_tab}</a></span></li> --> | ||
| 19 | </ul> | ||
| 20 | </div> | ||
| 21 | |||
| 22 | <div class="panel_wrapper"> | ||
| 23 | <div id="general_panel" class="panel current"> | ||
| 24 | <fieldset> | ||
| 25 | <legend>{#xhtmlxtras_dlg.fieldset_attrib_tab}</legend> | ||
| 26 | <table border="0" cellpadding="0" cellspacing="4"> | ||
| 27 | <tr> | ||
| 28 | <td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td> | ||
| 29 | <td><input id="title" name="title" type="text" value="" class="field mceFocus" /></td> | ||
| 30 | </tr> | ||
| 31 | <tr> | ||
| 32 | <td class="label"><label id="idlabel" for="id">{#xhtmlxtras_dlg.attribute_label_id}</label>:</td> | ||
| 33 | <td><input id="id" name="id" type="text" value="" class="field" /></td> | ||
| 34 | </tr> | ||
| 35 | <tr> | ||
| 36 | <td class="label"><label id="classlabel" for="class">{#xhtmlxtras_dlg.attribute_label_class}</label>:</td> | ||
| 37 | <td> | ||
| 38 | <select id="class" name="class" class="field mceEditableSelect"> | ||
| 39 | <option value="">{#not_set}</option> | ||
| 40 | </select> | ||
| 41 | </td> | ||
| 42 | </tr> | ||
| 43 | <tr> | ||
| 44 | <td class="label"><label id="stylelabel" for="class">{#xhtmlxtras_dlg.attribute_label_style}</label>:</td> | ||
| 45 | <td><input id="style" name="style" type="text" value="" class="field" /></td> | ||
| 46 | </tr> | ||
| 47 | <tr> | ||
| 48 | <td class="label"><label id="dirlabel" for="dir">{#xhtmlxtras_dlg.attribute_label_langdir}</label>:</td> | ||
| 49 | <td> | ||
| 50 | <select id="dir" name="dir" class="field"> | ||
| 51 | <option value="">{#not_set}</option> | ||
| 52 | <option value="ltr">{#xhtmlxtras_dlg.attribute_option_ltr}</option> | ||
| 53 | <option value="rtl">{#xhtmlxtras_dlg.attribute_option_rtl}</option> | ||
| 54 | </select> | ||
| 55 | </td> | ||
| 56 | </tr> | ||
| 57 | <tr> | ||
| 58 | <td class="label"><label id="langlabel" for="lang">{#xhtmlxtras_dlg.attribute_label_langcode}</label>:</td> | ||
| 59 | <td> | ||
| 60 | <input id="lang" name="lang" type="text" value="" class="field" /> | ||
| 61 | </td> | ||
| 62 | </tr> | ||
| 63 | </table> | ||
| 64 | </fieldset> | ||
| 65 | </div> | ||
| 66 | <div id="events_panel" class="panel"> | ||
| 67 | <fieldset> | ||
| 68 | <legend>{#xhtmlxtras_dlg.fieldset_events_tab}</legend> | ||
| 69 | |||
| 70 | <table border="0" cellpadding="0" cellspacing="4"> | ||
| 71 | <tr> | ||
| 72 | <td class="label"><label for="onfocus">onfocus</label>:</td> | ||
| 73 | <td><input id="onfocus" name="onfocus" type="text" value="" class="field" /></td> | ||
| 74 | </tr> | ||
| 75 | |||
| 76 | <tr> | ||
| 77 | <td class="label"><label for="onblur">onblur</label>:</td> | ||
| 78 | <td><input id="onblur" name="onblur" type="text" value="" class="field" /></td> | ||
| 79 | </tr> | ||
| 80 | |||
| 81 | <tr> | ||
| 82 | <td class="label"><label for="onclick">onclick</label>:</td> | ||
| 83 | <td><input id="onclick" name="onclick" type="text" value="" class="field" /></td> | ||
| 84 | </tr> | ||
| 85 | |||
| 86 | <tr> | ||
| 87 | <td class="label"><label for="ondblclick">ondblclick</label>:</td> | ||
| 88 | <td><input id="ondblclick" name="ondblclick" type="text" value="" class="field" /></td> | ||
| 89 | </tr> | ||
| 90 | |||
| 91 | <tr> | ||
| 92 | <td class="label"><label for="onmousedown">onmousedown</label>:</td> | ||
| 93 | <td><input id="onmousedown" name="onmousedown" type="text" value="" class="field" /></td> | ||
| 94 | </tr> | ||
| 95 | |||
| 96 | <tr> | ||
| 97 | <td class="label"><label for="onmouseup">onmouseup</label>:</td> | ||
| 98 | <td><input id="onmouseup" name="onmouseup" type="text" value="" class="field" /></td> | ||
| 99 | </tr> | ||
| 100 | |||
| 101 | <tr> | ||
| 102 | <td class="label"><label for="onmouseover">onmouseover</label>:</td> | ||
| 103 | <td><input id="onmouseover" name="onmouseover" type="text" value="" class="field" /></td> | ||
| 104 | </tr> | ||
| 105 | |||
| 106 | <tr> | ||
| 107 | <td class="label"><label for="onmousemove">onmousemove</label>:</td> | ||
| 108 | <td><input id="onmousemove" name="onmousemove" type="text" value="" class="field" /></td> | ||
| 109 | </tr> | ||
| 110 | |||
| 111 | <tr> | ||
| 112 | <td class="label"><label for="onmouseout">onmouseout</label>:</td> | ||
| 113 | <td><input id="onmouseout" name="onmouseout" type="text" value="" class="field" /></td> | ||
| 114 | </tr> | ||
| 115 | |||
| 116 | <tr> | ||
| 117 | <td class="label"><label for="onkeypress">onkeypress</label>:</td> | ||
| 118 | <td><input id="onkeypress" name="onkeypress" type="text" value="" class="field" /></td> | ||
| 119 | </tr> | ||
| 120 | |||
| 121 | <tr> | ||
| 122 | <td class="label"><label for="onkeydown">onkeydown</label>:</td> | ||
| 123 | <td><input id="onkeydown" name="onkeydown" type="text" value="" class="field" /></td> | ||
| 124 | </tr> | ||
| 125 | |||
| 126 | <tr> | ||
| 127 | <td class="label"><label for="onkeyup">onkeyup</label>:</td> | ||
| 128 | <td><input id="onkeyup" name="onkeyup" type="text" value="" class="field" /></td> | ||
| 129 | </tr> | ||
| 130 | </table> | ||
| 131 | </fieldset> | ||
| 132 | </div> | ||
| 133 | </div> | ||
| 134 | <div class="mceActionPanel"> | ||
| 135 | <div style="float: left"> | ||
| 136 | <input type="submit" id="insert" name="insert" value="{#update}" /> | ||
| 137 | </div> | ||
| 138 | <div style="float: left"> | ||
| 139 | <input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeCite();" style="display: none;" /> | ||
| 140 | </div> | ||
| 141 | <div style="float: right"> | ||
| 142 | <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" /> | ||
| 143 | </div> | ||
| 144 | </div> | ||
| 145 | |||
| 146 | </form> | ||
| 147 | </body> | ||
| 148 | </html> | ||
diff --git a/public/javascripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css b/public/javascripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css deleted file mode 100644 index 9a6a235..0000000 --- a/public/javascripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css +++ /dev/null | |||
| @@ -1,11 +0,0 @@ | |||
| 1 | .panel_wrapper div.current { | ||
| 2 | height: 290px; | ||
| 3 | } | ||
| 4 | |||
| 5 | #id, #style, #title, #dir, #hreflang, #lang, #classlist, #tabindex, #accesskey { | ||
| 6 | width: 200px; | ||
| 7 | } | ||
| 8 | |||
| 9 | #events_panel input { | ||
| 10 | width: 200px; | ||
| 11 | } | ||
diff --git a/public/javascripts/tiny_mce/plugins/xhtmlxtras/css/popup.css b/public/javascripts/tiny_mce/plugins/xhtmlxtras/css/popup.css deleted file mode 100644 index e67114d..0000000 --- a/public/javascripts/tiny_mce/plugins/xhtmlxtras/css/popup.css +++ /dev/null | |||
| @@ -1,9 +0,0 @@ | |||
| 1 | input.field, select.field {width:200px;} | ||
| 2 | input.picker {width:179px; margin-left: 5px;} | ||
| 3 | input.disabled {border-color:#F2F2F2;} | ||
| 4 | img.picker {vertical-align:text-bottom; cursor:pointer;} | ||
| 5 | h1 {padding: 0 0 5px 0;} | ||
| 6 | .panel_wrapper div.current {height:160px;} | ||
| 7 | #xhtmlxtrasdel .panel_wrapper div.current, #xhtmlxtrasins .panel_wrapper div.current {height: 230px;} | ||
| 8 | a.browse span {display:block; width:20px; height:20px; background:url('../../../themes/advanced/img/icons.gif') -140px -20px;} | ||
| 9 | #datetime {width:180px;} | ||
diff --git a/public/javascripts/tiny_mce/plugins/xhtmlxtras/del.htm b/public/javascripts/tiny_mce/plugins/xhtmlxtras/del.htm deleted file mode 100644 index f45676e..0000000 --- a/public/javascripts/tiny_mce/plugins/xhtmlxtras/del.htm +++ /dev/null | |||
| @@ -1,169 +0,0 @@ | |||
| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
| 3 | <head> | ||
| 4 | <title>{#xhtmlxtras_dlg.title_del_element}</title> | ||
| 5 | <script type="text/javascript" src="../../tiny_mce_popup.js"></script> | ||
| 6 | <script type="text/javascript" src="../../utils/mctabs.js"></script> | ||
| 7 | <script type="text/javascript" src="../../utils/form_utils.js"></script> | ||
| 8 | <script type="text/javascript" src="../../utils/editable_selects.js"></script> | ||
| 9 | <script type="text/javascript" src="js/element_common.js"></script> | ||
| 10 | <script type="text/javascript" src="js/del.js"></script> | ||
| 11 | <link rel="stylesheet" type="text/css" href="css/popup.css" /> | ||
| 12 | </head> | ||
| 13 | <body id="xhtmlxtrasins" style="display: none"> | ||
| 14 | <form onsubmit="insertDel();return false;" action="#"> | ||
| 15 | <div class="tabs"> | ||
| 16 | <ul> | ||
| 17 | <li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.general_tab}</a></span></li> | ||
| 18 | <!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.events_tab}</a></span></li> --> | ||
| 19 | </ul> | ||
| 20 | </div> | ||
| 21 | |||
| 22 | <div class="panel_wrapper"> | ||
| 23 | <div id="general_panel" class="panel current"> | ||
| 24 | <fieldset> | ||
| 25 | <legend>{#xhtmlxtras_dlg.fieldset_general_tab}</legend> | ||
| 26 | <table border="0" cellpadding="0" cellspacing="4"> | ||
| 27 | <tr> | ||
| 28 | <td class="label"><label id="datetimelabel" for="datetime">{#xhtmlxtras_dlg.attribute_label_datetime}</label>:</td> | ||
| 29 | <td> | ||
| 30 | <table border="0" cellspacing="0" cellpadding="0"> | ||
| 31 | <tr> | ||
| 32 | <td><input id="datetime" name="datetime" type="text" value="" maxlength="19" class="field mceFocus" /></td> | ||
| 33 | <td><a href="javascript:insertDateTime('datetime');" onmousedown="return false;" class="browse"><span class="datetime" title="{#xhtmlxtras_dlg.insert_date}"></span></a></td> | ||
| 34 | </tr> | ||
| 35 | </table> | ||
| 36 | </td> | ||
| 37 | </tr> | ||
| 38 | <tr> | ||
| 39 | <td class="label"><label id="citelabel" for="cite">{#xhtmlxtras_dlg.attribute_label_cite}</label>:</td> | ||
| 40 | <td><input id="cite" name="cite" type="text" value="" class="field" /></td> | ||
| 41 | </tr> | ||
| 42 | </table> | ||
| 43 | </fieldset> | ||
| 44 | <fieldset> | ||
| 45 | <legend>{#xhtmlxtras_dlg.fieldset_attrib_tab}</legend> | ||
| 46 | <table border="0" cellpadding="0" cellspacing="4"> | ||
| 47 | <tr> | ||
| 48 | <td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td> | ||
| 49 | <td><input id="title" name="title" type="text" value="" class="field" /></td> | ||
| 50 | </tr> | ||
| 51 | <tr> | ||
| 52 | <td class="label"><label id="idlabel" for="id">{#xhtmlxtras_dlg.attribute_label_id}</label>:</td> | ||
| 53 | <td><input id="id" name="id" type="text" value="" class="field" /></td> | ||
| 54 | </tr> | ||
| 55 | <tr> | ||
| 56 | <td class="label"><label id="classlabel" for="class">{#xhtmlxtras_dlg.attribute_label_class}</label>:</td> | ||
| 57 | <td> | ||
| 58 | <select id="class" name="class" class="field mceEditableSelect"> | ||
| 59 | <option value="">{#not_set}</option> | ||
| 60 | </select> | ||
| 61 | </td> | ||
| 62 | </tr> | ||
| 63 | <tr> | ||
| 64 | <td class="label"><label id="stylelabel" for="class">{#xhtmlxtras_dlg.attribute_label_style}</label>:</td> | ||
| 65 | <td><input id="style" name="style" type="text" value="" class="field" /></td> | ||
| 66 | </tr> | ||
| 67 | <tr> | ||
| 68 | <td class="label"><label id="dirlabel" for="dir">{#xhtmlxtras_dlg.attribute_label_langdir}</label>:</td> | ||
| 69 | <td> | ||
| 70 | <select id="dir" name="dir" class="field"> | ||
| 71 | <option value="">{#not_set}</option> | ||
| 72 | <option value="ltr">{#xhtmlxtras_dlg.attribute_option_ltr}</option> | ||
| 73 | <option value="rtl">{#xhtmlxtras_dlg.attribute_option_rtl}</option> | ||
| 74 | </select> | ||
| 75 | </td> | ||
| 76 | </tr> | ||
| 77 | <tr> | ||
| 78 | <td class="label"><label id="langlabel" for="lang">{#xhtmlxtras_dlg.attribute_label_langcode}</label>:</td> | ||
| 79 | <td> | ||
| 80 | <input id="lang" name="lang" type="text" value="" class="field" /> | ||
| 81 | </td> | ||
| 82 | </tr> | ||
| 83 | </table> | ||
| 84 | </fieldset> | ||
| 85 | </div> | ||
| 86 | <div id="events_panel" class="panel"> | ||
| 87 | <fieldset> | ||
| 88 | <legend>{#xhtmlxtras_dlg.fieldset_events_tab}</legend> | ||
| 89 | |||
| 90 | <table border="0" cellpadding="0" cellspacing="4"> | ||
| 91 | <tr> | ||
| 92 | <td class="label"><label for="onfocus">onfocus</label>:</td> | ||
| 93 | <td><input id="onfocus" name="onfocus" type="text" value="" class="field" /></td> | ||
| 94 | </tr> | ||
| 95 | |||
| 96 | <tr> | ||
| 97 | <td class="label"><label for="onblur">onblur</label>:</td> | ||
| 98 | <td><input id="onblur" name="onblur" type="text" value="" class="field" /></td> | ||
| 99 | </tr> | ||
| 100 | |||
| 101 | <tr> | ||
| 102 | <td class="label"><label for="onclick">onclick</label>:</td> | ||
| 103 | <td><input id="onclick" name="onclick" type="text" value="" class="field" /></td> | ||
| 104 | </tr> | ||
| 105 | |||
| 106 | <tr> | ||
| 107 | <td class="label"><label for="ondblclick">ondblclick</label>:</td> | ||
| 108 | <td><input id="ondblclick" name="ondblclick" type="text" value="" class="field" /></td> | ||
| 109 | </tr> | ||
| 110 | |||
| 111 | <tr> | ||
| 112 | <td class="label"><label for="onmousedown">onmousedown</label>:</td> | ||
| 113 | <td><input id="onmousedown" name="onmousedown" type="text" value="" class="field" /></td> | ||
| 114 | </tr> | ||
| 115 | |||
| 116 | <tr> | ||
| 117 | <td class="label"><label for="onmouseup">onmouseup</label>:</td> | ||
| 118 | <td><input id="onmouseup" name="onmouseup" type="text" value="" class="field" /></td> | ||
| 119 | </tr> | ||
| 120 | |||
| 121 | <tr> | ||
| 122 | <td class="label"><label for="onmouseover">onmouseover</label>:</td> | ||
| 123 | <td><input id="onmouseover" name="onmouseover" type="text" value="" class="field" /></td> | ||
| 124 | </tr> | ||
| 125 | |||
| 126 | <tr> | ||
| 127 | <td class="label"><label for="onmousemove">onmousemove</label>:</td> | ||
| 128 | <td><input id="onmousemove" name="onmousemove" type="text" value="" class="field" /></td> | ||
| 129 | </tr> | ||
| 130 | |||
| 131 | <tr> | ||
| 132 | <td class="label"><label for="onmouseout">onmouseout</label>:</td> | ||
| 133 | <td><input id="onmouseout" name="onmouseout" type="text" value="" class="field" /></td> | ||
| 134 | </tr> | ||
| 135 | |||
| 136 | <tr> | ||
| 137 | <td class="label"><label for="onkeypress">onkeypress</label>:</td> | ||
| 138 | <td><input id="onkeypress" name="onkeypress" type="text" value="" class="field" /></td> | ||
| 139 | </tr> | ||
| 140 | |||
| 141 | <tr> | ||
| 142 | <td class="label"><label for="onkeydown">onkeydown</label>:</td> | ||
| 143 | <td><input id="onkeydown" name="onkeydown" type="text" value="" class="field" /></td> | ||
| 144 | </tr> | ||
| 145 | |||
| 146 | <tr> | ||
| 147 | <td class="label"><label for="onkeyup">onkeyup</label>:</td> | ||
| 148 | <td><input id="onkeyup" name="onkeyup" type="text" value="" class="field" /></td> | ||
| 149 | </tr> | ||
| 150 | </table> | ||
| 151 | </fieldset> | ||
| 152 | </div> | ||
| 153 | </div> | ||
| 154 | <div class="mceActionPanel"> | ||
| 155 | <div style="float: left"> | ||
| 156 | <input type="submit" id="insert" name="insert" value="{#update}" /> | ||
| 157 | </div> | ||
| 158 | <div style="float: left"> | ||
| 159 | <input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeDel();" style="display: none;" /> | ||
| 160 | </div> | ||
| 161 | <div style="float: right"> | ||
| 162 | <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" /> | ||
| 163 | </div> | ||
| 164 | </div> | ||
| 165 | |||
| 166 | </form> | ||
| 167 | |||
| 168 | </body> | ||
| 169 | </html> | ||
diff --git a/public/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js b/public/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js deleted file mode 100644 index 8c7f48e..0000000 --- a/public/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin.js +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | (function(){tinymce.create("tinymce.plugins.XHTMLXtrasPlugin",{init:function(b,c){b.addCommand("mceCite",function(){b.windowManager.open({file:c+"/cite.htm",width:350+parseInt(b.getLang("xhtmlxtras.cite_delta_width",0)),height:250+parseInt(b.getLang("xhtmlxtras.cite_delta_height",0)),inline:1},{plugin_url:c})});b.addCommand("mceAcronym",function(){b.windowManager.open({file:c+"/acronym.htm",width:350+parseInt(b.getLang("xhtmlxtras.acronym_delta_width",0)),height:250+parseInt(b.getLang("xhtmlxtras.acronym_delta_width",0)),inline:1},{plugin_url:c})});b.addCommand("mceAbbr",function(){b.windowManager.open({file:c+"/abbr.htm",width:350+parseInt(b.getLang("xhtmlxtras.abbr_delta_width",0)),height:250+parseInt(b.getLang("xhtmlxtras.abbr_delta_width",0)),inline:1},{plugin_url:c})});b.addCommand("mceDel",function(){b.windowManager.open({file:c+"/del.htm",width:340+parseInt(b.getLang("xhtmlxtras.del_delta_width",0)),height:310+parseInt(b.getLang("xhtmlxtras.del_delta_width",0)),inline:1},{plugin_url:c})});b.addCommand("mceIns",function(){b.windowManager.open({file:c+"/ins.htm",width:340+parseInt(b.getLang("xhtmlxtras.ins_delta_width",0)),height:310+parseInt(b.getLang("xhtmlxtras.ins_delta_width",0)),inline:1},{plugin_url:c})});b.addCommand("mceAttributes",function(){b.windowManager.open({file:c+"/attributes.htm",width:380,height:370,inline:1},{plugin_url:c})});b.addButton("cite",{title:"xhtmlxtras.cite_desc",cmd:"mceCite"});b.addButton("acronym",{title:"xhtmlxtras.acronym_desc",cmd:"mceAcronym"});b.addButton("abbr",{title:"xhtmlxtras.abbr_desc",cmd:"mceAbbr"});b.addButton("del",{title:"xhtmlxtras.del_desc",cmd:"mceDel"});b.addButton("ins",{title:"xhtmlxtras.ins_desc",cmd:"mceIns"});b.addButton("attribs",{title:"xhtmlxtras.attribs_desc",cmd:"mceAttributes"});if(tinymce.isIE){function a(d,e){if(e.set){e.content=e.content.replace(/<abbr([^>]+)>/gi,"<html:abbr $1>");e.content=e.content.replace(/<\/abbr>/gi,"</html:abbr>")}}b.onBeforeSetContent.add(a);b.onPostProcess.add(a)}b.onNodeChange.add(function(e,d,g,f){g=e.dom.getParent(g,"CITE,ACRONYM,ABBR,DEL,INS");d.setDisabled("cite",f);d.setDisabled("acronym",f);d.setDisabled("abbr",f);d.setDisabled("del",f);d.setDisabled("ins",f);d.setDisabled("attribs",g&&g.nodeName=="BODY");d.setActive("cite",0);d.setActive("acronym",0);d.setActive("abbr",0);d.setActive("del",0);d.setActive("ins",0);if(g){do{d.setDisabled(g.nodeName.toLowerCase(),0);d.setActive(g.nodeName.toLowerCase(),1)}while(g=g.parentNode)}})},getInfo:function(){return{longname:"XHTML Xtras Plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/xhtmlxtras",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("xhtmlxtras",tinymce.plugins.XHTMLXtrasPlugin)})(); \ No newline at end of file | ||
diff --git a/public/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js b/public/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js deleted file mode 100644 index bef06f2..0000000 --- a/public/javascripts/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js +++ /dev/null | |||
| @@ -1,136 +0,0 @@ | |||
| 1 | /** | ||
| 2 | * $Id: editor_plugin_src.js 201 2007-02-12 15:56:56Z spocke $ | ||
| 3 | * | ||
| 4 | * @author Moxiecode | ||
| 5 | * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. | ||
| 6 | */ | ||
| 7 | |||
| 8 | (function() { | ||
| 9 | tinymce.create('tinymce.plugins.XHTMLXtrasPlugin', { | ||
| 10 | init : function(ed, url) { | ||
| 11 | // Register commands | ||
| 12 | ed.addCommand('mceCite', function() { | ||
| 13 | ed.windowManager.open({ | ||
| 14 | file : url + '/cite.htm', | ||
| 15 | width : 350 + parseInt(ed.getLang('xhtmlxtras.cite_delta_width', 0)), | ||
| 16 | height : 250 + parseInt(ed.getLang('xhtmlxtras.cite_delta_height', 0)), | ||
| 17 | inline : 1 | ||
| 18 | }, { | ||
| 19 | plugin_url : url | ||
| 20 | }); | ||
| 21 | }); | ||
| 22 | |||
| 23 | ed.addCommand('mceAcronym', function() { | ||
| 24 | ed.windowManager.open({ | ||
| 25 | file : url + '/acronym.htm', | ||
| 26 | width : 350 + parseInt(ed.getLang('xhtmlxtras.acronym_delta_width', 0)), | ||
| 27 | height : 250 + parseInt(ed.getLang('xhtmlxtras.acronym_delta_width', 0)), | ||
| 28 | inline : 1 | ||
| 29 | }, { | ||
| 30 | plugin_url : url | ||
| 31 | }); | ||
| 32 | }); | ||
| 33 | |||
| 34 | ed.addCommand('mceAbbr', function() { | ||
| 35 | ed.windowManager.open({ | ||
| 36 | file : url + '/abbr.htm', | ||
| 37 | width : 350 + parseInt(ed.getLang('xhtmlxtras.abbr_delta_width', 0)), | ||
| 38 | height : 250 + parseInt(ed.getLang('xhtmlxtras.abbr_delta_width', 0)), | ||
| 39 | inline : 1 | ||
| 40 | }, { | ||
| 41 | plugin_url : url | ||
| 42 | }); | ||
| 43 | }); | ||
| 44 | |||
| 45 | ed.addCommand('mceDel', function() { | ||
| 46 | ed.windowManager.open({ | ||
| 47 | file : url + '/del.htm', | ||
| 48 | width : 340 + parseInt(ed.getLang('xhtmlxtras.del_delta_width', 0)), | ||
| 49 | height : 310 + parseInt(ed.getLang('xhtmlxtras.del_delta_width', 0)), | ||
| 50 | inline : 1 | ||
| 51 | }, { | ||
| 52 | plugin_url : url | ||
| 53 | }); | ||
| 54 | }); | ||
| 55 | |||
| 56 | ed.addCommand('mceIns', function() { | ||
| 57 | ed.windowManager.open({ | ||
| 58 | file : url + '/ins.htm', | ||
| 59 | width : 340 + parseInt(ed.getLang('xhtmlxtras.ins_delta_width', 0)), | ||
| 60 | height : 310 + parseInt(ed.getLang('xhtmlxtras.ins_delta_width', 0)), | ||
| 61 | inline : 1 | ||
| 62 | }, { | ||
| 63 | plugin_url : url | ||
| 64 | }); | ||
| 65 | }); | ||
| 66 | |||
| 67 | ed.addCommand('mceAttributes', function() { | ||
| 68 | ed.windowManager.open({ | ||
| 69 | file : url + '/attributes.htm', | ||
| 70 | width : 380, | ||
| 71 | height : 370, | ||
| 72 | inline : 1 | ||
| 73 | }, { | ||
| 74 | plugin_url : url | ||
| 75 | }); | ||
| 76 | }); | ||
| 77 | |||
| 78 | // Register buttons | ||
| 79 | ed.addButton('cite', {title : 'xhtmlxtras.cite_desc', cmd : 'mceCite'}); | ||
| 80 | ed.addButton('acronym', {title : 'xhtmlxtras.acronym_desc', cmd : 'mceAcronym'}); | ||
| 81 | ed.addButton('abbr', {title : 'xhtmlxtras.abbr_desc', cmd : 'mceAbbr'}); | ||
| 82 | ed.addButton('del', {title : 'xhtmlxtras.del_desc', cmd : 'mceDel'}); | ||
| 83 | ed.addButton('ins', {title : 'xhtmlxtras.ins_desc', cmd : 'mceIns'}); | ||
| 84 | ed.addButton('attribs', {title : 'xhtmlxtras.attribs_desc', cmd : 'mceAttributes'}); | ||
| 85 | |||
| 86 | if (tinymce.isIE) { | ||
| 87 | function fix(ed, o) { | ||
| 88 | if (o.set) { | ||
| 89 | o.content = o.content.replace(/<abbr([^>]+)>/gi, '<html:abbr $1>'); | ||
| 90 | o.content = o.content.replace(/<\/abbr>/gi, '</html:abbr>'); | ||
| 91 | } | ||
| 92 | }; | ||
| 93 | |||
| 94 | ed.onBeforeSetContent.add(fix); | ||
| 95 | ed.onPostProcess.add(fix); | ||
| 96 | } | ||
| 97 | |||
| 98 | ed.onNodeChange.add(function(ed, cm, n, co) { | ||
| 99 | n = ed.dom.getParent(n, 'CITE,ACRONYM,ABBR,DEL,INS'); | ||
| 100 | |||
| 101 | cm.setDisabled('cite', co); | ||
| 102 | cm.setDisabled('acronym', co); | ||
| 103 | cm.setDisabled('abbr', co); | ||
| 104 | cm.setDisabled('del', co); | ||
| 105 | cm.setDisabled('ins', co); | ||
| 106 | cm.setDisabled('attribs', n && n.nodeName == 'BODY'); | ||
| 107 | cm.setActive('cite', 0); | ||
| 108 | cm.setActive('acronym', 0); | ||
| 109 | cm.setActive('abbr', 0); | ||
| 110 | cm.setActive('del', 0); | ||
| 111 | cm.setActive('ins', 0); | ||
| 112 | |||
| 113 | // Activate all | ||
| 114 | if (n) { | ||
| 115 | do { | ||
| 116 | cm.setDisabled(n.nodeName.toLowerCase(), 0); | ||
| 117 | cm.setActive(n.nodeName.toLowerCase(), 1); | ||
| 118 | } while (n = n.parentNode); | ||
| 119 | } | ||
| 120 | }); | ||
| 121 | }, | ||
| 122 | |||
| 123 | getInfo : function() { | ||
| 124 | return { | ||
| 125 | longname : 'XHTML Xtras Plugin', | ||
| 126 | author : 'Moxiecode Systems AB', | ||
| 127 | authorurl : 'http://tinymce.moxiecode.com', | ||
| 128 | infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/xhtmlxtras', | ||
| 129 | version : tinymce.majorVersion + "." + tinymce.minorVersion | ||
| 130 | }; | ||
| 131 | } | ||
| 132 | }); | ||
| 133 | |||
| 134 | // Register plugin | ||
| 135 | tinymce.PluginManager.add('xhtmlxtras', tinymce.plugins.XHTMLXtrasPlugin); | ||
| 136 | })(); \ No newline at end of file | ||
diff --git a/public/javascripts/tiny_mce/plugins/xhtmlxtras/ins.htm b/public/javascripts/tiny_mce/plugins/xhtmlxtras/ins.htm deleted file mode 100644 index 9fa21c4..0000000 --- a/public/javascripts/tiny_mce/plugins/xhtmlxtras/ins.htm +++ /dev/null | |||
| @@ -1,169 +0,0 @@ | |||
| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
| 3 | <head> | ||
| 4 | <title>{#xhtmlxtras_dlg.title_ins_element}</title> | ||
| 5 | <script type="text/javascript" src="../../tiny_mce_popup.js"></script> | ||
| 6 | <script type="text/javascript" src="../../utils/mctabs.js"></script> | ||
| 7 | <script type="text/javascript" src="../../utils/form_utils.js"></script> | ||
| 8 | <script type="text/javascript" src="../../utils/editable_selects.js"></script> | ||
| 9 | <script type="text/javascript" src="js/element_common.js"></script> | ||
| 10 | <script type="text/javascript" src="js/ins.js"></script> | ||
| 11 | <link rel="stylesheet" type="text/css" href="css/popup.css" /> | ||
| 12 | </head> | ||
| 13 | <body id="xhtmlxtrasins" style="display: none"> | ||
| 14 | <form onsubmit="insertIns();return false;" action="#"> | ||
| 15 | <div class="tabs"> | ||
| 16 | <ul> | ||
| 17 | <li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.general_tab}</a></span></li> | ||
| 18 | <!-- <li id="events_tab"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#xhtmlxtras_dlg.events_tab}</a></span></li> --> | ||
| 19 | </ul> | ||
| 20 | </div> | ||
| 21 | |||
| 22 | <div class="panel_wrapper"> | ||
| 23 | <div id="general_panel" class="panel current"> | ||
| 24 | <fieldset> | ||
| 25 | <legend>{#xhtmlxtras_dlg.fieldset_general_tab}</legend> | ||
| 26 | <table border="0" cellpadding="0" cellspacing="4"> | ||
| 27 | <tr> | ||
| 28 | <td class="label"><label id="datetimelabel" for="datetime">{#xhtmlxtras_dlg.attribute_label_datetime}</label>:</td> | ||
| 29 | <td> | ||
| 30 | <table border="0" cellspacing="0" cellpadding="0"> | ||
| 31 | <tr> | ||
| 32 | <td><input id="datetime" name="datetime" type="text" value="" maxlength="19" class="field mceFocus" /></td> | ||
| 33 | <td><a href="javascript:insertDateTime('datetime');" onmousedown="return false;" class="browse"><span class="datetime" title="{#xhtmlxtras_dlg.insert_date}"></span></a></td> | ||
| 34 | </tr> | ||
| 35 | </table> | ||
| 36 | </td> | ||
| 37 | </tr> | ||
| 38 | <tr> | ||
| 39 | <td class="label"><label id="citelabel" for="cite">{#xhtmlxtras_dlg.attribute_label_cite}</label>:</td> | ||
| 40 | <td><input id="cite" name="cite" type="text" value="" class="field" /></td> | ||
| 41 | </tr> | ||
| 42 | </table> | ||
| 43 | </fieldset> | ||
| 44 | <fieldset> | ||
| 45 | <legend>{#xhtmlxtras_dlg.fieldset_attrib_tab}</legend> | ||
| 46 | <table border="0" cellpadding="0" cellspacing="4"> | ||
| 47 | <tr> | ||
| 48 | <td class="label"><label id="titlelabel" for="title">{#xhtmlxtras_dlg.attribute_label_title}</label>:</td> | ||
| 49 | <td><input id="title" name="title" type="text" value="" class="field" /></td> | ||
| 50 | </tr> | ||
| 51 | <tr> | ||
| 52 | <td class="label"><label id="idlabel" for="id">{#xhtmlxtras_dlg.attribute_label_id}</label>:</td> | ||
| 53 | <td><input id="id" name="id" type="text" value="" class="field" /></td> | ||
| 54 | </tr> | ||
| 55 | <tr> | ||
| 56 | <td class="label"><label id="classlabel" for="class">{#xhtmlxtras_dlg.attribute_label_class}</label>:</td> | ||
| 57 | <td> | ||
| 58 | <select id="class" name="class" class="field mceEditableSelect"> | ||
| 59 | <option value="">{#not_set}</option> | ||
| 60 | </select> | ||
| 61 | </td> | ||
| 62 | </tr> | ||
| 63 | <tr> | ||
| 64 | <td class="label"><label id="stylelabel" for="class">{#xhtmlxtras_dlg.attribute_label_style}</label>:</td> | ||
| 65 | <td><input id="style" name="style" type="text" value="" class="field" /></td> | ||
| 66 | </tr> | ||
| 67 | <tr> | ||
| 68 | <td class="label"><label id="dirlabel" for="dir">{#xhtmlxtras_dlg.attribute_label_langdir}</label>:</td> | ||
| 69 | <td> | ||
| 70 | <select id="dir" name="dir" class="field"> | ||
| 71 | <option value="">{#not_set}</option> | ||
| 72 | <option value="ltr">{#xhtmlxtras_dlg.attribute_option_ltr}</option> | ||
| 73 | <option value="rtl">{#xhtmlxtras_dlg.attribute_option_rtl}</option> | ||
| 74 | </select> | ||
| 75 | </td> | ||
| 76 | </tr> | ||
| 77 | <tr> | ||
| 78 | <td class="label"><label id="langlabel" for="lang">{#xhtmlxtras_dlg.attribute_label_langcode}</label>:</td> | ||
| 79 | <td> | ||
| 80 | <input id="lang" name="lang" type="text" value="" class="field" /> | ||
| 81 | </td> | ||
| 82 | </tr> | ||
| 83 | </table> | ||
| 84 | </fieldset> | ||
| 85 | </div> | ||
| 86 | <div id="events_panel" class="panel"> | ||
| 87 | <fieldset> | ||
| 88 | <legend>{#xhtmlxtras_dlg.fieldset_events_tab}</legend> | ||
| 89 | |||
| 90 | <table border="0" cellpadding="0" cellspacing="4"> | ||
| 91 | <tr> | ||
| 92 | <td class="label"><label for="onfocus">onfocus</label>:</td> | ||
| 93 | <td><input id="onfocus" name="onfocus" type="text" value="" class="field" /></td> | ||
| 94 | </tr> | ||
| 95 | |||
| 96 | <tr> | ||
| 97 | <td class="label"><label for="onblur">onblur</label>:</td> | ||
| 98 | <td><input id="onblur" name="onblur" type="text" value="" class="field" /></td> | ||
| 99 | </tr> | ||
| 100 | |||
| 101 | <tr> | ||
| 102 | <td class="label"><label for="onclick">onclick</label>:</td> | ||
| 103 | <td><input id="onclick" name="onclick" type="text" value="" class="field" /></td> | ||
| 104 | </tr> | ||
| 105 | |||
| 106 | <tr> | ||
| 107 | <td class="label"><label for="ondblclick">ondblclick</label>:</td> | ||
| 108 | <td><input id="ondblclick" name="ondblclick" type="text" value="" class="field" /></td> | ||
| 109 | </tr> | ||
| 110 | |||
| 111 | <tr> | ||
| 112 | <td class="label"><label for="onmousedown">onmousedown</label>:</td> | ||
| 113 | <td><input id="onmousedown" name="onmousedown" type="text" value="" class="field" /></td> | ||
| 114 | </tr> | ||
| 115 | |||
| 116 | <tr> | ||
| 117 | <td class="label"><label for="onmouseup">onmouseup</label>:</td> | ||
| 118 | <td><input id="onmouseup" name="onmouseup" type="text" value="" class="field" /></td> | ||
| 119 | </tr> | ||
| 120 | |||
| 121 | <tr> | ||
| 122 | <td class="label"><label for="onmouseover">onmouseover</label>:</td> | ||
| 123 | <td><input id="onmouseover" name="onmouseover" type="text" value="" class="field" /></td> | ||
| 124 | </tr> | ||
| 125 | |||
| 126 | <tr> | ||
| 127 | <td class="label"><label for="onmousemove">onmousemove</label>:</td> | ||
| 128 | <td><input id="onmousemove" name="onmousemove" type="text" value="" class="field" /></td> | ||
| 129 | </tr> | ||
| 130 | |||
| 131 | <tr> | ||
| 132 | <td class="label"><label for="onmouseout">onmouseout</label>:</td> | ||
| 133 | <td><input id="onmouseout" name="onmouseout" type="text" value="" class="field" /></td> | ||
| 134 | </tr> | ||
| 135 | |||
| 136 | <tr> | ||
| 137 | <td class="label"><label for="onkeypress">onkeypress</label>:</td> | ||
| 138 | <td><input id="onkeypress" name="onkeypress" type="text" value="" class="field" /></td> | ||
| 139 | </tr> | ||
| 140 | |||
| 141 | <tr> | ||
| 142 | <td class="label"><label for="onkeydown">onkeydown</label>:</td> | ||
| 143 | <td><input id="onkeydown" name="onkeydown" type="text" value="" class="field" /></td> | ||
| 144 | </tr> | ||
| 145 | |||
| 146 | <tr> | ||
| 147 | <td class="label"><label for="onkeyup">onkeyup</label>:</td> | ||
| 148 | <td><input id="onkeyup" name="onkeyup" type="text" value="" class="field" /></td> | ||
| 149 | </tr> | ||
| 150 | </table> | ||
| 151 | </fieldset> | ||
| 152 | </div> | ||
| 153 | </div> | ||
| 154 | <div class="mceActionPanel"> | ||
| 155 | <div style="float: left"> | ||
| 156 | <input type="submit" id="insert" name="insert" value="{#update}" /> | ||
| 157 | </div> | ||
| 158 | <div style="float: left"> | ||
| 159 | <input type="button" id="remove" name="remove" class="button" value="{#xhtmlxtras_dlg.remove}" onclick="removeIns();" style="display: none;" /> | ||
| 160 | </div> | ||
| 161 | <div style="float: right"> | ||
| 162 | <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" /> | ||
| 163 | </div> | ||
| 164 | </div> | ||
| 165 | |||
| 166 | </form> | ||
| 167 | |||
| 168 | </body> | ||
| 169 | </html> | ||
diff --git a/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js b/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js deleted file mode 100644 index e84b6a8..0000000 --- a/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js +++ /dev/null | |||
| @@ -1,25 +0,0 @@ | |||
| 1 | /** | ||
| 2 | * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $ | ||
| 3 | * | ||
| 4 | * @author Moxiecode - based on work by Andrew Tetlaw | ||
| 5 | * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. | ||
| 6 | */ | ||
| 7 | |||
| 8 | function init() { | ||
| 9 | SXE.initElementDialog('abbr'); | ||
| 10 | if (SXE.currentAction == "update") { | ||
| 11 | SXE.showRemoveButton(); | ||
| 12 | } | ||
| 13 | } | ||
| 14 | |||
| 15 | function insertAbbr() { | ||
| 16 | SXE.insertElement(tinymce.isIE ? 'html:abbr' : 'abbr'); | ||
| 17 | tinyMCEPopup.close(); | ||
| 18 | } | ||
| 19 | |||
| 20 | function removeAbbr() { | ||
| 21 | SXE.removeElement('abbr'); | ||
| 22 | tinyMCEPopup.close(); | ||
| 23 | } | ||
| 24 | |||
| 25 | tinyMCEPopup.onInit.add(init); | ||
diff --git a/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js b/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js deleted file mode 100644 index 933d122..0000000 --- a/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js +++ /dev/null | |||
| @@ -1,25 +0,0 @@ | |||
| 1 | /** | ||
| 2 | * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $ | ||
| 3 | * | ||
| 4 | * @author Moxiecode - based on work by Andrew Tetlaw | ||
| 5 | * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. | ||
| 6 | */ | ||
| 7 | |||
| 8 | function init() { | ||
| 9 | SXE.initElementDialog('acronym'); | ||
| 10 | if (SXE.currentAction == "update") { | ||
| 11 | SXE.showRemoveButton(); | ||
| 12 | } | ||
| 13 | } | ||
| 14 | |||
| 15 | function insertAcronym() { | ||
| 16 | SXE.insertElement('acronym'); | ||
| 17 | tinyMCEPopup.close(); | ||
| 18 | } | ||
| 19 | |||
| 20 | function removeAcronym() { | ||
| 21 | SXE.removeElement('acronym'); | ||
| 22 | tinyMCEPopup.close(); | ||
| 23 | } | ||
| 24 | |||
| 25 | tinyMCEPopup.onInit.add(init); | ||
diff --git a/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js b/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js deleted file mode 100644 index 23c7fa4..0000000 --- a/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js +++ /dev/null | |||
| @@ -1,123 +0,0 @@ | |||
| 1 | /** | ||
| 2 | * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $ | ||
| 3 | * | ||
| 4 | * @author Moxiecode - based on work by Andrew Tetlaw | ||
| 5 | * @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved. | ||
| 6 | */ | ||
| 7 | |||
| 8 | function init() { | ||
| 9 | tinyMCEPopup.resizeToInnerSize(); | ||
| 10 | var inst = tinyMCEPopup.editor; | ||
| 11 | var dom = inst.dom; | ||
| 12 | var elm = inst.selection.getNode(); | ||
| 13 | var f = document.forms[0]; | ||
| 14 | var onclick = dom.getAttrib(elm, 'onclick'); | ||
| 15 | |||
| 16 | setFormValue('title', dom.getAttrib(elm, 'title')); | ||
| 17 | setFormValue('id', dom.getAttrib(elm, 'id')); | ||
| 18 | setFormValue('style', dom.getAttrib(elm, "style")); | ||
| 19 | setFormValue('dir', dom.getAttrib(elm, 'dir')); | ||
| 20 | setFormValue('lang', dom.getAttrib(elm, 'lang')); | ||
| 21 | setFormValue('tabindex', dom.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : "")); | ||
| 22 | setFormValue('accesskey', dom.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : "")); | ||
| 23 | setFormValue('onfocus', dom.getAttrib(elm, 'onfocus')); | ||
| 24 | setFormValue('onblur', dom.getAttrib(elm, 'onblur')); | ||
| 25 | setFormValue('onclick', onclick); | ||
| 26 | setFormValue('ondblclick', dom.getAttrib(elm, 'ondblclick')); | ||
| 27 | setFormValue('onmousedown', dom.getAttrib(elm, 'onmousedown')); | ||
| 28 | setFormValue('onmouseup', dom.getAttrib(elm, 'onmouseup')); | ||
| 29 | setFormValue('onmouseover', dom.getAttrib(elm, 'onmouseover')); | ||
| 30 | setFormValue('onmousemove', dom.getAttrib(elm, 'onmousemove')); | ||
| 31 | setFormValue('onmouseout', dom.getAttrib(elm, 'onmouseout')); | ||
| 32 | setFormValue('onkeypress', dom.getAttrib(elm, 'onkeypress')); | ||
| 33 | setFormValue('onkeydown', dom.getAttrib(elm, 'onkeydown')); | ||
| 34 | setFormValue('onkeyup', dom.getAttrib(elm, 'onkeyup')); | ||
| 35 | className = dom.getAttrib(elm, 'class'); | ||
| 36 | |||
| 37 | addClassesToList('classlist', 'advlink_styles'); | ||
| 38 | selectByValue(f, 'classlist', className, true); | ||
| 39 | |||
| 40 | TinyMCE_EditableSelects.init(); | ||
| 41 | } | ||
| 42 | |||
| 43 | function setFormValue(name, value) { | ||
| 44 | if(value && document.forms[0].elements[name]){ | ||
| 45 | document.forms[0].elements[name].value = value; | ||
| 46 | } | ||
| 47 | } | ||
| 48 | |||
| 49 | function insertAction() { | ||
| 50 | var inst = tinyMCEPopup.editor; | ||
| 51 | var elm = inst.selection.getNode(); | ||
| 52 | |||
| 53 | tinyMCEPopup.execCommand("mceBeginUndoLevel"); | ||
| 54 | setAllAttribs(elm); | ||
| 55 | tinyMCEPopup.execCommand("mceEndUndoLevel"); | ||
| 56 | tinyMCEPopup.close(); | ||
| 57 | } | ||
| 58 | |||
| 59 | function setAttrib(elm, attrib, value) { | ||
| 60 | var formObj = document.forms[0]; | ||
| 61 | var valueElm = formObj.elements[attrib.toLowerCase()]; | ||
| 62 | var inst = tinyMCEPopup.editor; | ||
| 63 | var dom = inst.dom; | ||
| 64 | |||
| 65 | if (typeof(value) == "undefined" || value == null) { | ||
| 66 | value = ""; | ||
| 67 | |||
| 68 | if (valueElm) | ||
| 69 | value = valueElm.value; | ||
| 70 | } | ||
| 71 | |||
| 72 | if (value != "") { | ||
| 73 | dom.setAttrib(elm, attrib.toLowerCase(), value); | ||
| 74 | |||
| 75 | if (attrib == "style") | ||
| 76 | attrib = "style.cssText"; | ||
| 77 | |||
| 78 | if (attrib.substring(0, 2) == 'on') | ||
| 79 | value = 'return true;' + value; | ||
| 80 | |||
| 81 | if (attrib == "class") | ||
| 82 | attrib = "className"; | ||
| 83 | |||
| 84 | elm[attrib]=value; | ||
| 85 | } else | ||
| 86 | elm.removeAttribute(attrib); | ||
| 87 | } | ||
| 88 | |||
| 89 | function setAllAttribs(elm) { | ||
| 90 | var f = document.forms[0]; | ||
| 91 | |||
| 92 | setAttrib(elm, 'title'); | ||
| 93 | setAttrib(elm, 'id'); | ||
| 94 | setAttrib(elm, 'style'); | ||
| 95 | setAttrib(elm, 'class', getSelectValue(f, 'classlist')); | ||
| 96 | setAttrib(elm, 'dir'); | ||
| 97 | setAttrib(elm, 'lang'); | ||
| 98 | setAttrib(elm, 'tabindex'); | ||
| 99 | setAttrib(elm, 'accesskey'); | ||
| 100 | setAttrib(elm, 'onfocus'); | ||
| 101 | setAttrib(elm, 'onblur'); | ||
| 102 | setAttrib(elm, 'onclick'); | ||
| 103 | setAttrib(elm, 'ondblclick'); | ||
| 104 | setAttrib(elm, 'onmousedown'); | ||
| 105 | setAttrib(elm, 'onmouseup'); | ||
| 106 | setAttrib(elm, 'onmouseover'); | ||
| 107 | setAttrib(elm, 'onmousemove'); | ||
| 108 | setAttrib(elm, 'onmouseout'); | ||
| 109 | setAttrib(elm, 'onkeypress'); | ||
| 110 | setAttrib(elm, 'onkeydown'); | ||
| 111 | setAttrib(elm, 'onkeyup'); | ||
| 112 | |||
| 113 | // Refresh in old MSIE | ||
| 114 | // if (tinyMCE.isMSIE5) | ||
| 115 | // elm.outerHTML = elm.outerHTML; | ||
| 116 | } | ||
| 117 | |||
| 118 | function insertAttribute() { | ||
| 119 | tinyMCEPopup.close(); | ||
| 120 | } | ||
| 121 | |||
| 122 | tinyMCEPopup.onInit.add(init); | ||
| 123 | tinyMCEPopup.requireLangPack(); | ||
diff --git a/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/cite.js b/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/cite.js deleted file mode 100644 index c36f7fd..0000000 --- a/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/cite.js +++ /dev/null | |||
| @@ -1,25 +0,0 @@ | |||
| 1 | /** | ||
| 2 | * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $ | ||
| 3 | * | ||
| 4 | * @author Moxiecode - based on work by Andrew Tetlaw | ||
| 5 | * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. | ||
| 6 | */ | ||
| 7 | |||
| 8 | function init() { | ||
| 9 | SXE.initElementDialog('cite'); | ||
| 10 | if (SXE.currentAction == "update") { | ||
| 11 | SXE.showRemoveButton(); | ||
| 12 | } | ||
| 13 | } | ||
| 14 | |||
| 15 | function insertCite() { | ||
| 16 | SXE.insertElement('cite'); | ||
| 17 | tinyMCEPopup.close(); | ||
| 18 | } | ||
| 19 | |||
| 20 | function removeCite() { | ||
| 21 | SXE.removeElement('cite'); | ||
| 22 | tinyMCEPopup.close(); | ||
| 23 | } | ||
| 24 | |||
| 25 | tinyMCEPopup.onInit.add(init); | ||
diff --git a/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/del.js b/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/del.js deleted file mode 100644 index 7049f2b..0000000 --- a/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/del.js +++ /dev/null | |||
| @@ -1,60 +0,0 @@ | |||
| 1 | /** | ||
| 2 | * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $ | ||
| 3 | * | ||
| 4 | * @author Moxiecode - based on work by Andrew Tetlaw | ||
| 5 | * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. | ||
| 6 | */ | ||
| 7 | |||
| 8 | function init() { | ||
| 9 | SXE.initElementDialog('del'); | ||
| 10 | if (SXE.currentAction == "update") { | ||
| 11 | setFormValue('datetime', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'datetime')); | ||
| 12 | setFormValue('cite', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'cite')); | ||
| 13 | SXE.showRemoveButton(); | ||
| 14 | } | ||
| 15 | } | ||
| 16 | |||
| 17 | function setElementAttribs(elm) { | ||
| 18 | setAllCommonAttribs(elm); | ||
| 19 | setAttrib(elm, 'datetime'); | ||
| 20 | setAttrib(elm, 'cite'); | ||
| 21 | } | ||
| 22 | |||
| 23 | function insertDel() { | ||
| 24 | var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'DEL'); | ||
| 25 | |||
| 26 | tinyMCEPopup.execCommand('mceBeginUndoLevel'); | ||
| 27 | if (elm == null) { | ||
| 28 | var s = SXE.inst.selection.getContent(); | ||
| 29 | if(s.length > 0) { | ||
| 30 | insertInlineElement('del'); | ||
| 31 | var elementArray = tinymce.grep(SXE.inst.dom.select('del'), function(n) {return n.id == '#sxe_temp_del#';}); | ||
| 32 | for (var i=0; i<elementArray.length; i++) { | ||
| 33 | var elm = elementArray[i]; | ||
| 34 | setElementAttribs(elm); | ||
| 35 | } | ||
| 36 | } | ||
| 37 | } else { | ||
| 38 | setElementAttribs(elm); | ||
| 39 | } | ||
| 40 | tinyMCEPopup.editor.nodeChanged(); | ||
| 41 | tinyMCEPopup.execCommand('mceEndUndoLevel'); | ||
| 42 | tinyMCEPopup.close(); | ||
| 43 | } | ||
| 44 | |||
| 45 | function insertInlineElement(en) { | ||
| 46 | var ed = tinyMCEPopup.editor, dom = ed.dom; | ||
| 47 | |||
| 48 | ed.getDoc().execCommand('FontName', false, 'mceinline'); | ||
| 49 | tinymce.each(dom.select(tinymce.isWebKit ? 'span' : 'font'), function(n) { | ||
| 50 | if (n.style.fontFamily == 'mceinline' || n.face == 'mceinline') | ||
| 51 | dom.replace(dom.create(en), n, 1); | ||
| 52 | }); | ||
| 53 | } | ||
| 54 | |||
| 55 | function removeDel() { | ||
| 56 | SXE.removeElement('del'); | ||
| 57 | tinyMCEPopup.close(); | ||
| 58 | } | ||
| 59 | |||
| 60 | tinyMCEPopup.onInit.add(init); | ||
diff --git a/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js b/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js deleted file mode 100644 index 70f168a..0000000 --- a/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/element_common.js +++ /dev/null | |||
| @@ -1,231 +0,0 @@ | |||
| 1 | /** | ||
| 2 | * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $ | ||
| 3 | * | ||
| 4 | * @author Moxiecode - based on work by Andrew Tetlaw | ||
| 5 | * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. | ||
| 6 | */ | ||
| 7 | |||
| 8 | tinyMCEPopup.requireLangPack(); | ||
| 9 | |||
| 10 | function initCommonAttributes(elm) { | ||
| 11 | var formObj = document.forms[0], dom = tinyMCEPopup.editor.dom; | ||
| 12 | |||
| 13 | // Setup form data for common element attributes | ||
| 14 | setFormValue('title', dom.getAttrib(elm, 'title')); | ||
| 15 | setFormValue('id', dom.getAttrib(elm, 'id')); | ||
| 16 | selectByValue(formObj, 'class', dom.getAttrib(elm, 'class'), true); | ||
| 17 | setFormValue('style', dom.getAttrib(elm, 'style')); | ||
| 18 | selectByValue(formObj, 'dir', dom.getAttrib(elm, 'dir')); | ||
| 19 | setFormValue('lang', dom.getAttrib(elm, 'lang')); | ||
| 20 | setFormValue('onfocus', dom.getAttrib(elm, 'onfocus')); | ||
| 21 | setFormValue('onblur', dom.getAttrib(elm, 'onblur')); | ||
| 22 | setFormValue('onclick', dom.getAttrib(elm, 'onclick')); | ||
| 23 | setFormValue('ondblclick', dom.getAttrib(elm, 'ondblclick')); | ||
| 24 | setFormValue('onmousedown', dom.getAttrib(elm, 'onmousedown')); | ||
| 25 | setFormValue('onmouseup', dom.getAttrib(elm, 'onmouseup')); | ||
| 26 | setFormValue('onmouseover', dom.getAttrib(elm, 'onmouseover')); | ||
| 27 | setFormValue('onmousemove', dom.getAttrib(elm, 'onmousemove')); | ||
| 28 | setFormValue('onmouseout', dom.getAttrib(elm, 'onmouseout')); | ||
| 29 | setFormValue('onkeypress', dom.getAttrib(elm, 'onkeypress')); | ||
| 30 | setFormValue('onkeydown', dom.getAttrib(elm, 'onkeydown')); | ||
| 31 | setFormValue('onkeyup', dom.getAttrib(elm, 'onkeyup')); | ||
| 32 | } | ||
| 33 | |||
| 34 | function setFormValue(name, value) { | ||
| 35 | if(document.forms[0].elements[name]) document.forms[0].elements[name].value = value; | ||
| 36 | } | ||
| 37 | |||
| 38 | function insertDateTime(id) { | ||
| 39 | document.getElementById(id).value = getDateTime(new Date(), "%Y-%m-%dT%H:%M:%S"); | ||
| 40 | } | ||
| 41 | |||
| 42 | function getDateTime(d, fmt) { | ||
| 43 | fmt = fmt.replace("%D", "%m/%d/%y"); | ||
| 44 | fmt = fmt.replace("%r", "%I:%M:%S %p"); | ||
| 45 | fmt = fmt.replace("%Y", "" + d.getFullYear()); | ||
| 46 | fmt = fmt.replace("%y", "" + d.getYear()); | ||
| 47 | fmt = fmt.replace("%m", addZeros(d.getMonth()+1, 2)); | ||
| 48 | fmt = fmt.replace("%d", addZeros(d.getDate(), 2)); | ||
| 49 | fmt = fmt.replace("%H", "" + addZeros(d.getHours(), 2)); | ||
| 50 | fmt = fmt.replace("%M", "" + addZeros(d.getMinutes(), 2)); | ||
| 51 | fmt = fmt.replace("%S", "" + addZeros(d.getSeconds(), 2)); | ||
| 52 | fmt = fmt.replace("%I", "" + ((d.getHours() + 11) % 12 + 1)); | ||
| 53 | fmt = fmt.replace("%p", "" + (d.getHours() < 12 ? "AM" : "PM")); | ||
| 54 | fmt = fmt.replace("%%", "%"); | ||
| 55 | |||
| 56 | return fmt; | ||
| 57 | } | ||
| 58 | |||
| 59 | function addZeros(value, len) { | ||
| 60 | var i; | ||
| 61 | |||
| 62 | value = "" + value; | ||
| 63 | |||
| 64 | if (value.length < len) { | ||
| 65 | for (i=0; i<(len-value.length); i++) | ||
| 66 | value = "0" + value; | ||
| 67 | } | ||
| 68 | |||
| 69 | return value; | ||
| 70 | } | ||
| 71 | |||
| 72 | function selectByValue(form_obj, field_name, value, add_custom, ignore_case) { | ||
| 73 | if (!form_obj || !form_obj.elements[field_name]) | ||
| 74 | return; | ||
| 75 | |||
| 76 | var sel = form_obj.elements[field_name]; | ||
| 77 | |||
| 78 | var found = false; | ||
| 79 | for (var i=0; i<sel.options.length; i++) { | ||
| 80 | var option = sel.options[i]; | ||
| 81 | |||
| 82 | if (option.value == value || (ignore_case && option.value.toLowerCase() == value.toLowerCase())) { | ||
| 83 | option.selected = true; | ||
| 84 | found = true; | ||
| 85 | } else | ||
| 86 | option.selected = false; | ||
| 87 | } | ||
| 88 | |||
| 89 | if (!found && add_custom && value != '') { | ||
| 90 | var option = new Option('Value: ' + value, value); | ||
| 91 | option.selected = true; | ||
| 92 | sel.options[sel.options.length] = option; | ||
| 93 | } | ||
| 94 | |||
| 95 | return found; | ||
| 96 | } | ||
| 97 | |||
| 98 | function setAttrib(elm, attrib, value) { | ||
| 99 | var formObj = document.forms[0]; | ||
| 100 | var valueElm = formObj.elements[attrib.toLowerCase()]; | ||
| 101 | tinyMCEPopup.editor.dom.setAttrib(elm, attrib, value || valueElm.value); | ||
| 102 | } | ||
| 103 | |||
| 104 | function setAllCommonAttribs(elm) { | ||
| 105 | setAttrib(elm, 'title'); | ||
| 106 | setAttrib(elm, 'id'); | ||
| 107 | setAttrib(elm, 'class'); | ||
| 108 | setAttrib(elm, 'style'); | ||
| 109 | setAttrib(elm, 'dir'); | ||
| 110 | setAttrib(elm, 'lang'); | ||
| 111 | /*setAttrib(elm, 'onfocus'); | ||
| 112 | setAttrib(elm, 'onblur'); | ||
| 113 | setAttrib(elm, 'onclick'); | ||
| 114 | setAttrib(elm, 'ondblclick'); | ||
| 115 | setAttrib(elm, 'onmousedown'); | ||
| 116 | setAttrib(elm, 'onmouseup'); | ||
| 117 | setAttrib(elm, 'onmouseover'); | ||
| 118 | setAttrib(elm, 'onmousemove'); | ||
| 119 | setAttrib(elm, 'onmouseout'); | ||
| 120 | setAttrib(elm, 'onkeypress'); | ||
| 121 | setAttrib(elm, 'onkeydown'); | ||
| 122 | setAttrib(elm, 'onkeyup');*/ | ||
| 123 | } | ||
| 124 | |||
| 125 | SXE = { | ||
| 126 | currentAction : "insert", | ||
| 127 | inst : tinyMCEPopup.editor, | ||
| 128 | updateElement : null | ||
| 129 | } | ||
| 130 | |||
| 131 | SXE.focusElement = SXE.inst.selection.getNode(); | ||
| 132 | |||
| 133 | SXE.initElementDialog = function(element_name) { | ||
| 134 | addClassesToList('class', 'xhtmlxtras_styles'); | ||
| 135 | TinyMCE_EditableSelects.init(); | ||
| 136 | |||
| 137 | element_name = element_name.toLowerCase(); | ||
| 138 | var elm = SXE.inst.dom.getParent(SXE.focusElement, element_name.toUpperCase()); | ||
| 139 | if (elm != null && elm.nodeName.toUpperCase() == element_name.toUpperCase()) { | ||
| 140 | SXE.currentAction = "update"; | ||
| 141 | } | ||
| 142 | |||
| 143 | if (SXE.currentAction == "update") { | ||
| 144 | initCommonAttributes(elm); | ||
| 145 | SXE.updateElement = elm; | ||
| 146 | } | ||
| 147 | |||
| 148 | document.forms[0].insert.value = tinyMCEPopup.getLang(SXE.currentAction, 'Insert', true); | ||
| 149 | } | ||
| 150 | |||
| 151 | SXE.insertElement = function(element_name) { | ||
| 152 | var elm = SXE.inst.dom.getParent(SXE.focusElement, element_name.toUpperCase()), h, tagName; | ||
| 153 | |||
| 154 | tinyMCEPopup.execCommand('mceBeginUndoLevel'); | ||
| 155 | if (elm == null) { | ||
| 156 | var s = SXE.inst.selection.getContent(); | ||
| 157 | if(s.length > 0) { | ||
| 158 | tagName = element_name; | ||
| 159 | |||
| 160 | if (tinymce.isIE && element_name.indexOf('html:') == 0) | ||
| 161 | element_name = element_name.substring(5).toLowerCase(); | ||
| 162 | |||
| 163 | insertInlineElement(element_name); | ||
| 164 | var elementArray = tinymce.grep(SXE.inst.dom.select(element_name)); | ||
| 165 | for (var i=0; i<elementArray.length; i++) { | ||
| 166 | var elm = elementArray[i]; | ||
| 167 | |||
| 168 | if (SXE.inst.dom.getAttrib(elm, '_mce_new')) { | ||
| 169 | elm.id = ''; | ||
| 170 | elm.setAttribute('id', ''); | ||
| 171 | elm.removeAttribute('id'); | ||
| 172 | elm.removeAttribute('_mce_new'); | ||
| 173 | |||
| 174 | setAllCommonAttribs(elm); | ||
| 175 | } | ||
| 176 | } | ||
| 177 | } | ||
| 178 | } else { | ||
| 179 | setAllCommonAttribs(elm); | ||
| 180 | } | ||
| 181 | SXE.inst.nodeChanged(); | ||
| 182 | tinyMCEPopup.execCommand('mceEndUndoLevel'); | ||
| 183 | } | ||
| 184 | |||
| 185 | SXE.removeElement = function(element_name){ | ||
| 186 | element_name = element_name.toLowerCase(); | ||
| 187 | elm = SXE.inst.dom.getParent(SXE.focusElement, element_name.toUpperCase()); | ||
| 188 | if(elm && elm.nodeName.toUpperCase() == element_name.toUpperCase()){ | ||
| 189 | tinyMCEPopup.execCommand('mceBeginUndoLevel'); | ||
| 190 | tinyMCE.execCommand('mceRemoveNode', false, elm); | ||
| 191 | SXE.inst.nodeChanged(); | ||
| 192 | tinyMCEPopup.execCommand('mceEndUndoLevel'); | ||
| 193 | } | ||
| 194 | } | ||
| 195 | |||
| 196 | SXE.showRemoveButton = function() { | ||
| 197 | document.getElementById("remove").style.display = 'block'; | ||
| 198 | } | ||
| 199 | |||
| 200 | SXE.containsClass = function(elm,cl) { | ||
| 201 | return (elm.className.indexOf(cl) > -1) ? true : false; | ||
| 202 | } | ||
| 203 | |||
| 204 | SXE.removeClass = function(elm,cl) { | ||
| 205 | if(elm.className == null || elm.className == "" || !SXE.containsClass(elm,cl)) { | ||
| 206 | return true; | ||
| 207 | } | ||
| 208 | var classNames = elm.className.split(" "); | ||
| 209 | var newClassNames = ""; | ||
| 210 | for (var x = 0, cnl = classNames.length; x < cnl; x++) { | ||
| 211 | if (classNames[x] != cl) { | ||
| 212 | newClassNames += (classNames[x] + " "); | ||
| 213 | } | ||
| 214 | } | ||
| 215 | elm.className = newClassNames.substring(0,newClassNames.length-1); //removes extra space at the end | ||
| 216 | } | ||
| 217 | |||
| 218 | SXE.addClass = function(elm,cl) { | ||
| 219 | if(!SXE.containsClass(elm,cl)) elm.className ? elm.className += " " + cl : elm.className = cl; | ||
| 220 | return true; | ||
| 221 | } | ||
| 222 | |||
| 223 | function insertInlineElement(en) { | ||
| 224 | var ed = tinyMCEPopup.editor, dom = ed.dom; | ||
| 225 | |||
| 226 | ed.getDoc().execCommand('FontName', false, 'mceinline'); | ||
| 227 | tinymce.each(dom.select('span,font'), function(n) { | ||
| 228 | if (n.style.fontFamily == 'mceinline' || n.face == 'mceinline') | ||
| 229 | dom.replace(dom.create(en, {_mce_new : 1}), n, 1); | ||
| 230 | }); | ||
| 231 | } | ||
diff --git a/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/ins.js b/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/ins.js deleted file mode 100644 index 4fcc998..0000000 --- a/public/javascripts/tiny_mce/plugins/xhtmlxtras/js/ins.js +++ /dev/null | |||
| @@ -1,59 +0,0 @@ | |||
| 1 | /** | ||
| 2 | * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $ | ||
| 3 | * | ||
| 4 | * @author Moxiecode - based on work by Andrew Tetlaw | ||
| 5 | * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. | ||
| 6 | */ | ||
| 7 | |||
| 8 | function init() { | ||
| 9 | SXE.initElementDialog('ins'); | ||
| 10 | if (SXE.currentAction == "update") { | ||
| 11 | setFormValue('datetime', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'datetime')); | ||
| 12 | setFormValue('cite', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'cite')); | ||
| 13 | SXE.showRemoveButton(); | ||
| 14 | } | ||
| 15 | } | ||
| 16 | |||
| 17 | function setElementAttribs(elm) { | ||
| 18 | setAllCommonAttribs(elm); | ||
| 19 | setAttrib(elm, 'datetime'); | ||
| 20 | setAttrib(elm, 'cite'); | ||
| 21 | } | ||
| 22 | |||
| 23 | function insertIns() { | ||
| 24 | var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'INS'); | ||
| 25 | tinyMCEPopup.execCommand('mceBeginUndoLevel'); | ||
| 26 | if (elm == null) { | ||
| 27 | var s = SXE.inst.selection.getContent(); | ||
| 28 | if(s.length > 0) { | ||
| 29 | insertInlineElement('INS'); | ||
| 30 | var elementArray = tinymce.grep(SXE.inst.dom.select('ins'), function(n) {return n.id == '#sxe_temp_ins#';}); | ||
| 31 | for (var i=0; i<elementArray.length; i++) { | ||
| 32 | var elm = elementArray[i]; | ||
| 33 | setElementAttribs(elm); | ||
| 34 | } | ||
| 35 | } | ||
| 36 | } else { | ||
| 37 | setElementAttribs(elm); | ||
| 38 | } | ||
| 39 | tinyMCEPopup.editor.nodeChanged(); | ||
| 40 | tinyMCEPopup.execCommand('mceEndUndoLevel'); | ||
| 41 | tinyMCEPopup.close(); | ||
| 42 | } | ||
| 43 | |||
| 44 | function removeIns() { | ||
| 45 | SXE.removeElement('ins'); | ||
| 46 | tinyMCEPopup.close(); | ||
| 47 | } | ||
| 48 | |||
| 49 | function insertInlineElement(en) { | ||
| 50 | var ed = tinyMCEPopup.editor, dom = ed.dom; | ||
| 51 | |||
| 52 | ed.getDoc().execCommand('FontName', false, 'mceinline'); | ||
| 53 | tinymce.each(dom.select(tinymce.isWebKit ? 'span' : 'font'), function(n) { | ||
| 54 | if (n.style.fontFamily == 'mceinline' || n.face == 'mceinline') | ||
| 55 | dom.replace(dom.create(en), n, 1); | ||
| 56 | }); | ||
| 57 | } | ||
| 58 | |||
| 59 | tinyMCEPopup.onInit.add(init); | ||
diff --git a/public/javascripts/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js b/public/javascripts/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js deleted file mode 100644 index 45b6b26..0000000 --- a/public/javascripts/tiny_mce/plugins/xhtmlxtras/langs/en_dlg.js +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | tinyMCE.addI18n('en.xhtmlxtras_dlg',{ | ||
| 2 | attribute_label_title:"Title", | ||
| 3 | attribute_label_id:"ID", | ||
| 4 | attribute_label_class:"Class", | ||
| 5 | attribute_label_style:"Style", | ||
| 6 | attribute_label_cite:"Cite", | ||
| 7 | attribute_label_datetime:"Date/Time", | ||
| 8 | attribute_label_langdir:"Text Direction", | ||
| 9 | attribute_option_ltr:"Left to right", | ||
| 10 | attribute_option_rtl:"Right to left", | ||
| 11 | attribute_label_langcode:"Language", | ||
| 12 | attribute_label_tabindex:"TabIndex", | ||
| 13 | attribute_label_accesskey:"AccessKey", | ||
| 14 | attribute_events_tab:"Events", | ||
| 15 | attribute_attrib_tab:"Attributes", | ||
| 16 | general_tab:"General", | ||
| 17 | attrib_tab:"Attributes", | ||
| 18 | events_tab:"Events", | ||
| 19 | fieldset_general_tab:"General Settings", | ||
| 20 | fieldset_attrib_tab:"Element Attributes", | ||
| 21 | fieldset_events_tab:"Element Events", | ||
| 22 | title_ins_element:"Insertion Element", | ||
| 23 | title_del_element:"Deletion Element", | ||
| 24 | title_acronym_element:"Acronym Element", | ||
| 25 | title_abbr_element:"Abbreviation Element", | ||
| 26 | title_cite_element:"Citation Element", | ||
| 27 | remove:"Remove", | ||
| 28 | insert_date:"Insert current date/time", | ||
| 29 | option_ltr:"Left to right", | ||
| 30 | option_rtl:"Right to left", | ||
| 31 | attribs_title:"Insert/Edit Attributes" | ||
| 32 | }); \ No newline at end of file | ||
