Ticket #593 (confirmed New Feature)
Start the editor in Source mode
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | General | Version: | |
| Keywords: | SF | Cc: | alfonsoml, tallyce@…, ytztech@…, fredck, olaa81@… |
Description
How would I start the editor in the HTML source mode instead of the WYSIWIG mode?
Attachments
Change History
comment:1 Changed 6 years ago by martinkou
- Owner changed from alfonsoml to nobody
- Cc alfonsoml, tallyce@…, ytztech@…, fredck added
comment:2 Changed 6 years ago by martinkou
- Reporter changed from martinkou to anonymous
https://sourceforge.net/tracker/index.php?func=detail&aid=1294774&group_id=75348&atid=543656 have been marked as dup of this bug
Moved from SF. Original poster: alfonsoml
Has this been implemented? I still can't see anything in the API that allows it?
Moved from SF. Original poster: tallyce
The editor can be started in source mode using the following code (although this doesn't truly avoid starting in WYSIWYG, just the end result is source mode):
<script type="text/javascript"><!--
function FCKeditor_OnComplete(editorInstance) {
// Switch the editor from WYSIWYG to SOURCE on startup.
editorInstance.SwitchEditMode();
}
--></script>
The FCKeditor_OnComplete function is executed once the editor has loaded. Outside of using this hack in your pages to force the editor to switch on startup, the current editor doesn't support a textmode option by default.
The biggest problem with this scenario is when Gecko or IE "massages" the underlying HTML for purposes not explained by anyone. I know that some fixes for these events already exist in FCKeditor, but it would still be nice to have this function implemented so that the IFRAME initialized with the source active instead of the WYSIWYG view.
Moved from SF. Original poster: ytztech
It�s not possible in the actual version. I�ll manage to include it on future versions.
Best regards, FredCK
Moved from SF. Original poster: fredck
Changed 5 years ago by fredck
- Attachment 593_Proposal.patch added
First patch proposal. Not intended to be the final solution.
