snipt

Ctrl+h for KB shortcuts

PHP

Remove WYSIWYG on post type

1
2
3
4
5
<?php
add_action('init', 'remove_editor_init');
function remove_editor_init() {
    remove_post_type_support('page', 'editor');
}
https://snipt.net/embed/6d8ea87387fc747207a4c4352172ebcf/
https://snipt.net/raw/6d8ea87387fc747207a4c4352172ebcf/
6d8ea87387fc747207a4c4352172ebcf
php
PHP
5
2016-09-26T19:29:58
True
False
False
Feb 16, 2016 at 11:32 AM
/api/public/snipt/144233/
remove-wysiwyg-on-post-type
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="cp">&lt;?php</span> </span><span id="L-2"><a name="L-2"></a><span class="nx">add_action</span><span class="p">(</span><span class="s1">&#39;init&#39;</span><span class="p">,</span> <span class="s1">&#39;remove_editor_init&#39;</span><span class="p">);</span> </span><span id="L-3"><a name="L-3"></a><span class="k">function</span> <span class="nf">remove_editor_init</span><span class="p">()</span> <span class="p">{</span> </span><span id="L-4"><a name="L-4"></a> <span class="nx">remove_post_type_support</span><span class="p">(</span><span class="s1">&#39;page&#39;</span><span class="p">,</span> <span class="s1">&#39;editor&#39;</span><span class="p">);</span> </span><span id="L-5"><a name="L-5"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
tinymce, wordpress

Text only

Magento: Edit TinyMCE CSS

1
2
3
4
Edit this file:
MY_PROJECT\js\mage\adminhtml\wysiwyg\tiny_mce\themes\advanced\skins\default\content.css

Or try to make it the right way: http://magebase.com/magento-tutorials/adding-custom-css-and-custom-style-options-to-the-wysiwyg-editor/ (didn't try...)
https://snipt.net/embed/508ad356e9125c9fb8df5e19d3fa78b1/
https://snipt.net/raw/508ad356e9125c9fb8df5e19d3fa78b1/
508ad356e9125c9fb8df5e19d3fa78b1
text
Text only
4
2016-09-27T13:47:59
True
False
True
Apr 29, 2013 at 06:20 AM
/api/public/snipt/60247/
magento-edit-tinymce-css
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>Edit this file: </span><span id="L-2"><a name="L-2"></a>MY_PROJECT\js\mage\adminhtml\wysiwyg\tiny_mce\themes\advanced\skins\default\content.css </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a>Or try to make it the right way: http://magebase.com/magento-tutorials/adding-custom-css-and-custom-style-options-to-the-wysiwyg-editor/ (didn&#39;t try...) </span></pre></div> </td></tr></table>
css, magento, tinymce, wysiwyg
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.