SparkDevNetwork / Rock

An open source CMS, Relationship Management System (RMS) and Church Management System (ChMS) all rolled into one.
http://www.rockrms.com
579 stars 352 forks source link

[Prealpha] Obsidian LavaShortcodeDetail Documentation field defaults to code editor if shortcode syntax is present #6041

Open leahjennings opened 1 week ago

leahjennings commented 1 week ago

Description

If you add shortcode syntax ({[ ]}) to the Documentation field in the new Obsidian LavaShortcodeDetail block, then when you go to edit the shortcode it defaults to Code Editor without allowing it to show the visual editor. Before save:

image

After save:

image

I often use this Documentation field for quick copy/paste references on how to use the shortcode.

Actual Behavior

The visual editor doesn't show if there is any shortcode syntax ({[ ]}) present.

Expected Behavior

I would expect that using shortcode syntax in the Documentation field would show the rendered output in the visual editor (the non-Obsidian block did).

Steps to Reproduce

Issue Confirmation

Rock Version

Rock McKinley 17.0 (1.17.0.30)

Client Culture Setting

en-US

chead4 commented 1 week ago

@leahjennings Thank you for reporting the issue Leah!