Tagged: 

Viewing 4 reply threads
  • Author
    Posts
    • #4774
      mcmaster
      Member

      I don’t know what’s going on, but when I edit some teeny editor fields, I end up with my text being embedded in a bunch of backslashed divs.

      <div class=\"page\" title=\"Page 1\">
      <div class=\"section\">
      <div class=\"layoutArea\">
      <div class=\"column\">
      <p>Cillabor eperioriore porem volum vol. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mcaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
      </div>
      </div>
      </div>
      </div>

      This is the field group; the problem child is the section_content (Caption):

      piklist('field', array(
      	'type' => 'group',
      	'field' => 'home_feature_image',
      	'label' => 'Feature Image',
      	'description' => 'Large image at the top of the main content area.',
      	'add_more' => true,
      	'template' => 'field',
      	'columns' => 12,
      	'fields' => array(
      		array(
      			'type' => 'file',
      			'field' => 'section_image',
      			'label' => 'Image',
      			'description' => 'Add or upload an image.',
      			'options' => array(
      				'modal_title' => 'Add Image',
      				'button' => 'Add Image',
      			),
      		),
      		array(
      			'type' => 'text',
      			'field' => 'section_title',
      			'label' => 'Image Title',
      			'columns' => 12,
      		),
      		array(
      			'type' => 'editor',
      			'field' => 'section_content',
      			'label' => 'Image Caption',
      			'description' => 'Brief description of the image and its relevance to LCSO.',
      			'columns' => 12,
      			'options' => array (
      				'media_buttons' => false,
      				'teeny' => true,
      			),
      		),
      		array(
      			'type' => 'text',
      			'field' => 'section_link',
      			'label' => 'Link to More Info',
      			'description' => "If typing in a web address (URL), don't forget the 'http://'.",
      			'columns' => 12,
      			'validate' => array(
      				array(
      					'type' => 'url',
      				),
      			),
      		),
      	),
      ));
      

      Since I can’t edit source in the teeny editor, the only way I’ve found to get rid of it is to change the field to be textarea and clean it up, then change it back.

      Attachments:
      You must be logged in to view attached files.
    • #4782
      Steve
      Keymaster

      @mcmaster– I can’t reproduce. Can you provide step by step instructions or a screencast?

    • #4793
      Kevin
      Keymaster

      @mcmaster- It looks like you have something inserting layout html into your editors?

    • #4837
      mcmaster
      Member

      No. I think maybe it happened because I clicked on the wrong part of the teeny editor? But no, I have no filters or special editor code of any kind.

    • #4839
      mcmaster
      Member

      The above was @Kevin. @Steve, I will try to do that. Have been really buried the past few days.

Viewing 4 reply threads
  • You must be logged in to reply to this topic.