HTML editor removing spaces

HTML editor removing spaces

ដោយ Zbigniew Fiedorowicz នៅ
ចំនួនតប៖ 9
I have noticed that HTML editor running on moodle.org has recently started removing spaces between words.  This has happened several times to me, and I have noticed this in other posts appearing here.  For example: http://moodle.org/mod/forum/discuss.php?d=22640&parent=107563
មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Zbigniew Fiedorowicz

Re: HTML editor removing spaces

ដោយ Janne Mikkonen នៅ
Unfortunate bug that been caused a function integrated from fckeditor to HTMLArea (format html). Apparently it'll need more fixing ... uptil then HTMLArea.getHTML should return plain html and not fixed one by HTMLArea.formathtml

- Janne -
មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Zbigniew Fiedorowicz

Re: HTML editor removing spaces

ដោយ Janne Mikkonen នៅ
fixed in CVS ("should be" cause it's not tested anyone but my self).
មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Janne Mikkonen

Re: HTML editor removing spaces

ដោយ Martin Dougiamas នៅ
រូបភាព Core developers រូបភាព Documentation writers រូបភាព Moodle HQ រូបភាព Particularly helpful Moodlers រូបភាព Plugin developers រូបភាព Testers
Thanks, Janne!   On moodle.org now ... ញញឹម
មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Martin Dougiamas

Re: HTML editor removing spaces

ដោយ Janne Mikkonen នៅ
Testing testing testing. We really need WP1 to test this ញាក់ចិញ្ចើម
មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Janne Mikkonen

HTML editor still removing spaces

ដោយ Martin Dougiamas នៅ
រូបភាព Core developers រូបភាព Documentation writers រូបភាព Moodle HQ រូបភាព Particularly helpful Moodlers រូបភាព Plugin developers រូបភាព Testers
This still seems to be happening, Janne. I'm noticing it particularly when pasting text in. For example, I'll copy some of the front page of the site:

Moodle is a course management system (CMS) - a free, Open Source software package designed using sound pedagogical principles,to help educators create effective online learning communities. You candownload and use it on any computer you have handy (includingwebhosts), yet it can scale from a single-teacher site to a40,000-student University. This site itself is created using Moodle, socheck out the Moodle Features demos, the Demonstration Courses or read the latest Moodle Buzz.

This looked fine in the editor, but some spaces dissappeared after saving.  I can't see the pattern in it ...
មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Martin Dougiamas

Re: HTML editor still removing spaces

ដោយ Janne Mikkonen នៅ
Loss of this spaces really confuse me since they are not in any style definition and it seems very random.

Arrrgghhh ខឹង ខឹង ស្លាប់
មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Janne Mikkonen

Re: HTML editor still removing spaces

ដោយ Hiroto Kagotani នៅ
It is not so random. You can see the pattern by inserting an alert code arround line 1892:
            }
}
alert(this.getInnerHTML());
break;
case "lefttoright":
case "righttoleft":
then pasting some html text by Ctrl-V. Firefox splits up the pasted html text into chunks separated by newline codes by replacing some spaces with newlines so that every chunk has less than 72 characters. Since HTMLArea.formathtml swallows every newline code, as the result, these replaced spaces are removed.
មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Martin Dougiamas

Re: HTML editor still removing spaces

ដោយ Janne Mikkonen នៅ
I've commented out HTMLArea.formathtml (it's in CVS).


មធ្យមភាគនៃរង្វាយតម្លៃ: -
ឆ្លើយតបទៅកាន់ Janne Mikkonen

Re: HTML editor still removing spaces

ដោយ Martin Dougiamas នៅ
រូបភាព Core developers រូបភាព Documentation writers រូបភាព Moodle HQ រូបភាព Particularly helpful Moodlers រូបភាព Plugin developers រូបភាព Testers
Thanks, man!  យល់ស្រប  Working perfectly now!  សើចសប្បាយ
មធ្យមភាគនៃរង្វាយតម្លៃ: -