CKEDITOR - 禁用"全选"或" Ctrl + A"

时间:2016-02-22 08:26:36

标签: javascript jquery ckeditor

我想知道我们是否可以在使用CKEditor package com.ggl.testing; import java.math.BigDecimal; import java.math.BigInteger; import java.text.DecimalFormat; import java.util.Scanner; public class BillBreaker { // Instantiate Scanner class for reading keyboard input public static Scanner kbd = new Scanner(System.in); public static void main(String[] args) { // TODO Auto-generated method stub // instantiate Scanner class for reading keyboard input String orgAmount; int orgPennies; // pennies part of the amount long orgDollars; // variables for bills of denominations. long hundreds; int fifties, twenties, tens, fives, twos, ones; // variables for keeping track of coins int nickels, dimes, quarters; // print greeting and prompt user for input. System.out.println("Given an amount in dollars and cents, I will find"); System.out.println("a combination of bills and coins:\n"); System.out.println("Enter a dollar amount including cents."); // read amount of dollars and pennies. orgAmount = kbd.nextLine().trim(); BigDecimal bdAmount = new BigDecimal(orgAmount); bdAmount = bdAmount.setScale(2, BigDecimal.ROUND_UP); DecimalFormat df = new DecimalFormat(); df.setMaximumFractionDigits(2); df.setMinimumFractionDigits(2); df.setGroupingUsed(true); String result = df.format(bdAmount); // println is used to format user input into dollars and cents with // comma delimiter System.out.println("Amount you entered in Dollars and cents: $" + result); orgDollars = bdAmount.longValue(); System.out.printf("\nDollars Part of Original Amount: $%,d\n", orgDollars); // extract the pennies from in orgAmount BigInteger decimal = bdAmount.remainder(BigDecimal.ONE) .movePointRight(bdAmount.scale()).abs().toBigInteger(); orgPennies = decimal.intValue(); System.out.println("pennies part of orginal amount: " + orgPennies); // Extract and print the number of \$100 bills from the dollar amount. // Reduce the dollar amount to account for \$100 bills hundreds = orgDollars / 100L; orgDollars = orgDollars % 100L; System.out.printf("Number of $100 bills: %,d\n", hundreds); // Extract and print the number of \$50 bills. Reduce the dollar amount // to account for \$50 bills. fifties = (int) orgDollars / 50; orgDollars = orgDollars % 50L; System.out.println("Number of $50 bills: " + fifties); // Extract and print the number of \$20 bills. Reduce the dollar amount // to account for \$20 bills. twenties = (int) orgDollars / 20; orgDollars = orgDollars % 20L; System.out.println("Number of $20 bills: " + twenties); // Extract and print the number of \$10 bills. Reduce the dollar amount // to account for \$10 bills tens = (int) orgDollars / 10; orgDollars = orgDollars % 10L; System.out.println("Number of $10 bills: " + tens); // Extract and print the number of \$5 bills. Reduce the dollar amount // to account for \$5 bills fives = (int) orgDollars / 5; orgDollars = orgDollars % 5L; System.out.println("Number of $5 bills: " + fives); // Extract and print the number of \$2 bills. Reduce the dollar amount // to account for \$2 bills twos = (int) orgDollars / 2; orgDollars = orgDollars % 2L; System.out.println("Number of $2 bills: " + twos); // Extract and print the number of \$1 bills. Reduce the dollar amount // to account for \$1 bills ones = (int) orgDollars; System.out.println("Number of $1 bills: " + ones); // Extract and print the number of quarters from the number of pennies. // Reduce the number of pennies to account for the quarters quarters = orgPennies / 25; orgPennies = orgPennies % 25; System.out.println("Number of Quarters: " + quarters); // Extract and print the number of dimes from the number of pennies. // Reduce the number of pennies to account for the dimes dimes = orgPennies / 10; orgPennies = orgPennies % 10; System.out.println("Number of Dimes: " + dimes); // Extract and print the number of nickels from the number of pennies. // Reduce the number of pennies to account for the nickels nickels = orgPennies / 5; orgPennies = orgPennies % 5; System.out.println("Number of Nickels: " + nickels); // Extract and print the number of pennies and terminate the program System.out.println("Number of Pennies: " + orgPennies); } } 的浏览器中停用Ctrl + ASelect All功能?

这是我正在使用的配置: http://ckeditor.com/demo#magic-line

任何帮助都将不胜感激。

感谢。

0 个答案:

没有答案