Tagged: teeny editor
- This topic has 4 replies, 3 voices, and was last updated 6 years, 3 months ago by
mcmaster.
Viewing 4 reply threads
-
AuthorPosts
-
-
October 28, 2015 at 1:23 am #4774
mcmasterMemberI 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. -
October 28, 2015 at 4:10 pm #4782
-
October 30, 2015 at 7:33 pm #4793
KevinKeymaster@mcmaster- It looks like you have something inserting layout html into your editors?
-
November 2, 2015 at 3:22 pm #4837
mcmasterMemberNo. 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.
-
November 2, 2015 at 3:25 pm #4839
-
-
AuthorPosts
Viewing 4 reply threads
- You must be logged in to reply to this topic.