mirror of
https://github.com/documize/community.git
synced 2025-08-04 04:55:23 +02:00
upgraded libs and improved Markdown editing experience
This commit is contained in:
parent
2e146cf767
commit
ea1a8000ee
165 changed files with 15930 additions and 19013 deletions
4
app/public/codemirror/addon/wrap/hardwrap.js
vendored
4
app/public/codemirror/addon/wrap/hardwrap.js
vendored
|
@ -30,7 +30,9 @@
|
|||
}
|
||||
|
||||
function findBreakPoint(text, column, wrapOn, killTrailingSpace) {
|
||||
for (var at = column; at > 0; --at)
|
||||
var at = column
|
||||
while (at < text.length && text.charAt(at) == " ") at++
|
||||
for (; at > 0; --at)
|
||||
if (wrapOn.test(text.slice(at - 1, at + 1))) break;
|
||||
for (var first = true;; first = false) {
|
||||
var endOfText = at;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue