mirror of
https://github.com/flarum/framework.git
synced 2024-12-03 07:33:36 +08:00
428fc3131c
This reverts commit d6c01890a3
.
31 lines
1.1 KiB
PHP
31 lines
1.1 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Flarum.
|
|
*
|
|
* For detailed copyright and license information, please view the
|
|
* LICENSE file that was distributed with this source code.
|
|
*/
|
|
|
|
use Flarum\Extend;
|
|
use s9e\TextFormatter\Configurator;
|
|
|
|
return (new Extend\Formatter)
|
|
->configure(function (Configurator $config) {
|
|
$config->BBCodes->addFromRepository('B');
|
|
$config->BBCodes->addFromRepository('I');
|
|
$config->BBCodes->addFromRepository('U');
|
|
$config->BBCodes->addFromRepository('S');
|
|
$config->BBCodes->addFromRepository('URL');
|
|
$config->BBCodes->addFromRepository('IMG');
|
|
$config->BBCodes->addFromRepository('EMAIL');
|
|
$config->BBCodes->addFromRepository('CODE');
|
|
$config->BBCodes->addFromRepository('QUOTE');
|
|
$config->BBCodes->addFromRepository('LIST');
|
|
$config->BBCodes->addFromRepository('DEL');
|
|
$config->BBCodes->addFromRepository('COLOR');
|
|
$config->BBCodes->addFromRepository('CENTER');
|
|
$config->BBCodes->addFromRepository('SIZE');
|
|
$config->BBCodes->addFromRepository('*');
|
|
});
|