Apply Mentions everywhere (#595)
* variables and mentions * fix lint * add missing changes * fix tests * update quilly, fix bugs * fix lint * apply fixes * apply fixes * Fix MentionParser * Apply Mentions everywhere * Fix MentionParserTest * Small refactoring * Fixing quill import issues * Polished email integration, added customer sender mail * Add missing changes * improve migration command --------- Co-authored-by: Frank <csskfaves@gmail.com> Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
21
api/app/Service/HtmlPurifier/OpenFormsHtmlDefinition.php
Normal file
21
api/app/Service/HtmlPurifier/OpenFormsHtmlDefinition.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Service\HtmlPurifier;
|
||||
|
||||
use HTMLPurifier_HTMLDefinition;
|
||||
use Stevebauman\Purify\Definitions\Definition;
|
||||
use Stevebauman\Purify\Definitions\Html5Definition;
|
||||
|
||||
class OpenFormsHtmlDefinition implements Definition
|
||||
{
|
||||
public static function apply(HTMLPurifier_HTMLDefinition $definition)
|
||||
{
|
||||
Html5Definition::apply($definition);
|
||||
|
||||
$definition->addAttribute('span', 'mention-field-id', 'Text');
|
||||
$definition->addAttribute('span', 'mention-field-name', 'Text');
|
||||
$definition->addAttribute('span', 'mention-fallback', 'Text');
|
||||
$definition->addAttribute('span', 'mention', 'Bool');
|
||||
$definition->addAttribute('span', 'contenteditable', 'Bool');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user