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/js/del.js | |
| 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/js/del.js')
| -rw-r--r-- | public/javascripts/tiny_mce/plugins/xhtmlxtras/js/del.js | 60 |
1 files changed, 0 insertions, 60 deletions
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); | ||
