Giter VIP home page Giter VIP logo

Comments (4)

jpuri avatar jpuri commented on June 12, 2024 1

[email protected] can be used to do that on client side. Details here: http://www.nibedit.com/index.html#/Demo/ConvertFromHTMLDemo

@jgoodall628: For saving into DB I would suggest using JSON format and use html format for display only.

from nib.

jpuri avatar jpuri commented on June 12, 2024

Hey @volkanongun , it is possible to convert HTML to prosemirror JSON, but important is that the HTML tags, properties that you are using is supported by the prosemirror schema of the editor. Details about schema here: https://prosemirror.net/examples/schema/

If you share details of HTML tags and attributes, I will be able to tell better.

from nib.

Draeggiar avatar Draeggiar commented on June 12, 2024

Same question here. I used React Draft Wysiwyg, but it still lacks mobile support, so i would like siwtch to Nib. Is it possible to feed its value from Html ? In the exaples there is only solution for reading html value.
Sample html form Draft:
<p><em>Testowy </em><strong>atrybut</strong></p><ul><li>z</li></ul><ol><li style="text-align:right;">Rzeczy</li><ul><li><del>dużą </del></li></ul><ol><li style="text-align:justify;"><span style="font-size: 30px;">zobaczymy</span></li><ul><li>ilością</li></ul><ol><li style="text-align:center;"><ins>czy</ins></li></ol></ol></ol><p><a href="http://www.google.pl" target="_blank">to</a>&nbsp;</p><p><span style="color: rgb(184,49,47);">wogóle</span></p><p><span style="font-family: Times New Roman;">działa</span></p><p></p><img src="https://foreverframe.net/wp-content/uploads/2017/01/diagram-1024x621.png" alt="undefined" style="float:none;height: auto;width: auto"/><img src="https://foreverframe.net/wp-content/uploads/2017/01/diagram-1024x621.png" alt="undefined" style="float:none;height: auto;width: auto"/><p></p>

from nib.

jgoodall628 avatar jgoodall628 commented on June 12, 2024

Same question here. I am trying to create a controller input using Nib. But once i save the html to the database. I can no longer load that html into the editor when the user wants to edit.

from nib.

Related Issues (20)

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.