Ticket #593 (closed New Feature: fixed)

Opened 7 years ago

Last modified 7 months ago

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

593_Proposal.patch (2.2 KB) - added by fredck 7 years ago.
First patch proposal. Not intended to be the final solution.
593_Proposal2.patch (3.3 KB) - added by OlaA 6 years ago.
Modified proposal

Change History

comment:1 Changed 7 years ago by martinkou

  • Owner changed from alfonsoml to nobody
  • Cc alfonsoml, tallyce@…, ytztech@…, fredck added

comment:2 Changed 7 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

comment:3 Changed 7 years ago by martinkou

  • Type changed from Bug to New Feature

comment:4 Changed 7 years ago by fredck

  • Owner nobody deleted

comment:5 Changed 7 years ago by w.olchawa

  • Keywords Confirmed added

comment:6 Changed 7 years ago by fredck

  • Milestone set to FCKeditor 2.7

Changed 7 years ago by fredck

First patch proposal. Not intended to be the final solution.

comment:7 Changed 6 years ago by OlaA

  • Cc olaa81@… added

Are there any news on when this feature will be included?

Changed 6 years ago by OlaA

Modified proposal

comment:8 Changed 6 years ago by OlaA

I tested the proposal patch on 2.6.4, and modified it a bit to make it work. I've tested it on Firefox, IE, Opera and Chrome. It seems to be working well but I'm not sure it's suitable for a final solution.

comment:9 Changed 7 months ago by Reinmar

  • Status changed from confirmed to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy