2020年9月2日 星期三

[研究][ASP.NET][WebForm] CKSource.CKFinder.Connector.Config 3.5.11 安裝 (NuGet安裝)

[研究][ASP.NET][WebForm] CKSource.CKFinder.Connector.Config 3.5.11 安裝 (NuGet安裝)

2020-09-02

注意,CKFinder是付費套件,免費版會不定時跳出 Demo Version 訊息。





Web.Config 安裝前

********************************************************************************

<?xml version="1.0" encoding="utf-8"?>

<!--

  如需如何設定 ASP.NET 應用程式的詳細資訊,請前往

  https://go.microsoft.com/fwlink/?LinkId=169433

  -->

<configuration>

  <system.web>

    <compilation debug="true" targetFramework="4.7.2"/>

    <httpRuntime targetFramework="4.7.2"/>

  </system.web>

  <system.codedom>

    <compilers>

      <compiler language="c#;cs;csharp" extension=".cs"

        type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

        warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701"/>

      <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb"

        type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

        warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+"/>

    </compilers>

  </system.codedom>

</configuration>

********************************************************************************

Web.Config 安裝後如下

********************************************************************************

<?xml version="1.0" encoding="utf-8"?>

<!--

  如需如何設定 ASP.NET 應用程式的詳細資訊,請前往

  https://go.microsoft.com/fwlink/?LinkId=169433

  -->

<configuration>

  <configSections>

    <section name="ckfinder" type="CKSource.CKFinder.Connector.Config.ConfigSectionHandler, CKSource.CKFinder.Connector.Config" allowLocation="true" allowDefinition="Everywhere" />

  </configSections>

  <system.web>

    <compilation debug="true" targetFramework="4.7.2" />

    <httpRuntime targetFramework="4.7.2" />

  </system.web>

  <system.codedom>

    <compilers>

      <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:1659;1699;1701" />

      <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />

    </compilers>

  </system.codedom>

  <ckfinder overwriteOnUpload="false" checkDoubleExtension="true" disallowUnsafeCharacters="false" secureImageUploads="true" checkSizeAfterScaling="true" xmlns="https://cksource.com/ckfinder-net/schema/CKFinderConnector.xsd">

    <license name="" key="" />

    <images maxWidth="1600" maxHeight="1200" quality="80">

      <sizes>

        <size name="small" width="480" height="320" quality="80" />

        <size name="medium" width="600" height="480" quality="80" />

        <size name="large" width="800" height="600" quality="80" />

      </sizes>

      <threshold pixels="80" percent="10" />

    </images>

    <thumbnails folder="thumbs" backend="CKFinderPrivate">

      <sizes>

        <size width="150" height="150" quality="80" />

        <size width="300" height="300" quality="80" />

        <size width="500" height="500" quality="80" />

      </sizes>

    </thumbnails>

    <backends>

      <!--

        This is special file system for private CKFinder data, it shouldn't be used for normal files.

        It shouldn't be modified unless CKFinder is hosted without access to the local file system.

        -->

      <backend name="CKFinderPrivate" adapter="local">

        <option name="root" value="App_Data" />

      </backend>

      <backend name="default" adapter="local">

        <option name="root" value="userfiles" />

        <option name="baseUrl" value="/ckfinder/userfiles/" />

      </backend>

    </backends>

    <resourceTypes>

      <resourceType name="Files" folder="files" allowedExtensions="7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pptx,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip" backend="default" />

      <resourceType name="Images" folder="images" allowedExtensions="bmp,gif,jpeg,jpg,png" backend="default" />

    </resourceTypes>

    <accessControl>

      <role name="*" resourceType="*" folder="*" folderView="allow" folderCreate="allow" folderRename="allow" folderDelete="allow" fileView="allow" fileUpload="allow" fileRename="allow" fileDelete="allow" imageResize="allow" imageResizeCustom="allow" />

    </accessControl>

    <htmlExtensions>

      <extension name="html" />

      <extension name="htm" />

      <extension name="xml" />

      <extension name="js" />

    </htmlExtensions>

    <hideFolders>

      <folder name=".*" />

      <folder name="CVS" />

      <folder name="__thumbs" />

    </hideFolders>

    <hideFiles>

      <file name=".*" />

    </hideFiles>

    <plugins folder="plugins">

      <!--

      <plugin name="PluginName" />

      -->

    </plugins>

  </ckfinder>

  <runtime>

    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

      <dependentAssembly>

        <assemblyIdentity name="System.ValueTuple" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />

        <bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />

      </dependentAssembly>

    </assemblyBinding>

  </runtime>

</configuration>

********************************************************************************
本來以為會安裝甚麼 JavaScript 或 CSS,實際上沒有,只是變更 Web.Config 內容。
NuGet 安裝 CKSource.CKFinder.Connector.Config 時,也不會安裝 CKSource.CKFinder,要自己另外安裝。

(完)


[研究][ASP.NET][JavaScript] ckeditor-full v4.9.2 試用(NuGet安裝)

http://shaurong.blogspot.com/2018/06/aspnetjavascript-ckeditor-full-v492.html


沒有留言:

張貼留言