Skip to content

Commit

Permalink
Merge branch 'release/5.2.3'
Browse files Browse the repository at this point in the history
* release/5.2.3:
  fixes #624
  • Loading branch information
austintoddj committed Feb 9, 2020
2 parents a4bbb77 + e396fa5 commit deada10
Show file tree
Hide file tree
Showing 13 changed files with 110 additions and 104 deletions.
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## [Unreleased](https://github.com/cnvs/canvas/compare/master...develop)

## [5.2.3](https://github.com/cnvs/canvas/compare/v5.2.2...v5.2.3) (February 9, 2020)

### Fixed
- Fixed broken editor/embed links ([#624](https://github.com/cnvs/canvas/issues/624))

## [5.2.2](https://github.com/cnvs/canvas/compare/v5.2.1...v5.2.2) (February 9, 2020)

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion public/js/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"/js/app.js": "/js/app.js?id=33167fb06ffc33e0102c",
"/js/app.js": "/js/app.js?id=a35c21cfd37b870ec3d9",
"/css/app.css": "/css/app.css?id=1b72078c7d5efcba44ea",
"/css/app-dark.css": "/css/app-dark.css?id=c00d27458093a6dbec9d",
"/favicon.ico": "/favicon.ico?id=b3aec2f33a001156e320"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Quill from 'quill'

let BlockEmbed = Quill.import('blots/block/embed')

class EmbedBlot extends BlockEmbed {
class EmbedContentBlot extends BlockEmbed {
static create(value) {
let node = super.create()

Expand All @@ -19,8 +19,8 @@ class EmbedBlot extends BlockEmbed {
}
}

EmbedBlot.blotName = 'embed'
EmbedBlot.tagName = 'div'
EmbedBlot.className = 'ql-embed'
EmbedContentBlot.tagName = 'div'
EmbedContentBlot.blotName = 'embed-content'
EmbedContentBlot.className = 'ql-embed-content'

export default EmbedBlot
export default EmbedContentBlot
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
import _ from "lodash";
export default {
name: 'embed-modal',
name: 'embed-content-modal',
data() {
return {
Expand All @@ -56,7 +56,7 @@
},
mounted() {
this.$parent.$on('openingEmbedModal', data => {
this.$parent.$on('openingEmbedContentModal', data => {
if (!_.isEmpty(data)) {
this.blot = data.existingBlot
this.content = data.content
Expand All @@ -67,7 +67,7 @@
methods: {
clickDone() {
if (!_.isEmpty(this.content)) {
this.$emit('addingEmbed', {
this.$emit('addingEmbedContent', {
content: this.content,
existingBlot: this.blot,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Quill from 'quill'

let BlockEmbed = Quill.import('blots/block/embed')

class ImageBlot extends BlockEmbed {
class EmbedImageBlot extends BlockEmbed {
static create(value) {
let node = super.create()

Expand Down Expand Up @@ -36,8 +36,8 @@ class ImageBlot extends BlockEmbed {
}
}

ImageBlot.tagName = 'div'
ImageBlot.blotName = 'captioned-image'
ImageBlot.className = 'embedded_image'
EmbedImageBlot.tagName = 'div'
EmbedImageBlot.blotName = 'embed-image'
EmbedImageBlot.className = 'embedded_image'

export default ImageBlot
export default EmbedImageBlot
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
);
export default {
name: 'image-modal',
name: 'embed-image-modal',
components: {
InfiniteLoading,
Expand Down Expand Up @@ -170,7 +170,7 @@
},
mounted() {
this.$parent.$on('openingImageModal', data => {
this.$parent.$on('openingEmbedImageModal', data => {
if (!_.isEmpty(data)) {
this.selectedImageCaption = _.isEmpty(data.caption) ? '' : data.caption
this.selectedImageUrl = data.url
Expand Down Expand Up @@ -257,12 +257,12 @@
clickDone() {
if (!this.selectedImageUrl) {
if (!_.isEmpty(this.selectedImageBlot)) {
this.$emit('removingImage', {
this.$emit('removingEmbedImage', {
existingBlot: this.selectedImageBlot
})
}
} else {
this.$emit('addingImage', {
this.$emit('addingEmbedImage', {
url: this.selectedImageUrl,
caption: this.selectedImageCaption ?? '',
existingBlot: this.selectedImageBlot,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let BlockEmbed = Quill.import('blots/block/embed');
* Twitter
* Transistor
*/
class LinkBlot extends BlockEmbed {
class EmbedLinkBlot extends BlockEmbed {
static create(value) {
let node = super.create();

Expand Down Expand Up @@ -57,7 +57,7 @@ class LinkBlot extends BlockEmbed {
}
}

LinkBlot.blotName = 'link';
LinkBlot.tagName = 'div';
EmbedLinkBlot.tagName = 'div';
EmbedLinkBlot.blotName = 'embed-link';

export default LinkBlot
export default EmbedLinkBlot
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import $ from 'jquery'
export default {
name: 'link-modal',
name: 'embed-link-modal',
data() {
return {
Expand All @@ -34,7 +34,7 @@
methods: {
addLink() {
this.$emit('addingLink', {
this.$emit('addingEmbedLink', {
url: this.link,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let BlockEmbed = Quill.import('blots/block/embed')
* YouTube
* Vimeo
*/
class VideoBlot extends BlockEmbed {
class EmbedVideoBlot extends BlockEmbed {
static create(url) {
let node = super.create();
let videoObj = parseVideo(url);
Expand Down Expand Up @@ -78,7 +78,8 @@ function parseVideo(url) {
};
}

VideoBlot.blotName = 'video';
VideoBlot.tagName = 'div';
EmbedVideoBlot.tagName = 'div';
EmbedVideoBlot.blotName = 'embed-video';
EmbedVideoBlot.className = 'ql-embed-video'

export default VideoBlot
export default EmbedVideoBlot
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import $ from 'jquery'
export default {
name: 'video-modal',
name: 'embed-video-modal',
data() {
return {
Expand All @@ -34,7 +34,7 @@
methods: {
addLink() {
this.$emit('addingVideo', {
this.$emit('addingEmbedVideo', {
url: this.link,
})
Expand Down
Loading

0 comments on commit deada10

Please sign in to comment.