This file contains hidden or 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
Для переопределения параметров TinyMCE Rich Text Editor которые назначаются тегам нужно: | |
1. Создать файлик config.json в папке /assets/components/tinymcerte/js/mgr/extras/ | |
2. Прописать путь до этого файла в настройке tinymcerte.external_config | |
{assets_path}components/tinymcerte/js/mgr/extras/config.json | |
Например для замены align="left" и align="right" на соответствующие классы файл config.json должен содержать: | |
{ | |
"formats": { | |
"alignleft": { |
This file contains hidden or 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
<?php | |
switch ($modx->event->name) { | |
case 'OnFileManagerUpload': | |
$generator = $modx->newObject('modResource'); | |
$bases = $source->getBases($directory); | |
$fullPath = $bases['pathAbsolute'].ltrim($directory,'/'); | |
$directory = $source->fileHandler->make($fullPath); | |
foreach ($files as $file) { | |
$ext = @pathinfo($file['name'],PATHINFO_EXTENSION); | |
rename($directory->getPath().$file['name'], $directory->getPath() . |
This file contains hidden or 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
this.value = sum(this.value); | |
function sum(str) { | |
str=str.trim().replace(/[^\d\.]+/gi,""); | |
var s=str.indexOf(".",str.indexOf(".")); | |
if(s>=0){ | |
str=str.substr(0,s+3); | |
var whole = str.substr(0,s); | |
var fractional = str.substr(s+1, s+3).replace(/[^\d]+/gi,""); | |
str = whole +'.'+ fractional; | |
} |
This file contains hidden or 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
change laradock xdebug.ini | |
xdebug.remote_connect_back=1 | |
xdebug.remote_port=9000 | |
xdebug.idekey=PHPSTORM | |
xdebug.remote_autostart=1 | |
xdebug.remote_enable=1 | |
xdebug.cli_color=0 | |
xdebug.profiler_enable=0 |
OlderNewer