Closed
Bug 246257
Opened 21 years ago
Closed 20 years ago
rte (rich text editor) bug, firefox 0.8 used to handle it good, bad tag handling
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: krisis_smash, Assigned: bugzilla)
References
()
Details
(Whiteboard: midas)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040608 Firefox/0.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040608 Firefox/0.8
http://www.kevinroth.com/rte/demo.htm
i was using this script on firefox 0.8, the tagging was just fine, when i
selected some text and then clicked the bold icon, it turned out bold text, and
the next time, the text was un-bolded
so, this new beta release of firefox0.9 used the <span> tag, instead of
<b>hello</b> it was like <span style="font-weight: bold">hello</span>
which is -almost- as bad as the microsoft word html
and preloaded content can't be edited (about:blank works, but if i use an html
with text, it won't work)
i know i'm using a beta release, but you should fix that
i hope i wrote it good, 'cause i'm Mexican
gracias amigos, sigan con ese estupendo trabajo
Reproducible: Always
Steps to Reproduce:
1. go http://www.kevinroth.com/rte/demo.htm and download the source
2. change the source of the iframe
document.writeln('<iframe id="' + rte + '" name="' + rte + '" width="' + width +
'px" height="' + height + 'px"></iframe>');
to
document.writeln('<iframe id="somehtmlpage.html" name="' + rte + '" width="' +
width + 'px" height="' + height + 'px"></iframe>');
add some text to somehtmlpage.html
3. try to edit the text!
Actual Results:
i can't edit the text
Expected Results:
edit the text, like in the v0.8
Comment 1•21 years ago
|
||
There seems to be two issues in this bug:
(1) use of <b> vs css style
(2) setting default text to be edited
For #1, see http://lxr.mozilla.org/seamonkey/source/editor/docs/midas-spec.html
(the very bottom of the page). You need to call execCommand with "useCSS" and
"false" if you want to be sure to have <b> instead of the css style.
For #2, I don't have any idea. Does it work in mozilla 1.8a but not recent
firefox builds?
mkaply--any clues?
Whiteboard: midas
Comment 2•21 years ago
|
||
did you mean src= rather than id=?
Comment 3•21 years ago
|
||
#2 is working fine for me.
It might be timing related - try setting document.designMode in the onload of
the iframe.
Comment 4•20 years ago
|
||
This bug was last touched before 1.0.4. Is it still reproducable?
Try the latest branch build (1.0.5): http://www.mozilla.org/products/firefox/
Try the latest nightly trunk build (v1.0+): http://www.mozilla.org/developer
(Reviving old UNCONFs)
Comment 5•20 years ago
|
||
Setting WFM because of lack of updates. The way around #1 is mentioned in comment 1 and #2 WFM.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•