Skip to content

Fix: TinyMCE API key & Appwrite premium-only file preview workaround - #295

Open
TRrajputDEV wants to merge 1 commit into
hiteshchoudhary:mainfrom
TRrajputDEV:fix/editor-appwrite-deprecation
Open

Fix: TinyMCE API key & Appwrite premium-only file preview workaround#295
TRrajputDEV wants to merge 1 commit into
hiteshchoudhary:mainfrom
TRrajputDEV:fix/editor-appwrite-deprecation

Conversation

@TRrajputDEV

Copy link
Copy Markdown

Summary

This PR resolves two issues for students using this repo in 2024 and beyond:

  1. TinyMCE Editor API Key

    • Added apiKey={conf.tinymceAPI} to <Editor /> component.
    • TinyMCE now requires an API key post-2024 to work properly.
  2. Appwrite File Preview (Premium Only)

    • Replaced getFilePreview() (now premium-only) with getFileView() to support free-tier users.

Why this matters?

This project is still widely followed by students learning React and Appwrite. These updates ensure:

  • Editor loads correctly.
  • Image previews work without requiring a paid Appwrite plan.

Tested with:

  • TinyMCE v6+
  • Appwrite free-tier (latest)

Hope this helps others facing these issues. Glad to contribute! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant