Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (15 sloc) 524 Bytes
from fiber.app_settings import EDITOR
from fiber.utils.import_util import import_element
editor = import_element(EDITOR)
renderer = editor.get('renderer', None)
def get_editor_field_name(html_field_name):
Returns markup or html field name, depending on editor.
Input is html field_name:
returns: 'content_html' or 'content_markup'
if renderer:
return html_field_name.replace('_html', '_markup')
return html_field_name
Something went wrong with that request. Please try again.