{"project":"editorjs","branch":"main","commit":"728d483b587f34bc7ba97dd1eb3fcec9d035a7e2","component":{"name":"HomePage","nodes":{"root":{"tag":"div","type":"element","children":["qUZX5B_obx9JdrREoZr8I"],"classes":{"cnzrPM":{"formula":{"type":"value","value":true}}},"customProperties":{}},"-4qyT4kDwjO9hKEcL8NGa":{"tag":"td","type":"element","children":["eHPw8hL9xMU_xa56tZBid"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"0PDacvpWS2z-bNunihSNN":{"tag":"td","type":"element","children":["2s-88buN1wnkYIrUUY3cO"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"20JM_6L0g5-GJWuSznBM7":{"type":"text","value":{"type":"value","value":"Adjust the editor bottom spacing. Default value is \"100px\"."}},"2GItFqC-YJuujJPdJqDv9":{"tag":"tr","type":"element","children":["VOk-mGIpm4-3Xefz1RESp","9Ah-L0wXfqss1nt2ioi1n"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"2IQpny-nF4GKb5QxrEF9i":{"tag":"div","type":"element","children":["zLPUXTO4t1V8nXLsoLC5D","wEPHtPu-10kQb4Y3JiXTK"],"classes":{"bkeoKw":{"formula":{"type":"value","value":true}}},"customProperties":{}},"2s-88buN1wnkYIrUUY3cO":{"type":"text","value":{"type":"value","value":"By default, when content is changed, it triggers the auto save feature after 2 second. You can enter the value in milliseconds if you want to adjust that. For example, enter 3000 for a 3-second interval.\n\n"}},"2x2URyCKk3z4UOQltAjF1":{"tag":"h3","type":"element","children":["bOFjWvUzS99RqjtqEf5Oo"],"classes":{"fouGIZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"4TP_G5P2FGktiilCoyt74":{"type":"text","value":{"type":"value","value":"Saved Data"}},"616n7TVOO6f-PV1o3Ttcf":{"tag":"section","type":"element","children":["rPritJtWLr5om5Mf7ZQl4","dPIDQY2NRCodcOF5VifV1"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"63wvZVq3BvfL5uHec6gSF":{"type":"text","value":{"type":"value","value":"read-only"}},"6HOmzTI4e_XEKfsdZwpy-":{"tag":"table","type":"element","children":["hfmarTXU9ZGAcNShDhsvg"],"classes":{"bcLiyJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"6j_62LmhVd8p_ol4p_-ky":{"tag":"td","type":"element","children":["c-xjypetoeCGEuwG6J-JP"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"8EBRFkFicH5odlybqeiCI":{"type":"text","value":{"type":"value","value":"save-interval"}},"8JMmh1JG6yvg9WglgEwJc":{"tag":"div","type":"element","children":["gKOdXbW-on_939JSdA1t-","z9YLfeKYunsj_7I8KpsWP"],"classes":{"CsusC":{"formula":{"type":"value","value":true}}},"customProperties":{}},"93QiTr5K6e_pN_EX2aPzW":{"tag":"tr","type":"element","children":["VwR0gMXdngVXOU77cUeVL","dsYp8t8Q6K8bvjCSXVM9Y"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"9Ah-L0wXfqss1nt2ioi1n":{"tag":"td","type":"element","children":["HU3s6UPxznKFrnPWd5vyZ"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"BM4TLH7OxAFLgyCuGIue1":{"tag":"div","type":"element","children":["M785wymZ9f2ag7liEi1t2"],"classes":{"cbYMMh":{"formula":{"type":"value","value":true}}},"customProperties":{}},"C2ztPypJigHNYahz23c_U":{"type":"text","value":{"type":"value","value":"Attributes"}},"CFNUM71syyT78_7mSX_ra":{"tag":"td","type":"element","children":["LV3EdyBYm0GvtMeBzK3Wt"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Dj6JZ0RzgtSAy18oZSPNs":{"tag":"h4","type":"element","children":["zfsSdGUB2b8moIGpNQqfr"],"classes":{"cwJrhv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"EsMCNWthZHT7PG-BwSoe6":{"tag":"td","type":"element","children":["W7hLwawlhIBd4p4pxyzrv"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"G5xT_xpOQSekzuzv_nLtJ":{"tag":"td","type":"element","children":["ejmZDah62dOvSPapzUQ1g"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"H4L4-qYWVCIAN9Ehzwldr":{"tag":"h2","type":"element","children":["sw0h1xF3ZqfcsW-IqEId8"],"classes":{"izyDZ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"HU3s6UPxznKFrnPWd5vyZ":{"type":"text","value":{"type":"value","value":"Boolean field. True if you want to set a Caret to the Editor after initialization."}},"IAO0gRmy9yXKli9EyEdew":{"tag":"div","type":"element","children":["Dj6JZ0RzgtSAy18oZSPNs","6HOmzTI4e_XEKfsdZwpy-"],"classes":{"bkeoKw":{"formula":{"type":"value","value":true}}},"customProperties":{}},"K6jNDgCQP09-5QY3qQIsZ":{"tag":"section","type":"element","children":["MKELDghvfWZkZ12ykC8dn","BM4TLH7OxAFLgyCuGIue1"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"LV3EdyBYm0GvtMeBzK3Wt":{"type":"text","value":{"type":"value","value":"Boolean field. True means that users won't have the ability to change the document content."}},"M5hmycyisxrOiFnTIKrak":{"tag":"td","type":"element","children":["hVsaqYugLxwOE8OirKbvc"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"M785wymZ9f2ag7liEi1t2":{"tag":"div","type":"element","children":["q1wI00tUSGtoRPs-3l5jw"],"classes":{"chAOKJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"MKELDghvfWZkZ12ykC8dn":{"tag":"h2","type":"element","children":["RIDy-b4s_Jk3eW1NwgHHY"],"classes":{"ddodBv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"N-YHMaw_p4WU12r3cAHNE":{"type":"text","value":{"type":"value","value":"placeholder"}},"NsNycONn65sLlgAJtugez":{"tag":"td","type":"element","children":["63wvZVq3BvfL5uHec6gSF"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"OUvi2Oqn9OhDwZZYP82kq":{"type":"text","value":{"type":"value","value":"autofocus"}},"Q7OcVTie6-qZSP_Q36ktR":{"tag":"td","type":"element","children":["gBP4anfXpd-x_PmmT8oTP"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"QozClqn4vLraoakHnLOeK":{"tag":"section","type":"element","children":["H4L4-qYWVCIAN9Ehzwldr","RpMEP3bYGiAf_VRNmjWiP"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"QsggGXCS67hlRA1u0HCEI":{"tag":"td","type":"element","children":["fX4BGlufgr_uJTpkkJkNf"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"RIDy-b4s_Jk3eW1NwgHHY":{"type":"text","value":{"type":"value","value":"Short Demo Video"}},"RpMEP3bYGiAf_VRNmjWiP":{"id":"G9NMRjsMq6XnzpGNemg81","tag":"ul","type":"element","children":["d5R32V345MlGqEinOVxYQ"],"classes":{"erbmxD":{"formula":{"type":"value","value":true}}},"customProperties":{}},"TEDG6zrv2LKDo6ign21gV":{"tag":"tr","type":"element","children":["gTNBOz2HirYbsbnUAL8Jt","M5hmycyisxrOiFnTIKrak"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"U7780ZaiqgTmzmheUzFOg":{"tag":"h1","type":"element","children":["UD0WipUe5WpfKYVyQZ0e9"],"classes":{"cYxoaJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"UD0WipUe5WpfKYVyQZ0e9":{"type":"text","value":{"type":"value","value":"Editor.js"}},"VOk-mGIpm4-3Xefz1RESp":{"tag":"td","type":"element","children":["OUvi2Oqn9OhDwZZYP82kq"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ViHgS7VS-kpTMsR9lN3sH":{"tag":"tr","type":"element","children":["G5xT_xpOQSekzuzv_nLtJ","lUkCcxwDKYgxDm0M83NO0"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"Vqxf_8CW-icGEeuw3haqS":{"type":"text","value":{"type":"value","value":"Demo"}},"VwR0gMXdngVXOU77cUeVL":{"tag":"td","type":"element","children":["sjmMEhsH5lzLvqDSEDaUA"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"W7hLwawlhIBd4p4pxyzrv":{"type":"text","value":{"type":"value","value":"button-id"}},"Yh3AI9d9k9e1rA4RPw0m-":{"tag":"tr","type":"element","children":["-4qyT4kDwjO9hKEcL8NGa","QsggGXCS67hlRA1u0HCEI"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"bOFjWvUzS99RqjtqEf5Oo":{"type":"text","value":{"type":"value","value":"editorjs"}},"bdVX813ourWGALtmvHDX6":{"tag":"p","type":"element","children":["uhkdG54Xmn8ReHAiHtXza"],"classes":{"sahaH":{"formula":{"type":"value","value":true}}},"customProperties":{}},"c-xjypetoeCGEuwG6J-JP":{"type":"text","value":{"type":"value","value":"Emitted every time there is save trigged. By button click or Auto Save. The output is JSON."}},"d5R32V345MlGqEinOVxYQ":{"tag":"li","type":"element","children":["2x2URyCKk3z4UOQltAjF1","qZG7pTysCmdG20Y3b_X2H","2IQpny-nF4GKb5QxrEF9i","IAO0gRmy9yXKli9EyEdew"],"classes":{"cEskVI":{"formula":{"type":"value","value":true}}},"customProperties":{}},"dPIDQY2NRCodcOF5VifV1":{"tag":"div","type":"element","children":["qo1NQlCVxps2hZ6tLZKYS"],"classes":{"YTJFj":{"formula":{"type":"value","value":true}}},"customProperties":{}},"dsYp8t8Q6K8bvjCSXVM9Y":{"tag":"td","type":"element","children":["20JM_6L0g5-GJWuSznBM7"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"eHPw8hL9xMU_xa56tZBid":{"type":"text","value":{"type":"value","value":"content"}},"ejmZDah62dOvSPapzUQ1g":{"type":"text","value":{"type":"value","value":"\"tool_name\"-tool"}},"fX4BGlufgr_uJTpkkJkNf":{"type":"text","value":{"type":"value","value":"Value type: JSON. Prefil the editor with content."}},"gBP4anfXpd-x_PmmT8oTP":{"type":"text","value":{"type":"value","value":"Enter only if you want to use the Button Save feature. It accepts the ID of any button on the page."}},"gKOdXbW-on_939JSdA1t-":{"tag":"div","type":"element","children":["U7780ZaiqgTmzmheUzFOg","bdVX813ourWGALtmvHDX6"],"classes":{"eozNhk":{"formula":{"type":"value","value":true}}},"customProperties":{}},"gTNBOz2HirYbsbnUAL8Jt":{"tag":"td","type":"element","children":["N-YHMaw_p4WU12r3cAHNE"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"hVG2Qu2I9ihxg1FaW89ym":{"tag":"section","type":"element","children":["8JMmh1JG6yvg9WglgEwJc"],"classes":{"tSDEA":{"formula":{"type":"value","value":true}}},"customProperties":{}},"hVsaqYugLxwOE8OirKbvc":{"type":"text","value":{"type":"value","value":"Placeholder text that is shown when there is no content in the editor."}},"hfmarTXU9ZGAcNShDhsvg":{"tag":"tr","type":"element","children":["xpHiE7iidC_LPE-WjBjzR","6j_62LmhVd8p_ol4p_-ky"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"hgSLjmD9eTb3aV-RiVCv5":{"tag":"tr","type":"element","children":["NsNycONn65sLlgAJtugez","CFNUM71syyT78_7mSX_ra"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"jIg9UtHi9A-OmCMLCzJsq":{"tag":"iframe","type":"element","attrs":{"id":{"type":"value","value":"pv_Nk60djDN"},"src":{"type":"value","value":"https://video.leverall.com/file/Toddle/Editorjs/editorjs-tutorial.html?player=Toddle"},"style":{"type":"value","value":"border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute; overflow:hidden;"},"scrolling":{"type":"value","value":"no"},"allowfullscreen":{"type":"value","value":"true"},"mozallowfullscreen":{"type":"value","value":"true"},"webkitallowfullscreen":{"type":"value","value":"true"}},"customProperties":{}},"lUkCcxwDKYgxDm0M83NO0":{"tag":"td","type":"element","children":["wGpEfK6SxQgM4EJP9M4rK"],"classes":{"fByBIF":{"formula":{"type":"value","value":true}}},"customProperties":{}},"mTLTp2n6D0DPv9trnn56I":{"tag":"img","type":"element","attrs":{"alt":{"type":"value","value":""},"src":{"type":"value","value":"/cdn-cgi/imagedelivery/ZIty0Vhmkm0nD-fBKJrTZQ/editorjs:logo.d2a59c1c/540"}},"classes":{"dgGakD":{"formula":{"type":"value","value":true}}},"customProperties":{}},"n_e9tmvO5OOQNaPC1I6-6":{"tag":"tr","type":"element","children":["EsMCNWthZHT7PG-BwSoe6","Q7OcVTie6-qZSP_Q36ktR"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"px-vj3pXhmTXwU0oaUtfl":{"name":"editorjs","type":"component","attrs":{"autofocus":{"type":"value","value":false},"button-id":{"type":"value","value":""},"code-tool":{"type":"value","label":null,"value":true},"list-tool":{"type":"value","label":null,"value":true},"read-only":{"type":"value","value":""},"alert-tool":{"type":"value","label":null,"value":true},"embed-tool":{"type":"value","label":null,"value":true},"quote-tool":{"type":"value","label":null,"value":true},"table-tool":{"type":"value","label":null,"value":true},"header-tool":{"type":"value","label":null,"value":true},"placeholder":{"type":"value","value":"Write here..."},"toggle-tool":{"type":"value","label":null,"value":true},"html-raw-tool":{"type":"value","label":null,"value":true},"checklist-tool":{"type":"value","label":null,"value":true},"delimiter-tool":{"type":"value","label":null,"value":true},"padding-bottom":{"type":"value","value":""},"code-inline-tool":{"type":"value","label":null,"value":true},"simple-image-tool":{"type":"value","label":null,"value":true},"marker-inline-tool":{"type":"value","label":null,"value":true}},"events":{"Saved Data":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"SetVariable","variable":"saved data"}],"trigger":"Saved Data"}},"customProperties":{}},"q1wI00tUSGtoRPs-3l5jw":{"tag":"div","type":"element","attrs":{"style":{"type":"value","value":"left: 0; width: 100%; height: 0; position: relative; padding-bottom: 56.25%;"}},"children":["yr-MbfmzDsI2pJz_I-wH0"],"customProperties":{}},"qJrLwZY0xcs_2uXcdzZ2F":{"tag":"td","type":"element","children":["8EBRFkFicH5odlybqeiCI"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"qUZX5B_obx9JdrREoZr8I":{"tag":"main","type":"element","children":["hVG2Qu2I9ihxg1FaW89ym","616n7TVOO6f-PV1o3Ttcf","QozClqn4vLraoakHnLOeK","K6jNDgCQP09-5QY3qQIsZ"],"classes":{"bmMYrO":{"formula":{"type":"value","value":true}}},"customProperties":{}},"qZG7pTysCmdG20Y3b_X2H":{"tag":"p","type":"element","children":["uT444B5sAZ8HsaVLGjRF6"],"classes":{"oPnAJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"qo1NQlCVxps2hZ6tLZKYS":{"tag":"div","type":"element","children":["px-vj3pXhmTXwU0oaUtfl"],"classes":{"dobulp":{"formula":{"type":"value","value":true}}},"customProperties":{}},"rPritJtWLr5om5Mf7ZQl4":{"tag":"h2","type":"element","children":["Vqxf_8CW-icGEeuw3haqS"],"classes":{"ddodBv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"ruDrs9XHU5KQBlCgnhnkI":{"tag":"tr","type":"element","children":["qJrLwZY0xcs_2uXcdzZ2F","0PDacvpWS2z-bNunihSNN"],"classes":{"dbSwHR":{"formula":{"type":"value","value":true}}},"customProperties":{}},"sjmMEhsH5lzLvqDSEDaUA":{"type":"text","value":{"type":"value","value":"padding-bottom"}},"sw0h1xF3ZqfcsW-IqEId8":{"type":"text","value":{"type":"value","value":"Component"}},"uT444B5sAZ8HsaVLGjRF6":{"type":"text","value":{"type":"value","value":"Important: The EditorJS component has no styling for background color and text color. Therefore, ensure that the parent element has the necessary styling. It works best on light backgrounds and dark text colors. The width of the editor is 100%, so make sure to add a decent amount of left and right padding to the parent element."}},"uhkdG54Xmn8ReHAiHtXza":{"type":"text","value":{"type":"value","value":"Block-style editor with a universal JSON output. Modern look. Customizable. Out of the box.\n\nWith Editor.js component for Toddle, you have 2 options to save data: on button click or Auto Save with an adjustable time interval. \nEvery tool in the editor is optional, and you can select the ones you need for your project."}},"wEPHtPu-10kQb4Y3JiXTK":{"tag":"table","type":"element","children":["Yh3AI9d9k9e1rA4RPw0m-","2GItFqC-YJuujJPdJqDv9","n_e9tmvO5OOQNaPC1I6-6","hgSLjmD9eTb3aV-RiVCv5","TEDG6zrv2LKDo6ign21gV","ruDrs9XHU5KQBlCgnhnkI","ViHgS7VS-kpTMsR9lN3sH","93QiTr5K6e_pN_EX2aPzW"],"classes":{"bcLiyJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"wGpEfK6SxQgM4EJP9M4rK":{"type":"text","value":{"type":"value","value":"\nBoolean field. There are multiple attributes with \"-tool\" at the end. By default, the editor comes with the \"Text\" tool only. If any of the tool attributes are set to True, it will be added with the default \"Text\" tool in the dropdown.\n\nCurrent list of tools: Text, Heading, List, Checklist, Toggle, Quote, Table, Delimiter, Alert, Raw HTML, Code, Inline Code and Inline Marker.\n\nThe tools that are not selected will not run external scripts that are required to run the tool🎉🎉"}},"xpHiE7iidC_LPE-WjBjzR":{"tag":"td","type":"element","children":["4TP_G5P2FGktiilCoyt74"],"classes":{"bXuRfo":{"formula":{"type":"value","value":true}}},"customProperties":{}},"yr-MbfmzDsI2pJz_I-wH0":{"tag":"figure","type":"element","attrs":{"style":{"type":"value","value":"left: 0; width: 100%; height: 0; position: relative; padding-bottom: 56.25%; margin-block-end: 0; margin-block-start: 0; margin-inline-start: 0; margin-inline-end: 0;"}},"children":["jIg9UtHi9A-OmCMLCzJsq"],"customProperties":{}},"z9YLfeKYunsj_7I8KpsWP":{"tag":"div","type":"element","children":["mTLTp2n6D0DPv9trnn56I"],"customProperties":{}},"zLPUXTO4t1V8nXLsoLC5D":{"tag":"h4","type":"element","children":["C2ztPypJigHNYahz23c_U"],"classes":{"cwJrhv":{"formula":{"type":"value","value":true}}},"customProperties":{}},"zfsSdGUB2b8moIGpNQqfr":{"type":"text","value":{"type":"value","value":"Events"}}},"route":{"info":{"title":{"formula":{"type":"value","value":"Editor.js Package"}},"description":{"formula":{"type":"value","value":"Block-style editor with a universal JSON output."}}},"path":[],"query":{}},"onLoad":{"actions":[],"trigger":"load"},"functions":{},"variables":{"btn1-text":{"initialValue":{"type":"value","value":"Save"}},"saved data":{"initialValue":{"type":"value","value":""}},"saved-data2":{"initialValue":{"type":"value","value":"Nothing"}}}},"components":[{"name":"editorjs","nodes":{"root":{"tag":"editorjs","type":"element","children":["Z17lNf-1P1QiH5-NjhVoY","z2I4CVAjaKCFXesK1yO9A","f2mrYeO7oe_UVu4cPHAE8"],"classes":{"cpFWFD":{"formula":{"type":"value","value":true}}},"customProperties":{}},"VoJyDtLjMuiTxKtKgDyje":{"type":"text","value":{"name":"@toddle/concatenate","type":"function","arguments":[{"name":"0","type":{"type":"Union","types":[{"type":"String"},{"type":"Array","ofType":{"type":"Any"}}]},"formula":{"type":"value","value":".codex-editor__redactor {   padding-bottom: "}},{"name":"0","type":{"type":"Union","types":[{"type":"String"},{"type":"Array","ofType":{"type":"Any"}}]},"formula":{"type":"switch","cases":[{"formula":{"path":["Attributes","padding-bottom"],"type":"path"},"condition":{"name":"@toddle/greaterThan","type":"function","arguments":[{"name":"First","type":{"type":"Number"},"formula":{"name":"@toddle/size","type":"function","arguments":[{"name":"Collection","type":{"type":"Union","types":[{"type":"String"},{"type":"Array"},{"type":"Object"}]},"formula":{"path":["Attributes","padding-bottom"],"type":"path"}}],"display_name":"Size"}},{"name":"Second","type":{"type":"Number"},"formula":{"name":"@toddle/number","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"type":"value","value":"0"}}],"display_name":"Number"}}],"display_name":"Greater than"}}],"default":{"name":"@toddle/string","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"type":"value","value":"100px"}}],"display_name":"String"}}},{"name":"0","type":{"type":"Union","types":[{"type":"String"},{"type":"Array","ofType":{"type":"Any"}}]},"formula":{"type":"value","value":" !important; }"}}],"display_name":"Concatenate","variableArguments":true}},"Z17lNf-1P1QiH5-NjhVoY":{"tag":"style","type":"element","children":["VoJyDtLjMuiTxKtKgDyje"],"customProperties":{}},"f2mrYeO7oe_UVu4cPHAE8":{"tag":"div","type":"element","attrs":{"id":{"path":["Variables","editor-id"],"type":"path"}},"classes":{"wfhRJ":{"formula":{"type":"value","value":true}}},"customProperties":{}},"fIaYD8nbwQ8U0Su9OxBNa":{"type":"text","value":{"type":"value","value":".ce-block__content,\n.ce-toolbar__content {\n  max-width: unset;\n}\n.cdx-quote {\n  width: 100%\n}"}},"z2I4CVAjaKCFXesK1yO9A":{"tag":"style","type":"element","children":["fIaYD8nbwQ8U0Su9OxBNa"],"customProperties":{}}},"events":[{"name":"Saved Data"}],"onLoad":{"actions":[{"name":"loadEditorJS","events":{"output":{"actions":[{"data":{"path":["Event"],"type":"path"},"type":"TriggerEvent","event":"Saved Data"}],"trigger":"output"}},"version":2,"arguments":[{"name":"elementId","formula":{"path":["Variables","editor-id"],"type":"path"}},{"name":"savedData","formula":{"path":["Variables","content"],"type":"path"}},{"name":"placeholder","formula":{"type":"switch","cases":[{"formula":{"path":["Attributes","placeholder"],"type":"path"},"condition":{"name":"@toddle/greaterThan","type":"function","arguments":[{"name":"First","type":{"type":"Number"},"formula":{"name":"@toddle/size","type":"function","arguments":[{"name":"Collection","type":{"type":"Union","types":[{"type":"String"},{"type":"Array"},{"type":"Object"}]},"formula":{"path":["Variables","settings","placeholder"],"type":"path"}}],"display_name":"Size"}},{"name":"Second","type":{"type":"Number"},"formula":{"name":"@toddle/number","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"type":"value","value":"0"}}],"display_name":"Number"}}],"display_name":"Greater than"}}],"default":{"type":"value","value":false}}},{"name":"focus","formula":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Variables","settings","auto-focus"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":true}}],"display_name":"Equals"}}],"default":{"type":"value","value":false}}},{"name":"readOnly","formula":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Variables","settings","read-only"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":true}}],"display_name":"Equals"}}],"default":{"type":"value","value":false}}},{"name":"tools","formula":{"path":["Variables","tools"],"type":"path"}},{"name":"buttonId","formula":{"path":["Variables","settings","button-id"],"type":"path"}},{"name":"saveInterval","formula":{"path":["Variables","settings","save-interval"],"type":"path"}}],"handlerRaw":"async function loadEditorJS(args, ctx) {\n    const toolImports = [\n    import(\"https://cdn.jsdelivr.net/npm/@editorjs/editorjs@latest\"),\n    import(\"https://cdn.jsdelivr.net/npm/editorjs-drag-drop@1.1.13/dist/bundle.min.js\"),\n    import(\"https://cdn.jsdelivr.net/npm/editorjs-undo@2.0.26/dist/bundle.min.js\"),\n    ...(args.tools.checklist ? [import(\"https://cdn.jsdelivr.net/npm/@editorjs/checklist@1.6.0/dist/checklist.umd.min.js\")] : []),\n    ...(args.tools.header ? [import(\"https://cdn.jsdelivr.net/npm/@editorjs/header@latest\")] : []),\n    ...(args.tools.raw ? [import(\"https://cdn.jsdelivr.net/npm/@editorjs/raw@latest\")] : []),\n    ...(args.tools.image ? [import(\"https://cdn.jsdelivr.net/npm/@editorjs/simple-image\")] : []),\n    ...(args.tools.embed ? [import(\"https://cdn.jsdelivr.net/npm/@editorjs/embed@latest\")] : []),\n    ...(args.tools.quote ? [import(\"https://cdn.jsdelivr.net/npm/@editorjs/quote@2.6.0/dist/quote.umd.min.js\")] : []),\n    ...(args.tools.delimiter ? [import(\"https://cdn.jsdelivr.net/npm/@editorjs/delimiter@latest\")] : []),\n    ...(args.tools.table ? [import(\"https://cdn.jsdelivr.net/npm/@editorjs/table@latest\")] : []),\n    ...(args.tools.alert ? [import(\"https://cdn.jsdelivr.net/npm/editorjs-alert@1.1.3/dist/bundle.min.js\")] : []),\n    ...(args.tools.code ? [import(\"https://cdn.jsdelivr.net/npm/@editorjs/code@latest\")] : []),\n    ...(args.tools.inlineCode ? [import(\"https://cdn.jsdelivr.net/npm/@editorjs/inline-code@latest\")] : []),\n    ...(args.tools.marker ? [import(\"https://cdn.jsdelivr.net/npm/@editorjs/marker@latest\")] : []),\n    ...(args.tools.list ? [import(\"https://cdn.jsdelivr.net/npm/@editorjs/nested-list@latest\")] : []),\n    ...(args.tools.toggle ? [import(\"https://cdn.jsdelivr.net/npm/editorjs-toggle-block@0.3.14/dist/bundle.min.js\")] : []),\n\n    ];\n\n    await Promise.all(toolImports);\n\n    const editorContainer = document.getElementById(args.elementId);\n\n    let timeoutId;\n\n    // Initialize the editor with the saved data from args.savedData\n    const editor = new EditorJS({\n         placeholder: args.placeholder,\n         readOnly: args.readOnly,\n        holder: editorContainer,\n        autofocus: args.focus,\n        data: args.savedData, // Assign savedData from args here\n        tools: {\n            ...(args.tools.header && { header: { class: Header, config: { placeholder: 'Enter a header' } } }),\n            ...(args.tools.list && { list: { class: NestedList, inlineToolbar: true, config: { defaultStyle: 'unordered' } } }),\n            ...(args.tools.checklist && { checklist: { class: Checklist, inlineToolbar: true } }),\n            ...(args.tools.toggle && { toggle: { class: ToggleBlock, inlineToolbar: true, } }),\n            ...(args.tools.quote && { quote: Quote }),\n            ...(args.tools.table && { table: Table }),\n            ...(args.tools.delimiter && { delimiter: Delimiter }),\n            ...(args.tools.alert && { alert: Alert }),\n            ...(args.tools.raw && { raw: RawTool }),\n            ...(args.tools.code && { code: CodeTool }),\n            ...(args.tools.image && { image: SimpleImage }),            \n            ...(args.tools.embed && { embed: { class: Embed, inlineToolbar: true } }),\n            ...(args.tools.inlineCode && { inlineCode: { class: InlineCode, shortcut:'ALT+SHIFT+C'  } }),\n            ...(args.tools.marker && { Marker: { class: Marker, shortcut:'CMD+SHIFT+M'  } }),\n\n        },\n\n        onReady: () => {\n          new Undo({ editor });\n          new DragDrop(editor);\n        },\n        onChange: () => {\n            clearTimeout(timeoutId);\n            if (args.buttonId) {\n                const button = document.getElementById(args.buttonId);\n                button.addEventListener('click', saved);\n            } else {\n                timeoutId = setTimeout(saved, 2000);\n            }\n        }\n    });\n\n    function saved() {\n        editor.save().then(savedData => {\n            const jsonData = JSON.parse(JSON.stringify(savedData));\n            ctx.triggerActionEvent(\"output\", jsonData);\n        });\n    }\n}\n"}],"trigger":"Load"},"version":2,"exported":true,"formulas":{"62BQzBLGJqvdoh_VdahO_":{"name":"Tool-Added","formula":{"type":"switch","cases":[{"formula":{"type":"value","value":true},"condition":{"name":"@toddle/equals","type":"function","arguments":[{"name":"First","type":{"type":"Any"},"formula":{"path":["Args","tool"],"type":"path"}},{"name":"Second","type":{"type":"Any"},"formula":{"type":"value","value":true}}],"display_name":"Equals"}}],"default":{"type":"value","value":false}},"memoize":false,"arguments":[{"name":"tool"}],"exposeInContext":false}},"variables":{"tools":{"initialValue":{"type":"object","arguments":[{"Name":0,"name":"checklist","formula":{"name":"62BQzBLGJqvdoh_VdahO_","type":"apply","arguments":[{"name":"tool","formula":{"path":["Attributes","checklist-tool"],"type":"path"},"testValue":true}]}},{"Name":0,"name":"header","formula":{"name":"62BQzBLGJqvdoh_VdahO_","type":"apply","arguments":[{"name":"tool","formula":{"path":["Attributes","header-tool"],"type":"path"},"testValue":true}]}},{"Name":0,"name":"raw","formula":{"name":"62BQzBLGJqvdoh_VdahO_","type":"apply","arguments":[{"name":"tool","formula":{"path":["Attributes","html-raw-tool"],"type":"path"},"testValue":true}]}},{"Name":0,"name":"image","formula":{"name":"62BQzBLGJqvdoh_VdahO_","type":"apply","arguments":[{"name":"tool","formula":{"path":["Attributes","simple-image-tool"],"type":"path"},"testValue":true}]}},{"Name":0,"name":"list","formula":{"name":"62BQzBLGJqvdoh_VdahO_","type":"apply","arguments":[{"name":"tool","formula":{"path":["Attributes","list-tool"],"type":"path"},"testValue":true}]}},{"Name":0,"name":"embed","formula":{"name":"62BQzBLGJqvdoh_VdahO_","type":"apply","arguments":[{"name":"tool","formula":{"path":["Attributes","embed-tool"],"type":"path"},"testValue":true}]}},{"Name":0,"name":"quote","formula":{"name":"62BQzBLGJqvdoh_VdahO_","type":"apply","arguments":[{"name":"tool","formula":{"path":["Attributes","quote-tool"],"type":"path"},"testValue":true}]}},{"Name":0,"name":"delimiter","formula":{"name":"62BQzBLGJqvdoh_VdahO_","type":"apply","arguments":[{"name":"tool","formula":{"path":["Attributes","delimiter-tool"],"type":"path"},"testValue":true}]}},{"Name":0,"name":"table","formula":{"name":"62BQzBLGJqvdoh_VdahO_","type":"apply","arguments":[{"name":"tool","formula":{"path":["Attributes","table-tool"],"type":"path"},"testValue":true}]}},{"Name":0,"name":"alert","formula":{"name":"62BQzBLGJqvdoh_VdahO_","type":"apply","arguments":[{"name":"tool","formula":{"path":["Attributes","alert-tool"],"type":"path"},"testValue":true}]}},{"Name":0,"name":"code","formula":{"name":"62BQzBLGJqvdoh_VdahO_","type":"apply","arguments":[{"name":"tool","formula":{"path":["Attributes","code-tool"],"type":"path"},"testValue":true}]}},{"Name":0,"name":"inlineCode","formula":{"name":"62BQzBLGJqvdoh_VdahO_","type":"apply","arguments":[{"name":"tool","formula":{"path":["Attributes","code-inline-tool"],"type":"path"},"testValue":true}]}},{"Name":0,"name":"marker","formula":{"name":"62BQzBLGJqvdoh_VdahO_","type":"apply","arguments":[{"name":"tool","formula":{"path":["Attributes","marker-inline-tool"],"type":"path"},"testValue":true}]}},{"Name":0,"name":"toggle","formula":{"name":"62BQzBLGJqvdoh_VdahO_","type":"apply","arguments":[{"name":"tool","formula":{"path":["Attributes","toggle-tool"],"type":"path"},"testValue":true}]}}]}},"content":{"initialValue":{"path":["Attributes","content"],"type":"path"}},"settings":{"initialValue":{"type":"object","arguments":[{"Name":0,"name":"auto-focus","formula":{"path":["Attributes","autofocus"],"type":"path"}},{"Name":0,"name":"read-only","formula":{"path":["Attributes","read-only"],"type":"path"}},{"Name":0,"name":"placeholder","formula":{"path":["Attributes","placeholder"],"type":"path"}},{"Name":0,"name":"button-id","formula":{"path":["Attributes","button-id"],"type":"path"}},{"Name":0,"name":"save-interval","formula":{"name":"@toddle/defaultTo","type":"function","arguments":[{"name":"0","type":{"type":"Any"},"formula":{"type":"switch","cases":[{"formula":{"name":"@toddle/number","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"path":["Attributes","save-interval"],"type":"path"}}],"display_name":"Number"},"condition":{"name":"@toddle/greaterThan","type":"function","arguments":[{"name":"First","type":{"type":"Number"},"formula":{"name":"@toddle/string","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"path":["Attributes","save-interval"],"type":"path"}}],"display_name":"String"}},{"name":"Second","type":{"type":"Number"},"formula":{"name":"@toddle/number","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"type":"value","value":"0"}}],"display_name":"Number"}}],"display_name":"Greater than"}}],"default":{"name":"@toddle/number","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"type":"value","value":"2000"}}],"display_name":"Number"}}},{"name":"1","type":{"type":"Any"},"formula":{"name":"@toddle/number","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"type":"value","value":"2000"}}],"display_name":"Number"}}],"display_name":"Default to","variableArguments":true}}]}},"editor-id":{"initialValue":{"name":"@toddle/concatenate","type":"function","arguments":[{"name":"0","type":{"type":"Union","types":[{"type":"String"},{"type":"Array","ofType":{"type":"Any"}}]},"formula":{"type":"value","value":"editorjs-"}},{"name":"0","type":{"type":"Union","types":[{"type":"String"},{"type":"Array","ofType":{"type":"Any"}}]},"formula":{"name":"@toddle/take","type":"function","arguments":[{"name":"Array","type":{"type":"Union","types":[{"type":"String"},{"type":"Array"}]},"formula":{"name":"@toddle/drop","type":"function","arguments":[{"name":"Array","type":{"type":"Union","types":[{"type":"String"},{"type":"Array"}]},"formula":{"name":"@toddle/string","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"name":"@toddle/randomNumber","type":"function","arguments":[],"display_name":"Random number"}}],"display_name":"String"}},{"name":"Count","formula":{"name":"@toddle/number","type":"function","arguments":[{"name":"Input","type":{"type":"Any"},"formula":{"type":"value","value":"2"}}],"display_name":"Number"}}],"display_name":"Drop"}},{"name":"Count","type":{"type":"Number"},"formula":{"type":"value","value":6}}],"display_name":"Take"}}],"display_name":"Concatenate","variableArguments":true}}},"attributes":{"content":{"name":"content"},"autofocus":{"name":"autofocus"},"button-id":{"name":"button-id"},"code-tool":{"name":"code-tool"},"list-tool":{"name":"list-tool"},"read-only":{"name":"read-only"},"alert-tool":{"name":"alert-tool"},"embed-tool":{"name":"embed-tool"},"quote-tool":{"name":"quote-tool"},"table-tool":{"name":"table-tool"},"header-tool":{"name":"header-tool"},"placeholder":{"name":"placeholder"},"toggle-tool":{"name":"toggle-tool"},"html-raw-tool":{"name":"html-raw-tool"},"save-interval":{"name":"save-interval"},"checklist-tool":{"name":"checklist-tool"},"delimiter-tool":{"name":"delimiter-tool"},"padding-bottom":{"name":"padding-bottom"},"code-inline-tool":{"name":"code-inline-tool"},"simple-image-tool":{"name":"simple-image-tool"},"marker-inline-tool":{"name":"marker-inline-tool"}},"onAttributeChange":{"actions":[],"trigger":"Attribute change"}}]}