Hey

I'm using Insert with CKEditor and I'm trying to figure out how to preserve a space between icon and link text (when using "link to file with icon" option) to make links look like those created by File module. Please check the attached screen - the only difference is just that space. I don't think CKEditor strips the space, cause when I edit and save the node, the space remains where it should be, just between "img" and "a" tags.

I understand I can edit Insert template and put a nbsp; to solve the issue, but perhaps there is some other option?

CommentFileSizeAuthor
screen.jpg133.42 KBCountach
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Countach’s picture

Issue summary: View changes
Countach’s picture

Issue summary: View changes
Snater’s picture

Status: Active » Closed (cannot reproduce)

Browsing through old tickets while working on the module's D8 version. I cannot reproduce this behaviour. There is white space in the template file rendering the Insert output insert-icon-link.tpl.php, which was last changed in 2012, just like it is in the rendered native file field output. As mentioned in the issue description, I do not think it is a CKEditor problem. It could be some sort of filter (see Configuration → Content authoring → Text formats → [Text format] → Enabled filters) removing white space between HTML tags.
Feel free to reopen if the problem remains.