aboutsam
Forum Replies Created
-
Hey @t-p thanks for your reply. I created already a couples of widgets and try to find the documentation where i can move elements from the component ToolbarGroup. I think rebuilding an existing setting (Highlights) is too much of a good thing.
I only want to move the settings from the dropdown arrow next to B (Bold) or text align icon.
For example, when you write a new message, the comment toolbar appears at the top of the window. Click on the down arrow icon next to the link icon and you will find “Inline code”. I would like to move this setting to the main area here. Next to the B or / or link icon.
- This reply was modified 1 year, 9 months ago by aboutsam.
Forum: Developing with WordPress
In reply to: Hook into select( ‘core/editor’ ).getDeviceType() ?Thanks you @serafinnyc, that’s exactly what I was looking for!
Forum: Developing with WordPress
In reply to: Hook into select( ‘core/editor’ ).getDeviceType() ?Hey @serafinnyc, i got this message:
ReferenceError: subscribe is not defined
at _viewport.js:90:23where do I have to import it?
Thanks so far!
Forum: Developing with WordPress
In reply to: RichText Component: Block validation errorThat’s right! I do not add the class in save.js. I have a value in attributes which was called “fontSize”
fontSize: {
type: Object,
...
},I’m not 100% sure if this is the right solution but when i rename fontSize to e.g. testFontSize the problem no longer occurs. I think because fontSize is already use by global block settings.
My Solution: rename fontSize to myCustomFontsize