danieljjh / oppia

Automatically exported from code.google.com/p/oppia
Apache License 2.0
0 stars 0 forks source link

Cannot remove text formatting in states #776

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an exploration
2. Enter content in first state
3. Copy/paste content from another source with alternative formatting (red 
text, bullets, etc)

What is the expected output? What do you see instead?
The expectation is that the text would maintain the formatting characteristics 
of where I've copied from. So that works! But, in this scenario, I'd like to 
remove the text formatting (with a Tx button). Otherwise, the text is reading 
in multiple colors, formats, and I cannot remove that.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by amylat...@google.com on 22 May 2015 at 7:51

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for the report, Amy!

Allan, do you know if we can actually strip formatting on a paste event? Amy, 
do you think that would be OK behaviour too?

Amit, do you think it's better to strip formatting on-paste and have users add 
it in later, or should we add a 'remove formatting' button to the toolbar 
instead?

Original comment by s...@seanlip.org on 22 May 2015 at 8:19

GoogleCodeExporter commented 9 years ago
I think it's also an OK expectation that the formatting is stripped when pasted 
into Oppia as well! This creates consistency, visually.

Original comment by amylat...@google.com on 22 May 2015 at 8:22

GoogleCodeExporter commented 9 years ago
Yeah, TextAngular includes a default button that strips formatting (see 
screenshot) which we could use. Stripping formatting on paste should also be 
doable (I'll look into this more). 

Original comment by AYZh...@gmail.com on 23 May 2015 at 4:33

Attachments:

GoogleCodeExporter commented 9 years ago
OK, I've committed a first attempt at removing formatting on paste (not the 
button approach) to the rte-clear-formatting branch (see issue 778).

Original comment by AYZh...@gmail.com on 24 May 2015 at 8:31

GoogleCodeExporter commented 9 years ago
LGTM. I've added in formatted text and it was stripped. Thanks! 

Original comment by amylat...@google.com on 24 May 2015 at 9:27

GoogleCodeExporter commented 9 years ago

Original comment by s...@seanlip.org on 30 May 2015 at 2:32