1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

[1.0.0 b1] Disable WYSIWYG

Discussion in 'Tips and Guides [Archive]' started by Jake Bunce, Oct 7, 2010.

  1. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    There is currently no setting or preference for it, but you can edit the templates to permanently disable the WYSIWYG editor:

    Admin CP -> Appearance -> Templates -> editor_quick_reply

    Add " AND false" to the WYSIWYG conditions as shown below:

    Code:
    <xen:if is="{$showWysiwyg} AND false">
        <textarea name="{$formCtrlNameHtml}" id="{$editorId}_html"  style="display:none" class="textCtrl  MessageEditor">{$messageHtml}</textarea>
        <noscript><textarea name="{$formCtrlName}"  id="{$editorId}" class="textCtrl  MessageEditor">{$message}</textarea></noscript>
    <xen:else />
        <textarea name="{$formCtrlName}" id="{$editorId}" class="textCtrl MessageEditor">{$message}</textarea>
    </xen:if>
    <input type="hidden" name="_xfRelativeResolver" value="{$requestPaths.fullUri}" />
    
    <xen:if is="{$showWysiwyg} AND false">
        <xen:include template="editor_js_setup" />
    </xen:if>
    
    <xen:comment><xen:require css="editor_contents.css" /></xen:comment>
    
    You can do the same thing to this template:

    Admin CP -> Appearance -> Templates -> editor
     
    Eagle, wiz, Aarmin and 6 others like this.
  2. wiz

    wiz Member

    Would this end up somewhere in users' prefs?
     
  3. Brogan

    Brogan XenForo Moderator Staff Member

    There is now an account setting for the editor preference yes, but it's per member whereas this edit applies to all members.
     

Share This Page