Skip to content

Resolve "Remove YAML front matter from editable content in the Static Site Editor"

Derek Knox requested to merge 216834-frontmatter-wysiwyg-removal into master

What does this MR do?

  • Prevents front matter from displaying in the SSE's (Toast UI Editor) WYSIWYG mode
  • Still shows the edited source in its Markdown mode
  • Manages updating the editor's v-model based on the mode (raw:'markdown'::body:'wysiwyg'

Due to the editor internally managing the content, we need to manually update the v-model on mode changes. The parseSourceFile service's returned instance works in tandem with the edit_area.vue to achieve this.

Screenshots

front-matter-removal-and-restitch-demo

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Derek Knox

Merge request reports