Commit e617e0aa3631ec278a96f27465db059d6f278b77
1 parent
bcea042e
Replaced the smarty file with the correct one.
PT: 1370338 Jira: KTS-4409 Committed by: Megan Watson
Showing
1 changed file
with
45 additions
and
28 deletions
templates/ktcore/forms/widgets/textarea.smarty
| 1 | <!-------------------------------------- | 1 | <!-------------------------------------- |
| 2 | ---- Changes for Custom Fields ----- | 2 | ---- Changes for Custom Fields ----- |
| 3 | --------------------------------------> | 3 | --------------------------------------> |
| 4 | -<div name="div_{$name}" id="div_{$name}"></div> | ||
| 5 | - | 4 | +{if $options.field->getIsHTML()} |
| 6 | {literal} | 5 | {literal} |
| 7 | -<link rel="stylesheet" type="text/css" href="/thirdpartyjs/extjs/resources/css/ext-all.css"> | ||
| 8 | - | ||
| 9 | -<script type="text/javascript" src="/thirdpartyjs/extjs/adapter/ext/ext-base.js"></script> | ||
| 10 | -<script type="text/javascript" src="/thirdpartyjs/extjs/ext-all.js"></script> | ||
| 11 | -<script type="text/javascript"> | ||
| 12 | - | ||
| 13 | -Ext.BLANK_IMAGE_URL = '/thirdpartyjs/extjs/resources/images/default/s.gif'; | ||
| 14 | - | ||
| 15 | -Ext.onReady(function(){ | ||
| 16 | - | ||
| 17 | - Ext.QuickTips.init(); | ||
| 18 | - | ||
| 19 | - var dp = new Ext.form.DateField({ | ||
| 20 | - name: '{/literal}{$name}{literal}', | ||
| 21 | - allowBlank:false, | ||
| 22 | - size:10, | ||
| 23 | - format: 'Y-m-d', | ||
| 24 | - fieldClass: 'metadatadate' | ||
| 25 | - {/literal}{if $has_value},value: '{$value|sanitize_input}'{/if}{literal} | ||
| 26 | - }); | ||
| 27 | - | ||
| 28 | - dp.render('div_{/literal}{$name}{literal}'); | ||
| 29 | -}); | ||
| 30 | - | 6 | +<script type="text/javascript" src="/thirdpartyjs/tinymce/jscripts/tiny_mce/tiny_mce.js"></script> |
| 7 | +<script type="text/javascript"> | ||
| 8 | +tinyMCE.init({ | ||
| 9 | +// General options | ||
| 10 | +mode : "textareas", | ||
| 11 | +editor_selector : "mceEditor", | ||
| 12 | +//mode : "exact", | ||
| 13 | +//elements: "{/literal}{$name}{literal}", | ||
| 14 | +theme : "advanced", | ||
| 15 | +plugins : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager", | ||
| 16 | + | ||
| 17 | +// Theme options | ||
| 18 | +theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect", | ||
| 19 | +theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor", | ||
| 20 | +theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen", | ||
| 21 | +theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage", | ||
| 22 | +theme_advanced_toolbar_location : "top", | ||
| 23 | +theme_advanced_toolbar_align : "left", | ||
| 24 | +theme_advanced_statusbar_location : "bottom", | ||
| 25 | +theme_advanced_resizing : false, | ||
| 26 | + | ||
| 27 | +// Example content CSS (should be your site CSS) | ||
| 28 | +content_css : "css/example.css", | ||
| 29 | + | ||
| 30 | +// Drop lists for link/image/media/template dialogs | ||
| 31 | +template_external_list_url : "js/template_list.js", | ||
| 32 | +external_link_list_url : "js/link_list.js", | ||
| 33 | +external_image_list_url : "js/image_list.js", | ||
| 34 | +media_external_list_url : "js/media_list.js", | ||
| 35 | + | ||
| 36 | +// Replace values for the template plugin | ||
| 37 | +template_replace_values : { | ||
| 38 | +username : "Some User", | ||
| 39 | +staffid : "991234" | ||
| 40 | +} | ||
| 41 | +}); | ||
| 31 | </script> | 42 | </script> |
| 32 | - | ||
| 33 | -{/literal} | ||
| 34 | \ No newline at end of file | 43 | \ No newline at end of file |
| 44 | +{/literal} | ||
| 45 | +{/if} | ||
| 46 | + | ||
| 47 | + <textarea name="{$name}" {if $options.field->getIsHTML()}class="mceEditor"{/if} | ||
| 48 | + {if $has_id} id="{$id}"{/if} | ||
| 49 | + {if $options.rows} rows="{$options.rows}"{else} rows="7"{/if} | ||
| 50 | + {if $options.cols} cols="{$options.cols}"{else} cols="45"{/if} | ||
| 51 | + >{if $has_value}{$value|sanitize_input}{/if}</textarea> | ||
| 35 | \ No newline at end of file | 52 | \ No newline at end of file |