diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-30 19:26:03 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-30 19:26:03 +0000 |
commit | 0d76969678e45b79fd95ff04f95f2572c2b568cd (patch) | |
tree | 545044163c58c004e720dca7991aad206b125b74 /mod/tinymce/views/default/input/longtext.php | |
parent | c54946dbc8da5f94fe156106d885b736fe942390 (diff) | |
download | elgg-0d76969678e45b79fd95ff04f95f2572c2b568cd.tar.gz elgg-0d76969678e45b79fd95ff04f95f2572c2b568cd.tar.bz2 |
supporting an id in tinycme longtext and not using the invalid language attribute
git-svn-id: http://code.elgg.org/elgg/trunk@7775 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/tinymce/views/default/input/longtext.php')
-rw-r--r-- | mod/tinymce/views/default/input/longtext.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/tinymce/views/default/input/longtext.php b/mod/tinymce/views/default/input/longtext.php index daa34b2e8..9d3a36155 100644 --- a/mod/tinymce/views/default/input/longtext.php +++ b/mod/tinymce/views/default/input/longtext.php @@ -8,6 +8,7 @@ * @uses $vars['value'] The current value, if any * @uses $vars['js'] Any Javascript to enter into the input tag * @uses $vars['internalname'] The name of the input field + * @uses $vars['internalid'] The id of the input field * */ @@ -27,9 +28,9 @@ if (!$tinymce_js_loaded) { ?> <!-- include tinymce --> -<script language="javascript" type="text/javascript" src="<?php echo elgg_get_site_url(); ?>mod/tinymce/vendor/tinymce/jscripts/tiny_mce/tiny_mce.js"></script> +<script type="text/javascript" src="<?php echo elgg_get_site_url(); ?>mod/tinymce/vendor/tinymce/jscripts/tiny_mce/tiny_mce.js"></script> <!-- intialise tinymce, you can find other configurations here http://wiki.moxiecode.com/examples/tinymce/installation_example_01.php --> -<script language="javascript" type="text/javascript"> +<script type="text/javascript"> tinyMCE.init({ mode : "specific_textareas", editor_selector : "mceEditor", @@ -86,7 +87,7 @@ function toggleEditor(id) { <a class="longtext-control toggle_editor small link" href="javascript:toggleEditor('<?php echo $vars['internalname']; ?>');"><?php echo elgg_echo('tinymce:remove'); ?></a> <!-- show the textarea --> -<textarea class="elgg-input-textarea mceEditor" name="<?php echo $vars['internalname']; ?>" <?php echo $vars['js']; ?>><?php echo htmlentities($vars['value'], null, 'UTF-8'); ?></textarea> +<textarea class="elgg-input-textarea mceEditor" name="<?php echo $vars['internalname']; ?>" <?php if (isset($vars['internalid'])) echo "id=\"{$vars['internalid']}\""; ?> <?php echo $vars['js']; ?>><?php echo htmlentities($vars['value'], null, 'UTF-8'); ?></textarea> <script type="text/javascript"> $(document).ready(function() { |