编辑器使用

编辑器是zenstory的核心创作空间,为您提供流畅、智能的写作体验。本文档将详细介绍编辑器的各项功能和使用技巧。


编辑器界面

编辑器完整界面,标注标题区、工具栏、内容区、状态栏

编辑器采用简洁直观的设计,主要包含以下区域:

标题区

  • 文件标题:显示当前编辑的文件名称
  • 可编辑:点击即可直接修改标题
  • 自动同步:标题修改后会自动更新到文件树

内容区

  • 宽敞的编辑空间:采用舒适的行高和字体大小
  • 实时内容展示:所见即所得的编辑体验
  • 流式输出支持:AI 生成内容时实时显示

状态栏

底部状态栏提供重要的实时信息:

  • 字数统计:显示当前内容的字数(去除空格)
  • 段落数:统计内容的段落数量
  • 保存状态:显示当前文件的保存情况
  • 历史记录:快速访问版本历史

基本编辑操作

输入与编辑

开始编辑

  1. 在左侧文件树中点击任意文件
  2. 编辑器自动加载文件内容
  3. 点击内容区即可开始编辑

编辑特点

  • 流畅输入:优化的文本输入体验,支持中文输入法
  • 自动高度:编辑器会根据内容自动调整高度
  • 无干扰:简洁的界面设计,让您专注于内容本身

实时保存

自动保存机制

  • 智能保存:内容修改后 3 秒自动保存
  • 手动保存:按 Cmd/Ctrl + S 或点击"保存"按钮
  • 状态提示
    • "正在保存..." - 保存进行中
    • "刚刚保存" - 保存成功
    • "X 秒/分钟前" - 显示上次保存时间
    • "未保存" - 有未保存的更改

保存可靠性

  • 所有更改都会自动创建版本记录
  • 网络中断时本地缓存保护您的内容
  • 支持历史版本回退(详见版本历史

撤销与重做

使用标准快捷键管理您的编辑历史:

  • 撤销Cmd/Ctrl + Z
  • 重做Cmd/Ctrl + YCmd/Ctrl + Shift + Z

字数统计

编辑器实时提供准确的字数和段落统计:

字数计算

  • 统计方式:去除所有空白字符后的实际字数
  • 实时更新:每次输入后立即更新
  • 准确可靠:精确统计中文字符、英文单词和标点符号

段落统计

  • 段落定义:以空行分隔的文本块
  • 创作参考:帮助您控制章节长度和节奏

使用场景

  • 监控每日写作目标
  • 控制章节字数
  • 符合投稿字数要求

AI 辅助编辑

添加引用到对话

编辑器与 AI 助手深度集成,您可以轻松引用编辑器内容到 AI 对话中:

使用方法

  1. 在编辑器中选中任意文本
  2. 等待 0.3 秒,文本上方会出现浮动工具栏
  3. 点击"添加引用"按钮(引号图标)
  4. 选中的文本会自动添加到 AI 对话的引用列表中

快捷键

  • 选中文件后,按 Cmd/Ctrl + Shift + Q 快速添加引用

引用用途

  • 让 AI 基于选中内容进行续写
  • 询问 AI 关于选中段落的问题
  • 请 AI 润色或改写选中内容

AI 流式输出

当 AI 为您生成内容时:

实时展示

  • 内容逐字显示,无需等待
  • 顶部显示"AI 正在写作..."动画指示
  • 自动滚动到最新内容

智能滚动

  • 如果您正在查看底部,编辑器会跟随新内容自动滚动
  • 如果您向上滚动查看历史内容,编辑器不会打断您
  • 滚动到底部可恢复自动跟随

内容保存

  • AI 生成完成后自动保存
  • 自动创建版本记录,标记为"AI 编辑"

AI 差异审核模式

当 AI 编辑现有文件时,会进入差异审核模式:

审核界面

  • 顶部显示审核工具栏
  • 展示总共修改数量和待审数量
  • 每处修改以不同颜色高亮显示:
    • 绿色:新增内容
    • 红色:删除内容
    • 黄色:待审核状态

审核操作

  1. 逐条审核:点击每一处修改,选择"接受"或"拒绝"
  2. 批量操作
    • 点击"全部接受"接受所有修改
    • 点击"全部拒绝"拒绝所有修改
  3. 快捷键
    • Shift + Y:接受所有修改
    • Shift + N:拒绝所有修改
    • Enter:完成审阅
    • Escape:取消审阅(拒绝所有)

完成审阅

  • 审核完成后点击"应用更改"或"完成审阅"
  • 系统自动保存最终内容
  • 创建版本记录,标记为"AI 编辑(已审核)"

版本历史

编辑器为每次重要修改创建版本快照:

查看历史

  1. 点击状态栏的"历史"按钮
  2. 浏览所有历史版本列表
  3. 点击任意版本查看详细内容

版本信息

每个版本记录包含:

  • 修改时间:精确到秒
  • 修改类型:用户编辑、AI 编辑、AI 编辑(已审核)
  • 修改摘要:简要描述本次更改
  • 内容预览:快速浏览版本差异

回退操作

  • 选择任意历史版本
  • 点击"回退到此版本"
  • 系统恢复到该版本的内容

详细功能请参阅版本历史文档。


文件类型说明

编辑器支持多种文件类型,每种类型都有其特定用途:

大纲文件

  • 用途:规划故事结构、章节安排
  • 特点:支持层级结构
  • 建议:使用清晰的标题和缩进组织内容

草稿文件

  • 用途:撰写实际小说内容
  • 特点:支持长时间编辑,自动保存
  • 建议:按章节或场景创建独立的草稿文件

角色文件

  • 用途:记录角色设定、性格特征
  • 特点:结构化信息展示
  • 建议:为每个主要角色创建独立文件

设定文件

  • 用途:构建世界观、背景设定
  • 特点:分类管理不同设定元素
  • 建议:按主题分类组织设定内容

编辑技巧

高效写作

  1. 善用自动保存:专注于内容,无需频繁手动保存
  2. 利用版本历史:大胆尝试,随时可以回退
  3. 引用内容到 AI:选中精彩段落,让 AI 学习您的风格

与 AI 协作

  1. 分步生成:不要求 AI 一次生成完整章节,分场景生成效果更好
  2. 详细指令:给 AI 足够的上下文和明确的要求
  3. 审阅修改:仔细审核 AI 的每一处修改,保持您的创作风格

内容管理

  1. 定期整理:使用文件夹组织相关文件
  2. 及时备份:定期导出项目(详见导出功能
  3. 版本标记:重要修改前可创建版本备注

移动端编辑

zenstory的编辑器完全支持移动设备:

触控操作

  • 点击:定位光标
  • 长按:选择文本
  • 双击:选择词语
  • 三击:选择段落

虚拟键盘适配

  • 编辑器自动调整以适应键盘弹出
  • 保持编辑内容可见
  • 支持键盘工具栏操作

移动端特色

  • 底部导航:快速切换文件、编辑、AI 助手
  • 手势返回:支持系统返回手势
  • 横竖屏适配:自动调整布局

移动端建议

  • 适合短时间创作和快速修改
  • 大规模写作建议使用桌面端
  • 善用 AI 语音输入功能提高效率

常见问题

编辑器没有响应?

  1. 检查网络连接状态
  2. 刷新页面(内容已自动保存)
  3. 清除浏览器缓存后重试

内容丢失了?

  1. 点击"历史"按钮查看版本历史
  2. 选择最近的版本回退
  3. 联系技术支持获取帮助

AI 生成内容不符合预期?

  1. 在对话中提供更详细的上下文
  2. 使用引用功能让 AI 了解您的风格
  3. 尝试修改指令,分步骤生成内容
  4. 审阅时拒绝不合适的修改

字数统计不准确?

字数统计去除所有空白字符,如果您复制的内容包含大量空格或换行,字数会比预期少。这是正常的统计方式。


快捷键总结

快捷键 功能
Cmd/Ctrl + S 手动保存
Cmd/Ctrl + Z 撤销
Cmd/Ctrl + Y 重做
Cmd/Ctrl + Shift + Z 重做(备选)
Cmd/Ctrl + Shift + Q 添加选中内容到 AI 对话引用
Shift + Y 接受所有 AI 修改(审核模式)
Shift + N 拒绝所有 AI 修改(审核模式)
Enter 完成审阅(审核模式)
Escape 取消审阅(审核模式)

下一步

现在您已经掌握了编辑器的使用方法,可以继续探索:

开始您的创作之旅吧!


Editor Guide

The editor is the core creative space of zenstory, providing you with a smooth, intelligent writing experience. This document will introduce the various features and usage techniques of the editor in detail.


Editor Interface

[Screenshot: Complete editor interface, annotated with title area, toolbar, content area, status bar]

The editor adopts a clean and intuitive design, mainly containing the following areas:

Title Area

[Screenshot: Title input box at the top of the editor]

  • File Title: Displays the name of the currently edited file
  • Editable: Click to directly modify the title
  • Auto-sync: Title modifications automatically update in the file tree

Content Area

[Screenshot: Central content editing area of the editor]

  • Spacious editing space: Comfortable line height and font size
  • Real-time content display: WYSIWYG editing experience
  • Streaming output support: Real-time display when AI generates content

Status Bar

[Screenshot: Status bar at the bottom of the editor]

The bottom status bar provides important real-time information:

  • Word count: Displays the current content's word count (excluding spaces)
  • Paragraph count: Statistics of the number of paragraphs in the content
  • Save status: Displays the current file's save status
  • History: Quick access to version history

Basic Editing Operations

Input and Editing

[Screenshot: Editing in progress, showing cursor and input content]

Start Editing:

  1. Click on any file in the left file tree
  2. The editor automatically loads the file content
  3. Click on the content area to start editing

Editing Features:

  • Smooth input: Optimized text input experience, supports IME input methods
  • Auto height: The editor automatically adjusts height based on content
  • Distraction-free: Clean interface design lets you focus on the content itself

Real-time Saving

[Screenshot: Save status indicator, showing "Saved", save time, etc.]

Auto-save Mechanism:

  • Smart save: Content is automatically saved 3 seconds after modification
  • Manual save: Press Cmd/Ctrl + S or click the "Save" button
  • Status indicators:
    • "Saving..." - Save in progress
    • "Just saved" - Save successful
    • "X seconds/minutes ago" - Shows last save time
    • "Unsaved" - There are unsaved changes

Save Reliability:

  • All changes automatically create version records
  • Local cache protects your content during network interruptions
  • Supports version rollback (see Version History)

Undo and Redo

Use standard keyboard shortcuts to manage your editing history:

  • Undo: Cmd/Ctrl + Z
  • Redo: Cmd/Ctrl + Y or Cmd/Ctrl + Shift + Z

Word Count Statistics

[Screenshot: Word count position in the status bar]

The editor provides accurate real-time word and paragraph statistics:

Word Count Calculation

  • Counting method: Actual word count after removing all whitespace characters
  • Real-time update: Updates immediately after each input
  • Accurate and reliable: Precise counting of Chinese characters, English words, and punctuation

Paragraph Statistics

  • Paragraph definition: Text blocks separated by blank lines
  • Creative reference: Helps you control chapter length and pacing

Usage Scenarios

  • Monitor daily writing goals
  • Control chapter word count
  • Meet submission word count requirements

AI-Assisted Editing

Add Reference to Chat

[Screenshot: Floating toolbar appearing after selecting text]

The editor is deeply integrated with the AI assistant, allowing you to easily reference editor content in AI conversations:

How to Use:

  1. Select any text in the editor
  2. Wait 0.3 seconds, and a floating toolbar will appear above the text
  3. Click the "Add Reference" button (quote icon)
  4. The selected text will be automatically added to the AI chat's reference list

Keyboard Shortcut:

  • After selecting a file, press Cmd/Ctrl + Shift + Q to quickly add a reference

Reference Uses:

  • Have AI continue writing based on selected content
  • Ask AI questions about selected paragraphs
  • Request AI to polish or rewrite selected content

AI Streaming Output

[Screenshot: Editor during AI writing, with "AI is writing..." animation displayed at the top]

When AI generates content for you:

Real-time Display:

  • Content displays character by character, no waiting required
  • "AI is writing..." animation indicator at the top
  • Automatically scrolls to the latest content

Smart Scrolling:

  • If you are viewing the bottom, the editor follows new content automatically
  • If you scroll up to view historical content, the editor won't interrupt you
  • Scroll to the bottom to resume auto-following

Content Saving:

  • Automatically saved after AI generation completes
  • Automatically creates version record, marked as "AI Edit"

AI Diff Review Mode

[Screenshot: Diff review mode interface, showing modification comparison and accept/reject buttons]

When AI edits existing files, it enters diff review mode:

Review Interface:

  • Review toolbar displayed at the top
  • Shows total modification count and pending review count
  • Each modification is highlighted in different colors:
    • Green: Added content
    • Red: Deleted content
    • Yellow: Pending review status

Review Actions:

  1. Review individually: Click on each modification, choose "Accept" or "Reject"
  2. Batch operations:
    • Click "Accept All" to accept all modifications
    • Click "Reject All" to reject all modifications
  3. Keyboard shortcuts:
    • Shift + Y: Accept all modifications
    • Shift + N: Reject all modifications
    • Enter: Complete review
    • Escape: Cancel review (reject all)

Complete Review:

  • After reviewing, click "Apply Changes" or "Complete Review"
  • System automatically saves the final content
  • Creates version record, marked as "AI Edit (Reviewed)"

Version History

[Screenshot: Version history panel]

The editor creates version snapshots for every important modification:

View History

  1. Click the "History" button in the status bar
  2. Browse the list of all historical versions
  3. Click on any version to view detailed content

Version Information

Each version record contains:

  • Modification time: Precise to the second
  • Modification type: User edit, AI edit, AI edit (reviewed)
  • Modification summary: Brief description of the changes
  • Content preview: Quick browse of version differences

Rollback Operation

  • Select any historical version
  • Click "Rollback to this version"
  • System restores to that version's content

For detailed features, please refer to the Version History document.


File Type Descriptions

The editor supports multiple file types, each with its specific purpose:

Outline Files

  • Purpose: Plan story structure, chapter arrangements
  • Features: Supports hierarchical structure
  • Suggestion: Use clear headings and indentation to organize content

Draft Files

  • Purpose: Write actual novel content
  • Features: Supports long-form editing, auto-save
  • Suggestion: Create separate draft files by chapter or scene

Character Files

  • Purpose: Record character settings, personality traits
  • Features: Structured information display
  • Suggestion: Create separate files for each main character

Lore Files

  • Purpose: Build world-building, background settings
  • Features: Categorized management of different setting elements
  • Suggestion: Organize lore content by theme

Editing Tips

Efficient Writing

  1. Leverage auto-save: Focus on content without frequent manual saves
  2. Use version history: Experiment boldly, you can always rollback
  3. Reference content to AI: Select excellent passages to let AI learn your style

Collaborating with AI

  1. Step-by-step generation: Don't ask AI to generate complete chapters at once; generating by scene works better
  2. Detailed instructions: Give AI enough context and clear requirements
  3. Review modifications: Carefully review each AI modification to maintain your creative style

Content Management

  1. Regular organization: Use folders to organize related files
  2. Timely backup: Regularly export projects (see Export Feature)
  3. Version marking: Create version notes before important modifications

Mobile Editing

[Screenshot: Mobile editing interface]

zenstory's editor fully supports mobile devices:

Touch Operations

  • Tap: Position cursor
  • Long press: Select text
  • Double tap: Select word
  • Triple tap: Select paragraph

Virtual Keyboard Adaptation

  • Editor automatically adjusts to accommodate keyboard appearance
  • Keeps editing content visible
  • Supports keyboard toolbar operations

Mobile Features

  • Bottom navigation: Quick switch between files, editing, AI assistant
  • Gesture back: Supports system back gesture
  • Orientation adaptation: Auto-adjusts layout

Mobile Recommendations

  • Suitable for short-term creation and quick modifications
  • Large-scale writing recommended on desktop
  • Use AI voice input feature to improve efficiency

FAQ

Editor not responding?

  1. Check network connection status
  2. Refresh the page (content has been auto-saved)
  3. Clear browser cache and try again

Content lost?

  1. Click the "History" button to view version history
  2. Select the most recent version to rollback
  3. Contact technical support for assistance

AI-generated content doesn't meet expectations?

  1. Provide more detailed context in the conversation
  2. Use the reference feature to let AI understand your style
  3. Try modifying instructions, generate content step by step
  4. Reject inappropriate modifications during review

Word count inaccurate?

Word count removes all whitespace characters. If your copied content contains many spaces or line breaks, the word count will be less than expected. This is a normal counting method.


Keyboard Shortcut Summary

Shortcut Function
Cmd/Ctrl + S Manual save
Cmd/Ctrl + Z Undo
Cmd/Ctrl + Y Redo
Cmd/Ctrl + Shift + Z Redo (alternative)
Cmd/Ctrl + Shift + Q Add selected content to AI chat reference
Shift + Y Accept all AI modifications (review mode)
Shift + N Reject all AI modifications (review mode)
Enter Complete review (review mode)
Escape Cancel review (review mode)

Next Steps

Now that you've mastered the editor's usage, you can continue exploring:

Start your creative journey!