Need special filtering in CKEditor plugings
Added by Aderito CARAPITO over 11 years ago
Hi, it's a bit difficult to add filters in CKeditor module on Redmine 2.3. Please, How add some filters for keeping the href attribute on this following tag: <a href="Notes://abcd"> ?
I need "notes" and "files" <a> links.
That's a surprise because, on the last original install "Redmine CKEditor v1.0.15" plugins, the <a href="http://...."> works fine.
Thanks
REDMINE CONFIGURATION:
Environment:
  Redmine version                2.3.3.stable
  Ruby version                   1.9.3-p448 (2013-06-27) [x86_64-linux]
  Rails version                  3.2.13
  Environment                    production
Redmine plugins:
  redmine_ckeditor               1.0.15
Replies (3)
    
    RE: Need special filtering in CKEditor plugings
    -
    Added by Akihiro Ono over 11 years ago
  
  It's caused by Rails sanitization.
You can add the following configuration to the REDMINE_ROOT/config/additional_environment.rb file.
config.action_view.sanitized_allowed_protocols = %w(notes file)
    
    RE: Need special filtering in CKEditor plugings
    -
    Added by Aderito CARAPITO over 11 years ago
  
  Thanks! That works fine.
    
    RE: Need special filtering in CKEditor plugings
    -
    Added by Andreas Mayer over 11 years ago
  
  Thanks - Worked for me as well