Giter Site home page Giter Site logo

seonim-ryu / squire Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sohee-lee7/squire

2.0 2.0 3.0 3.11 MB

HTML5 rich text editor. Try the demo integration at

Home Page: http://neilj.github.io/Squire/

License: MIT License

HTML 2.03% Makefile 0.16% JavaScript 97.81%

squire's People

Contributors

akauffmangg avatar crabmusket avatar craigmarvelley avatar crossjs avatar cvrebert avatar dhoko avatar goldfire avatar ibash avatar kkirsche avatar masonicboom avatar mkoryak avatar neilj avatar priceld avatar rafalfilipek avatar selvan avatar shiawuen avatar shiren avatar stebalien avatar xfra35 avatar xionglun avatar

Stargazers

 avatar  avatar

Watchers

 avatar

squire's Issues

Added the allowedBlocks option

Current

If a block element is not included in the whitelist, do not render the element.

The whitelist is as follows:

var allowedBlock = /^(?:A(?:DDRESS|RTICLE|SIDE|UDIO)|BLOCKQUOTE|CAPTION|D(?:[DLT]|IV)|F(?:IGURE|IGCAPTION|OOTER)|H[1-6]|HEADER|HR|L(?:ABEL|EGEND|I)|O(?:L|UTPUT)|P(?:RE)?|SECTION|T(?:ABLE|BODY|D|FOOT|H|HEAD|R)|COL(?:GROUP)?|UL)$/;

If you want to add special block elements such as details and summary, this is not possible at this time. The option to add allowed block elements is required.

Expected

const editor = new Squire(node, {
  // ...
  allowedBlocks: ['details']
});

Related issue

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.