Closed (cannot reproduce)
Project:
Freelinking
Version:
8.x-3.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Apr 2020 at 19:02 UTC
Updated:
23 Jan 2025 at 18:21 UTC
Jump to comment: Most recent
Comments
Comment #2
mradcliffeI wasn't able to reproduce. This is most likely because of the weights of the input filters in your text format.
If the “Display any HTML as plain text” filter is weighted below the “Freelinking” filter, then all HTML markup generated by Freelinking will be escaped into plain text. When “Freelinking” filter is weighted below, then the markup is rendered as HTML.
Example:
and
)
Comment #3
nmalinoski commentedI'm running Drupal Core 8.8.5, with Entity Reference Revisions 8.x-1.8, Extensible BBCode 8.x-3.1, Freelinking 8.x-3.1, and Paragraphs 8.x-1.11. I created a Paragraphs type "Entry" with two fields, one Text (plain, long) and one Text (formatted, long), and I added a Paragraphs field to a content type.
The filter weights for Plain Text are already as you recommend--with Freelinking last, after "Display HTML as plain text". Both Plain Text and Basic HTML are defaults plus Freelinking, with Freelinking weighted last, with only Node Title enabled, and only enabled for the content type on which these fields appear.
Even with that, the Freelinking filter doesn't appear to be running at all, so whatever markup I enter into the textbox comes out just as I entered it. If I enter something like "Link to [[Page 2|this page]]." in both text fields, the resulting page displays "Link to [[Page 2|this page]]." for the plain text field, and the Basic HTML field gets "Link to this page" with a clickable link.
Comment #4
mradcliffeThank you for the additional info.
Just a note, a field that has the type labelled by "Text (plain, long)" will never have a text format applied to it (unless programmatically done). The text format isn't stored with the text.
I tried to replicate first by only adding Paragraphs. I created a paragraph type, added a Text (fromatted, long) field to it, added a entity reference revision for Paragraph to the same content type. When I created content I added a new paragraph item, and pasted the same text that was working, and saved.
I didn't see the text show up at first, but after resaving the content type manage display, it showed up and rendered fine.
I then enabled and added XBBCode to the filter, putting it right above Freelinking. I thought that might interfere with things, but it didn't. The text was still displayed. Both worked together without an issue.
I'm not sure what's going on with your site's configuration that could be causing any issues.
Comment #5
mradcliffe