Comments (5)
Hey @boatcoder, have you seen https://github.com/timonweb/non-admin-draftail? Maybe that can help a bit?
from draftail.
@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.
That seems like a huge step in the right direction
from draftail.
Hi, any update?
from draftail.
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)
- Content-state is not updated during typing korean
- Is this project dead? HOT 2
- linkify example broken
- Checkbox plugin: Editing the text on the line, most of the characters get deleted, after checkbox is ticked. HOT 3
- Plugin handlePastedText doesn't get called when setting stripPastedStyles=false HOT 1
- Support full aria controls provided by draftJS HOT 2
- How can we upload Image from Local computer and show in Draftail Text Editor HOT 1
- Need help integrating @draft-js-plugins/mention HOT 2
- Document DraftUtils in official API reference
- Characters entered with compose key on Firefox 90 disappear HOT 2
- Shortcut keys result in missing characters in draft-js 0.11.7 HOT 1
- Linkify plugin cannot be clicked in read-only mode HOT 2
- Keyboard navigation breaks with links in paragraph in Chrome on MacOS HOT 1
- How to add options (classes) to lists
- Hope to draw graphs with draftail HOT 2
- Update draft-js peer dependency to the latest version HOT 2
- Is the entityTypes prop required?
- Draft.js no longer maintained HOT 7
- The source example pages on github only go to 404 pages.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from draftail.