Skip to content

Commit

Permalink
serverUrl property changed to serverHost
Browse files Browse the repository at this point in the history
  • Loading branch information
MaazAli committed Jan 29, 2015
1 parent ea6f526 commit 2843105
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/js/content-kit-editor/editor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var defaults = {
spellcheck: true,
autofocus: true,
model: null,
serverUrl: '',
serverHost: '',
stickyToolbar: !!('ontouchstart' in window),
textFormatCommands: [
new BoldCommand(),
Expand Down Expand Up @@ -166,10 +166,10 @@ function Editor(element, options) {
var editor = this;
mergeWithOptions(editor, defaults, options);

// Update embed commands by prepending the serverUrl
// Update embed commands by prepending the serverHost
editor.embedCommands = [
new ImageCommand({ serviceUrl: editor.serverUrl + '/upload' }),
new OEmbedCommand({ serviceUrl: editor.serverUrl + '/embed' })
new ImageCommand({ serviceUrl: editor.serverHost + '/upload' }),
new OEmbedCommand({ serviceUrl: editor.serverHost + '/embed' })
];

if (element) {
Expand Down

0 comments on commit 2843105

Please sign in to comment.