Comments (6)
Could you update the text on ankiweb with these three points:
- it's not working on 2.1.50-2.1.54
- it's not working with qt5
- the css is not loaded into the editor in 2.1.55 or later by this add-on so that workarounds are needed.
I have added these three points into https://github.com/ijgnd/anki__editor__apply__font_color__background_color__custom_class__custom_style/blob/master/ankiweb.html
from anki__editor__apply__font_color__background_color__custom_class__custom_style.
simplest solution is probably to reuse the add-on css injector which has been updated pretty reliably since Anki version 2.1.41 and 2021-05
add one line into injector.js
change from
injectStylesheet(root, editable, `/_addons/${addonPackage}/user_files/field.css`);
to
injectStylesheet(root, editable, `/_addons/${addonPackage}/user_files/field.css`);
injectStylesheet(root, editable, `_editor_button_styles.css`);
see (the ts version) https://github.com/kleinerpirat/anki-css-injector/blob/f5e94989f79b7a01cd73783487cff0ef838d0c9d/ts/src/injector.ts#L52
from anki__editor__apply__font_color__background_color__custom_class__custom_style.
I'm looking into this right now
from anki__editor__apply__font_color__background_color__custom_class__custom_style.
Can you explain again, what you mean by "new code" here? I got the add-on running again without touching the injection routine.
from anki__editor__apply__font_color__background_color__custom_class__custom_style.
Thanks for your quick reply.
This post was a reminder for me so it's unclear. I meant that just the css is not applied in the editor in Anki 2.1.60, the appyling of the class still works. That's why I mentioned the add-on css injector as a workaround.
My js skills are too limited to find a quick solution for this at the moment.
from anki__editor__apply__font_color__background_color__custom_class__custom_style.
actually the current version of this add-on modifies the css of the editor, e.g. on my machine the editor font and font size is overriden. I fixed this by commenting out
so adding the three points from my last post is probably not enough ...
I don't know lately all my bug reports are full of holes.
from anki__editor__apply__font_color__background_color__custom_class__custom_style.
Related Issues (20)
- ankiweb: raise minimum version required to 2.1.28 HOT 1
- Feature requests: Custom HTML wrapping HOT 1
- Sorting Entries
- 少了文件?
- Improvement in the backcolor category
- broken in 2.1.41 HOT 5
- 2.1.41+ night-mode css not applied in editor HOT 3
- Text Wrapping function malfunctions when wrapping string contains quotation marks. HOT 1
- 2.1.41+ wrong colors in editor and in actual card HOT 2
- Simplifying the context menu - just an idea.
- Selection of multiple lines not recognised when disabling entries in options
- Add option to disable the dialog asking to auto update templates HOT 1
- Feature Request: Placeholder for text under selection
- Changing font family?
- shorten the red box? HOT 2
- clear formatting: It doesn't work
- broken in 2.1.50 (Attribute error, ...) HOT 8
- Change "class" name on all previously produced cards. HOT 2
- shortcuts don't apply the setting(class, style, ...) intended
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anki__editor__apply__font_color__background_color__custom_class__custom_style.