1
1

Issue #1.

Try to type the following in Chrome

  1. Type something... now press Enter

and you will see this:

 1. Type something... now press Enter
1.
 2. List item1.

1.

instead of this:

 1. Type something... now press Enter
 2. List item

Issue #2.

Try to type the following in Chrome.

Sample quote.

select and press quote button and you will see this:

Sample quote.

Sample quote.> Sample quote.Sample quote.

Sample quote.

instead of this:

> Sample quote.

It looks buggy.

asked 14 Jan '11, 13:27

Stanislav's gravatar image

Stanislav
62582834
accept rate: 0%

edited 14 Jan '11, 16:13

Are you talking about weapons of mass destruction? Those don't usually work in a web browser, do they? :P

(16 Jan '11, 22:58) danielhep

open wmd.js, comment or delete line 2081 and line 2264, which is:

chunk.addBlankLines(); //-----line 2081

and:

chunk.addBlankLines(nLinesBefore, nLinesAfter, true); //------line 2264

I don't know why, but I got it from debug and debug for a full day. I hope it is usefull.


Answer for dougvk --- Context of these lines as follow in the version which I am using:

command.doBlockquote = function(chunk, postProcessing, useDefaultText){
    ......
    if(/^(?![ ]{0,3}>)/m.test(chunk.selection)){
    command.wrap(chunk, wmd.wmd_env.lineLength - 2);
    chunk.selection = chunk.selection.replace(/^/gm, "> ");
    replaceBlanksInTags(true);
    //chunk.addBlankLines();                         //-----line 2081
}
    .....
}

And:

command.doList = function(chunk, postProcessing, isNumberedList, useDefaultText){
    ......
    chunk.trimWhitespace(true);
//chunk.addBlankLines(nLinesBefore, nLinesAfter, true);  //------line 2264
chunk.startTag = prefix;
var spaces = prefix.replace(/./g, " ");
command.wrap(chunk, wmd.wmd_env.lineLength - spaces.length);
chunk.selection = chunk.selection.replace(/\\n/g, "\\n" + spaces);

};
link

answered 03 Feb '11, 10:47

Yang's gravatar image

Yang
7113
accept rate: 100%

edited 09 Feb '11, 07:56

1

@Yang, could you give the context of the lines? wmd.js has different line structure for me...

(07 Feb '11, 22:42) dougvk

There are several known issues with the wmd editor in chrome. Development of the wmd editor seems stalled for a couple of years (before chrome existed even). It's a separate project that has nothing to do with OSQA, so I don't know when and if this will ever be fixed. Meanwhile, we've been looking to offer an alternative to wmd.

link

answered 14 Jan '11, 18:09

Hernani%20Cerqueira's gravatar image

Hernani Cerq... ♦♦
16.8k65975
accept rate: 52%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×166
×5
×5

Asked: 14 Jan '11, 13:27

Seen: 515 times

Last updated: 09 Feb '11, 07:56

powered by OSQA