django-oembed and tinymce

Posted by shacker on Stack Overflow See other posts from Stack Overflow or by shacker
Published on 2010-05-10T06:08:38Z Indexed on 2010/05/10 6:14 UTC
Read the original article Hit count: 493

Filed under:
|
|

I've got django-oembed working fine, e.g. a YouTube URL on a line by itself gets transformed to the correct embed code. Then I added a limited TinyMCE text area. Now that URL on a line by itself gets surrounded in opening and closing html p tags. This breaks oembed - now the URL itself is displayed in the template rather than the embed code.

Any reliable fixes or workarounds for this problem?

© Stack Overflow or respective owner

Related posts about django

Related posts about oembed