Skip to content

Bold formatting bugs - need jquery.autotype to write a test #307

@jywarren

Description

@jywarren

Please note we are preparing to participate in Google Code-in, and have reserved this issue for GCI participants - but we'd love to have your help with another one! Please check out https://code.publiclab.org to see more.

Problem statement by the user Jeffrey: I was typing into an editor, and did the following sequence:

  1. made a newline (new paragraph)
  2. pressed ctrl-b (or used the bold button)
  3. typed Hello, replacing the strong text example text that appeared when i pressed bold
  4. pressed ctrl-b again to /unbold/, saw strong text again but not bolded this time
  5. typed , world replacing the 2nd (not bold) instance of strong text
  6. went back to the start of the line, before Hello and pressed enter to add a line break
  7. started typing (it was bold)
  8. pressed ctrl-b to unbold and got strong text but bold this time
  9. typed world and pressed ctrl-b again, got unbolded strong text.
  10. pressed Markdown mode to see what was going on

I did this a couple times, this was the output in the most recent:


  
****

****Hello**, there**strong text******Hello **world, 

I think really we need to tackle this in smaller parts. I suggest that we install the autotype plugin so that we can simulate typing here: https://github.com/mmonteleone/jquery.autotype

Then we can try to reproduce a subset of the above sequence in a test,

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions