Unable to properly copy content between rich text editor windows without introducing bloated code

Dan_Stevens_
Level 10 - Champion Alumni

Unable to properly copy content between rich text editor windows without introducing bloated code

Anytime we bring new content into Marketo - specifically into the rich-text editor - we always first copy it to Notepad and then copy/paste it into the editor (CTRL-SHIFT-V doesn't always paste as text properly).  But if all we need to do is copy content that's already in Marketo to another asset, I would expect the pasted content to be exactly what was copied.  That's not happening - a kinds of bloated code is being introduced.

Here's the source copy:

pastedImage_0.png

and the underlying HTML:

pastedImage_1.png

Now when the content in the RTE is selected and copied, here's the pasted content:

pastedImage_2.png

But this is what the underlying HTML now looks like - notice all of the additional code?

pastedImage_3.png

Is this expected behavior?  Justin Cooperman

5 REPLIES 5
Jenn_DiMaria2
Level 10 - Champion

Re: Unable to properly copy content between rich text editor windows without introducing bloated code

I've noticed this occasionally and have taken to copying and pasting the HTML code only - just in case. I agree it would be much easier if the code didn't bloat!

Grégoire_Miche2
Level 10

Re: Unable to properly copy content between rich text editor windows without introducing bloated code

Hi Dan,

I have experienced this also. We usually copy and paste from the HTML Source editors.

-Greg

Anonymous
Not applicable

Re: Unable to properly copy content between rich text editor windows without introducing bloated code

Dan,

Agree with Gregoire and Jessica. You may also notice the behavior if copying from other sources which mark up text (Microsoft Word, basically anything that uses XML / HTML). Your best bet is to view the HTML source and copy / paste from there.

Kevin

Dan_Stevens_
Level 10 - Champion Alumni

Re: Unable to properly copy content between rich text editor windows without introducing bloated code

Yes, that's a given.  Our workflows always require content to be initially copied into Notepad and then copy/pasted into Marketo.  I just found it odd and unexpected that Marketo's editor adds additional markup when copying between the RTE.

Justin_Cooperm2
Level 10

Re: Unable to properly copy content between rich text editor windows without introducing bloated code

I imagine this is just the default behavior we inherit. I will try to see if we can do anything better here.

My guess is that it does this in case the place you're pasting the content has completely different styling...it probably adds all that markup to try and preserve the basic styles from the original content.