MCPcopy Index your code
hub / github.com/ether/etherpad / updateStyleButtonState

Function updateStyleButtonState

src/static/js/ace2_inner.ts:2057–2060  ·  view source on GitHub ↗
(attribName, hasStyleOnRepSelection)

Source from the content-addressed store, hash-verified

2055 const isPadLoading = (t) => t === 'setup' || t === 'setBaseText' || t === 'importText';
2056
2057 const updateStyleButtonState = (attribName, hasStyleOnRepSelection) => {
2058 const $formattingButton = window.$(`[data-key="${attribName}"]`).find('a');
2059 $formattingButton.toggleClass(SELECT_BUTTON_CLASS, hasStyleOnRepSelection);
2060 };
2061
2062 const attribIsFormattingStyle = (attribName) => FORMATTING_STYLES.indexOf(attribName) !== -1;
2063

Calls 1

findMethod · 0.80

Tested by

no test coverage detected