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/visualchars | |
| 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/visualchars')
| -rw-r--r-- | public/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js | 1 | ||||
| -rw-r--r-- | public/javascripts/tiny_mce/plugins/visualchars/editor_plugin_src.js | 73 |
2 files changed, 0 insertions, 74 deletions
diff --git a/public/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js b/public/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js deleted file mode 100644 index 53d31c4..0000000 --- a/public/javascripts/tiny_mce/plugins/visualchars/editor_plugin.js +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | (function(){tinymce.create("tinymce.plugins.VisualChars",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceVisualChars",c._toggleVisualChars,c);a.addButton("visualchars",{title:"visualchars.desc",cmd:"mceVisualChars"});a.onBeforeGetContent.add(function(d,e){if(c.state){c.state=true;c._toggleVisualChars()}})},getInfo:function(){return{longname:"Visual characters",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/visualchars",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_toggleVisualChars:function(){var m=this,g=m.editor,a,e,f,k=g.getDoc(),l=g.getBody(),j,n=g.selection,c;m.state=!m.state;g.controlManager.setActive("visualchars",m.state);if(m.state){a=[];tinymce.walk(l,function(b){if(b.nodeType==3&&b.nodeValue&&b.nodeValue.indexOf("\u00a0")!=-1){a.push(b)}},"childNodes");for(e=0;e<a.length;e++){j=a[e].nodeValue;j=j.replace(/(\u00a0+)/g,'<span class="mceItemHidden mceVisualNbsp">$1</span>');j=j.replace(/\u00a0/g,"\u00b7");g.dom.setOuterHTML(a[e],j,k)}}else{a=tinymce.grep(g.dom.select("span",l),function(b){return g.dom.hasClass(b,"mceVisualNbsp")});for(e=0;e<a.length;e++){g.dom.setOuterHTML(a[e],a[e].innerHTML.replace(/(·|\u00b7)/g," "),k)}}}});tinymce.PluginManager.add("visualchars",tinymce.plugins.VisualChars)})(); \ No newline at end of file | ||
diff --git a/public/javascripts/tiny_mce/plugins/visualchars/editor_plugin_src.js b/public/javascripts/tiny_mce/plugins/visualchars/editor_plugin_src.js deleted file mode 100644 index 02ec4e6..0000000 --- a/public/javascripts/tiny_mce/plugins/visualchars/editor_plugin_src.js +++ /dev/null | |||
| @@ -1,73 +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.VisualChars', { | ||
| 10 | init : function(ed, url) { | ||
| 11 | var t = this; | ||
| 12 | |||
| 13 | t.editor = ed; | ||
| 14 | |||
| 15 | // Register commands | ||
| 16 | ed.addCommand('mceVisualChars', t._toggleVisualChars, t); | ||
| 17 | |||
| 18 | // Register buttons | ||
| 19 | ed.addButton('visualchars', {title : 'visualchars.desc', cmd : 'mceVisualChars'}); | ||
| 20 | |||
| 21 | ed.onBeforeGetContent.add(function(ed, o) { | ||
| 22 | if (t.state) { | ||
| 23 | t.state = true; | ||
| 24 | t._toggleVisualChars(); | ||
| 25 | } | ||
| 26 | }); | ||
| 27 | }, | ||
| 28 | |||
| 29 | getInfo : function() { | ||
| 30 | return { | ||
| 31 | longname : 'Visual characters', | ||
| 32 | author : 'Moxiecode Systems AB', | ||
| 33 | authorurl : 'http://tinymce.moxiecode.com', | ||
| 34 | infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/visualchars', | ||
| 35 | version : tinymce.majorVersion + "." + tinymce.minorVersion | ||
| 36 | }; | ||
| 37 | }, | ||
| 38 | |||
| 39 | // Private methods | ||
| 40 | |||
| 41 | _toggleVisualChars : function() { | ||
| 42 | var t = this, ed = t.editor, nl, i, h, d = ed.getDoc(), b = ed.getBody(), nv, s = ed.selection, bo; | ||
| 43 | |||
| 44 | t.state = !t.state; | ||
| 45 | ed.controlManager.setActive('visualchars', t.state); | ||
| 46 | |||
| 47 | if (t.state) { | ||
| 48 | nl = []; | ||
| 49 | tinymce.walk(b, function(n) { | ||
| 50 | if (n.nodeType == 3 && n.nodeValue && n.nodeValue.indexOf('\u00a0') != -1) | ||
| 51 | nl.push(n); | ||
| 52 | }, 'childNodes'); | ||
| 53 | |||
| 54 | for (i=0; i<nl.length; i++) { | ||
| 55 | nv = nl[i].nodeValue; | ||
| 56 | nv = nv.replace(/(\u00a0+)/g, '<span class="mceItemHidden mceVisualNbsp">$1</span>'); | ||
| 57 | nv = nv.replace(/\u00a0/g, '\u00b7'); | ||
| 58 | ed.dom.setOuterHTML(nl[i], nv, d); | ||
| 59 | } | ||
| 60 | } else { | ||
| 61 | nl = tinymce.grep(ed.dom.select('span', b), function(n) { | ||
| 62 | return ed.dom.hasClass(n, 'mceVisualNbsp'); | ||
| 63 | }); | ||
| 64 | |||
| 65 | for (i=0; i<nl.length; i++) | ||
| 66 | ed.dom.setOuterHTML(nl[i], nl[i].innerHTML.replace(/(·|\u00b7)/g, ' '), d); | ||
| 67 | } | ||
| 68 | } | ||
| 69 | }); | ||
| 70 | |||
| 71 | // Register plugin | ||
| 72 | tinymce.PluginManager.add('visualchars', tinymce.plugins.VisualChars); | ||
| 73 | })(); \ No newline at end of file | ||
