Created
December 4, 2013 20:23
-
-
Save anonymous/7794844 to your computer and use it in GitHub Desktop.
stdin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
+?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
please contribute here : https://github.com/bradvin/gravity-forms-wysiwyg