Here's how to create a youtube button in yafEditor:
Insert the following code into yafEditor.js (I put it in line 26):
case "youtube":
wrapSelection(textObj,"[youtube]","[/youtube]");
break;
Insert the following code into yafEditor.cs (I put it on line 198 after the CreateLink line):
RenderButton(writer, "youtube", "FormatText('youtube','')", "YouTube", "yafEditor/youtube.gif");
Attached is the image I will use for the editor. Add it to editors/yafEditor folder:
Hope you guys find this useful :wink:
Edited by user
15 years ago
|
Reason: Not specified