String queryCommandValue(String cmd) { if (isReady) { // When executing a command, focus the iframe first, since some commands // don't take properly when it's not focused. setFocus(true); try { return queryCommandValueAssumingFocus(cmd); } catch (JavaScriptException e) { return ""; } } return ""; }
boolean queryCommandState(String cmd) { if (isReady) { // When executing a command, focus the iframe first, since some commands // don't take properly when it's not focused. setFocus(true); try { return queryCommandStateAssumingFocus(cmd); } catch (JavaScriptException e) { return false; } } return false; }
void execCommand(String cmd, String param) { assert isReady : INACTIVE_MESSAGE; if (isReady) { // When executing a command, focus the iframe first, since some commands // don't take properly when it's not focused. setFocus(true); try { execCommandAssumingFocus(cmd, param); } catch (JavaScriptException e) { // In mozilla, editing throws a JS exception if the iframe is // *hidden, but attached*. } } }
@Override @SuppressIsSafeHtmlCastCheck protected void onElementInitialized() { // Issue 1897: This method is called after a timeout, during which time the // element might by detached. if (!initializing) { return; } initializing = false; isReady = true; // When the iframe is ready, ensure cached content is set. if (beforeInitPlaceholder != null) { setHTMLImpl(beforeInitPlaceholder.getInnerHTML()); setEnabledImpl(isEnabled()); beforeInitPlaceholder = null; } super.onElementInitialized(); // Focus on the element now that it is initialized if (isPendingFocus) { isPendingFocus = false; setFocus(true); } }
boolean queryCommandState(String cmd) { if (isReady) { // When executing a command, focus the iframe first, since some commands // don't take properly when it's not focused. setFocus(true); try { return queryCommandStateAssumingFocus(cmd); } catch (JavaScriptException e) { return false; } } return false; }
boolean queryCommandState(String cmd) { if (isReady) { // When executing a command, focus the iframe first, since some commands // don't take properly when it's not focused. setFocus(true); try { return queryCommandStateAssumingFocus(cmd); } catch (JavaScriptException e) { return false; } } return false; }
String queryCommandValue(String cmd) { if (isReady) { // When executing a command, focus the iframe first, since some commands // don't take properly when it's not focused. setFocus(true); try { return queryCommandValueAssumingFocus(cmd); } catch (JavaScriptException e) { return ""; } } return ""; }
String queryCommandValue(String cmd) { if (isReady) { // When executing a command, focus the iframe first, since some commands // don't take properly when it's not focused. setFocus(true); try { return queryCommandValueAssumingFocus(cmd); } catch (JavaScriptException e) { return ""; } } return ""; }
void execCommand(String cmd, String param) { assert isReady : INACTIVE_MESSAGE; if (isReady) { // When executing a command, focus the iframe first, since some commands // don't take properly when it's not focused. setFocus(true); try { execCommandAssumingFocus(cmd, param); } catch (JavaScriptException e) { // In mozilla, editing throws a JS exception if the iframe is // *hidden, but attached*. } } }
void execCommand(String cmd, String param) { assert isReady : INACTIVE_MESSAGE; if (isReady) { // When executing a command, focus the iframe first, since some commands // don't take properly when it's not focused. setFocus(true); try { execCommandAssumingFocus(cmd, param); } catch (JavaScriptException e) { // In mozilla, editing throws a JS exception if the iframe is // *hidden, but attached*. } } }
@Override protected void onElementInitialized() { // Issue 1897: This method is called after a timeout, during which time the // element might by detached. if (!initializing) { return; } initializing = false; isReady = true; // When the iframe is ready, ensure cached content is set. if (beforeInitPlaceholder != null) { setHTMLImpl(beforeInitPlaceholder.getInnerHTML()); setEnabledImpl(isEnabled()); beforeInitPlaceholder = null; } super.onElementInitialized(); // Focus on the element now that it is initialized if (isPendingFocus) { isPendingFocus = false; setFocus(true); } }
@Override protected void onElementInitialized() { // Issue 1897: This method is called after a timeout, during which time the // element might by detached. if (!initializing) { return; } initializing = false; isReady = true; // When the iframe is ready, ensure cached content is set. if (beforeInitPlaceholder != null) { setHTMLImpl(beforeInitPlaceholder.getInnerHTML()); setEnabledImpl(isEnabled()); beforeInitPlaceholder = null; } super.onElementInitialized(); // Focus on the element now that it is initialized if (isPendingFocus) { isPendingFocus = false; setFocus(true); } }