Last active
August 1, 2018 06:23
-
-
Save ig0r74/11dd35556a09d938602b603eefcb8720 to your computer and use it in GitHub Desktop.
Скрипт меняет заголовки и прикручивает TinyMCE к описанию и интротексту в MODX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.onReady(function() { | |
MODx.renameLabel("modx-panel-resource", ["description", "introtext"], ["Краткое описание", "Текст перед характеристиками"]); | |
if (MODx.loadRTE) { | |
MODx.loadRTE("modx-resource-description"); | |
MODx.loadRTE("modx-resource-introtext"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Поменять подписи полей ресурса в админке не через настройки форм, а через js.