Opened 21 years ago
Closed 21 years ago
#2047 closed enhancement (fixed)
wp_richedit_pre() may better have a filter hook for customization & i18n
| Reported by: | mani_monaj | Owned by: | ryan |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | General | Version: | 2.0 |
| Severity: | normal | Keywords: | richedit_pre tinymce bg|has-patch |
| Cc: | Focuses: |
Description
For some i18n purposes, We need to take control of the default text shows up in TinyMCE when a blank post/page starts, wp_richedit_pre() is called before TinyMCE wants to show content for some filterings, It also checks if it's a blank post or not, I added an filter hook to this function named "richedit_pre"
Attachments (2)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Good idea! I've modified it a bit to remove the empty paragraph as default. It was only added to improve RTL support but it hurts the experience for LTR users. Now anyone writing a plugin to turn on RTL is burdened with adding '<p> </p>' to any empty string.