-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to draftail #29
base: master
Are you sure you want to change the base?
Conversation
This hack was introduced to allow wagtailfontawesome icons to render with <span> tags, but it's kind of horrible so I'm pulling it out in favour of just using upstream wagtail icons for now.
60d14dd
to
69e98aa
Compare
@liamjohnston to Typescriptify JS code. No need to TSify the components folder, just the stuff I wrote. These files: |
69e98aa
to
293de7b
Compare
DB conversion rules to support new wagtail's markup DB format
293de7b
to
979d33c
Compare
979d33c
to
09fc19f
Compare
09fc19f
to
cd610a0
Compare
entityKey: string; | ||
contentState: any; | ||
children: React.ReactNode; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be available in draft-js types which you already added to package.json https://github.com/facebook/draft-js/blob/74ebc510be96c5d850bde71f5e9f609636fd304f/src/model/decorators/DraftDecorator.js#L54
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh also i think you missed draftailmodelchoosers.js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also i rewrote the history a bit. do this:
git fetch
git checkout upgrade_to_draftail
git reset origin/upgrade_to_draftail --hard
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@liamjohnston if you already started work before doing the above then tell me - we'll sort it out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unless you're feeling pro at git
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh also i think you missed draftailmodelchoosers.js
@aaronhaslett whoops! I accidentally did wagtailmodelchoosers.js
instead... no harm done I guess? Will do draftailmodelchoosers.js
now
87c4875
to
8bcb6c6
Compare
Wagtail released 2.13 while I was in the middle of this work and it breaks using templates to insert JS code. Instead, we now use a telepath adapter.
…s that I know about.
0851942
to
134bbd6
Compare
I don't know why this is necessary but 2.0.2 wagtail seems to want it
No description provided.