문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top