Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2009-01-15 16:06:53

kroesss
Xinha Community Member
Registered: 2007-10-15
Posts: 16

creating youtube-button

Hi all,

I'm trying to create a youtube-button, and since my javascript-skills aren't very good I'm kind of stuck here...

I'm using the InsertAnchor-plugin as example. So far I have replaced the icon on the toolbar, and the complete popup-window. The popup's functionality is still exactly the same: 1 input-field in whitch the 11-character youtube-code will be entered.

After that I opened insert-anchor.js, and that's whereI'm stranded. I cannot find the html-code created by InsertAnchor anywhere in this file, so I have no idea where to change it to make it put the correct html in the textarea...

Can anybody point me in the right direction?

Offline

#2 2009-01-18 09:55:37

kroesss
Xinha Community Member
Registered: 2007-10-15
Posts: 16

Re: creating youtube-button

Okay, I'm a lot further now, I've followed the howto for creating a plugin from scratch, and I can succesfully insert XHTML strict youtube-code in Xinha.

I do have one problem though: In Firefox, when I insert the code the youtube-player doesn't show up. in the HTML it's there, and when I save the contents and reload the textarea with the newly saved contents it does show up. In IE7 this problem doesn'd exist.

Does anybody know why Firefox won't show the flash-object wen it is inserted after xinha is loaded? Or is there a way to make xinha reload on the new content after inserting the code?

Offline

Board footer

Powered by FluxBB