-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Ampersand in code blocks is recursively changed to &
each save
#917
Comments
Hello, yes, this is a known issue in CKEditor - see ckeditor/ckeditor5#5901 It is quite unfortunate that this has not been fixed yet. |
Thanks for the prompt response, @zadam. Ouch, that's a nasty bug upstream. Have you come across any workarounds for this? |
I don't know any workaround unfortunately. |
The workaround I'm using is create a js frontend note say
then use You can change the css class It's a bit inelegant and a not very nice to have to tag loads of notes, but it's a workaround until this is fixed. |
@dtomlinson91 That looks like a useful snippet. Surely we could use a loop to work through all of the relevant elements on the page. If I get a chance, I'll try at my end. BTW, there's a slight difference between my findings ( -&
+&& |
Thank you.
Can you help me with this step? Then I have set up the attribute on my note but I have allways & and not &. I have this issue not only with &. The same with . I hope on a fix :) |
Can you post the contents of the js frontend note you're using. Also posting some text from the note you want to run it on showing what you're trying to replace. |
I have copy your replaceamp content. The most Ampersands are from HTML Chars and commands. Also &, &&, &nbsb; and other.. And allways when this will changed to & i will replace it. Very rarely I have a &, but I think I have to ignore this for now I hope this will be fixed soon |
There's been quite a bit of activity on the upstream issue so hopefully there's a solution around the corner: |
&
each save&
each save
Good news, the upstream bug has been fixed (apparently) -- will this reach the next released version of Trilium, @zadam? |
First CKEditor needs to make a release (I think they have one planned within a week). |
OK, at least we know it's in the pipeline. Thanks for the ongoing development! |
Fixed in 0.42.4. |
Lovely, thanks @zadam! Quick question if you get a chance: with no find & replace, is it OK to run queries against the database itself or can that mess things up, like note revisions? |
changing |
Thanks, that's useful to know. |
Version: 0.40.5
Steps to reproduce:
&&
, I've now got:The text was updated successfully, but these errors were encountered: