Commit 51eaec01 authored by brockfanning's avatar brockfanning Committed by joseph.olstad

Issue #2835833 by brockfanning: Cannot delete filtered html caption value...

Issue #2835833 by brockfanning: Cannot delete filtered html caption value without changing format to plain text
parent 993fa2d0
......@@ -91,7 +91,8 @@ Drupal.media.formatForm.getOptions = function () {
// Attempt to retrieve content for this field from any associated javascript rich-text editor.
var editorContent = Drupal.media.formatForm.getEditorContent(field.key);
if (editorContent) {
// Find content or an empty string (in case existing content was removed).
if (editorContent || editorContent === '') {
// Replace the already-cached value with the value from the editor.
ret[field.name] = editorContent;
}
......
Markdown is supported
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