S
Speakly.PRO

Lex Editor & AI

Master the rich content editor for creating interactive language lessons.

The Lex Editor is a powerful, block-based content editor built specifically for language education. It goes far beyond a simple text editor -- with interactive game widgets, AI-powered lesson generation, real-time collaboration, and a full suite of media tools, it is the core authoring environment for every lesson on Speakly.PRO.

What You Can Build

The editor is designed so that teachers can create rich, interactive content without any coding knowledge. Here is what it supports:

Rich Text and Layout

  • Text formatting with bold, italic, underline, colored highlights, and more
  • Headings, lists, blockquotes, collapsible sections, and multi-column layouts
  • Tables with resizable columns and in-cell exercises

Media

  • Image upload, inline images, and image resizing
  • YouTube video embeds, Twitter/social embeds
  • Audio files with playback controls and transcript support

Interactive Game Widgets

  • Multiple choice (dropdown), fill-in-the-blank, matching pairs, sentence builder
  • True/false, ordering/sequencing, essay, and audio response
  • Flashcards, memory game, word search, crossword, word scramble, category sort
  • Brain break widgets: roulette wheel, drawing board, would-you-rather, breathing timer

AI and Automation

  • AI lesson builder that generates complete lessons from a topic and level
  • AI autocomplete and Ask AI inline assistant
  • AI-powered exercise generation and translation tools

Collaboration and Review

  • Real-time co-editing with live cursors via Y.js
  • Comments, suggestions, and track-changes workflow
  • Teacher annotations (hidden from students)

Presentation and Special Content

  • Full-screen presentation mode for live classroom use
  • LaTeX equations, emoji picker, @mentions, sticky notes
  • Text-to-speech, speech-to-text, and audio recording
  • Excalidraw drawing canvas

Plugin Catalog

The editor is built on a modular plugin architecture. Each capability is powered by one or more plugins:

CategoryPlugins
Text formattingBold, italic, underline, strikethrough, SpecialText highlights, floating toolbar
StructureHeadings, lists, blockquotes, collapsible sections, layout columns, page breaks
MediaImages, inline images, audio, YouTube, Twitter, auto-embed
TablesTable creation, cell resizer, hover actions, action menu
CodeCode blocks with Prism and Shiki syntax highlighting
LinksLink insertion, auto-link detection, floating link editor
ExercisesAnswerCombo (multiple choice), AnswerInput (fill-in-blank), Exercise blocks
Game widgetsMatching, ordering, sentence builder, true/false, flashcard, memory game, word scramble, category sort, word search, crossword
Brain breaksRoulette, drawing board, would-you-rather, breathing timer
AIAsk AI assistant, autocomplete, lesson builder, translate
CollaborationY.js collaboration, comments, suggestions, annotations
SpecialEquations (KaTeX), emoji, mentions, date/time, sticky notes, Excalidraw, polls
SpeechText-to-speech, speech-to-text, speech recorder
EditingDrag-and-drop, slash commands, keyboard shortcuts, find/replace, undo/redo

How This Section Is Organized

Each page in this section covers a specific area of the editor:

Frequently Asked Questions

Do I need to know any code to use the editor?

No. The editor is fully visual. You type, drag, click, and configure widgets through the toolbar and menus. The underlying widget markdown syntax is handled automatically.

Can students edit the lesson content?

No. Students interact with exercises and widgets (submitting answers, dragging items, recording audio) but cannot modify the lesson text or structure. See Editor Modes for details.

How do I insert an exercise into my lesson?

Type / anywhere in the editor to open the slash command menu, then search for the exercise type you want (e.g., /matching, /truefalse, /essay). You can also use the Insert menu in the toolbar.

Is my work saved automatically?

Yes. The editor auto-saves every 30 seconds. You will see a "Saved" indicator in the status bar. You can also press Ctrl/Cmd + S to save manually at any time.

Can I collaborate with other teachers on the same lesson?

Yes. The editor supports real-time collaboration. Multiple teachers can edit the same lesson simultaneously with live cursors and automatic conflict resolution. See Collaboration.