diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-06-27 22:52:50 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-06-27 22:52:50 +0200 |
| commit | 9a19a0494ef51cdac9a78e24d517ca48ba44c453 (patch) | |
| tree | 8eaae12d8047a40e29d3ea7ff3116b5c869e04bd /public/assets/tinymce/plugins/nonbreaking | |
| parent | 85a01e35274b8d4d4165a7b26bd7986e211246bb (diff) | |
| parent | 1853082fcd8c067390c246f9daa01a9b47387497 (diff) | |
Migration from Rails 2.3.5 to Rails 8.1 successful.
Merging dev branch.
Diffstat (limited to 'public/assets/tinymce/plugins/nonbreaking')
4 files changed, 3 insertions, 0 deletions
diff --git a/public/assets/tinymce/plugins/nonbreaking/plugin-8e7036957dbd58c131a33e78e7fa5bc2cd8710f7ef0ba3f19e5a21d854eb0b80.js b/public/assets/tinymce/plugins/nonbreaking/plugin-8e7036957dbd58c131a33e78e7fa5bc2cd8710f7ef0ba3f19e5a21d854eb0b80.js new file mode 100644 index 0000000..6c9e67b --- /dev/null +++ b/public/assets/tinymce/plugins/nonbreaking/plugin-8e7036957dbd58c131a33e78e7fa5bc2cd8710f7ef0ba3f19e5a21d854eb0b80.js | |||
| @@ -0,0 +1 @@ | |||
| !function(){"use strict";var n=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=n=>e=>typeof e===n,o=e("boolean"),a=e("number"),t=n=>e=>e.options.get(n),i=t("nonbreaking_force_tab"),s=t("nonbreaking_wrap"),r=(n,e)=>{let o="";for(let a=0;a<e;a++)o+=n;return o},c=(n,e)=>{const o=s(n)||n.plugins.visualchars?`<span class="${(n=>!!n.plugins.visualchars&&n.plugins.visualchars.isEnabled())(n)?"mce-nbsp-wrap mce-nbsp":"mce-nbsp-wrap"}" contenteditable="false">${r(" ",e)}</span>`:r(" ",e);n.undoManager.transact(()=>n.insertContent(o))};var l=tinymce.util.Tools.resolve("tinymce.util.VK");const u=n=>e=>{const o=()=>{e.setEnabled(n.selection.isEditable())};return n.on("NodeChange",o),o(),()=>{n.off("NodeChange",o)}};n.add("nonbreaking",n=>{(n=>{const e=n.options.register;e("nonbreaking_force_tab",{processor:n=>o(n)?{value:n?3:0,valid:!0}:a(n)?{value:n,valid:!0}:{valid:!1,message:"Must be a boolean or number."},default:!1}),e("nonbreaking_wrap",{processor:"boolean",default:!0})})(n),(n=>{n.addCommand("mceNonBreaking",()=>{c(n,1)})})(n),(n=>{const e=()=>n.execCommand("mceNonBreaking");n.ui.registry.addButton("nonbreaking",{icon:"non-breaking",tooltip:"Nonbreaking space",onAction:e,onSetup:u(n)}),n.ui.registry.addMenuItem("nonbreaking",{icon:"non-breaking",text:"Nonbreaking space",onAction:e,onSetup:u(n)})})(n),(n=>{const e=i(n);e>0&&n.on("keydown",o=>{if(o.keyCode===l.TAB&&!o.isDefaultPrevented()){if(o.shiftKey)return;o.preventDefault(),o.stopImmediatePropagation(),c(n,e)}})})(n)})}(); | |||
diff --git a/public/assets/tinymce/plugins/nonbreaking/plugin-8e7036957dbd58c131a33e78e7fa5bc2cd8710f7ef0ba3f19e5a21d854eb0b80.js.gz b/public/assets/tinymce/plugins/nonbreaking/plugin-8e7036957dbd58c131a33e78e7fa5bc2cd8710f7ef0ba3f19e5a21d854eb0b80.js.gz new file mode 100644 index 0000000..eca6eca --- /dev/null +++ b/public/assets/tinymce/plugins/nonbreaking/plugin-8e7036957dbd58c131a33e78e7fa5bc2cd8710f7ef0ba3f19e5a21d854eb0b80.js.gz | |||
| Binary files differ | |||
diff --git a/public/assets/tinymce/plugins/nonbreaking/plugin.js b/public/assets/tinymce/plugins/nonbreaking/plugin.js new file mode 120000 index 0000000..79bb58a --- /dev/null +++ b/public/assets/tinymce/plugins/nonbreaking/plugin.js | |||
| @@ -0,0 +1 @@ | |||
| plugin-8e7036957dbd58c131a33e78e7fa5bc2cd8710f7ef0ba3f19e5a21d854eb0b80.js \ No newline at end of file | |||
diff --git a/public/assets/tinymce/plugins/nonbreaking/plugin.js.gz b/public/assets/tinymce/plugins/nonbreaking/plugin.js.gz new file mode 120000 index 0000000..d281074 --- /dev/null +++ b/public/assets/tinymce/plugins/nonbreaking/plugin.js.gz | |||
| @@ -0,0 +1 @@ | |||
| plugin-8e7036957dbd58c131a33e78e7fa5bc2cd8710f7ef0ba3f19e5a21d854eb0b80.js.gz \ No newline at end of file | |||
