GithubHelp home page GithubHelp logo

Comments (4)

mikelehen avatar mikelehen commented on June 17, 2024

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.

zannussik avatar zannussik commented on June 17, 2024

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.

mikelehen avatar mikelehen commented on June 17, 2024

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.

mikelehen avatar mikelehen commented on June 17, 2024

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)

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.