I just playing around Dojo widgets and it's looking cool. Found that dijit.Editor widget having some basic facilities to support rich text contents. However, could you please provide your comments on the below queries?
1. Is it possible to extend the dijit.Editor widget to include few more facilities like "Insert Hyperlink", "Insert Image" etc? These are the normal facilities expected from any rich text area components.
2. Why this widget is not tied to the "form" element? Any specific reason?
I could not understand how to use the plugins in the link you provided to DojoToolkit site. I followed the same way it was stated in the site is also not working. And there is no option to insert image also.
However, I did google and found this link which is again from same dojotoolkit site but I guess it is based on old version of dojo...not so sure. And it looks very cool with all the features I was looking for. But not so sure why all those functionalities have been removed or hidden from the latest version.
Any suggestions or advice on this. Understand you do not have much hands on with editor widget. However could you able to direct me to any other links or useful samples?
Bunch of thanks in advance. Mourougan
Joined: Sep 29, 2008
Hmm. Let's see. There's a better rundown on editor features, usage and plugins onelinke further on dojocampus;
Other than that, I can only recommend you to learn how to make custom widgets since much of the information you need is very similar. Also, dive down into the source code and look at it. Very often there'sa lot of documentation left in the source by the contributors.
Joined: Oct 29, 2008
I dig into the source code and found the way of making plug-in works. the link you provided also helped me a lot.
Below is the code for my fantasy rich text editor with all the features I was looking for (excluding insert image). There is no plug-in for insert image functionality as of now I guess. Anyway, I'll try to write a plug-in for this soon and make my rich text editor complete
In addition, since the editor is not a form widget, I may need to workout on this part and get the content of the editor to be submitted along with the form.
And also, there is some validation failure in the font dropdowns, I'll try to explore and fix this as well. Hope this may be a minor one.
Anyway, I learned a lot from you (thanks again Peter) as I mentioned in the welcome thread.
I am very glad that I've managed to guide you to the correct information One think I would like to add, do you think you could contribute your changes and additions to Dojo as a project? Maybe this is not possible due to contractual dmeands, but otherwise I think it would be greatly appreciated. Dojo is large, and need constant participation.
Joined: Oct 29, 2008
That's really great to hear. If I can contribute something useful to others.. why not?
Once I complete my changes and tested properly, I'll surely contribute the changes to Dojo. However, Dojo team should ready to agree for validating and accepting my submission anyway.
The following code works with formated text, but when I insert a table, it doesn´t work.
You pulled up a post that is 2 years old when an author of a book was here. Not many people hang around here that use Dojo so you may want to post this on the Dojo message boards if you have not done so already.