Letractively / sagenb

Automatically exported from code.google.com/p/sagenb
0 stars 0 forks source link

spurious span tags when copy+paste onto #54

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open a tinymce editor window
2. Select some html from a different part of the notebook, not inside a 
tinyMCE, but directly on the output
3. Drag that text onto the tinymce editor window

What is the expected output? 
The html should be copied+pasted literally.

What do you see instead?
An spurious <span id="cell_outer_58"> content_here </span> appears wrapping the 
html. This tags will mess up with the notebook later.

What version of the product are you using? 
4.7.1

On what operating system?
ubuntu 10.04, using the binaries from the website, I think.

Original issue reported on code.google.com by pablo.an...@uam.es on 6 Oct 2011 at 10:52

GoogleCodeExporter commented 8 years ago
I don't think we can fix the pasting.  You are selecting the span tag too, so 
it gets copied too.  This means that two tags with the same id will be in the 
document---not good.

As a workaround, click the paste button with a "T", which will let you paste in 
plain text, rather than html.

Original comment by jason-go...@creativetrax.com on 6 Oct 2011 at 10:49

GoogleCodeExporter commented 8 years ago
Actually, it looks like we can set some options when pasting to, for example, 
strip out spans, or do some processing to strip out id numbers.  So this looks 
doable after all.  See http://www.tinymce.com/wiki.php/Plugin:paste

Original comment by jason-go...@creativetrax.com on 7 Oct 2011 at 3:52

GoogleCodeExporter commented 8 years ago
Reported to true upstream at https://github.com/sagemath/sagenb/issues/277

Original comment by kcris...@gmail.com on 3 Dec 2014 at 9:39