Ghost: Feature: Full Koenig Editor

Created on 8 Dec 2017  路  7Comments  路  Source: TryGhost/Ghost

As described in https://blog.ghost.org/1-0/#aneweditor, the current editor in Ghost 1.0 is a limited view of the full editor functionality we're in the process of building. We highly recommend reading that blog post to understand the Koenig editor project.

What we have currently, is purely the markdown card, which uses SimpleMDE (built on CodeMirror) to provide syntax highlighting and a nice experience writing markdown.

There are a few downsides to this setup - the biggest being that the spellcheck isn't great and is limited to English.

We're still working away on this feature. This issue serves mostly as a placeholder to track the overall progress. The first thing we will be doing is making the editor available behind a flag so that developing it becomes easier.

The beta is now available in Labs! - Please read the beta announcement for details on all the features. Test it out, and reply there on the forum if you run into any issues 馃槃


Koenig development cycle

We are working in 6-week sprints with 2-week gaps between them, during each sprint we are aiming to improve Koenig's features and writing experience to a point where we can bump the version and increase it's availability to Ghost blog owners.

馃弮 = "in progress"

How to help test the Koenig Beta version

First, please read the beta announcement

Ensure your you're on the most recent release (1.23.0 is the first version with Koenig on the labs screen) or your local development version is up to date (grunt master will help there).

Load the "Labs" screen in your blog admin and you will see a Koenig Editor checkbox to enable/disable the Koenig editor. Enable it and any post you start or edit will be using Koenig, disable it and you're back to the markdown editor.

:warning: Posts that have been edited with Koenig will only be editable with Koenig, even if you disable Koenig via labs. The only exception to this is posts that contain a single markdown card and no rich-text, they will open in the default Ghost 1.x editor when the labs flag is disabled.

editor feature

Most helpful comment

Koenig is now available in beta behind a Labs flag in Ghost 1.23.0. Please read the beta announcement for full details 馃槃

All 7 comments

We have an inconsistency with card names, in the reboot I've named the cards with koenig- prefix so that the component names were more easily identifiable as editor related (koenig-card-markdown, koenig-card-image, etc). However the pre-1.0 alpha and our current markdown card do not have a koenig- prefix in the card names (card-markdown, card-image, etc).

I've "aliased" card-markdown to koenig-card-markdown for now but I think it could still do with some more thought around how we want to name cards.

I'm wondering if it will be easier to use basic card names for the built-in cards (markdown, image, etc) so that they can be more easily overridden by user-supplied custom cards later on. We could extend our createComponentCard utility to accept the card name as well as the component name so that we avoid the tight ties between card names and components that has led us into the current naming problems.

Koenig is now available in beta behind a Labs flag in Ghost 1.23.0. Please read the beta announcement for full details 馃槃

Koenig is now in the final stretch before becoming Ghost 2.0's editor.

Please read the beta announcement, try using it as your primary editor, and post all feedback on the forum topic so that we can catch any remaining issues before this thing ships! 馃

Note on browser support - due to time constraints we've had to limit the browser support for the initial Koenig release:

  • Microsoft Edge will not be supported
  • Mobile editing will not be supported

Both of the above may work in limited capacities but will have known and unknown issues. Mobile editing will be more of a focus post-release, it requires further design work to deliver a good small-screen experience.

Koenig is now out of beta and has replaced the old markdown editor in Ghost 2.0. Any bugs or features from this point will be tracked in separate issues.

Thanks for all the feedback during the beta period 馃槃

@kevinansfield How to set code card language in Ghost Editor? 馃槃

@kevinansfield In prism plugins properties can be defined by data attribute in pre tag, but a language is defined by class language-xxxx

https://prismjs.com/#languages-list

I now using html card no pre, but ealier In jekyll I used to applying syntax

```lang
code
code
code
\```  <-  without this "\" 

It would be nice if both data attributes and classes will be albe to define after typing "```" in koenig editor.
Also nice feature would be simpler integration with mathjs

Especially because of

https://help.ghost.org/article/89-mathjax

does not works and redirects to

https://docs.ghost.org/integrations/

Update. Syntax

```lang
code
code
code
\```  <-  without this "\" 

works with the prism in markdown card. But if you are not inside of markdown card typing

```

you create new not configurable card called code, but without proper highlight configuration, it is useless.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marcuspoehls picture marcuspoehls  路  4Comments

fueko picture fueko  路  3Comments

PaszaVonPomiot picture PaszaVonPomiot  路  3Comments

RadoslavGatev picture RadoslavGatev  路  3Comments

albizures picture albizures  路  3Comments