Project

General

Profile

Bug #96485

Updated by RVVN no-lastname-given over 2 years ago

Hi, 

 the following YAML configuration for CKEditor is not taken into account : 

 <pre><code class="yaml"> 
 processing: 
   HTMLparser_db: 
     tags: 
       a: 
         allowedAttribs: 
           - class 
           - title 
           - target 
           - href 
 </code></pre> 

 All attributes are removed when saving content element. 

 I've found the source of this issue in the HtmlParser (line 481) : https://github.com/TYPO3/typo3/blob/10.4/typo3/sysext/core/Classes/Html/HtmlParser.php#L481 

 The key '_allowedAttribs' doesn't exist. exists. 

 Replacing it with 'allowedAttribs.' fixes the problem. 

Back