End of Support for Joomla 3 - Forum closed

[SOLVED] Line Break in JS Typewriter

Line Break in JS Typewriter was created by pomellsa

Posted 5 years 1 month ago #24940
Hi,
I have text to display in the Typewriter module, but need it to have line breaks. Can anyone provide guidance on whether it is possible in the text editor? I've tried using <p> and <br> tags but they appear to be stripped out when the page loads.

Or if there needs to be a change in the javascript itself, if so, what would need to be modified?

Thanks in advance.

Please Log in or Create an account to join the conversation.

Replied by joomlaplates on topic Line Break in JS Typewriter

Posted 5 years 1 month ago #24947
Sorry line break is not supported.

Please Log in or Create an account to join the conversation.

Replied by pomellsa on topic Line Break in JS Typewriter

Posted 5 years 1 month ago #24958
Thanks for the response. In the end I found a workaround that is not elegant but does produce the desired end result. By using ensp and emsp in the text editor <Source Code>
these ensp; adds 2 spaces (&ensp;) and emsp; 4 spaces (&emsp;). there's a & at the beginning of those names, but if typed in here it will display the space... not the word.

Through trial and error it's possible to add the required number of extra spaces until they force the text onto a new line.
Last Edit:5 years 1 month ago by pomellsa
Last edit: 5 years 1 month ago by pomellsa.

Please Log in or Create an account to join the conversation.

Replied by pomellsa on topic [SOLVED] Line Break in JS Typewriter

Posted 5 years 1 month ago #24959
Problem solved.

Please Log in or Create an account to join the conversation.

Moderators: joomlaplates

Installations-Service

Don´t waste your time, we install your purchased Template
with the "Demo Content" within the next 24 hours.

Buy Now - 59€

Joomlaplates/Theme-Point is not affiliated with or endorsed by Open Source Matters or the Joomla! Project

Copyright © 2024 JoomlaPlates | Professional Joomla Templates with Uikit 3

Disclaimer & Privacy | License