Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Set <code>convert_urls: false</code> in tiny_mce_init.js, not tiny_mce.js. Early in tiny_mce_init.js you'll see a call to window.tinyMCE.init passing a bunch of initialisation options. In the Products.TinyMCE I'm looking at, the last option is <code>fix_list_elements: false</code>. Add your option there.</p> <p><strong>Edit</strong>: tiny_mce_init.js is no longer used in Products.TinyMCE 1.3.x (Plone 4.3). Instead, override the <code>tinymce-jsonconfiguration</code> browser view, e.g.:</p> <p>Assuming you have a package with a browser layer, add in <code>browser/configure.zcml</code>:</p> <pre class="lang-xml prettyprint-override"><code>&lt;browser:page for="*" name="tinymce-jsonconfiguration" class=".tinymce.TinyMCEBrowserView" permission="zope2.View" attribute="jsonConfiguration" layer="..interfaces.IMyBrowserLayer" /&gt; </code></pre> <p>Then add <code>browser/tinymce.py</code>:</p> <pre class="lang-python prettyprint-override"><code>try: import simplejson as json except ImportError: import json from Acquisition import aq_inner from Products.CMFCore.utils import getToolByName from Products.TinyMCE.browser.browser import TinyMCEBrowserView as View from Products.TinyMCE.browser.interfaces.browser import ITinyMCEBrowserView from zope.interface import implements class TinyMCEBrowserView(View): implements(ITinyMCEBrowserView) def jsonConfiguration(self, field): """Return the configuration in JSON""" utility = getToolByName(aq_inner(self.context), 'portal_tinymce') config = utility.getConfiguration(context=self.context, field=field, request=self.request) config['convert_urls'] = False return json.dumps(config) </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload