Sign in
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Add a simple onlick() function to a in the post/html editor?

  • This topic has 2 replies, 2 voices, and was last updated 3 years, 5 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #3683
    Avatar photoMoizo

    Hey all,

    Recently started using Publli and enjoying it so far. When i open the html editor function in the post editor, i notice that some html and js get’s removed once I save. For example: when I want to add a simple onclick() function to a div, span or p, it get’s removed automatically. I was wondering how I can either ommit this or how i can add the onclick function with a different method. I really need to be able to use some basic javascript in some posts, so i hope there is way.

    Avatar photoBob

    Try to use the block editor.

    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    Avatar photoMoizo
    Bob wrote:

    Try to use the block editor.

    That works! But there’s no way to have this in the normal editor -> html function? If not, i’ll use the block editor for this post.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.