dbliss20 Posted May 20, 2021 Share Posted May 20, 2021 (edited) I like to use WSIWYG from Squarespace to format my text and for each text, i like to add a hyperlink like this: See video with this as URL -> href="javascript:videoPlay(5)" I prefer not to use a code block so that I can use SS's WSIWYG features. I have declared videoPlay in the code injection section. I have the business plan. Is this possible? Edited May 20, 2021 by dbliss20 improve clarity Beyondspace 1 Link to comment
creedon Posted May 20, 2021 Share Posted May 20, 2021 Add your href value into a link in the text block. It's the chain link icon on the toolbar. Let us know how it goes. tuanphan and dbliss20 1 1 Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
dbliss20 Posted May 21, 2021 Author Share Posted May 21, 2021 On 5/19/2021 at 6:38 PM, creedon said: Add your href value into a link in the text block. It's the chain link icon on the toolbar. Let us know how it goes. It works great to create the link. However when I go back to edit it, the JavaScript href is gone. Is there an easier way to edit it? It seems I have to remove the link and recreate it to perform an edit. Link to comment
creedon Posted May 21, 2021 Share Posted May 21, 2021 I wasn't aware of this flaw. I would say that is a bug. You don't have to first remove the link to edit. Just type in the new (err old) link and then apply. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment