GithubHelp home page GithubHelp logo

Comments (5)

zerolab avatar zerolab commented on June 9, 2024 1

Hey @boatcoder, have you seen https://github.com/timonweb/non-admin-draftail? Maybe that can help a bit?

from draftail.

kiwiheretic avatar kiwiheretic commented on June 9, 2024

@zerolab 's solution only works for a website which is using Wagtail forms but what if the form is manually crafted from HTML? Or is this project incompatible with such an approach?

from draftail.

boatcoder avatar boatcoder commented on June 9, 2024

That seems like a huge step in the right direction

from draftail.

krystianmagdziarz avatar krystianmagdziarz commented on June 9, 2024

Hi, any update?

from draftail.

thibaudcolas avatar thibaudcolas commented on June 9, 2024

Hi, I’m going to close this now.

I’m not sure how clear this is to anyone in this thread but Draftail is a standalone editor that’s used in lots of projects that aren’t Wagtail. I think the documentation is clear on what steps are needed to use it on a given project. The editor implementation in this repository springload/draftail will never contain any Wagtail-specific code.

This issue is about Wagtail’s setup of Draftail not being usable outside the Wagtail CMS admin interface – and that’s all due to how the editor is set up specifically inside the CMS,

  • Wagtail uses custom styles for the editor, not the vanilla styles of the standalone editor
  • Icons are a pain to load because Wagtail has a very specific way of setting up its icons
  • Commenting is a Wagtail feature that happens to be heavily tied to the editor within the CMS
  • All the other global variables mentioned above are specific to Wagtail

In addition Wagtail’s link chooser, document chooser, etc – are all specific to the CMS and would also be a pain to get working outside of the CMS admin interface.


If anyone wants to take this forward – I think being able to use some of Wagtail’s UI outside the admin UI would make for a great feature request on the Wagtail repository. I’d recommend being specific about the current issues (icons, comments, etc), and keeping it professional (avoid things like "I've had to do some things that make me cringe").

As far as the approach, the most likely way to make this work in my opinion would be to have a <wagtail-draftail></wagtail-draftail> Web Component in the CMS, which packages up the admin styles and necessary icons.

from draftail.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.