Skip to content

WYSIWYG editor for teachers: Studio vs custom solution recommendations

6repliesLast updated: Nov 13, 2026

Hello! I’m new with Sanity.
I am working with a web app that needs to have good visual front-end editing options.

We really need to close in on perfect WYSIWYG.

This is an application for education. Students will log in and read topics. Teachers will be able to log in, read and edit live on complete lookalike version of the page.


I have questions like:• Should the editor be put inside of studio?
• What are the pros and cons using Sanity for this.
• Also, any recommendations on how i should proceed?
I am very thankful for perspectives.
😌
AI Update

Yes, use Sanity Studio and add the Presentation Tool rather than building your own editor. Presentation loads your real student-facing site in an iframe inside Studio. Teachers see a live preview of their draft as they type, and can click any piece of content to jump to the field behind it. It isn't inline editing in the page itself: teachers type into Studio fields next to a live preview of the real page.

How it works

Students never touch Studio. They read the published site. Only teachers need Studio accounts.

Setup outline (Next.js App Router)

Integration guides also exist for Nuxt, React Router, SvelteKit and Astro (Visual Editing).

// studio/sanity.config.ts
import {defineConfig} from 'sanity'
import {structureTool} from 'sanity/structure'
import {presentationTool} from 'sanity/presentation'

export default defineConfig({
  projectId: 'YOUR_PROJECT_ID',
  dataset: 'production',
  plugins: [
    structureTool(),
    presentationTool({
      previewUrl: {
        initial: 'http://localhost:3000',
        previewMode: {enable: '/api/draft-mode/enable'},
      },
    }),
  ],
})

Add resolve with defineLocations and defineDocuments so documents map to routes, for example /topics/:slug (configuring Presentation).

// frontend/src/sanity/lib/client.ts
import {createClient} from 'next-sanity'

export const client = createClient({
  projectId: process.env.NEXT_PUBLIC_SANITY_PROJECT_ID,
  dataset: process.env.NEXT_PUBLIC_SANITY_DATASET,
  apiVersion: '2026-02-01',
  useCdn: true,
  stega: {studioUrl: 'http://localhost:3333'},
})

Pros and cons

Pros

Cons

Other options

Get a teacher to try the edit, preview and publish flow early, before you build out every content type.

Show original thread
6 replies

Was this answer helpful?

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Related contributions