git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
page: omit numeric placeholders during edit
[minimedit.git]
/
edit.js
diff --git
a/edit.js
b/edit.js
index 8cc245c64beeaf907ac16d73c7e843492a9b562e..c32bd5b81ef3540a775a9dad36ea6b2485f56588 100644
(file)
--- a/
edit.js
+++ b/
edit.js
@@
-91,7
+91,7
@@
if (pagebody) {
editlink.onclick = undefined;
pagebody.setAttribute('contenteditable', true);
pagebody.innerHTML = pagebody.innerHTML
editlink.onclick = undefined;
pagebody.setAttribute('contenteditable', true);
pagebody.innerHTML = pagebody.innerHTML
- .replace(/<!--BLOCK
([a-z]*)-->[^]*?<!--\/-->/g, '[[$1]]
');
+ .replace(/<!--BLOCK
:([^-]*)-->[^]*?<!--\/-->/g, '$1
');
CKEDITOR.inline(pagebody);
document.body.className = 'edit';
return false;
CKEDITOR.inline(pagebody);
document.body.className = 'edit';
return false;