消息关闭
    暂无新消息!
求大神帮忙看看,搞定了给你大红包

课程> 题库> 题目管理> 添加题目> 题干  
目前使用开源版,只能添加文字和图片,我需要在编辑器里编写html的audio标签,但是无法保存
<audio><source src="http://www.xxx.com/yinpin/001.mp3  " type="audio/mp3">这是测试音频</audio>
源代码这样写,出来之后只显示文本“这是测试音频”

EduSoho开源版V7.5.12下载http://download.edusoho.com/edusoho-7.5.12.tar.gz

下面是编辑器调用代码

        <textarea class=\"form-control\" id=\"question-stem-field\" data-image-upload-url=\"";
        // line 54
        echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("editor_upload", array("token" => $this->env->getExtension('Topxia\WebBundle\Twig\Extension\WebExtension')->makeUpoadToken("course"))), "html", null, true);
        echo "\"  data-image-download-url=\"";
        echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("editor_download", array("token" => $this->env->getExtension('Topxia\WebBundle\Twig\Extension\WebExtension')->makeUpoadToken("course"))), "html", null, true);
        echo "\" name=\"stem\" style=\"height:180px;\">";
        echo twig_escape_filter($this->env, (($this->getAttribute((isset($context["question"]) ? $context["question"] : null), "stem", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute((isset($context["question"]) ? $context["question"] : null), "stem", array()), "")) : ("")), "html", null, true);
        echo "</textarea>




1个回答