Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-25210

Make the code macro editable in-place in BlockNote

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • 18.9.0-rc-1
    • 18.8.0
    • BlockNote
    • None
    • Integration
    • Unknown

    Description

      Currently the BlockNote editor displays the code macro calls like any other macro call: the macro output is read-only and the code can be modified only through the macro edit dialog.

      The code macro calls should be edited in-place, as BlockNote code blocks, with syntax highlighting and a language selector:

      • the language parameter is mapped to the language of the code block, and the other macro parameters (e.g. layout) are preserved on save;
      • new code blocks are saved as code macro calls, while the code blocks that come from verbatim blocks ({{{...}}}) are still saved as verbatim blocks;
      • code macro calls that are inline or that take the code from a different source (the source parameter) remain read-only macro calls;
      • the code blocks look the same in edit mode as the code macro output in view mode.

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: