Marty Walker Posted March 17, 2015 Share Posted March 17, 2015 Hello, I have a client that needs to be able to embed tweets into a ckeditor body field. I've turned ACF and HTML purifying to off. All I get is the embed code block wrapped in a <p>: <blockquote class="twitter-tweet" lang="en"><p>You can pursue photography for the pure enjoyment of it. No fine art photography ambitions necessary. You'll be ok.</p>— Bryan Formhals (@bryanformhals) <a href=" ">January 4, 2014</a></blockquote> <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> I've tried throwing jQuery to unwrap the blockquote from the <p> but no go either? How do I do it? Link to comment Share on other sites More sharing options...
adrian Posted March 17, 2015 Share Posted March 17, 2015 Are they pasting into Source code mode? Regardless, you want to add the script tag to your template file. Would Hanna be an easier solution? Link to comment Share on other sites More sharing options...
Macrura Posted March 17, 2015 Share Posted March 17, 2015 (edited) @Marty - maybe this could help: http://ckeditor.com/forums/Support/Solved-I-cant-embed-tweet-with-the-new-version-4.1.1 also this plugin might be cool: http://ckeditor.com/addon/mediaembed doh! adrian is 1 step ahead Edited March 17, 2015 by Macrura 1 Link to comment Share on other sites More sharing options...
Marty Walker Posted March 17, 2015 Author Share Posted March 17, 2015 Hi Adrian, No, pasting straight into the editor. Hanna probably wouldn't be. I'm trying to avoid using it because it adds 50MB to my install. @Macrura: Thanks but that thread doesn't make sense to me but I'l have a crack at installing that plugin. Link to comment Share on other sites More sharing options...
adrian Posted March 17, 2015 Share Posted March 17, 2015 No, pasting straight into the editor. Hanna probably wouldn't be. I'm trying to avoid using it because it adds 50MB to my install. Wouldn't it need to be pasted into HTML mode? Did CkEditor use to support pasting html into the main view? I think I am missing something I always knew Hanna took a little while to download - I never realized just how big the bundles ACE is. I don't really understand when owzim's new ACE module is only 1.6MB. Perhaps Ryan needs to trim that down - looks like it includes source code, demos etc. But, that said, why does it matter to install it - it's not like those source code files are doing anything. Hope the plugin that Macrura pointed out helps! Link to comment Share on other sites More sharing options...
Marty Walker Posted March 17, 2015 Author Share Posted March 17, 2015 Thanks. The MediaEmbed plugin does the trick. 1 Link to comment Share on other sites More sharing options...
LostKobrakai Posted March 17, 2015 Share Posted March 17, 2015 I always knew Hanna took a little while to download - I never realized just how big the bundles ACE is. As someone told me in the ACE editor thread, you can just skip ACE when uploading to production. You shouldn't change the hanna codes there any way and that's the source of the big overall file size. The module itself is not larger than others. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now