active_admin_editor icon indicating copy to clipboard operation
active_admin_editor copied to clipboard

mailto link not working

Open rajkrgoyal opened this issue 11 years ago • 3 comments

There is issue in adding mailto on any link rather than adding any url. Email id is get removed from the link and target="_blank" is added.

rajkrgoyal avatar Dec 03 '13 10:12 rajkrgoyal

+1

markdavies avatar Jan 12 '14 21:01 markdavies

You need to change the parser rules to be able to remove the targe blank and add mailto links

mmenafra avatar Jan 15 '14 13:01 mmenafra

Thanks @markdavies for the fork! Looks like the new version of the wysiwyg js paired with:

 ActiveAdmin::Editor.configure do |config|
  config.parser_rules['tags']['a']['check_attributes'] = {
    'href' => 'href'
  }
end

Will do the trick

hhff avatar Oct 13 '15 10:10 hhff