Skip to content
Discussion options

You must be logged in to vote

Done, leaving it here for whoever is interested.

Solution

We need two notes, one will contain the desired CSS, the other the implementation.

CSS Note

This note of type CSS needs the label #appCss, which makes the CSS code available for later use.

span.fancytree-node.fixme .fancytree-title {
    color: #C70039!important;
    font-weight: bold;
    background-color: #FFC300!important;
    }

Implementation

This note of type JS frontend needs the label #run=frontendStartup, which makes it execute, well, on frontend startup.
It searches for all notes having the label #fixme and uses setLabel() which, in turn, creates #cssClass=fixme in the note if it doesn't already exist. My first idea was ru…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jniggemann
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jniggemann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants