Coder Social home page Coder Social logo

froala / wysiwyg-editor-dotnet-sdk Goto Github PK

View Code? Open in Web Editor NEW
29.0 11.0 29.0 5.01 MB

.NET SDK to ease the integration of Froala WYSIWYG Editor on server side.

Home Page: https://www.froala.com/wysiwyg-editor

License: MIT License

C# 4.28% JavaScript 55.59% CSS 35.84% Dockerfile 0.13% HTML 2.98% Shell 1.18%
froala-editor wysiwyg wysiwyg-dotnet wysiwyg-editor wysiwyg-html-editor rich-text-editor

wysiwyg-editor-dotnet-sdk's Introduction

Froala WYSIWYG Editor .NET SDK

Easing the Froala WYSIWYG HTML Editor server side integration in .NET projects.

Dependencies

.NET Core 1.0 or .Net Framework version 4.5.2+ is required.

Installation

  1. Clone this repo or download the zip.

  2. Load src project directory in your project and import it.

  3. To run .NET examples:

  • Open FroalaEditorSDK.sln in Visual Studio.
  • Run demo or demo-core project.

Import lib

  • Visual Studio -> Right click on your project -> Add -> Reference... -> Select src project.

Documentation

Help

License

The Froala WYSIWYG Editor .NET SDK is licensed under MIT license. However, in order to use Froala WYSIWYG HTML Editor plugin you should purchase a license for it.

Froala Editor has 3 different licenses for commercial use. For details please see License Agreement.

wysiwyg-editor-dotnet-sdk's People

Contributors

dheerajaccolite avatar dianaprajescu avatar froala-travis-bot avatar harasunu-narayan avatar kapil2704 avatar kumarnagaraj1996 avatar mudita-accolite avatar shreypasari-accolite avatar stefanneculai avatar varunchopraaccolite avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wysiwyg-editor-dotnet-sdk's Issues

Add token to the HTTP header when froala makes HTTP request

Our project has an Angular 2 client side interacting with a ASP.NET Web API on the server.

When we are configuring an instance of the Froala editor to allow for image uploads, we have the following setting in our Angular 2 component:

$(function () { $('div#ed' + divid).froalaEditor({ heightMin: 100, toolbarInline: false, widthMin: 100, imageUploadURL: 'http://outili.com:8067/FroalaApi/UploadImage', toolbarButtons: ['bold', 'underline', 'strikeThrough', 'subscript', 'superscript', 'fontFamily', 'fontSize', '|' , 'align', 'undo', 'redo', 'selectAll', '|', 'insertImage'], toolbarButtonsXS: ['undo', 'redo', '-', 'bold', 'italic', 'underline'], //toolbarVisibleWithoutSelection: true, pluginsEnabled: null, charCounterCount: false }) });

As you can see, we are calling an absolute URL as opposed to a relative URL (as in the example).
Now Froala editor makes the AJAX call to this URL to send the request and get the response (link to the image) and displays it in the editor.

Is there a way in which we can modify the HTTP request header when Froala sends this request. The thing is that the API expects an authentication token, and because of the absence, we are unable to integrate. Does the editor accept a function as a property, which can then make the HTTP request on its behalf?

Microsoft.AspNetCore.Https not found

image

I cant build the demo-core projet because Microsoft.AspNetCore.Https is missing.
But there is no Microsoft.AspNetCore.Https. It just Microsoft.AspNetCore.Http available.

FroalaEditorSDK does not support .Net Core 2.0

Microsoft renamed a bunch of the .Net Core nuget libraries as part of Core 2.0/NetStandard 2.0.

In particular the dependencies Microsoft.AspNet.WebUtilities and Microsoft.AspNet.StaticFiles have been renamed to Microsoft.AspNetCore.WebUtilities and Microsoft.AspNetCore.StaticFiles respectively.

File upload throwing error but file is generated

Trying to upload a file to server using the code,

string uploadPath = "/Public/";
object response = FroalaEditor.File.Upload(System.Web.HttpContext.Current, uploadPath);

which uploads a file to server as per the documentation

It fails with the error,

E:/path/to/file/file-name.docx' is a physical path, but a virtual path was expected.

But the file is being created on the server. We also have

string uploadPath = "/Public/";
object response = FroalaEditor.Image.Upload(System.Web.HttpContext.Current, uploadPath);

which works without any issue.

Importantly, when we look inside the "Public" folder we see the file being created with content.

Why is the Image upload working and File upload not working? Any pointers will be very helpful

Parsing response failed when uploading image (.NET)

Hello,

I'm having a problem when doing the response parser, in question FROALA gives me the error: "Parsing response failed.", although the object obtained is the following "{"link":"Upload/1695423b.png"} "

The image is correctly uploaded to the server, the path to which the test is referenced in the browser and the image looks correct, but still gives the error What is happening?

I have the latest version of Froala deployed and the browser used is IE11 version 11.0.9600.18893 and ChromeVersion 64.0.3282.186.

Attached screenshots and Word file with the source of both the upload and the file containing FROALA

Best regards !!

Source Code:
CODE.docx

browser

image

OS.

Windows 7 + IIS7

Browser.

IE11 version 11.0.9600.18893 and ChromeVersion 64.0.3282.186.

Tool Bar Options are not working Properly

1)Launch the Floara Editor
2)Click on More Text
3)click on font family and font size

Actual:The Font styles and font sizes are not displaying the sub options properly
Expected:It should display the sub font styles and font sizes properly and it allow the user to select
4)Inline classes and inline styles also behaving same

Verified on the V3 Latest Pull

Environment:Windows10 and IE and chrome
Mac with firefox

FroalaEditorSDK for .net Framework 4.5

I am using froala editor sdk in my project but getting following error:

The primary reference "FroalaEditorSDK, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL" could not be resolved because it was built against the ".NETFramework,Version=v4.5.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.5".

is there any way that I can use your sdk in .net framework 4.5?

Expiration s3 image signature

Please allow the expiration of the s3 signature to be an editable param.

You currently have it hard coded to 5 mins which is not enough, since you could be writing an email and in that time the image uploading will break.

Please change this urgently it is preventing me from using froala since image uploads are basically useless without this.

Bug Fixes in File.cs

There are two bugs in file.cs

The first bug is causes by the uppercase extension. Any file sent with an uppercase extension does not meet the allowed file extensions. So it must be changed with lowercase extension.

Therefore, the code should be changed in this way:

Row Number: 86
// Fixed Bug 1 : bug caused by uppercase file extension
string name = Utils.GenerateUniqueString() + "." + extension .ToLower(CultureInfo.InvariantCulture);

The second bug causes by wrong variable that sent to delete method
The variable used as parameter is "serverPath". But it should be "link".

Row Number: 113
// Fixed Bug 2 : wrong parameter sending, it must be "link", not "serverPath"
Delete(link);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.