jQuery UI Widgets Forums Editors Editor Custom tool with fileUpload

This topic contains 1 reply, has 2 voices, and was last updated by  admin 1 month, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Custom tool with fileUpload #134884

    luna80
    Participant

    Hi!
    It’s possible to create an editor custom tool with a jqxFileUpload?

    I tried so

    
    $('#post_testo').jqxEditor({ width: '100%', height: '300px', tools: 'bold italic underline | format font size | color background | left center right | outdent indent | ul ol | image | image_upload | link | clean | html',
    		 createCommand: function (name) {
    			switch (name) {
    				case "image_upload":
    					return {
    						type: 'fileUpload',
    						tooltip: "File upload",
    						init: function (widget) {
    							widget.jqxFileUpload({ height: '30px', uploadUrl: '<?php echo base_url(); ?>index.php/admnin/newsletter_imageupload' });               
                            },
    						refresh: function (widget, style) {
    							
    						},
    						action: function (widget, editor) {
    							var widgetValue = widget.val();
    							
    							return { command: "inserthtml", value: widgetValue };
    						}
    					}
    				}
    			}, theme: ''});
    
    

    but it doesn’t works.

    Can somebody help me please? Thanks a lot in advance!

    Custom tool with fileUpload #134885

    admin
    Keymaster

    Hi,

    We have this already done in our newer Editor. You can check it out here: https://www.htmlelements.com/demos/editor/overview/

    Best regards,
    Peter Stoev

    jQWidgets Team
    https://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.