[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 /** 2 * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> 3 * @license GNU General Public License version 2 or later; see LICENSE.txt 4 */ 5 (() => { 6 7 window.insertPagebreak = editor => { 8 // Get the pagebreak title 9 let title = document.getElementById('title').value; 10 11 if (!window.parent.Joomla.getOptions('xtd-pagebreak')) { 12 // Something went wrong! 13 window.parent.Joomla.Modal.getCurrent().close(); 14 return false; 15 } // Get the pagebreak toc alias -- not inserting for now don't know which attribute to use.. 16 17 18 let alt = document.getElementById('alt').value; 19 title = title !== '' ? `title="$title}"` : ''; 20 alt = alt !== '' ? `alt="$alt}"` : ''; 21 const tag = `<hr class="system-pagebreak" $title} $alt}>`; 22 window.parent.Joomla.editors.instances[editor].replaceSelection(tag); 23 window.parent.Joomla.Modal.getCurrent().close(); 24 return false; 25 }; 26 })();
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |