How can FCKEdit (2.4.2) be configured, not to alter my changes in sourcecode-mode?
My problem: I have to insert this text:
--------
<embed src="mediaplayer.swf"
width="320" height="180"
allowfullscreen="true"
flashvars="&file=http://www.jeroenwijering.com/upload/afraid.flv&height=180&width=320"
/>
--------
With saving (and even preview) the flashvars="..." variable gets deleted and so the flash won't work.
I tried the settings
FCKConfig.ProtectedTags = 'flashvars|embed' ;
That prevents the flashvars from beeing deleted, but FCKEdit resorts the tags so it is no more shown as an Flash file in normal edit mode.
Again: How to prevent my source from beeing changed by FCKEdit?
Sun, 06/17/2007 - 16:14
#1
RE: How to config FCKEdit to not change Source?
RE: How to config FCKEdit to not change Source?
RE: How to config FCKEdit to not change Source?
I have not found a way to have it leave the source as it is put in. I don't have a solution, but I post to say it is an issue that I think should be fixed.
Thanks!
RE: How to config FCKEdit to not change Sourc
Heya, not sure if that helps, but i set these two lines to false (as shown) and it does not touch my smarty stuff, so no idea, but would be an idea
FCKConfig.FormatSource = false ;
FCKConfig.FormatOutput = false ;
Re: How to config FCKEdit to not change Source?
I don't know about the extra lines inserted, but you might try to avoid the embed tag altogether. The <embed> tag is deprecated, and should no longer be used. I know that popular sites tell you to use it when they give you the code, but all that you need from them (Google Video, You Tube, etc.) is the movie source, and the dimensions. Here is an excellent article on why and how to show video on a site without the old embed tag: 'http://www.alistapart.com/articles/byebyeembed/'.
Re: How to config FCKEdit to not change Source?
I guess there is no resolution, I wish there was a "DO NOT TOUCH MY F****ING SOURCE CODE" option heh.
I'm going to look briefly at the source see if I can spot a work around, i'll post if i do
Re: How to config FCKEdit to not change Source?
Hello. Just go to these files:
fckeditor/editor/js/fckeditorcode_gecko_1.js
fckeditor/editor/js/fckeditorcode_ie_1.js
find this:
D.setAttribute('play',C.getAttribute('play'));
in booth files...after that add this:
D.setAttribute('flashvars',C.getAttribute('flashvars'));
so your code in these two files look like:
D.setAttribute('play',C.getAttribute('play'));D.setAttribute('flashvars',C.getAttribute('flashvars'));
And thats it. Try it. It works for me fine.