我想在文本区域添加pdf
文件或docx
文件。我希望你能帮助我。谢谢 !如果您想查看我的意思是它位于我的网站linkinads.com/publish-new.html
<?if($form_show['description'] != FALSE):?>
<div class="form-group">
<div class="col-md-12">
<?= FORM::label('description', _e('Description'), array('for'=>'description', 'spellcheck'=>TRUE))?>
<?=FORM::textarea('description', Request::current()->post('description'), array('class'=>'form-control'.((Core::config("advertisement.description_bbcode"))? NULL:' disable-bbcode'),
'name'=>'description',
'id'=>'description',
'rows'=>10,
'required',
'data-bannedwords' => (core::config('advertisement.validate_banned_words') AND core::config('advertisement.banned_words') != '') ? json_encode(explode(',', core::config('advertisement.banned_words'))) : '',
'data-error' => __('This field must not contain banned words ({0})')))?>
</div>
</div>
答案 0 :(得分:0)
我也为我的txtarea找到了Javascript,我希望这会帮助更多的人。我要编辑JS ......?
//sceditor $('textarea[name=description]:not(.disable-bbcode)').sceditorBBCodePlugin({ toolbar:: "bold,italic,underline,strike,|left,center,right,justify|" +
"bulletlist,orderedlist|link,unlink,youtube|source",
resizeEnabled: "true",
emoticonsEnabled: false,
style: $('meta[name="application-name"]').data('baseurl') + "themes/default/css/jquery.sceditor.default.min.css",
width: '88%',
height: "300px"});