ng2-ckeditor
ng2-ckeditor copied to clipboard
ng2-ckeditor format tag dropdown not working - Angular 12
Hello there,
I have added/configured custom tag format for ckeditor as follow.
format_Heading1:{element:"h1", name: "Heading 1", attributes: { class: 'article' },},
format_Heading1Unnumbered:{element:"p", name: "Heading 1 Unnumbered", attributes:{'class':'Heading1Unnumbered'}},
format_Heading2:{element:"h2", name: "Heading 2", attributes: { class: 'section' },},
format_Heading2Unnumbered:{element:"p", name: "Heading 2 Unnumbered", attributes:{'class':'Heading2Unnumbered'}},
format_Heading3:{element:"h3", name: "Heading 3", attributes:{'class':'Heading3'}}
and when it open first time, dropdown shows selected format tags as below
but when I close form, and (close page and repopen) reopen its not working.
Is it a bug or did I miss something?
Please note: This is iframe.
@kzimny, can you please confirm? I have created other demo, facing same issue.
I have not used custom tag formatting. I don't think this is an issue with ng2-ckeditor which is just a wrapper for ckeditor. When you prepare a stackblitz or other online demo I can have a look at your issue.
@kzimny, thanks for the reply, will create a demo and provide a link, once I get free from other stuff.
@kzimny, Hi I have created a demo on stackblitz, you can check it here StackBlitz Demo There are two page 1)Demo 2)xyz, 1)Demo page contains ng2-ckeditor 2)xyz page have only plain text.
Steps 1)Go to Demo Page there you can see ng2-ckeditor form, and format tag is working fine. 2)Go to xyz page 3)Again come back from xyz to Demo Page, there you can see format tag(Auto Selection) is not working.
Thank you for your demo. I tried but did not found any solution. Maybe someone else can help?
@kzimny any update on this?
@vimal-darji-ifour : I tried but did not found any solution. Maybe someone else can help?