想要使用joomla校对组件,不显示模态窗口会给出错误Uncaught TypeError: $(...).proofreader is not a function
发现此行给出错误,
<div id="proofreader_container" class="proofreader_container" style="display:none;"><?php echo $displayData['form']; ?></div>
<script>
jQuery(document).ready(function ($) {
$('#proofreader_container').proofreader({
'handlerType' : '<?php echo $displayData['options']['handler']; ?>',
<?php if (isset($displayData['options']['load_form_url'])): ?>
'loadFormUrl' : '<?php echo $displayData['options']['load_form_url']; ?>',
<?php endif; ?>
<?php if ($displayData['options']['highlight']): ?>
'highlightTypos' : true,
<?php endif; ?>
'selectionMaxLength': <?php echo $displayData['options']['selection_limit']; ?>
},
{
'reportTypo' : '<?php echo JText::_('COM_PROOFREADER_BUTTON_REPORT_TYPO', true); ?>',
'thankYou' : '<?php echo JText::_('COM_PROOFREADER_MESSAGE_THANK_YOU', true); ?>',
'browserIsNotSupported': '<?php echo JText::_('COM_PROOFREADER_ERROR_BROWSER_IS_NOT_SUPPORTED', true); ?>',
'selectionIsTooLarge' : '<?php echo JText::_('COM_PROOFREADER_ERROR_TOO_LARGE_TEXT_BLOCK', true); ?>'
});
})
</script>
哪里写不出来?