Currently when I link something with line breaks, like poetry, the text in the link preview appears all on one line in applications like Discord. Is there a way to make sure link previews show line breaks?
Can you clarify how you are doing this. What do you mean "when I link something with line breaks". Do you mean enter text with line breaks in the Body of a page? If so, are you using Filtered Text and CKEditor (which are the default for Body)? I'm trying to enter text with line breaks in the Body using "Filtered Text" and CKEditor. When I click Preview it shows correctly.
Sorry, I really don't know how you are making Backdrop show a link preview like the one you posted - never done that before. Is this in a textarea field? Or what kind of field?
There is a Drupal 7 contrib module that "lets the administrator see all administration pages in her preferred language" and which could be ported to Backdrop: https://www.drupal.org/project/...
Posted3 days 23 hours ago by Olaf Grabienski (Olafski) on:
@stpaultim – You're right: my approach affects also the main menu. I guess, because menus are also considered as user interface (not as content).
@findlabnet – If I didn't miss anything,...
Posted3 days 23 hours ago by Olaf Grabienski (Olafski) on:
@olaf - Sorry, but I don't think that works. I tried it and you are correct, with this change, I can switch from the English version to the German version of a page, without changing the entire...
Use case is an English speaking support person working on a multilingual site and fixing bugs with the French translation of the content.
I found one solution for your use...
Posted4 days 11 hours ago by Olaf Grabienski (Olafski) on:
Comments
Hi CurrentBias,
Can you clarify how you are doing this. What do you mean "when I link something with line breaks". Do you mean enter text with line breaks in the Body of a page? If so, are you using Filtered Text and CKEditor (which are the default for Body)? I'm trying to enter text with line breaks in the Body using "Filtered Text" and CKEditor. When I click Preview it shows correctly.
Thanks for the reply! To clarify, I mean the opengraph link preview that appears when a link is posted somewhere like Discord -- here's an example:
The post itself has line breaks, but the preview does not -- I'm wondering how to make the preview display the line breaks as well
Sorry, I really don't know how you are making Backdrop show a link preview like the one you posted - never done that before. Is this in a textarea field? Or what kind of field?
Does it display the same as a link preview in other platforms?
Perhaps it is just discord discarding the markup?