ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

SourceEditing and Markdown not working together

Open birla opened this issue 3 years ago • 9 comments

📝 Provide detailed reproduction steps (if any)

  1. Run the build (InlineEditor)
  2. Remove existing HTML
  3. Use the toolbar to enter any text with formatting
  4. Switch to Code

✔️ Expected result

Markdown code should be displayed

❌ Actual result

No visible change

📃 Other details

  • Browser: Chrome
  • OS:Windows
  • First affected CKEditor version: 34.2.0
  • Installed CKEditor plugins: Autoformat, Bold, Essentials, Heading, Image, ImageCaption, ImageInsert, Indent, Italic, Link, List, Markdown, Paragraph, SourceEditing, Table, TableToolbar, TextTransformation
  • Build id: srgl131mhxs-6gjgt2dso5hr (InlineEditor)

birla avatar Jul 22 '22 09:07 birla

I have the same problem when I use the DecoupledEditor editor. However, with the ClassicEditor editor they work correctly. Does anyone know of a solution? It is important to adapt the design of the project I am implementing.

MedinaAJ avatar Jul 25 '22 07:07 MedinaAJ

True! I already work with decoupled editor and the source editing plugin not works. I just try with classic editor and works, I don't understand why not works with the other.

Chervas avatar Jul 25 '22 08:07 Chervas

Yes, I am using the inline editor as well. I will try out the classic editor to see if it is working, although I need the InlineEditor interaction as, in my use case, there will be multiple editors on screen.

birla avatar Jul 26 '22 06:07 birla

Hope the devs can look at this.

birla avatar Aug 09 '22 15:08 birla

Hello,

The reason for this behaviour is that the source editing plugin is currently supported only in classic editor.
You can check it on source editing's page in documentation: https://ckeditor.com/docs/ckeditor5/latest/features/source-editing.html (in the blue info box right above the demo section).

Acrophost avatar Aug 10 '22 07:08 Acrophost

@Acrophost Thanks for pointing that out. I should've found that myself in the documentation.

birla avatar Aug 15 '22 03:08 birla

I had seen a trimmed down/custom version of the CK Editor with Inline Markdown Source editing being used in one of Microsoft's proprietary softwares so I assumed that the support is there. This was precisely why I came to CK Editor in the first place.

birla avatar Aug 15 '22 03:08 birla

@birla can you please share the source code

parikshittestbook avatar May 04 '23 11:05 parikshittestbook