30 Aug 2019 |
Thibaud | In reply to@_slack_wagtailcms_UMQ2MVBEJ:matrix.org Hi Thibaud. I just tested it - and it seems to work š Thank you very very much! I highly appreciate your help! Have a nice weekend! Sweet :) You too | 09:19:36 |
2 Sep 2019 |
Jason Dilworth | In reply to@_slack_wagtailcms_U0ME9SGR1:matrix.org I donāt think itās possible unfortunately. There might be variations in markup that are close, but with the current implementation of list items this would make "Hereās a third item" behave as if it was the first item in a new ordered list Ah thatās a real shame, Iām used to using some Markdown and having it ājust workā for want of a better phrase. I will ask the editors to just choose one type of list for now, thanks for the answer. | 15:46:16 |
Jason Dilworth | In reply to@_slack_wagtailcms_UFCCF5RND:matrix.org Ah thatās a real shame, Iām used to using some Markdown and having it ājust workā for want of a better phrase. I will ask the editors to just choose one type of list for now, thanks for the answer. (edited) Ah thatās ... => Thibaud Ah thatās ... | 15:46:31 |
Thibaud | In reply to@_slack_wagtailcms_UFCCF5RND:matrix.org Thibaud Ah thatās a real shame, Iām used to using some Markdown and having it ājust workā for want of a better phrase. I will ask the editors to just choose one type of list for now, thanks for the answer. Iāll check whether it would be possible to implement this but canāt promise anything | 20:06:23 |
Thibaud | In reply to@_slack_wagtailcms_U0ME9SGR1:matrix.org Iāll check whether it would be possible to implement this but canāt promise anything I see someone has just filed an issue for this, are they working with you or is it just a coincidence? https://github.com/springload/draftail/issues/209 | 20:06:53 |
5 Sep 2019 |
sharpertool | In reply to@_slack_wagtailcms_U0ME9SGR1:matrix.org https://github.com/springload/draftail/issues/208 Thanks Thibaud | 22:45:46 |
6 Sep 2019 |
Jason Dilworth | In reply to@_slack_wagtailcms_U0ME9SGR1:matrix.org I see someone has just filed an issue for this, are they working with you or is it just a coincidence? https://github.com/springload/draftail/issues/209 Just coincidence! | 10:02:13 |
Jason Dilworth | This might not be the place to ask, and please let me know if thatās the case, but does anyone know of a neat way to link to a RoutablePage within the editor? | 10:05:30 |
Thibaud | generally I donāt think RoutablePage URLs are exposed anywhere in the Wagtail UI, including the editor | 14:51:12 |
KalobTaulien | Sounds accurate. Although I wonder if that'd be a good idea to expose those urls in the page chooser modal? Got me thinking now haha | 18:03:32 |
9 Sep 2019 |
| tom changed their profile picture. | 11:39:32 |
sharpertool | Thibaud - is this something you recognize?
> const initialContent = { entityMap: {}, blocks: [] }
> const initialEditorState = createEditorStateFromRaw(initialContent)
I get an error on the 2nd line: āTypeError: cannot read property āgetKeyā of undefinedā
This is nearly a cut-paste from your docs, so not sure what Iām missing. | 16:16:42 |
sharpertool | Looks like you need at least this:
>>> {
entityMap: {},
blocks: [{text: āā, type: āunstyledā}]})
} | 20:20:34 |
10 Sep 2019 |
| thp44 changed their profile picture. | 15:31:37 |
12 Sep 2019 |
Thibaud | sharpertool yep ā there is a bug / implementation detail in the Draft.js conversion that means the content needs to at least have one block | 13:47:45 |
Thibaud | (edited) ... one block => ... one block in it | 13:47:46 |
Thibaud | The editor wouldnāt be usable anyway if it was initialised with "no blocks", but the way this fails is a bit annoying | 13:48:21 |
| mattwestcott changed their profile picture. | 15:18:06 |
| scotchester changed their profile picture. | 15:51:32 |
| sharpertool changed their profile picture. | 21:44:16 |
sharpertool | In reply to@_slack_wagtailcms_U0ME9SGR1:matrix.org The editor wouldnāt be usable anyway if it was initialised with "no blocks", but the way this fails is a bit annoying Well, maybe the example can be updated to represent the minimal required value | 21:44:27 |
| flipperpa changed their profile picture. | 23:21:24 |
13 Sep 2019 |
| tom changed their profile picture. | 05:10:38 |
| sonny changed their profile picture. | 08:27:32 |
| coenvanderkamp changed their profile picture. | 09:44:05 |
| Thibaud changed their profile picture. | 14:33:15 |
Thibaud | In reply to@_slack_wagtailcms_U9DQ4PP9R:matrix.org Well, maybe the example can be updated to represent the minimal required value can you show me which example this is from? | 14:33:17 |
18 Sep 2019 |
| Eric Sherman changed their profile picture. | 13:39:20 |
| Eric Sherman changed their profile picture. | 16:16:12 |
Eric Sherman | can you use the 'placeholder' prop in draftail in wagtail when declaring rich text blocks to set placeholder text for that block? | 16:16:12 |