I'm having trouble embedding video into my pages... I am using the ckeditor module for my body copy field. I click SOURCE so that I can view the HTML, and then I paste in the EMBED code that I get from YOUTUBE. However, whenever I hit submit .... the video doesn't come up....
http://ourshift.org/videos/vortex-based-math
In Firefox ... nothing shows at all.
In Chrome, I get a plugin error.
It looks like, when I hit SUBMIT, the ckeditor is adding extra html code (just view the source code of the page above)...
For example, the following part of the embed code...
name="allowscriptaccess"
... is changed to:
name="\"allowscriptaccess\""
This is changed once I hit SUBMIT. Before hitting submit, the SOURCE is completely fine.
Can anyone help with this? I'd like to get videos up on my site. Thanks!
Comments
Try replacing special
Try replacing special characters in html by its entity name:
for example " replace it by
"from
name="allowscriptaccess"
to
name=
"allowscriptaccess"I'm going to have NON-HTML
I'm going to have NON-HTML programmers using the administration ... and they will NOT like having to parse the HTML ... So, I would like to avoid that solution.
However, I did try it anyway on this page...
http://ourshift.org/videos/vortex-based-math
So, I replaced ' " ' with '"' and made ...
name="allowscriptaccess"... into ...
name="allowscriptaccess"... but the source of the saved page turned into ...
name="\""allowscriptaccess"\""???
Anyone out there?
Anyone out there?
_
Ckeditor, or indeed any wysiwyg editor, isn't really meant to enter source html (that's actually the entire point). There might be an option for telling ckeditor not to convert entities but there's so many options I don't really remember. However, you'll be more likely to find that info at ckeditor.com.
Another piece of the puzzle is text formats-- regardless of what you enter (either into the textbox directly or with an editor), ultimately the text format decides what gets passed on to the browser. If you're using a filtered format of some kind, not all tags will be rendered so you need to make sure you configure it properly.
You might be able to use video_filter to avoid these issues.
It's working.
I downloaded the video_filter plugin ... it took some time, but I got it to work. There are settings everywhere within drupal - every time I install a new module, I have to change settings in several places in order to get the things to work right.
Thanks!!!
Well, this wasn't just a
Well, this wasn't just a video problem. This is also happening with uploaded images and other html code that is added in the WYSIWYG editor. So, while I can now add videos with the video filter editor ... I can't do many other things...
For images, it still changes "s into
"eand that makes my images broken. It's very aggravating. Can someone help me figure out why this is happening.My settings for my WYSIWYG editor all show that the html isn't set to change, so this shouldn't be happening.
_
I'm not sure what else to tell you-- you're not supposed to paste html code into a wysiwyg editor. That's why it's being translated into entity codes.
In the case of the image, I
In the case of the image, I use the IMAGE UPLOAD button in the WYSIWYG editor. So I didn't add any code myself. I just hit save and notice that the code is changed. So, it's the WYSIWYG editor that is doing something.
Technically, the WYSIWYG editor is adding it's own HTML code into a page. Everytime you BOLD something, it adds the "strong" tag. Hence, when you hit "VIEW SOURCE" or "HTML", you can see the HTML code that it put in for you. The editor is suppose to make it easier for someone who doesn't know HTML. But it's also supposed to have flexibility for those who do know html.