Welcome, Guest
Username: Password: Remember me

TOPIC: Youtube embed - removed on save

Youtube embed - removed on save 5 years 1 month ago #3491

  • Shomty
  • Shomty's Avatar
  • Offline
  • Senior Boarder
  • Posts: 68
  • Thank you received: 2
  • Karma: 0
Hello there,
Been using 1.9 for 2 years for my production site.
Now i'm re-doing frontend and i noticed one issue.
If i try to embed youtube video - it gets removed on save.

I have tried all available editors for joomla 2.5 (my joomla version) - without any luck.

Whatever i paste into description - iframe gets cut!
Can you please tell me if you have such rule to remove iframe in component?
The administrator has disabled public write access.

Youtube embed - removed on save 5 years 1 month ago #3492

  • hungtran
  • hungtran's Avatar
  • Offline
  • Moderator
  • Posts: 1636
  • Thank you received: 245
  • Karma: 27
Hi

The easiest way is using a Joomla plugin for Youtube and insert its tag into your deal's description.

Regards,
Hung
The administrator has disabled public write access.

Youtube embed - removed on save 5 years 1 month ago #3493

  • Shomty
  • Shomty's Avatar
  • Offline
  • Senior Boarder
  • Posts: 68
  • Thank you received: 2
  • Karma: 0
Sure, this is a workaround, but i wonder, why i can't save when i paste <iframe> into description.
It is not saving it via iframe?
The administrator has disabled public write access.

Youtube embed - removed on save 5 years 1 month ago #3494

  • Shomty
  • Shomty's Avatar
  • Offline
  • Senior Boarder
  • Posts: 68
  • Thank you received: 2
  • Karma: 0
hungtran wrote:
Hi

The easiest way is using a Joomla plugin for Youtube and insert its tag into your deal's description.

Regards,
Hung

Hey Can you suggest any good?
I still strugle how to embed youtube itno post.
I think that there is some hidden rule, as TinyMCE, JCK, JCE and Code editors simply do not accept iframe object
The administrator has disabled public write access.

Youtube embed - removed on save 5 years 1 month ago #3495

  • hungtran
  • hungtran's Avatar
  • Offline
  • Moderator
  • Posts: 1636
  • Thank you received: 245
  • Karma: 27
Hi

You can use any Youtube plugin, they all works the same way.

If you still want to add your own code, in administrator/components/com_cmgroupbuying/models/forms/deals/, change the files of "description" field to this:
		<field name="description" type="editor" class="inputbox" filter="JComponentHelper::filterText"
			buttons="true" hide="readmore,pagebreak,raffle,article"
			label="COM_CMGROUPBUYING_DEAL_FIELD_DESCRIPTION_LABEL"
			description="COM_CMGROUPBUYING_DEAL_FIELD_DESCRIPTION_DESC" />

Then configure your editor to support iframe, and configure your account to allow it to save content with HTML, this will affect all the components on your site.

Regards,
Hung
The administrator has disabled public write access.
The following user(s) said Thank You: Shomty

Youtube embed - removed on save 5 years 1 month ago #3496

  • Shomty
  • Shomty's Avatar
  • Offline
  • Senior Boarder
  • Posts: 68
  • Thank you received: 2
  • Karma: 0
Works like a charm!!
Thank you!
The administrator has disabled public write access.