sirius123
Forum Replies Created
-
Forum: Plugins
In reply to: [Block Lab] integrate a block via shortcodeI mean https://ww.wp.xz.cn/plugins/custom-global-variables/
If content of the block lab block is presented in the editor dynamically, this content to be transferred to the shortcode, in which first parameter is the name of the block, and next parameters to be names of the block.
or function that return/fill given global variable from the plugin from above with the result of the HTML generated by function that take as parameter array with block name and respective fields names and it values.
Sample:
If we have in the editor
<!– wp:block-lab/mysection {“header”:”Do you want shortcode?”, “text”:”\u003cp\u003e some formated text here\u003c/p\u003e”} /–>to have similar API as wpBlockLabCallBack(“mysection”,….. ); which to be called in the relative shortcode function
This is just a hints.
Forum: Plugins
In reply to: [Block Lab] Changing the type of the fieldI found one more issue- Rich Text field automatically add <p></p> tags around the text of the field, which sometime can seriously interfere with the layout/design.
Could be considered some function overload with optional parameter/flag to avoid that?Forum: Plugins
In reply to: [Block Lab] integrate a block via shortcodeI successfully combined Block Lab with Global site variable plugin. Possibly if it is something as a wrapper that return just ready html?
Forum: Plugins
In reply to: [Block Lab] Changing the type of the fieldHi! After trying to replace pro version of the plugin with the code from https://github.com/getblocklab/block-lab/pull/432
existing blocks are not already recognized.
http://prikachi.com/images/283/9663283G.png
Is it possible to be made upgrade with preserving existing blocks?
Forum: Plugins
In reply to: [Block Lab] Changing the type of the fieldThank you, Ryan!
Is it stabile already? We are using Pro version of the plugin, is it merged?
Is there some special conditions to install TinyMCE with Pro version of the plugin?Forum: Plugins
In reply to: [Block Lab] Import and export block-lab blocksYes, idea is to duplicate and change.
Forum: Plugins
In reply to: [Block Lab] Changing the type of the fieldIn Gutemberg it shows empty Rich Text block, while in raw code editor the text is there.
<!– wp:block-lab/test123 {“blocklabel”:”Title -simple text field”,”richtxt”:”\u003cp\u003e\u003cstrong\u003eRich \u003c/strong\u003e\u003cem\u003etext \u003c/em\u003efield with \u003cem\u003e\u003cstrong\u003eformating\u003c/strong\u003e\u003c/em\u003e\u003c/p\u003e”} /–>
blocklabel been Text type, and when changed to Rich text, it content is not shown anymore in the editor.
If I write something in the empty field and save it – the old content is overwritten.