Opened 18 years ago
Closed 17 years ago
#809 closed New Feature (fixed)
Add directionality button(s) (BiDi)
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | Normal | Milestone: | FCKeditor 2.5 Beta |
Component: | General | Version: | |
Keywords: | SF | Cc: | soldini@… |
Description
In several languages (Arabic, Hebrew, Farsi) text is written right to left. However, inside the right to left text there is often left to right text like numbers, math formulas, or quotes from left-to-right languages (usually English, but not only English...)
To specify directionality either dir=rtl or style='derection:rtl' has to be added to the <P>, <DIV> or <SPAN> tag surrounding the text (ltr direction is the default, but it is sometimes also needed to be set explicitly, such as when an ltr element is nested within an rtl element. Directionality attributes also apply to <TABLE>, and there's also a <BDO> tag defined in HTML 4 for overiding directionality).
What FCKeditor misses and is present in other online HTML editors are two directionality buttons (or one toggle!) that would apply a directionality attribute to the closest <P>, <DIR> or <SPAN> tag containing the cursor (or apply either a <SPAN> tag with dir attribute or <bdo> tag that does the same to the selection).
Moved from SF:
http://sourceforge.net/tracker/index.php?func=detail&aid=1189112&group_id=75348&atid=543656
Change History (3)
comment:1 Changed 18 years ago by
Cc: | soldini@… added |
---|---|
Reporter: | changed from Martin Kou to hadaso@… |
comment:2 Changed 18 years ago by
Type: | Bug → New Feature |
---|
comment:3 Changed 17 years ago by
Milestone: | → FCKeditor 2.5 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
The new style system makes it possible to apply such kinds of styles. There is inline support for it, for now. We have also included the definition for direction tags in the Style combo. Check out #494.
https://sourceforge.net/tracker/index.php?func=detail&aid=1468382&group_id=75348&atid=543656 https://sourceforge.net/tracker/index.php?func=detail&aid=1389928&group_id=75348&atid=543656 https://sourceforge.net/tracker/index.php?func=detail&aid=1242878&group_id=75348&atid=543656 https://sourceforge.net/tracker/index.php?func=detail&aid=1200400&group_id=75348&atid=543656 have been marked as dup of this bug.
There's a plugin that somewhat allows this: https://sourceforge.net/tracker/index.php?func=detail&aid=1496112&group_id=75348&atid=737639
Moved from SF. Original poster: alfonsoml
i am looking for that feature from long time. i think it should be easy if someone know how to write fckeditor plugin.
Moved from SF. Original poster: soldini
Actually thinking about it <span dir=ltr> and <bdo dir=ltr>
any implicit directionality. <span> with dir attributes only pushes the directionality to the stack, but elements nested inside can have different directionality, either internal or external. <bdo> is equivalent to unicode directionality override codes, while <span> with dir is just like a unicode directionality change.
The difference is usage is mostly that <span> is suitable when quoting text with directionality different from the sorruonding text that might have internal elements with different directionality, such as when inside an English paragraph Hebrew or Arabic is quoted, and the quote also contains numbers. <bdo> is very useful when including code or math formulas inline. In trhis case absolute control on directionality is absolutely essential!
Moved from SF. Original poster: hadaso