Insert Youtube Video

IMPLEMENTATION

STEP 1: Add custom dialog to open youtube.htm:

        oEdit1.customDialog=[["YoutubeVideo","modelessDialogShow('../common/youtube.htm',735,555)"]];
    
youtube.htm is a Custom Dialog that we use to insert Youtube video. With the above command, the dialog (youtube.htm) will be opened when a user clicks the "YoutubeVideo" button.


STEP 2: Include the "YoutubeVideo" Button in the Editor configuration:
		oEdit1.groups=[
			["grpEdit1", "", ["StyleAndFormatting", "Undo", "Redo", "Cut", "Copy", "Paste", "PasteWord", "PasteText", "BRK", "Bold", "Italic", "Underline", "ForeColor", "BackColor"]],
			["grpEdit2", "", ["JustifyLeft", "JustifyCenter", "JustifyRight", "JustifyFull", "Paragraph", "BRK", "Numbering", "Bullets", "Indent", "Outdent", "Styles"]],
			["grpEdit3", "", ["FontName", "FontSize", "BRK", "Strikethrough", "Superscript"]],
			["grpEdit4", "", ["Search", "FullScreen", "BRK", "RemoveFormat", "XHTMLSource"]],
			["grpEdit5", "", ["YoutubeVideo", "BRK", "Image"]],
			["grpEdit6", "", ["Table", "AutoTable", "BRK", "Hyperlink", "Bookmark"]],
			["grpEdit7", "", ["Characters", "Line", "BRK", "CustomTag"]]
			];
    

DEMO