Warning: session_start(): open(/var/lib/php/sessions/sess_3ueha47igjch94kcsb3va46qv9, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
srecord noeq G22ProjectStoryEditor(G22Utils g22utils) {
JSyntaxTextFileEditor editor;
File textFile() { ret g22utils.projectStoryTextFile(); }
IVarWithNotify varText() { ret textFileAsVarWithNotify(textFile()); }
cachedVisualize {
editor = new JSyntaxTextFileEditor(textFile()).autoSave(true);
editor.visualize();
var ta = editor.textArea();
onLeftClick(ta, (IVF1) evt -> {
int ofs = ta.viewToModel2D(evt.getPoint());
LS tok = hashRefTok(ta.getText());
int iTok = charToTokenIndex_left(tok, ofs);
if (iTok >= 0 && odd(iTok)) {
S t = tok.get(iTok);
S url = unbracket(dropPrefix("#", t));
infoBox("Link URL: " + url);
}
});
ret withTopAndBottomMargin(jRaisedCenteredSection("Project Story",
editor.visualize()
));
}
}