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
Markdown Interface Updates #9167
Comments
Hi, may I try to have a go at this issue please? |
Of course! All set... ❤️ |
Yes, this is for controlling the "formatting" buttons of the editor (like the HTML WYSIWYG).
Correct. For any other questions, I defer to the tech team. |
@rclee91 Thanks for working on this! As for your question regarding getting the selected font, once you added the interface there in the directus/app/src/interfaces/input-rich-text-md/input-rich-text-md.vue Lines 164 to 185 in 037fbd2
example code to add: editorFont: {
type: String,
default: 'sans-serif',
}, Here's a screenshot of this prop being available to use, as seen in Vue devtools: Afterwards you should be able to bind class or style to them over here (editor and preview, in that order): directus/app/src/interfaces/input-rich-text-md/input-rich-text-md.vue Lines 130 to 132 in 037fbd2
Recommend to use the existing css variables, and you'll likely need to remove the hardcoded |
Hi @azrikahar , thanks for your feedback! I've managed to change the preview text area to use the selected font, but I'm still having trouble with the editor text area. I'm wondering if it has to do with using I've been reading the CodeMirror manuscript, and it mentions we could override the font styles in the codemirror.css file, but I'm not sure how to achieve this dynamically. Update: I've managed to get it working now. Thanks! |
Hi @benhaynes , I have managed to complete everything else, except for
For now, I am not entirely sure how to approach this. |
I managed to think of a way to work with toolbars. |
Awesome... we'll take a look! |
Editor
button text should beEdit
sans
(like this GitHub editor).format_size
icon for headingsThe text was updated successfully, but these errors were encountered: