Free and Open source Web Builder Framework. Next generation tool for building templates without coding
BSD-3-CLAUSE License
Bot releases are hidden (Show)
Published by artf over 2 years ago
wrap
action to default RTE.isInstanceOf
, isChildOf
methods to Component
.component:select:before
, component:hover:before
events.editor.on('component:select:before component:hover:before', (cmp, opts) => {
if (['b', 'i', 'u'].indexOf(cmp.get('tagName')) >= 0) {
opts.abort = true;
}
});
script
function is empty https://github.com/artf/grapesjs/pull/4140
draggableComponents
disabled #4099component:mount
once the DOM is appended to the parent #4136Published by artf over 2 years ago
Component.getInnerHTML
method.withProps
and altQuoteAttr
options to Component.toHTML
method.onlyMatched
option to CSS code generator.editor.Parser.parseHtml
.config.parser.optionsHtml
configuration options.config.allowScripts
in favor of config.parser.optionsHtml.allowScripts
.config.parser.optionsHtml.allowScripts
is false
by default but now we also remove unsafe attributes from parsed HTML (eg. on*
inline event handlers). In case you need to enable unsafe attributes, you can do it via config.parser.optionsHtml.allowUnsafeAttr
option.Published by artf almost 3 years ago
⚠️ BREAKING CHANGE
This release refactors heavily the Style Manager module by removing private methods and events on which some old plugins were relying, like grapesjs-style-gradient
, grapesjs-style-filter
and grapesjs-style-bg
(they won't work properly with this version until their update).
This change was necessary in order to improve the stability of the module and enable higher customizability.
If you have any customization based on GrapesJS Style Manager, please refer to the new API methods/events here: https://grapesjs.com/docs/api/style_manager.html
Property
, PropertyNumber
, PropertySelect
, PropertyComposite
, PropertyStack
, Layer
in API StyleManager Reference.getDevice
, getState
, getComponent
methods to CssRule
.getTraits
/setTraits
to Component API.messagesAdd
option in I18n module.styleManagerConfig.clearProperties
by default.draggable
Component property to accept function.scroll
option for the current frame when requested #3938editor.destroy
with selected components #2681Published by artf almost 3 years ago
Published by artf almost 3 years ago
getChildAt(index)
and getLastChild
to Component APIPublished by artf about 3 years ago
getAllWrapper
method to Pages API.remove
and addRules
methods to CssComposer API.onReady
method to Editor instance.config.blockManager.custom
option. More about this here.appendTo
#3835Published by artf about 3 years ago
config.modal.custom
option.modal
catch-all event to Modal module.config.assetManager.custom
option.open
and close
methods to AssetManager.getType
and getSrc
methods to Asset class.Published by artf about 3 years ago
headless
option in order to use GrapesJS in Nodejs.canvas.getCoords
and canvas.setCoords
methods #3668default
device option in deviceManager configuration #3679onClick
property to BlockPublished by artf about 3 years ago
json
option.editor.CodeManager.getCode(component, 'css', { json: 1 })
editor.CodeManager.getCode(null, 'css', { rules: [...] })
editor.addStyle
methodeditor.getEditing
methodiframe
as HTML code #3575Published by artf over 3 years ago
style-signature
Component propertycomponent-enter
command #3511Published by artf over 3 years ago
extend
option in LayerManager config, in order to extend the layer item viewdroppable
component property to be a function for a more granular check https://github.com/artf/grapesjs/pull/3393
Published by artf over 3 years ago
⚠️ POSSIBLY BREAKING CHANGE
Published by artf over 3 years ago
Published by artf over 3 years ago
Published by artf over 3 years ago
optsHtml
and optsCss
, in order to pass them as default to editor.toHtml()
and editor.toCss()
(eg. used already in the export code and the Storage)cleanId
option to editor.getHtml
in order to remove unnecessary IDs (eg. those created automatically)Component.removeAttributes
methodoptions
as a second argument to the Component.components()
methodComponentView.onAttrUpdate
callbackcomponent:remove:before
event. This allows to put conditions before deleting a componenteditor.on('component:remove:before', function(component, remove, opts) {
if (component.is('my-custom-type')) {
opts.abort = true; // This will abort the remove
// Pseudo-code of some modal/dialog
yourAsyncDialog('Are you sure?', {
confirmed: () => remove(), // complete the remove
});
}
});
style
content
if the component has children components
component.addAttributes
Published by artf almost 4 years ago
script
content duplicated as many times as components of the same type (new script content will be output only once per type). The new approach avoids also issues with different JS minifiers (due to string templates).script-props
property to Component. Read the new Components & JS
noCount
option to avoid triggering the count of changes (eg. for skipping the Storage)editor.addComponents('<div>New components</div>', { noCount: true });
// or
component.append('<div>New components</div>', { noCount: true });
move()
method to the Componentgrapesjs-cli
for the dev server and the buildnoUndo
option instead of avoidStore
for skipping the triggersrc
in Image components https://github.com/artf/grapesjs/pull/3201
Published by artf almost 4 years ago
el
prop to Buttons from Panels modulegetRules(selector)
method added in CssComposer modulelimitlessMax
and limitlessMin
props to InputNumber in order to allow showing calculated values from components https://github.com/artf/grapesjs/pull/3147
contains
method to Componentnode-sass
with dart-sass
https://github.com/artf/grapesjs/pull/3148
avoidDefaults
option also to Selectors
in toJSON
methodsetTarget
in StyleManager #3081Published by artf almost 4 years ago
tools
option to editor.refresh()
change:style
and change:style:PROPERTY
event on selected componets during style update via Style Managerattributes
option to the Modal.open()
method #2592editor.Modal.open({ title: 'T', content: 'C', attributes: { class: 'custom-cls' } })
parse:html
and parse:css
events for catching parsers resultsdisplay: block
on visible sectors and properites in StyleManager #3067strikeThrough
RTE command #3047Published by artf about 4 years ago
setStyle
& setComponents
https://github.com/artf/grapesjs/pull/2872
<strike>
by <s>
in RTE https://github.com/artf/grapesjs/pull/2886
options
as a second argument of component.addAttributes
methodlist
prop to video component (youtube related) #2887editor.load
bug with undo manager #2921editor.destroy()
with selection #2953listenToEl
option in order to refresh the editor on scrollable elements #2722background-image
https://github.com/artf/grapesjs/pull/2975
Published by artf over 4 years ago
colorPicker
option to color trait type, for color picker customizationclasses
property is missing #2836