[Dojo-interest] Problems with Editor2
Rene A. Krywult
rene.krywult at gmx.at
Tue Feb 27 07:24:56 MST 2007
I have the following textarea:
<textarea dojoType="Editor2"
id="cText"
style="width: 794px;
height: 152px;
overflow: scroll;
background-color:white"
rows="10"
onChangedValue="SetText();"
cols="20">
</textarea>
This leads to the following problems:
1) if the textarea is empty, I have to click at the very first line of the editable section to place the caret. How can I set the caret, whenever any part of the editable section is clicked on?
2) Loading a multiline text with
var editor=dojo.widget.manager.getWidgetById("cText");
editor.replaceEditorContent(data);
where data is a "text/html", I only see the last line of the loaded text, and it is on the first line of the editable section, the scrollbars give no hints, that there are more lines. If I setFocus() and use the arrow-keys, I can browse through all lines, but only one line at a time is displayed. Only if I click on the first line, the full text is displayed.
3) lists.
If I click on the numbered list button something like this shows up (which is what I expected):
1.
If I then switch to html and back to wysiwyg again, this is shown (which I think is an error):
" 1.
1. ~"
If I do this again, the following appears:
" 1.
1. ~
1. ~"
and so on ad infinitum.
This is especially annoying in the following situation:
I save a text ending in a numbered list. I load it again. I load another text without a list and this text automatically now ends with
"1. ",
and the list funstion is activated.
Any ideas?
Rene
--
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: www.gmx.net/de/go/mailfooter/topmail-out
More information about the Dojo-interest
mailing list