Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
1.2k views
in Plugins by

how add oembed plugin to ckeditor

https://github.com/w8tcha/CKEditor-oEmbed-Plugin

Q2A version: 1.6

1 Answer

+2 votes
by

You can realize by overriding two functions + newer jQuery.

  1. qa_sanitize_html() in qa-base.php
  2. qa_content_prepare() in qa-page.php

1. Enable iframe

// replace [start]
//'elements' => '*+embed+object',
'elements' => '*+embed+object+iframe',
// replace [end]

2. Load newer jQuery (V1.8 later)

// replace [start]
//$qa_content['script_rel']=array('qa-content/jquery-1.7.2.min.js');
$qa_content['script_rel']=array('qa-content/jquery-1.10.2.min.js');
// replace [end]

My site example (Embeded Youtube).

...