1

ページの URL を表示:

MyApp > エリア > 管理者 > ビュー > _AddPost.cshtml

私のプロジェクトディレクトリ(URL出力文字列をコメントとして書きました)

MyApp
-- Areas
-- Content
-- -- tinymce
-- -- -- jscripts
-- -- -- -- tiny_mce
-- -- -- -- -- tiny_mce.js   // localhost:4574/Content/......../tiny_mce.js
-- -- -- -- -- langs
-- -- -- -- -- -- en.js      // localhost:4574/Admin//langs/en.js
-- -- -- -- -- -- tr.js      // localhost:4574/Admin//langs/tr.js
-- -- -- -- -- themes 
-- -- -- -- -- -- editor_template.js // localhost:4574/Admin//themes/editor_template.js

次の行を追加しました。

<script src="@Url.Content("~/Content/tinymce/jscripts/tiny_mce/tiny_mce.js")"></script>

<script type="text/javascript">
    tinyMCE.init({
        language: "tr",   // this line call tr.js
        elements: "Body", // 
        mode: "exact",    // this line call editor_template.js
        height: 300,
        width: 500
    });
</script>

エラーが発生します

localhost:4574/Admin//langs/en.js 404 (見つかりません) localhost:4574/Admin//themes/advanced/editor_template.js 404 (見つかりません)

予想される URL

localhost:4574/Content/tinymce/jscripts/..../langs/en.js localhost:4574/Content/tinymce/jscripts/..../editor_template.js

これらは無効な URL です。これらの URL が生成される理由。

どうすればこの失敗を修正できますか? 別のプロジェクトではエラーはなく、動作します。

この質問も同じです...

ありがとう。

4

0 に答える 0