Comments (4)
[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.
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.
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> </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.
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)
- Code splitting for nib-ui components
- Click on link menu option should toggle opening link menu
- Error when installing latest version HOT 3
- Fix schema for video
- Advance image toggle behaviour for alignment and wrap
- Replace use of PMStateConsumer by usePMStateContext HOT 1
- Ability to link advance image
- If menu option is disabled keyboard shortcut should also not work.
- Fix link icon in inline toolbar
- Help modal to show keymaps of addons also
- License warning is not user-friendly in demo HOT 2
- Table advance plugin throws error when table is clicked. HOT 1
- Create Checklists?
- Build error: Could not resolve entry packages/true/index.js
- i18n?
- License for custom plugin usage HOT 2
- Delivery failed HOT 1
- Does this work with Next Js?
- Feature Request: Support for mentions
- Convert to HTML is not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nib.