Replies: 1 comment 3 replies
-
|
Upd: Thanks, guys. This is strange, but the reason why the behavior of |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I've been scratching my head for two days trying to figure out the strange behavior of the
tui-editorcomponent loaded viapolymorpheusOutlet. For some reason, some of the tools, specifically 'bold', 'italic', and 'align', refuse to work. Meanwhile, the markdown syntax is correctly interpreted, but it's impossible to bold the text by clicking the 'B' button in the toolbar. On the other hand, other tools like 'insertHorizontalRule' or 'fontSize' work correctly. There are no errors in the console accompanying this behavior.During debugging, I discovered a pattern:
if the component is statically mounted in the template (1), and in the same template, a component (2) containing the static
tui-editoris dynamically mounted, the editor's behavior changes and fully matches the expected one.I assumed that the cause of this behavior might be related to the providers, but my attempts — specifically adding the configuration from the guide in the project root or directly in the lazily loaded component (2) — didn't lead to any results. I also tried specifying the parent injector for the
PolymorpheusComponent. I tend to think that I’ve missed something very obvious or I don’t know something, so I’d appreciate any hints on where to dig.P.S. ionic is out of guilty scopeBeta Was this translation helpful? Give feedback.
All reactions