Keyword

Put javascript in article

  • MathieuPrigent
  • MathieuPrigent's Avatar Topic Author
  • Offline
  • New Member
More
14 years 1 month ago #86407 by MathieuPrigent
Put javascript in article was created by MathieuPrigent
Hello !I have to insert a widget into an article (this one www.widgetbox.com/widget/mdiathque-de-quimperl-mediatheque29-2 ) and two options are provided :
one in flash but nothing happend when I put code in article
the other one with html code but there's a <script> markup and mce editor doesn't allow this markup (the code disapear when I leave the code area)

Does a solution exist for my problem ?(there isn't Content Cleanup in Settings of K2)Thanks !

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

More
14 years 1 month ago #86408 by Jiliko.net
Replied by Jiliko.net on topic Put javascript in article
Mathieu,

You can use JCE editor which enables javascript code or put widget code in the k2 item.php file and testing item id to display widget or not.

Olivier

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

  • MathieuPrigent
  • MathieuPrigent's Avatar Topic Author
  • Offline
  • New Member
More
14 years 1 month ago #86409 by MathieuPrigent
Replied by MathieuPrigent on topic Put javascript in article
Thanks Olivier,

something strange in the website I manage : in admin panel JCE editor is selected but in the html source I can see that MCE editor is active.

Then I disable any text editor just the time to put the widget code and it works !

Thank you !

Will have a look on k2 item.php coz I have some bug with K2 :
sometimes this code appear in page and I don't know where it comme from :
Image Gallery
{gallery}256{/gallery}

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


Powered by Kunena Forum