editor.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <script src="/o2_lib/htmleditor/ckeditor4114/ckeditor.js"></script>
  6. <title>Document Editor</title>
  7. <style type="text/css">
  8. /* Minimal styling to center the editor in this sample */
  9. body {
  10. padding: 30px;
  11. display: flex;
  12. align-items: center;
  13. text-align: center;
  14. }
  15. .container {
  16. margin: 0 auto;
  17. }
  18. </style>
  19. <script>
  20. var x = {
  21. "node": {
  22. "height": "100%",
  23. "background": "#ffffff",
  24. "overflow": "hidden"
  25. },
  26. "exportAreaNode": {
  27. "padding": "5px",
  28. "overflow": "hidden"
  29. },
  30. "searchAreaNode": {
  31. //"padding": "0px 20px 0px 10px",
  32. "overflow": "hidden"
  33. },
  34. "viewAreaNode": {
  35. "overflow": "hidden"
  36. },
  37. "viewPageNode": {
  38. "height": "80px"
  39. },
  40. "viewPageAreaNode": {
  41. "height": "24px",
  42. "margin-top": "28px"
  43. },
  44. "viewPageContentNode": {
  45. "float": "left",
  46. "margin-left": "10px",
  47. "height": "24px"
  48. }
  49. "viewPageFirstLastNode": {
  50. "height": "24px",
  51. "width": "80px",
  52. "border": "1px solid #e6e6e6",
  53. "color": "#777777",
  54. "text-align": "center",
  55. "line-height": "24px",
  56. "cursor": "pointer",
  57. "background-color": "#ffffff",
  58. "float": "left"
  59. },
  60. "viewPageFirstLastNode_over": {
  61. "background-color": "#f1f1f1"
  62. },
  63. "viewPageFirstLastNode_down": {
  64. "background-color": "#dddddd"
  65. },
  66. "viewPageFirstLastNode_up": {
  67. "background-color": "#ffffff"
  68. },
  69. "viewPageButtonNode": {
  70. "width": "24px",
  71. "height": "24px",
  72. "border": "1px solid #e6e6e6",
  73. "color": "#777777",
  74. "text-align": "center",
  75. "line-height": "24px",
  76. "cursor": "pointer",
  77. "background-color": "#ffffff",
  78. "float": "left",
  79. "margin-right": "10px"
  80. },
  81. "searchSimpleNode": {
  82. "height": "24px",
  83. "border": "1px solid #CCCCCC",
  84. "margin": "10px",
  85. "border-radius": "5px",
  86. "overflow": "hidden"
  87. },
  88. "searchSimpleButtonNode": {
  89. "height": "24px",
  90. "width": "30px",
  91. "overflow": "hidden",
  92. "float": "right",
  93. "cursor": "pointer",
  94. "background": "url(/x_component_process_Application/$Viewer/default/icon/search.png) center center no-repeat",
  95. },
  96. "searchSimpleInputNode": {
  97. "border": "0px",
  98. "height": "22px",
  99. "display": "block",
  100. "padding": "0px 5px",
  101. "border-radius": "5px",
  102. "color": "#999999",
  103. "width": "90%"
  104. },
  105. "viewFilterSearchInputAreaNode": {
  106. //"min-width": "300px",
  107. //"width": "40%",
  108. "height": "24px",
  109. "border": "1px solid #cccccc",
  110. "margin": "10px 90px 10px 10px",
  111. "border-radius": "5px"
  112. },
  113. "viewFilterSearchInputAreaNode_custom": {
  114. "width": "auto",
  115. "height": "80px",
  116. "border": "1px solid #cccccc",
  117. "float": "none",
  118. "margin": "10px",
  119. "border-radius": "5px",
  120. },
  121. "viewFilterSearchCustomActionNode": {
  122. "height": "24px",
  123. "line-height": "24px",
  124. "border": "1px solid #cccccc",
  125. "color": "#333333",
  126. "text-align": "center",
  127. "margin": "10px 10px 10px 0px",
  128. "padding": "0px 10px",
  129. "float": "right",
  130. "cursor": "pointer",
  131. "border-radius": "5px",
  132. "margin-left": "10px"
  133. },
  134. "viewFilterSearchIconNode": {
  135. "height": "24px",
  136. "width": "40px",
  137. "background": "url("+"/x_component_process_Application/$Viewer/default/icon/search.png) center center no-repeat",
  138. "float": "right",
  139. "cursor": "pointer"
  140. },
  141. "viewFilterSearchInputBoxNode": {
  142. "margin-right": "40px",
  143. "margin-left": "5px",
  144. "height": "24px",
  145. "overflow": "hidden"
  146. },
  147. "viewFilterSearchInputNode": {
  148. "width": "99%",
  149. "height": "22px",
  150. "color": "#999999",
  151. "border-radius": "5px",
  152. "border": "0px"
  153. },
  154. "viewFilterSearchCustomCloseActionNode": {
  155. "width": "20px",
  156. "height": "80px",
  157. "float": "right",
  158. "background": "url("+"/x_component_process_Application/$Viewer/default/icon/back.png) center 5px no-repeat",
  159. "cursor": "pointer"
  160. },
  161. "viewFilterSearchCustomContentNode": {
  162. "height": "80px",
  163. "margin-right": "20px"
  164. },
  165. "viewFilterSearchCustomPathContentNode": {
  166. "height": "80px",
  167. "border-right": "1px solid #cccccc",
  168. "width": "99px",
  169. "float": "left"
  170. },
  171. "viewFilterSearchCustomComparisonContentNode": {
  172. "height": "80px",
  173. "border-right": "1px solid #cccccc",
  174. "width": "99px",
  175. "float": "left"
  176. },
  177. "viewFilterSearchCustomValueContentNode": {
  178. "height": "80px",
  179. "border-right": "1px solid #cccccc",
  180. "width": "199px",
  181. "float": "left"
  182. },
  183. "viewFilterSearchCustomAddContentNode": {
  184. "width": "19px",
  185. "height": "80px",
  186. "border-right": "1px solid #cccccc",
  187. "background-color": "#eeeeee",
  188. "float": "left",
  189. "cursor": "pointer"
  190. },
  191. "viewFilterSearchCustomAddIconNode": {
  192. "background": "url("+"/x_component_process_Application/$Viewer/default/icon/right.png) center center no-repeat",
  193. "height": "80px"
  194. },
  195. "viewFilterSearchCustomFilterContentNode": {
  196. "height": "74px",
  197. "padding": "3px",
  198. "overflow": "auto",
  199. "margin-left": "420px"
  200. },
  201. "viewFilterSearchCustomPathListNode": {
  202. "border": "0px",
  203. "border-radius": "5px",
  204. "height": "80px",
  205. "padding": "3px",
  206. "width": "99px",
  207. "font-size": "12px"
  208. },
  209. "viewFilterSearchCustomComparisonListNode": {
  210. "border": "0px",
  211. "height": "80px",
  212. "padding": "3px",
  213. "width": "99px",
  214. "font-size": "12px"
  215. },
  216. "viewFilterSearchOptionNode": {
  217. "margin": "3px"
  218. },
  219. "viewFilterSearchCustomValueNode": {
  220. "border": "0px",
  221. "height": "78px",
  222. "overflow": "auto",
  223. "width": "197px"
  224. },
  225. "viewFilterSearchCustomValueSelectNode": {
  226. "border": "0px",
  227. "padding": "2px",
  228. "height": "74px",
  229. "overflow": "auto",
  230. "width": "194px"
  231. },
  232. "viewSearchFilterNode": {
  233. "height": "19px",
  234. "margin": "2px",
  235. "line-height": "19px",
  236. "border": "1px solid #cccccc",
  237. "border-radius": "3px",
  238. "cursor": "pointer",
  239. "color": "#666666",
  240. "float": "left"
  241. },
  242. "viewSearchFilterNode_over": {
  243. "border": "1px solid #fe9145",
  244. //"color": "#fe9145",
  245. },
  246. "viewSearchFilterSelectAreaNode": {
  247. "height": "17px",
  248. "padding": "0px 3px",
  249. "margin": "1px 3px",
  250. "background-color": "#dddddd",
  251. "border-radius": "8px",
  252. "color": "#333333",
  253. "float": "left"
  254. },
  255. "viewSearchFilterSelectNode": {
  256. "line-height": "17px",
  257. "height": "15px",
  258. "padding": "0px 2px",
  259. "font-size": "11px",
  260. "float": "left"
  261. },
  262. "viewSearchFilterSelectButtonNode": {
  263. "float": "right",
  264. "height": "13px",
  265. "width": "13px",
  266. "margin": "2px 0px",
  267. "border-radius": "6px",
  268. "background-color": "#666666",
  269. },
  270. "viewSearchFilterSelectButtonNode_over": {
  271. "background-color": "#fe9145"
  272. },
  273. "viewSearchFilterTextNode": {
  274. "height": "19px",
  275. "padding": "0px 3px",
  276. "float": "left"
  277. },
  278. "viewSearchFilterDeleteNode": {
  279. "width": "20px",
  280. "height": "19px",
  281. "background": "url("+"/x_component_process_Application/$Viewer/default/icon/delFilter.png) center center no-repeat",
  282. "float": "left"
  283. },
  284. "viewSearchFilterDeleteNode_over": {
  285. "background": "url("+"/x_component_process_Application/$Viewer/default/icon/delFilter_over.png) center center no-repeat"
  286. },
  287. "contentAreaNode": {
  288. //"padding": "0px 20px",
  289. "height": "100%",
  290. "overflow": "auto"
  291. },
  292. "viewTitleTableNode": {
  293. "margin-bottom": "20px",
  294. "width": "100%"
  295. },
  296. "viewLoadingAreaNode": {
  297. "background": "#F9F9F9",
  298. "height": "40px",
  299. "border-left": "1px solid #CCC",
  300. "border-right": "1px solid #CCC",
  301. "border-bottom": "1px solid #CCC",
  302. "margin-top": "-20px"
  303. },
  304. "viewLoadingNode": {
  305. "border-radius": "3px",
  306. "background": "#DDD",
  307. "height": "26px",
  308. "width": "100px",
  309. "margin": "auto",
  310. "border": "1px solid #CCC",
  311. "line-height": "26px",
  312. "color": "#666"
  313. },
  314. "viewLoadingIconNode": {
  315. "height": "26px",
  316. "width": "28px",
  317. "background": "url("+"/x_component_process_Application/$Viewer/default/icon/loading.gif) center center no-repeat",
  318. "float": "left"
  319. },
  320. "viewLoadingTextNode": {
  321. "margin-left": "28px"
  322. },
  323. "viewTitleLineNode": {
  324. "line-height": "40px",
  325. "height": "40px",
  326. "font-size": "14px",
  327. "color": "#666666",
  328. "background-color": "#EEE"
  329. },
  330. "viewTitleCellNode": {
  331. "font-weight": "bold",
  332. "padding": "0px 10px",
  333. "border-bottom": "1px solid #CCC"
  334. },
  335. "viewContentTrNode": {
  336. //"background": "transparent"
  337. "background": "#ffffff"
  338. },
  339. "viewContentTrNode_selected": {
  340. "background": "#ecf5ff"
  341. },
  342. "viewContentTdNode": {
  343. "height": "30px",
  344. "line-height": "30px",
  345. "font-size": "14px",
  346. "padding": "5px 5px",
  347. "border-bottom": "1px solid #CCC"
  348. },
  349. "viewContentCategoryTdNode": {
  350. "height": "30px",
  351. "line-height": "30px",
  352. "padding": "5px 5px",
  353. "border-bottom": "1px solid #CCC",
  354. "font-weight": "bold",
  355. "background-color": "#F6F6F6",
  356. "cursor": "pointer"
  357. },
  358. "worksAreaNode": {
  359. "width": "500px",
  360. "min-height": "200px",
  361. "max-height": "600px",
  362. "border": "2px solid #999999",
  363. "border-radius": "5px",
  364. "box-shadow": "0px 0px 5px #ffffff",
  365. "background-color": "#ffffff",
  366. "overflow": "auto",
  367. "position": "absolute",
  368. "z-index": "200"
  369. },
  370. "worksAreaTitleNode": {
  371. "height": "20px",
  372. },
  373. "worksAreaTitleCloseNode": {
  374. "width": "20px",
  375. "height": "20px",
  376. "float": "right",
  377. "background": "url("+"/x_component_process_Application/$Viewer/default/icon/close.png) center center no-repeat",
  378. "cursor": "pointer"
  379. },
  380. "worksAreaContentNode": {
  381. "padding": "0px 0px 20px 0px",
  382. "overflow": "hidden"
  383. },
  384. "workAreaNode": {
  385. "height": "40px",
  386. "background-color": "#eeeeee",
  387. "margin-bottom": "3px",
  388. "padding": "5px 10px"
  389. },
  390. "workAreaTitleNode": {
  391. "height": "20px",
  392. "line-height": "20px",
  393. },
  394. "workAreaContentNode": {
  395. "height": "20px",
  396. "line-height": "20px",
  397. "color": "#333333"
  398. },
  399. "workAreaContentTitleNode": {
  400. "font-weight": "bold",
  401. "float": "left",
  402. "color": "#000000",
  403. "margin-right": "5px"
  404. },
  405. "workAreaContentTextNode": {
  406. "color": "#333333",
  407. "float": "left",
  408. "margin-right": "10px"
  409. },
  410. "workAreaActionNode": {
  411. "height": "20px",
  412. "line-height": "20px",
  413. "marign-right": "20px",
  414. "margin-left": "20px",
  415. "width": "40px",
  416. "text-align": "center",
  417. "cursor": "pointer",
  418. "margin-top": "10px",
  419. "background-color": "#ffffff",
  420. "border": "1px solid #999999",
  421. "border-radius": "3px",
  422. "float": "right"
  423. },
  424. "workAreaLeftNode": {
  425. "margin-right": "80px",
  426. "overflow": "hidden"
  427. }
  428. }
  429. </script>
  430. </head>
  431. <body>
  432. <div class="container">
  433. <h2><label for="editor1">Document Editor</label></h2>
  434. <textarea id="editor1">
  435. &lt;h2 style="text-align: center;"&gt;The Flavorful Tuscany Meetup&lt;/h2&gt;
  436. &lt;p style="text-align: center;"&gt;&lt;span style="color: #007ac9;"&gt;&lt;strong&gt;Welcome letter&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
  437. &lt;p&gt;Dear Guest,&lt;/p&gt;
  438. &lt;p&gt;We are delighted to welcome you to the annual &lt;em&gt;Flavorful Tuscany Meetup&lt;/em&gt; and hope you will enjoy the programme as well as your stay at the Bilancino Hotel.&lt;/p&gt;
  439. &lt;p&gt;Please find below the full schedule of the event.&lt;/p&gt;
  440. &lt;table class="schedule" cellpadding="15" cellspacing="0" style="border-collapse:collapse;width:100%;"&gt;
  441. &lt;thead&gt;
  442. &lt;tr&gt;
  443. &lt;th colspan="2" scope="col" style="background-color: #F2F9FF; text-align: center; font-size: 21px;"&gt;&lt;span&gt;Saturday, July 14&lt;/span&gt;&lt;/th&gt;
  444. &lt;/tr&gt;
  445. &lt;/thead&gt;
  446. &lt;tbody&gt;
  447. &lt;tr&gt;
  448. &lt;td style="white-space:nowrap;"&gt;&lt;span&gt;9:30 AM - 11:30 AM&lt;/span&gt;&lt;/td&gt;
  449. &lt;td&gt;&lt;span&gt;Americano vs. Brewed - “know your coffee” session with &lt;strong&gt;Stefano Garau&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;
  450. &lt;/tr&gt;
  451. &lt;tr&gt;
  452. &lt;td style="white-space:nowrap;"&gt;&lt;span&gt;1:00 PM - 3:00 PM&lt;/span&gt;&lt;/td&gt;
  453. &lt;td&gt;&lt;span&gt;Pappardelle al pomodoro - live cooking session with &lt;strong&gt;Rita Fresco&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;
  454. &lt;/tr&gt;
  455. &lt;tr&gt;
  456. &lt;td style="white-space:nowrap;"&gt;&lt;span&gt;5:00 PM - 8:00 PM&lt;/span&gt;&lt;/td&gt;
  457. &lt;td&gt;&lt;span&gt;Tuscan vineyards at a glance - wine-tasting session with &lt;strong&gt;Frederico Riscoli&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;
  458. &lt;/tr&gt;
  459. &lt;/tbody&gt;
  460. &lt;/table&gt;
  461. &lt;blockquote&gt;
  462. &lt;p&gt;The annual Flavorful Tuscany meetups are always a culinary discovery. You get the best of Tuscan flavors during an intense one-day stay at one of the top hotels of the region. All the sessions are lead by top chefs passionate about their profession. I would certainly recommend to save the date in your calendar for this one!&lt;/p&gt;
  463. &lt;p&gt;Angelina Calvino, food journalist&lt;/p&gt;
  464. &lt;/blockquote&gt;
  465. &lt;p&gt;Please arrive at the Bilancino Hotel reception desk at least &lt;strong&gt;half an hour earlier&lt;/strong&gt; to make sure that the registration process goes as smoothly as possible.&lt;/p&gt;
  466. &lt;p&gt;We look forward to welcoming you to the event.&lt;/p&gt;
  467. &lt;p&gt;&lt;/p&gt;
  468. &lt;p&gt;&lt;strong&gt;Victoria Valc&lt;/strong&gt;&lt;/p&gt;
  469. &lt;p&gt;&lt;strong&gt;Event Manager&lt;/strong&gt;&lt;/p&gt;
  470. &lt;p&gt;&lt;strong&gt;Bilancino Hotel&lt;/strong&gt;&lt;/p&gt;
  471. </textarea>
  472. </div>
  473. <script>
  474. CKEDITOR.inline( 'editor1', {
  475. toolbar: [
  476. { name: 'document', items: [ 'Print' ] },
  477. { name: 'clipboard', items: [ 'Undo', 'Redo' ] },
  478. { name: 'styles', items: [ 'Format', 'Font', 'FontSize' ] },
  479. { name: 'basicstyles', items: [ 'Bold', 'Italic', 'Underline', 'Strike', 'RemoveFormat', 'CopyFormatting' ] },
  480. { name: 'colors', items: [ 'TextColor', 'BGColor' ] },
  481. { name: 'align', items: [ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock' ] },
  482. { name: 'links', items: [ 'Link', 'Unlink' ] },
  483. { name: 'paragraph', items: [ 'NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote' ] },
  484. { name: 'insert', items: [ 'Image', 'Table' ] },
  485. { name: 'tools', items: [ 'Maximize' ] },
  486. { name: 'editing', items: [ 'Scayt' ] }
  487. ]});
  488. </script>
  489. </body>
  490. </html>