primo commit
This commit is contained in:
27
media/conditionalcontent/js/button.js
Normal file
27
media/conditionalcontent/js/button.js
Normal file
@ -0,0 +1,27 @@
|
||||
/**
|
||||
* @package Conditional Content
|
||||
* @version 5.2.2
|
||||
*
|
||||
* @author Peter van Westen <info@regularlabs.com>
|
||||
* @link https://regularlabs.com
|
||||
* @copyright Copyright © 2024 Regular Labs All Rights Reserved
|
||||
* @license GNU General Public License version 2 or later
|
||||
*/
|
||||
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
window.RegularLabs = window.RegularLabs || {};
|
||||
|
||||
window.RegularLabs.ConditionalContentButton = window.RegularLabs.ConditionalContentButton || {
|
||||
code: '',
|
||||
|
||||
insertText: function(editor_name) {
|
||||
Joomla.editors.instances[editor_name].replaceSelection(this.code);
|
||||
},
|
||||
|
||||
setCode: function(code) {
|
||||
this.code = code;
|
||||
},
|
||||
};
|
||||
})();
|
||||
Reference in New Issue
Block a user