forked from GitHub/gf-core
Syntax editor: various small improvements...
- separate tree edit buttons from option buttons - fix bug when wrapping on freshly imported ast - add interface for import & export of ast - cleaner internal implementation of Editor.add_refinement - small style updates
This commit is contained in:
@@ -248,6 +248,13 @@ function insertAfter(el,ref) {
|
||||
ref.parentNode.insertBefore(el,ref.nextSibling);
|
||||
}
|
||||
|
||||
function toggleHidden(el) {
|
||||
if (el.classList.contains("hidden"))
|
||||
el.classList.remove("hidden")
|
||||
else
|
||||
el.classList.add("hidden")
|
||||
}
|
||||
|
||||
/* --- Debug ---------------------------------------------------------------- */
|
||||
|
||||
function debug(s) {
|
||||
|
||||
Reference in New Issue
Block a user