芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/acancehyucatan.gob.mx/media/com_content/js/admin-article-readmore.js
/** * @copyright (C) 2018 Open Source Matters, Inc.
* @license GNU General Public License version 2 or later; see LICENSE.txt */ (() => { const options = window.Joomla.getOptions('xtd-readmore'); window.insertReadmore = editor => { if (!options) { // Something went wrong! throw new Error('XTD Button \'read more\' not properly initialized'); } const content = window.Joomla.editors.instances[editor].getValue(); if (!content) { Joomla.editors.instances[editor].replaceSelection('
'); } else if (content && !content.match(/
/i)) { Joomla.editors.instances[editor].replaceSelection('
'); } else { // TODO replace with joomla-alert alert(options.exists); return false; } return true; }; })();