简体   繁体   English

用于Skype的N2CMS TinyMCE filter_allowed_protocols:{user}?call

[英]N2CMS TinyMCE filter_allowed_protocols for skype:{user}?call

I am using N2CMS (2.2.1.1) and I have a simple TextPart that I am trying to enter a skype button into which contains a link with the following url ( skype:{user}?call ). 我正在使用N2CMS(2.2.1.1),我有一个简单的TextPart,我试图输入一个skype按钮,其中包含一个带有以下url(skype:{user}?call)的链接。

I am entering this into the "HTML" editor (not the wysiwyg editor) and every time i click update, tinymce is rewriting the URL to "/N2/Content/skype:{user}?call" which is causing a "dangerous request" exception and more importantly is not working to make a skype call. 我将其输入到“HTML”编辑器(而不是wysiwyg编辑器)中,每次点击更新时,tinymce都会将URL重写为“/ N2 / Content / skype:{user}?call”,这会导致“危险请求” “例外,更重要的是不打算拨打Skype电话。

I know I need to tell TinyMCE that "skype:" is an allowed protocol, but in the new version of N2CMS the N2 installation runs from a zip - I'm unsure how/where to tell TinyMCE to allow the skype: protocol in url's. 我知道我需要告诉TinyMCE“skype:”是一个允许的协议,但是在N2CMS的新版本中,N2安装从zip开始 - 我不确定如何/在哪里告诉TinyMCE允许skype:协议在url中。 I especially want to keep from modifying the zip so that in the future it is not a PITA to update N2CMS. 我特别希望不要修改zip,以便将来不再更新N2CMS的PITA。

Although N2CMS in latest versions uses ZIP archive as a default storage for its files, TinyMCE settings should still be in the same place where they always were - in web.config. 虽然最新版本中的N2CMS使用ZIP存档作为其文件的默认存储,但TinyMCE设置仍应位于它们始终存在的位置 - 在web.config中。

Here is brief example of how to add values 以下是如何添加值的简短示例

<n2>
    <edit>
         <tinyMCE enabled="true" cssUrl="/UI/CSS/editor.css">
              <settings>
                   <add key="theme_advanced_blockformats" value="h1,h2,h3" />

Put me on the right track, the exact answer; 把我放在正确的轨道上,确切的答案; however, is: 然而,是:

  <n2 xmlns="http://n2cms.com/schemas/configuration/v3">    
    <edit>
      <tinyMCE enabled="true">
        <settings>
          <add key="convert_urls" value="false" />
        </settings>
      </tinyMCE>
    </edit>
  </n2>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM