[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/media/com_content/js/ -> admin-article-pagebreak-es5.js (source)

   1  (function () {
   2    'use strict';
   3  
   4    /**
   5     * @copyright  (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
   6     * @license    GNU General Public License version 2 or later; see LICENSE.txt
   7     */
   8    (function () {
   9      window.insertPagebreak = function (editor) {
  10        // Get the pagebreak title
  11        var title = document.getElementById('title').value;
  12  
  13        if (!window.parent.Joomla.getOptions('xtd-pagebreak')) {
  14          // Something went wrong!
  15          window.parent.Joomla.Modal.getCurrent().close();
  16          return false;
  17        } // Get the pagebreak toc alias -- not inserting for now don't know which attribute to use..
  18  
  19  
  20        var alt = document.getElementById('alt').value;
  21        title = title !== '' ? "title=\"" + title + "\"" : '';
  22        alt = alt !== '' ? "alt=\"" + alt + "\"" : '';
  23        var tag = "<hr class=\"system-pagebreak\" " + title + " " + alt + ">";
  24        window.parent.Joomla.editors.instances[editor].replaceSelection(tag);
  25        window.parent.Joomla.Modal.getCurrent().close();
  26        return false;
  27      };
  28    })();
  29  
  30  })();


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer