如何在文本区域添加pdf文件?

时间:2017-03-10 09:35:10

标签: php jquery html5 kohana

我想在文本区域添加pdf文件或docx文件。我希望你能帮助我。谢谢 !如果您想查看我的意思是它位于我的网站linkinads.com/publish-new.html

enter image description here

<?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>

1 个答案:

答案 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"});