Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_jm.get_data("freemind") color and backgroundcolor is not applied/should be in node not attribute #630

Open
opto opened this issue Sep 12, 2024 · 4 comments

Comments

@opto
Copy link

opto commented Sep 12, 2024

_jm.get_data("freemind") does not seem to return the correct format for freemind or freeplane.
Specifically, the text color and background color do not come over.

jsmind puts them into attributes. I created a mini-mindmap with freemint and colored the text, and that is part of the node.

like

< node COLOR="#ff3333" CREATED="1726129088555" ID="ID_1126999578" MODIFIED="1726129132903" POSITION="right" TEXT="ö,l,öl,l"/>

the blank space above before node is needed in this forum, otherwise the node will not be shown in this issue.

@opto
Copy link
Author

opto commented Sep 12, 2024

@opto
Copy link
Author

opto commented Sep 12, 2024

@opto
Copy link
Author

opto commented Sep 12, 2024

this helps in freemind: ... _buildmap:

to add color, background color, but only if a color code, red or yellow does not work:
xmllines.push('TEXT="' + node.topic + '"');
// console.log("nodedata", node_data);
var node_data = node.data;
if (node_data != null) {
for (var k in node_data) {
if (k=="color")
xmllines.push(' COLOR="' + node_data[k] + '" ');
if (k=="background-color")
xmllines.push(' BACKGROUND_COLOR="' + node_data[k] + '" ');
}
}
xmllines.push('>');

@hizzgdev
Copy link
Owner

Thanks, will support the feature recently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants