!MMqDFaFUehZZVwknKE:matrix.org

Draftail

50 Members
A configurable rich text editor built with Draft.js https://www.draftail.org/21 Servers

Load older messages


SenderMessageTime
13 Sep 2019
@_slack_wagtailcms_U0ME9SGR1:matrix.orgThibaud changed their profile picture.14:33:15
@_slack_wagtailcms_U0ME9SGR1:matrix.orgThibaud
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
@_slack_wagtailcms_UJHDYNXJP:matrix.orgEric Sherman changed their profile picture.13:39:20
@_slack_wagtailcms_UJHDYNXJP:matrix.orgEric Sherman changed their profile picture.16:16:12
@_slack_wagtailcms_UJHDYNXJP:matrix.orgEric 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
@_slack_wagtailcms_U0L1Z4JMC:matrix.orgtom changed their profile picture.16:28:48
@_slack_wagtailcms_U0LQA2BFT:matrix.orgmattwestcott changed their profile picture.20:56:45
19 Sep 2019
@_slack_wagtailcms_UJHDYNXJP:matrix.orgEric Sherman changed their profile picture.02:59:23
@_slack_wagtailcms_U9DQ4PP9R:matrix.orgsharpertool changed their profile picture.06:33:24
@_slack_wagtailcms_U9DQ4PP9R:matrix.orgsharpertool
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
@_slack_wagtailcms_U0LQA2BFT:matrix.orgmattwestcott changed their profile picture.08:04:49
@_slack_wagtailcms_U0R212R3M:matrix.orgloicteixeira changed their profile picture.08:44:36
@_slack_wagtailcms_U0L1Z4JMC:matrix.orgtom changed their profile picture.09:00:06
@_slack_wagtailcms_U0ME9SGR1:matrix.orgThibaud changed their profile picture.09:30:51
@_slack_wagtailcms_U0ME9SGR1:matrix.orgThibaud
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
@_slack_wagtailcms_U4N6SF7K5:matrix.orgflipperpa changed their profile picture.21:04:57
@_slack_wagtailcms_UHNKDKXRD:matrix.orgMatthew changed their profile picture.22:02:26
@_slack_wagtailcms_UB1CW1P53:matrix.orgKalobTaulien changed their profile picture.22:26:01
20 Sep 2019
@_slack_wagtailcms_U0ME9SGR1:matrix.orgThibaud 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
@_slack_wagtailcms_U0ME9SGR1:matrix.orgThibaud I think it just depends on how exactly you would want to be able to override that 15:11:54
@_slack_wagtailcms_U0ME9SGR1:matrix.orgThibaud https://github.com/wagtail/wagtail/blob/master/client/src/components/Draftail/index.js#L100 15:13:04
@_slack_wagtailcms_U0ME9SGR1:matrix.orgThibaud 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
@_slack_wagtailcms_U0ME9SGR1:matrix.orgThibaud I’m sure there would be better ways to define this on the Python side 15:16:10
23 Sep 2019
@_slack_wagtailcms_U0LQA2BFT:matrix.orgmattwestcott changed their profile picture.13:33:37
@_slack_wagtailcms_U4N6SF7K5:matrix.orgflipperpa changed their profile picture.15:18:37
@_slack_wagtailcms_UB1CW1P53:matrix.orgKalobTaulien changed their profile picture.16:49:41
@_slack_wagtailcms_UJHDYNXJP:matrix.orgEric Sherman changed their profile picture.17:49:52
11 Dec 2019
@pim:utwente.io@pim:utwente.io joined the room.00:06:22
13 Dec 2019
@clement:hackerspaces.beclement joined the room.23:58:08
14 Dec 2019
@ralph:matrix.allmende.ioralph joined the room.15:29:09

Show newer messages


Back to Room ListRoom Version: 1