craftcms / craftcms/ckeditor

Migrating Redactor Variables to CKEditor Placeholder

Open
#205 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
47
Forks
32
PR merge metrics
No merged PRs in 30d

Description

Description

We received the message in the CP that Redactor is no longer being supported which is fine, CKEditor seems to be a better option overall. However, one of the breaking changes that's preventing us from migrating is Redactor has the nifty Variables plugin which allows you to put in placeholder content which later gets replaced with the actual content.

We're using this functionality to let a client customize various aspects of their emails from the CP after one of their online trainings is done, which seems to be an ideal use case for this.

Screenshot 2024-04-04 at 12 09 23 PM

After doing some digging it looks CKEditor has already built something similar, essentially using their demo project as a jump-off.

I took a stab at building this myself (and failing) - but what are the odds this plugin can make it into an official Craft CMS build at some point?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the Redactor Variables plugin description and CKEditor’s inline-widget demo linked in the issue to understand the proposed placeholder behavior. A complete feature would provide an official Craft CMS build that lets authors insert placeholder variables and later replace them with actual content.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php
Domain
content, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.