Can you give more info. As I understand it, you wrote a plugin or something which is trying to insert an embed element. Problem is, that when you switch from source to WYSIWYG mode they duplicate.
I'm also going to assume that you took embed tags out of protected source (so they aren't protected) and that you are using fakeobjects to display the embed tag (Which you are rendering as an image or something.
If so, then my guess is that you have the data filter setup wrong you either forgot to destroy something or aren't creating it right. Look at the flash plugin source code for a good example. This helped me to make both an iframe plugin and a video plugin. So should have what you need.
When we click upload from the custom dialog box we call a custom servlet that returns an embed tag and inserts it into the editor. I am not using fakeobjects and I don't know anything about protectedSource...should I be adding a regular expression to the protectedSource array so that my embed tags don't get duplicated when switching between modes ?
Hmmm...I don't know quite know how that would work...if you have the embed tag in your protected source...it technically shouldn't up up in WYSIWYG mode at all...so there's no reason it should be duplicating...Do you not have it in protected source? What is the representation of it you seein WYSIWYG mode then?
Well if you want it to not show up in WYSIWYG, you'd have to add it to protected source. Otherwise, it'd probably be better to use fake images or something as showing embeds might be causing problems. (It thinks it's a flash object or something and duplicates it? idk)
In an effort to keep this thread alive, I am responding as I am familiar with the issue huntbous is working on.
The image needs to appear in WYSIWYG mode.
The image cannot be a "fake" image.
This did work in FCKEditor 2.6. The EMBED tag source inserted is unchanged between what worked in 2.6 and what is now duplicating in the latest CKEditor.
No other HTML wraps the EMBED tag described in the initial post.
It is my understanding that you can manually enter the EMBED tag in source mode and then switch to WYSIWYG mode and everytime you switch modes, the number of tags will be duplicated. Therefore, this does not sound like a plug-in issue, rather a EMBED parsing issue?
comp615 wrote:Well if you want it to not show up in WYSIWYG, you'd have to add it to protected source. Otherwise, it'd probably be better to use fake images or something as showing embeds might be causing problems. (It thinks it's a flash object or something and duplicates it? idk)
Re: Embed Tab Duplicates
I'm also going to assume that you took embed tags out of protected source (so they aren't protected) and that you are using fakeobjects to display the embed tag (Which you are rendering as an image or something.
If so, then my guess is that you have the data filter setup wrong you either forgot to destroy something or aren't creating it right. Look at the flash plugin source code for a good example. This helped me to make both an iframe plugin and a video plugin. So should have what you need.
Re: Embed Tab Duplicates
Thank you for your help!
Re: Embed Tab Duplicates
Re: Embed Tab Duplicates
Re: Embed Tab Duplicates
Re: Embed Tab Duplicates
The image needs to appear in WYSIWYG mode.
The image cannot be a "fake" image.
This did work in FCKEditor 2.6. The EMBED tag source inserted is unchanged between what worked in 2.6 and what is now duplicating in the latest CKEditor.
No other HTML wraps the EMBED tag described in the initial post.
It is my understanding that you can manually enter the EMBED tag in source mode and then switch to WYSIWYG mode and everytime you switch modes, the number of tags will be duplicated. Therefore, this does not sound like a plug-in issue, rather a EMBED parsing issue?
Re: Embed Tab Duplicates