domquery | like handy DOM manipulation library
kandi X-RAY | domquery Summary
kandi X-RAY | domquery Summary
jQuery-like handy DOM manipulation library composed from small modules.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of domquery
domquery Key Features
domquery Examples and Code Snippets
Community Discussions
Trending Discussions on domquery
QUESTION
I want to set new valid variable in tinymce during onSubmit: function (api){}
dialog window in tinymce because I need to set the value entered by user as valid variable. But, the valid variable remain unchanged. But without using dialog, reset valid variable after render the editor did change the valid variable. How to make it happen via dialog tinymce?
ANSWER
Answered 2021-Apr-27 at 02:34I declared var_valid=['var1'];
before the tinymce object and pass in the variable var_valid to variable_valid key in tinymce object. In onSubmit: function (api) {}
, I clear the element in var_valid array by var_valid.length = 0;
and add in new value to var_valid by var_valid.push('input');
. In this way, editor did change variable_valid after user submit the dialog box. Now, when user type new variable ({{input}}
),it show in span blue block and when user type the old removed variable({{var1}}
) no more show in blue block .But, the old variable that has been inserted into the editor before user submit the dialog box remain in blue block. I add tinymce.triggerSave()
after reset and close dialog. This refresh the changes and convert old removed variable that exist on editor to display as {{var1}}
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install domquery
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page