Mootools WMD editor doesn't properly quote content
Pergunta
I'm using the mootools WMD editor but it seems like there's an error in the script and it doesn't properly format selected content after I hit the quote button.
Solução
command
was not defined. I saw no references in the script to command
and I looked at a nearby function that did the formatting.
I simply changed line 1916:
command.wrap(chunk, mooWMD.Config.lineLength - 2);
to
chunk.wrap( mooWMD.Config.lineLength -2 );
Which seems to do the trick.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow