Skip to content

Instantly share code, notes, and snippets.

Created December 4, 2013 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/7794844 to your computer and use it in GitHub Desktop.
Save anonymous/7794844 to your computer and use it in GitHub Desktop.
stdin
diff --git a/gf_wysiwyg_class.php b/gf_wysiwyg_class.php
index 7599c61..8a8c4c7 100644
--- a/gf_wysiwyg_class.php
+++ b/gf_wysiwyg_class.php
@@ -71,11 +71,11 @@ if (!class_exists('gf_wysiwyg_logic')) {
$input_id = 'input_' . $form_id . '_' . $field["id"];
- if (is_admin()) {
+ if (is_admin() && ! $lead_id) {
$tabindex = GFCommon::get_tabindex();
- return sprintf("<div class='ginput_container'><textarea readonly name='input_%s' id='input_%s' class='textarea gform_wysiwyg' {$tabindex} rows='10' cols='50'>WYSIWYG editor</textarea></div>", $field["id"], 'wysiwyg-' . $field['id']);
+ return sprintf("<div class='ginput_container'><textarea readonly name='input_%s' id='input_%s' class='textarea gform_wysiwyg' {$tabindex} rows='10' cols='50'>%s</textarea></div>", $field["id"], 'wysiwyg-' . $field['id'], $value);
} else {
@@ -216,4 +216,4 @@ if (!class_exists('gf_wysiwyg_logic')) {
}
-?>
\ No newline at end of file
+?>
@bradvin
Copy link

bradvin commented Dec 24, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment