Comments (4)
This isn't currently possible. It's conceivable that firepad could support arbitrary blocks of HTML content embedded in a Firepad, but it's unclear how the UI for that would work. Did you have a specific use case in mind for this?
from firepad.
A collaborative editor for html pages. Basic image/table support. By the way I found widget support in CodeMirror API. It is possible to add table, which occupy the whole line. Or insert widget (image tag) into line after some char. Would it be great to support some of this features?
from firepad.
Yeah, that should be possible. The html for the image/table/iframe/whatever wouldn't be collaboratively editable, but it would certainly be possible to embed arbitrary HTML in with a CodeMirror widget.
I'll keep it in mind for a future release.
from firepad.
I've added the ability to create arbitrary "entities" and insert them into Firepad. There's a builtin 'img' entity that can be used as:
firepad.insertEntity('img', { src: 'http://cdn.dashburst.com/wp-content/uploads/2013/01/Grumpy-Cat.jpg', width: 100 })
You can also register your own entities. E.g. see https://github.com/firebase/firepad/blob/448aca7c5148716200645be7d117e74d34b0c668/lib/firepad.js#L520
from firepad.
Related Issues (20)
- Undo is removing the whole multiline code instead of current line. HOT 2
- firebase is not defined HOT 1
- How to use firepad with java script spread sheet? HOT 1
- latest version is not available from CDN HOT 3
- Distribute Typescript type file(s, *.d.ts) to allow type-safe use from Typescript HOT 2
- Monaco example: Firepad is not defined HOT 1
- context is undefined when this module gets bundled using Babel 6 HOT 2
- When Firepad is disposed, CodeMirror undo/redo don't return to their original state
- Drag to move text with codemirror
- issue with Firepad sample project and integration with this tool
- Monaco Adapter Bug - Multi-Change Event Errors HOT 1
- I'm not able to initalize an instance of firepad in react.js HOT 2
- Android keyboard compatibility
- Regular Expression DoS vulnerability
- Monaco undo affects other user HOT 10
- FirePads List
- Are you still looking for an active fork to recommend? HOT 1
- Firepad is not working with Firebase V9 HOT 1
- Dragon
- Y
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 firepad.