(self, selectorlist, url)
return (basic, CAT(*javascript))
Creates an instance of CKEditor that will edit selected HTML elements
        in place and provide AJAX saving capabilities. To start editing, the
        user will need to double click on one of the matched selectors.

        Requires a URL to return saved data to. The data will be stored in
        request.vars.content.

        NOTE: This should not be used for multi-tenant applications or where
        there is a possibility a malicious user could tamper with the variables.
Creates an instance of CKEditor that will edit selected HTML elements
        in place and provide AJAX saving capabilities. To start editing, the
        user will need to double click on one of the matched selectors.
Creates an instance of CKEditor that will edit selected HTML elements in place and provide AJAX saving capabilities . To start editing the user will need to double click on one of the matched selectors .
def bulk_edit_in_place(self, selectorlist, url):
        """
        Creates an instance of CKEditor that will edit selected HTML elements
        in place and provide AJAX saving capabilities. To start editing, the
        user will need to double click on one of the matched selectors.

        Requires a URL to return saved data to. The data will be stored in
        request.vars.content.

        NOTE: This should not be used for multi-tenant applications or where
        there is a possibility a malicious user could tamper with the variables.
        """
        basic = self.load(toolbar='basic')
        javascript = [XML("""
        <script type="text/javascript">
        function removecomment(selector) {
            if (confirm("%s")) {
                ajax('%s/'+selector,[1],'');
                jQuery('#'+selector).parent().hide();
                return false;
                }
        }
        </script>
        """ % (self.T("Are you sure you want to delete this comment?"),
               URL('article', 'removecomment'))
               )
        ]

        [javascript.append(XML(
            """
            <script type="text/javascript">
                jQuery(function() {
                    jQuery('#%(selector)s').ckeip({
                        e_url: '%(url)s',
                        data: {'object': jQuery('#%(selector)s').attr('data-object'),
                               'id': jQuery('#%(selector)s').attr('data-id')},
                        ckeditor_config: ckeditor_config(),
                    });
                    jQuery("[ <em class='double_message'> %(double_message)s</em> | <a href='#removecomment' onclick=removecomment('%(selector)s') >%(delete_message)s</a> ]").appendTo(jQuery('#%(selector)s').parent());
                });
            </script>
            """ % dict(
                selector=selector,
                url=url,
                double_message=self.T("Double click the text above to edit"),
                delete_message=self.T("Delete this comment")
            )
        )) for selector in selectorlist]

        return (basic, CAT(*javascript))
def bulk_edit_in_place ( self , selectorlist , url ) : basic = self . load ( toolbar = 'basic' ) javascript = [ XML ( """
        <script type="text/javascript">
        function removecomment(selector) {
            if (confirm("%s")) {
                ajax('%s/'+selector,[1],'');
                jQuery('#'+selector).parent().hide();
                return false;
                }
        }
        </script>
        """ % ( self . T ( "Are you sure you want to delete this comment?" ) , URL ( 'article' , 'removecomment' ) ) ) ] [ javascript . append ( XML ( """
            <script type="text/javascript">
                jQuery(function() {
                    jQuery('#%(selector)s').ckeip({
                        e_url: '%(url)s',
                        data: {'object': jQuery('#%(selector)s').attr('data-object'),
                               'id': jQuery('#%(selector)s').attr('data-id')},
                        ckeditor_config: ckeditor_config(),
                    });
                    jQuery("[ <em class='double_message'> %(double_message)s</em> | <a href='#removecomment' onclick=removecomment('%(selector)s') >%(delete_message)s</a> ]").appendTo(jQuery('#%(selector)s').parent());
                });
            </script>
            """ % dict ( selector = selector , url = url , double_message = self . T ( "Double click the text above to edit" ) , delete_message = self . T ( "Delete this comment" ) ) ) ) for selector in selectorlist ] return ( basic , CAT ( * javascript ) )