Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -972,17 +972,17 @@ public void run() {

// Set title and content placeholder text
mWebView.execJavaScriptFromString("ZSSEditor.getField('zss_field_title').setPlaceholderText('" +
mTitlePlaceholder + "');");
Utils.escapeQuotes(mTitlePlaceholder) + "');");
mWebView.execJavaScriptFromString("ZSSEditor.getField('zss_field_content').setPlaceholderText('" +
mContentPlaceholder + "');");
Utils.escapeQuotes(mContentPlaceholder) + "');");

// Load title and content into ZSSEditor
updateVisualEditorFields();

// If there are images that are still in progress (because the editor exited before they completed),
// set them to failed, so the user can restart them (otherwise they will stay stuck in 'uploading' mode)
mWebView.execJavaScriptFromString("ZSSEditor.markAllUploadingMediaAsFailed('"
+ getString(R.string.tap_to_try_again) + "');");
+ Utils.escapeQuotes(getString(R.string.tap_to_try_again)) + "');");

// Update the list of failed media uploads
mWebView.execJavaScriptFromString("ZSSEditor.getFailedMedia();");
Expand Down