芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/media.6/com_content/js/admin-article-readmore-es5.js
(function () { 'use strict'; /** * @copyright (C) 2018 Open Source Matters, Inc.
* @license GNU General Public License version 2 or later; see LICENSE.txt */ (function () { var options = window.Joomla.getOptions('xtd-readmore'); window.insertReadmore = function (editor) { if (!options) { // Something went wrong! throw new Error('XTD Button \'read more\' not properly initialized'); } var 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; }; })(); }());