image upload button in the native editor

reklam

Avatar: reklam

2011-10-28 15:59

Hello,

I use the editor what I got with QC but I should upload pictures.
There was time when I could do it but now, when I try to do it, it doesn't work.

Should I change something tinymce?

http://kepfeltoltes.hu/111028/extended-buttons_www.kepfeltoltes.hu_.jpg

(Ha valaki magyar és használja a QC-t, kérem írjon nekem! <- a hungarian message to guys who use QC).

» Quick.Cart v3.x

Deivids

Avatar: Deivids

2011-10-28 19:13

In TinyMCE there is no function to upload images from your server. You can check it here http://www.tinymce.com/tryit/full.php

Deivids

Avatar: Deivids

2011-10-28 19:16

Oh, that was my mistake. There is the function. You should download full TinyMCE and install it instead of exiting one.

reklam

Avatar: reklam

2011-10-30 03:46

I did, but I got empty button and there is no possibility to upload from local computer:

http://kepfeltoltes.hu/111030/extended_www.kepfeltoltes.hu_.jpg

Deivids

Avatar: Deivids

2011-10-30 10:55

You should make some changes in templates/admin/edit.tpl

Just change the code below with another one


<script language="javascript" type="text/javascript">
    
tinyMCE.init({
        
theme "advanced",
        
mode "exact",
    
entity_encoding "raw",
        
elements "sDescriptionShort,sDescriptionFull,sContent",
        
theme_advanced_buttons1 "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,outde nt,indent,|,undo,redo",
        
theme_advanced_buttons2 "link,unlink,anchor,cleanup,help,code,hr,removeformat,visualaid,|,charmap",
        
theme_advanced_buttons3 "",
        
theme_advanced_buttons4 "",
        
theme_advanced_toolbar_location "top",
        
theme_advanced_toolbar_align "left",
        
debug false
    
});
</script>



new code



<script type="text/javascript">
tinyMCE.init({
        
// General options
        
mode "textareas",
        
theme "advanced",
        
plugins "autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups, insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,non breaking,xhtmlxtras,template",

        
// Theme options
        
theme_advanced_buttons1 "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styl eselect,formatselect,fontselect,fontsizeselect",
        
theme_advanced_buttons2 "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,li nk,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
        
theme_advanced_buttons3 "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,ful lscreen",
        
theme_advanced_buttons4 "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visu alchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
        
theme_advanced_toolbar_location "top",
        
theme_advanced_toolbar_align "left",
        
theme_advanced_statusbar_location "bottom",
        
theme_advanced_resizing true,

        
// Example content CSS (should be your site CSS)
        
content_css "css/example.css",

        
// Drop lists for link/image/media/template dialogs
        
template_external_list_url "js/template_list.js",
        
external_link_list_url "js/link_list.js",
        
external_image_list_url "js/image_list.js",
        
media_external_list_url "js/media_list.js",

        
// Replace values for the template plugin
        
template_replace_values : {
                
username "Some User",
                
staffid "991234"
        
}
});
</script>



Unfortunately, other componetns like Files' Manager are paid. See in the bottom here http://www.tinymce.com/download/download.php

reklam

Avatar: reklam

2011-10-31 16:36

Thank u!

reklam

Avatar: reklam

2011-11-02 14:35

I put it but now I have problem with the admin table.
The full description field it goes under the tabs on the right:
http://kepfeltoltes.hu/view/111102/table-admin_www.kepfeltoltes.hu_.png

reklam

Avatar: reklam

2011-11-02 14:43

I solved it. I had to change in p.php the width:

$sDescriptionShort = htmlEditor ( 'sDescriptionShort', '200', '99%', $aData['sDescriptionShort'], Array( 'aOptions' => Array( 'ToolbarStartExpanded' => false ), 'ToolbarSet' => 'Basic' ) ) ;
$sDescriptionFull = htmlEditor ( 'sDescriptionFull', '400', '99%', $aData['sDescriptionFull'], Array( 'ToolbarSet' => 'DescriptionFull' ) ) ;

baron_jon

Avatar: baron_jon

2011-11-03 18:18

i suggest to use fckeditor instead of tinymce. fckeditor has all the functions and is free.

reklam

Avatar: reklam

2011-11-07 10:28

yes, it sounds good but when I tried to install there was no image upload from local computer button it was difficult to change it (for me).

baron_jon

Avatar: baron_jon

2011-11-07 12:08

download this one
http://sourceforge.net/projects/fckeditor/files/FCKeditor/2.0%20RC3/

reklam

Avatar: reklam

2011-11-11 10:28

Ok, I did. I have to edit this way? http://opensolution.org/Quick.Cart/docs/?id=en-tips#how_to_upload_wysiwyg_editor_-_ckeditor_previously_fckeditor

baron_jon

Avatar: baron_jon

2011-11-11 14:40

Exactly

Back to top
about us | contact