13 Sep 2019 |
| 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 |
| tom changed their profile picture. | 16:28:48 |
| mattwestcott changed their profile picture. | 20:56:45 |
19 Sep 2019 |
| Eric Sherman changed their profile picture. | 02:59:23 |
| sharpertool changed their profile picture. | 06:33:24 |
sharpertool | In reply to@_slack_wagtailcms_U0ME9SGR1:matrix.org can you show me which example this is from? Sorry for the late response, but it’s here
> https://www.draftail.org/docs/controlled-component#data-conversion-helpers | 06:33:25 |
| mattwestcott changed their profile picture. | 08:04:49 |
| loicteixeira changed their profile picture. | 08:44:36 |
| tom changed their profile picture. | 09:00:06 |
| Thibaud changed their profile picture. | 09:30:51 |
Thibaud | In reply to@_slack_wagtailcms_U9DQ4PP9R:matrix.org Sorry for the late response, but it’s here
> https://www.draftail.org/docs/controlled-component#data-conversion-helpers thank you, I’ll fix this now | 09:30:52 |
| flipperpa changed their profile picture. | 21:04:57 |
| Matthew changed their profile picture. | 22:02:26 |
| KalobTaulien changed their profile picture. | 22:26:01 |
20 Sep 2019 |
Thibaud | hmm as far as I can see currently the placeholder value is set once and for all, but it shouldn’t take too much work to make that configurable | 15:11:29 |
Thibaud | I think it just depends on how exactly you would want to be able to override that | 15:11:54 |
Thibaud | https://github.com/wagtail/wagtail/blob/master/client/src/components/Draftail/index.js#L100 | 15:13:04 |
Thibaud | a quick-and-dirty way would be to redeclare window.draftail.initEditor :
const overridenInitEditor = window.draftail.initEditor;
window.draftail.initEditor = (selector, options, currentScript) => {
const newOptions = Object.assign({}, options, {
placeholder: 'This is my placeholder',
});
overridenInitEditor(selector, newOptions, currentScript);
}
| 15:15:44 |
Thibaud | I’m sure there would be better ways to define this on the Python side | 15:16:10 |
23 Sep 2019 |
| mattwestcott changed their profile picture. | 13:33:37 |
| flipperpa changed their profile picture. | 15:18:37 |
| KalobTaulien changed their profile picture. | 16:49:41 |
| Eric Sherman changed their profile picture. | 17:49:52 |
11 Dec 2019 |
| @pim:utwente.io joined the room. | 00:06:22 |
13 Dec 2019 |
| clement joined the room. | 23:58:08 |
14 Dec 2019 |
| ralph joined the room. | 15:29:09 |