Project

General

Profile

Actions

Support #790

closed
FA

WTextEdit::setExtraPlugins

Support #790: WTextEdit::setExtraPlugins

Added by Francesco Alfano over 15 years ago. Updated about 15 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Target version:
Start date:
04/16/2011
Due date:
% Done:

0%

Estimated time:

Description

Can someone help me about how to use the WTextEdit::setExtraPlugins.

I don't understand how to load the plugin before initial display of the widget.
i've tried:

WContainerWidget *teContainer = new WContainerWidget();
teTextEditor = new Wt::WTextEdit(teContainer);
teTextEditor->setExtraPlugins("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,nonbreaking,xhtmlxtras,template");
teTextEditor->resize(700, 400);

but it doesn't work.

Thank's for your help.

KD Updated by Koen Deforche over 15 years ago Actions #1

Hey,

It's the proper way, but it seems that not all plugins load properly and then JavaScript terminates on an error.
If I omit autolink and lists, then I do not get an error, but you still need to populate the toolbars with buttons for these plugins ?

Regards,
koen

FA Updated by Francesco Alfano over 15 years ago Actions #2

Koen Deforche wrote:

Hey,

It's the proper way, but it seems that not all plugins load properly and then JavaScript terminates on an error.
If I omit autolink and lists, then I do not get an error, but you still need to populate the toolbars with buttons for these plugins ?

Regards,
koen

Hello,
how i use this code: i've add the setToolBar method
"
teTextEditor->setExtraPlugins("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,nonbreaking,xhtmlxtras,template");
teTextEditor->resize(700, 400);
teTextEditor->setToolBar(0, "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect");
teTextEditor->setToolBar(1, "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");
teTextEditor->setToolBar(2, "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen");
teTextEditor->setToolBar(3, "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage");

"
and it seems to work.

Thanks, for you help.

KD Updated by Koen Deforche over 15 years ago Actions #3

  • Status changed from New to Resolved

KD Updated by Koen Deforche about 15 years ago Actions #4

  • Target version set to 3.1.10

KD Updated by Koen Deforche about 15 years ago Actions #5

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom