Skip to content

Commit 0d0abbb

Browse files
authored
Merge pull request #3 from ngs/fix-prism
Fix Prism components loading order
2 parents d4e1502 + 0b12474 commit 0d0abbb

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

circle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test:
2020
- mkdir -p $CIRCLE_TEST_REPORTS/nyc && cp test-results.xml $CIRCLE_TEST_REPORTS/nyc
2121
deployment:
2222
production:
23-
branch: master
23+
branch: ['master', 'fix-prism']
2424
commands:
2525
- npm run build:demo
2626
- npm run deploy:demo

demo/client/components/DemoEditor/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const plugins = [createMarkdownShortcutsPlugin()];
3030

3131
const decorators = [
3232
new PrismDecorator({
33+
prism: Prism,
3334
getSyntax(block) {
3435
const language = block.getData().get('language');
3536
if (typeof Prism.languages[language] === 'object') {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"css-modules-require-hook": "^4.0.5",
6363
"dirty-chai": "^1.2.2",
6464
"draft-js-plugins-editor": "2.0.0-beta7",
65-
"draft-js-prism": "^1.0.3",
65+
"draft-js-prism": "ngs/draft-js-prism#6edb31c3805dd1de3fb897cc27fced6bac1bafbb",
6666
"enzyme": "^2.6.0",
6767
"eslint": "^3.11.1",
6868
"eslint-config-airbnb": "^13.0.0",

0 commit comments

Comments
 (0)