-
Notifications
You must be signed in to change notification settings - Fork 0
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
About weka totara_notification_placeholder!!!! #1
Comments
Hi @Rookie-baiqi -- I would suggest using a ProseMirror Mark for this, with a text size attribute -- similar to how bold/italic or links work (see text.js). That way you can also use built-in helpers like the |
I think I've found a way, because totara originally has a file called weka_notification_placeholder, and I'm going to use some methods to add attrs to it so that the vue file can get attrs, and then add style to it, I currently try to modify the front-end, and wait for the back-end to see if it can be verified and identified, if it can, then my need is solved! As for the marks you mentioned, because my font size, font color and font background color are created in this way, I also know it, but it is not very appropriate here, because there are already plug-ins, I think it is more difficult for me to add them than the one I have changed now! Because many of the methods are different from the original framework, so it is a bit difficult to read, I hope totara can also improve the relevant documentation! Thank you very much! |
Hello! I have encountered a problem with the weka editor during development, and I really can't find a solution, so I try to contact you to see if you can help solve my problem. Well, I'm currently developing a text size menu item that can change the size of the text you select, so far only matching text (TextNode), Instead of matching nodes other than text, I'm trying to wrap the dom structure generated by notificationPlaceholder with a div/span tag, which allows me to add some css properties to the Notificationplaceholder so that I can change the size and color of it. But I can't find this node right now, but I can't add layers to it, nor can I add styles, because my text size menu (fontsize.js) is modeled after Emoji.js, and the matching rules are also written by myself. Now the question is how do I wrap this notificationPlaceholder and assign it a css style when I select text size for it, and I'll post the image below and hope to hear from you, any suggestions you might have might be key for me! Thank you very much!
The text was updated successfully, but these errors were encountered: