Skip to content
Snippets Groups Projects
Commit c459b3df authored by john's avatar john
Browse files

better fn name

parent d07c6e37
No related branches found
No related tags found
No related merge requests found
...@@ -52,7 +52,7 @@ class ContainerEditor extends SubstanceContainerEditor { ...@@ -52,7 +52,7 @@ class ContainerEditor extends SubstanceContainerEditor {
this.container.on('nodes:changed', this.onContainerChange, this) this.container.on('nodes:changed', this.onContainerChange, this)
if (this.isEmpty()) this.createText() if (this.isEmpty()) this.createText()
if (this.isReadOnlyMode()) this.links() if (this.isReadOnlyMode()) this.addTargetToLinks()
} }
// create an empty paragraph with an empty node // create an empty paragraph with an empty node
...@@ -104,7 +104,7 @@ class ContainerEditor extends SubstanceContainerEditor { ...@@ -104,7 +104,7 @@ class ContainerEditor extends SubstanceContainerEditor {
return !this.isEditable() && this.isSelectable() return !this.isEditable() && this.isSelectable()
} }
links () { addTargetToLinks () {
const allLinks = this.el.findAll('a') const allLinks = this.el.findAll('a')
each(allLinks, link => each(allLinks, link =>
link.attr('target', '_blank') link.attr('target', '_blank')
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment