gpt4 book ai didi

php - 更改 TinyMCE 中的语言

转载 作者:行者123 更新时间:2023-11-28 02:36:17 29 4
gpt4 key购买 nike

我想将语言“en”更改为“ur”。我已经从http://www.tinymce.com/i18n/index.php?ctrl=lang&act=download&pr_id=1下载了语言文件夹,并将其三个文件夹themes、plugins、langs替换为tinymce\jscripts\tiny_mce文件夹。 然后我如上所述更改了示例文件夹中的 full.html 代码:

<!DOCTYPE html>
<html>
<head>

<title>آپ سادہ مرکزی خیال</title>
<meta charset="utf-8" />
<!-- TinyMCE -->
<script type="text/javascript" src="../jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
// General options
language : "ur",
mode : "textareas",
theme : "advanced",
plugins : "advhr,advimage,advlink,emotions,fullpage,media,paste,searchreplace,style,table,template,xhtmlxtras",

除乌尔都语文本外,其他代码相同。

但我的输出没有显示工具栏、文本区域。

请告诉我我做错了什么。

最佳答案

以下步骤可能会对您有所帮助:

  1. 包含 jQuery 和 jquery.tinymce.js 文件。
  2. 为您的 textarea 控件分配属性 class="tinymce"
  3. 在 JavaScript 中:

    $(function(){
    $("textarea.tinymce").tinymce({
    // Location of TinyMCE script
    script_url : "js/tiny_mce/tiny_mce.js",

    // General options
    theme : "advanced",
    plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",

    // Example content CSS (should be your site CSS)
    content_css : "css/style.css",

    // Theme options
    theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",


    });
    });

关于php - 更改 TinyMCE 中的语言,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13440113/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com