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/advhr | |
| 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/advhr')
6 files changed, 0 insertions, 170 deletions
diff --git a/public/javascripts/tiny_mce/plugins/advhr/css/advhr.css b/public/javascripts/tiny_mce/plugins/advhr/css/advhr.css deleted file mode 100644 index 0e22834..0000000 --- a/public/javascripts/tiny_mce/plugins/advhr/css/advhr.css +++ /dev/null | |||
| @@ -1,5 +0,0 @@ | |||
| 1 | input.radio {border:1px none #000; background:transparent; vertical-align:middle;} | ||
| 2 | .panel_wrapper div.current {height:80px;} | ||
| 3 | #width {width:50px; vertical-align:middle;} | ||
| 4 | #width2 {width:50px; vertical-align:middle;} | ||
| 5 | #size {width:100px;} | ||
diff --git a/public/javascripts/tiny_mce/plugins/advhr/editor_plugin.js b/public/javascripts/tiny_mce/plugins/advhr/editor_plugin.js deleted file mode 100644 index 4d3b062..0000000 --- a/public/javascripts/tiny_mce/plugins/advhr/editor_plugin.js +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | (function(){tinymce.create("tinymce.plugins.AdvancedHRPlugin",{init:function(a,b){a.addCommand("mceAdvancedHr",function(){a.windowManager.open({file:b+"/rule.htm",width:250+parseInt(a.getLang("advhr.delta_width",0)),height:160+parseInt(a.getLang("advhr.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("advhr",{title:"advhr.advhr_desc",cmd:"mceAdvancedHr"});a.onNodeChange.add(function(d,c,e){c.setActive("advhr",e.nodeName=="HR")});a.onClick.add(function(c,d){d=d.target;if(d.nodeName==="HR"){c.selection.select(d)}})},getInfo:function(){return{longname:"Advanced HR",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advhr",tinymce.plugins.AdvancedHRPlugin)})(); \ No newline at end of file | ||
diff --git a/public/javascripts/tiny_mce/plugins/advhr/editor_plugin_src.js b/public/javascripts/tiny_mce/plugins/advhr/editor_plugin_src.js deleted file mode 100644 index 8a84753..0000000 --- a/public/javascripts/tiny_mce/plugins/advhr/editor_plugin_src.js +++ /dev/null | |||
| @@ -1,54 +0,0 @@ | |||
| 1 | /** | ||
| 2 | * $Id: editor_plugin_src.js 520 2008-01-07 16:30:32Z 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.AdvancedHRPlugin', { | ||
| 10 | init : function(ed, url) { | ||
| 11 | // Register commands | ||
| 12 | ed.addCommand('mceAdvancedHr', function() { | ||
| 13 | ed.windowManager.open({ | ||
| 14 | file : url + '/rule.htm', | ||
| 15 | width : 250 + parseInt(ed.getLang('advhr.delta_width', 0)), | ||
| 16 | height : 160 + parseInt(ed.getLang('advhr.delta_height', 0)), | ||
| 17 | inline : 1 | ||
| 18 | }, { | ||
| 19 | plugin_url : url | ||
| 20 | }); | ||
| 21 | }); | ||
| 22 | |||
| 23 | // Register buttons | ||
| 24 | ed.addButton('advhr', { | ||
| 25 | title : 'advhr.advhr_desc', | ||
| 26 | cmd : 'mceAdvancedHr' | ||
| 27 | }); | ||
| 28 | |||
| 29 | ed.onNodeChange.add(function(ed, cm, n) { | ||
| 30 | cm.setActive('advhr', n.nodeName == 'HR'); | ||
| 31 | }); | ||
| 32 | |||
| 33 | ed.onClick.add(function(ed, e) { | ||
| 34 | e = e.target; | ||
| 35 | |||
| 36 | if (e.nodeName === 'HR') | ||
| 37 | ed.selection.select(e); | ||
| 38 | }); | ||
| 39 | }, | ||
| 40 | |||
| 41 | getInfo : function() { | ||
| 42 | return { | ||
| 43 | longname : 'Advanced HR', | ||
| 44 | author : 'Moxiecode Systems AB', | ||
| 45 | authorurl : 'http://tinymce.moxiecode.com', | ||
| 46 | infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr', | ||
| 47 | version : tinymce.majorVersion + "." + tinymce.minorVersion | ||
| 48 | }; | ||
| 49 | } | ||
| 50 | }); | ||
| 51 | |||
| 52 | // Register plugin | ||
| 53 | tinymce.PluginManager.add('advhr', tinymce.plugins.AdvancedHRPlugin); | ||
| 54 | })(); \ No newline at end of file | ||
diff --git a/public/javascripts/tiny_mce/plugins/advhr/js/rule.js b/public/javascripts/tiny_mce/plugins/advhr/js/rule.js deleted file mode 100644 index b6cbd66..0000000 --- a/public/javascripts/tiny_mce/plugins/advhr/js/rule.js +++ /dev/null | |||
| @@ -1,43 +0,0 @@ | |||
| 1 | var AdvHRDialog = { | ||
| 2 | init : function(ed) { | ||
| 3 | var dom = ed.dom, f = document.forms[0], n = ed.selection.getNode(), w; | ||
| 4 | |||
| 5 | w = dom.getAttrib(n, 'width'); | ||
| 6 | f.width.value = w ? parseInt(w) : (dom.getStyle('width') || ''); | ||
| 7 | f.size.value = dom.getAttrib(n, 'size') || parseInt(dom.getStyle('height')) || ''; | ||
| 8 | f.noshade.checked = !!dom.getAttrib(n, 'noshade') || !!dom.getStyle('border-width'); | ||
| 9 | selectByValue(f, 'width2', w.indexOf('%') != -1 ? '%' : 'px'); | ||
| 10 | }, | ||
| 11 | |||
| 12 | update : function() { | ||
| 13 | var ed = tinyMCEPopup.editor, h, f = document.forms[0], st = ''; | ||
| 14 | |||
| 15 | h = '<hr'; | ||
| 16 | |||
| 17 | if (f.size.value) { | ||
| 18 | h += ' size="' + f.size.value + '"'; | ||
| 19 | st += ' height:' + f.size.value + 'px;'; | ||
| 20 | } | ||
| 21 | |||
| 22 | if (f.width.value) { | ||
| 23 | h += ' width="' + f.width.value + (f.width2.value == '%' ? '%' : '') + '"'; | ||
| 24 | st += ' width:' + f.width.value + (f.width2.value == '%' ? '%' : 'px') + ';'; | ||
| 25 | } | ||
| 26 | |||
| 27 | if (f.noshade.checked) { | ||
| 28 | h += ' noshade="noshade"'; | ||
| 29 | st += ' border-width: 1px; border-style: solid; border-color: #CCCCCC; color: #ffffff;'; | ||
| 30 | } | ||
| 31 | |||
| 32 | if (ed.settings.inline_styles) | ||
| 33 | h += ' style="' + tinymce.trim(st) + '"'; | ||
| 34 | |||
| 35 | h += ' />'; | ||
| 36 | |||
| 37 | ed.execCommand("mceInsertContent", false, h); | ||
| 38 | tinyMCEPopup.close(); | ||
| 39 | } | ||
| 40 | }; | ||
| 41 | |||
| 42 | tinyMCEPopup.requireLangPack(); | ||
| 43 | tinyMCEPopup.onInit.add(AdvHRDialog.init, AdvHRDialog); | ||
diff --git a/public/javascripts/tiny_mce/plugins/advhr/langs/en_dlg.js b/public/javascripts/tiny_mce/plugins/advhr/langs/en_dlg.js deleted file mode 100644 index 873bfd8..0000000 --- a/public/javascripts/tiny_mce/plugins/advhr/langs/en_dlg.js +++ /dev/null | |||
| @@ -1,5 +0,0 @@ | |||
| 1 | tinyMCE.addI18n('en.advhr_dlg',{ | ||
| 2 | width:"Width", | ||
| 3 | size:"Height", | ||
| 4 | noshade:"No shadow" | ||
| 5 | }); \ No newline at end of file | ||
diff --git a/public/javascripts/tiny_mce/plugins/advhr/rule.htm b/public/javascripts/tiny_mce/plugins/advhr/rule.htm deleted file mode 100644 index 75ca339..0000000 --- a/public/javascripts/tiny_mce/plugins/advhr/rule.htm +++ /dev/null | |||
| @@ -1,62 +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>{#advhr.advhr_desc}</title> | ||
| 5 | <script type="text/javascript" src="../../tiny_mce_popup.js"></script> | ||
| 6 | <script type="text/javascript" src="js/rule.js"></script> | ||
| 7 | <script type="text/javascript" src="../../utils/mctabs.js"></script> | ||
| 8 | <script type="text/javascript" src="../../utils/form_utils.js"></script> | ||
| 9 | <link href="css/advhr.css" rel="stylesheet" type="text/css" /> | ||
| 10 | </head> | ||
| 11 | <body> | ||
| 12 | <form onsubmit="AdvHRDialog.update();return false;" action="#"> | ||
| 13 | <div class="tabs"> | ||
| 14 | <ul> | ||
| 15 | <li id="general_tab" class="current"><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advhr.advhr_desc}</a></span></li> | ||
| 16 | </ul> | ||
| 17 | </div> | ||
| 18 | |||
| 19 | <div class="panel_wrapper"> | ||
| 20 | <div id="general_panel" class="panel current"> | ||
| 21 | <table border="0" cellpadding="4" cellspacing="0"> | ||
| 22 | <tr> | ||
| 23 | <td><label for="width">{#advhr_dlg.width}</label></td> | ||
| 24 | <td class="nowrap"> | ||
| 25 | <input id="width" name="width" type="text" value="" class="mceFocus" /> | ||
| 26 | <select name="width2" id="width2"> | ||
| 27 | <option value="">px</option> | ||
| 28 | <option value="%">%</option> | ||
| 29 | </select> | ||
| 30 | </td> | ||
| 31 | </tr> | ||
| 32 | <tr> | ||
| 33 | <td><label for="size">{#advhr_dlg.size}</label></td> | ||
| 34 | <td><select id="size" name="size"> | ||
| 35 | <option value="">Normal</option> | ||
| 36 | <option value="1">1</option> | ||
| 37 | <option value="2">2</option> | ||
| 38 | <option value="3">3</option> | ||
| 39 | <option value="4">4</option> | ||
| 40 | <option value="5">5</option> | ||
| 41 | </select></td> | ||
| 42 | </tr> | ||
| 43 | <tr> | ||
| 44 | <td><label for="noshade">{#advhr_dlg.noshade}</label></td> | ||
| 45 | <td><input type="checkbox" name="noshade" id="noshade" class="radio" /></td> | ||
| 46 | </tr> | ||
| 47 | </table> | ||
| 48 | </div> | ||
| 49 | </div> | ||
| 50 | |||
| 51 | <div class="mceActionPanel"> | ||
| 52 | <div style="float: left"> | ||
| 53 | <input type="submit" id="insert" name="insert" value="{#insert}" /> | ||
| 54 | </div> | ||
| 55 | |||
| 56 | <div style="float: right"> | ||
| 57 | <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" /> | ||
| 58 | </div> | ||
| 59 | </div> | ||
| 60 | </form> | ||
| 61 | </body> | ||
| 62 | </html> | ||
