Skip to content

Commit

Permalink
Remove double slash from tableselection.css path
Browse files Browse the repository at this point in the history
this.path ends with a slash so the final path to tableselection.css contains a double slash. This can prevent the stylesheet from being loaded in some cases (e.g. when it is loaded from within a WebJar and not directly from the file system). Other plugins that use this.path (see a11yhelp, find, image2, link, liststyle, magicline, specialchar, table) don't prefix the path fragments appended to this.path with a slash.
  • Loading branch information
mflorea authored and Comandeer committed Jun 29, 2017
1 parent 0360955 commit 49fef38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/tableselection/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@
insertRow = tabletools.insertRow;
insertColumn = tabletools.insertColumn;

CKEDITOR.document.appendStyleSheet( this.path + '/styles/tableselection.css' );
CKEDITOR.document.appendStyleSheet( this.path + 'styles/tableselection.css' );
},

init: function( editor ) {
Expand All @@ -934,7 +934,7 @@

// Add styles for fake visual selection.
if ( editor.addContentsCss ) {
editor.addContentsCss( this.path + '/styles/tableselection.css' );
editor.addContentsCss( this.path + 'styles/tableselection.css' );
}

editor.on( 'contentDom', function() {
Expand Down

0 comments on commit 49fef38

Please sign in to comment.