Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • Vignesh Sweekaran
    Participant

    Hi Aakash,

    When I try to edit the pages created by GIW, by default it uses classic editor. while editing it asks me to convert to blocks.

    I am using code block from theme, that is working only if I change to block editor. For now I need to edit all page to convert to block and save.

    How can I default configure the blocks editor for all pages created by GIW.

    Thanks
    Vignesh Sweekaran

    Hi Vignesh,

    The expectation with GIW plugin is that, post content must not be edited from the editor.

    The plugin sets the post content as is.

    Even blocks are represented as normal HTML. You can learn about it here – https://developer.wordpress.org/block-editor/getting-started/fundamentals/markup-representation-block/

    So if you follow the same block syntax in your markdown file, you will get the blocks in block editor.

    Thanks,
    Aakash

    Vignesh Sweekaran
    Participant

    Hi Aakash,

    Thanks for sharing the details.

    Currently my markdown file looks like this eg: git.md

    Run the following command to install git in ubuntu operating system
    `
    sudo apt update
    sudo apt install git
    `

    For using with block editor compatible, I need to do the following changes.

    <!– wp:paragraph –>
    Run the following command to install git in Centos operating system</p>
    <!– /wp:paragraph –>

    <!– wp:code –>

    sudo yum update
    sudo yum install git

    <!– /wp:code –>

    This looks like lot of effort for writing the content in markdown file.

    Hi Vignesh,

    I understand the requirement. But may I know what is the advantage of this?

    The main idea is that users write posts in markdown format, version control and collaborate on Github. The markdown format is converted to HTML and set as post content.

    The update should be one way where the posts created with markdown shouldn’t be edited using wordpress editor.

    Thanks,
    Aakash

    Vignesh Sweekaran
    Participant

    Hi Aakash,

    I also don’t prefer using Classic or Block editor, I too prefer one way via markdown.

    I am using block theme. The GIW converts to html as classic editor way. So not able to use the features of block theme. In the block theme, the code block looks very nice.

    I found one solution to convert to block using this plugin https://wordpress.org/plugins/convert-to-blocks/

    Please let me know if you have any other options.

    Thanks,
    Vignesh

    Vignesh Sweekaran
    Participant

    Hi Aakash,

    More information about my project. Currently I am using Jekyll with plain markdown files https://github.com/vigneshsweekaran/vigneshsweekaran.github.io
    Website: https://devopspilot.com

    I am migrating to wordpress now.

    Thanks,
    Vignesh

    Looks excellent. Good luck!

    Regarding converting to blocks, right now the plugin does not do anything special for blocks. It sets the post content in classic HTML mode.

    Adding support for block format would need significant changes. I’ll keep this in my todo list and try to see how this can done.

    For now please proceed with any other solution.

    Thanks,
    Aakash

    Vignesh Sweekaran
    Participant

    Hi Aakash,

    I also don’t want to edit the post via Classic or Block editor. I too prefer the one way from markdown file.

    Currently I use Jekyll with just plain markdown files https://github.com/vigneshsweekaran/vigneshsweekaran.github.io
    Website: https://devopspilot.com

    Now I am migrating to WordPress, want to use the same markdown approach.

    But the problem is I am using Greenshift WordPress theme https://wordpress.org/themes/greenshift/ which is a Block theme.

    Im my markdown files I am using command highlighter like below
    `
    sudo apt update
    sudo apt install git
    `

    It is not properly converting as per the Theme blocks. The code block in the Greenshift Theme is very nice.

    Currently the markdown is converted to html as Classic editor way. So some features of the block are not available.

    For now I found this plugin https://wordpress.org/plugins/convert-to-blocks/ to convert to block, so code block applies

    Please let me know If any other options available.

    Thanks,
    Vignesh Sweekaran

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘[Git it write]: The pages created by default using classic editor’ is closed to new replies.

Subscribe for updates

Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter