Fckeditor to ckeditor4












1















Issue:



Starting off my issue is that my content does not appear for me to edit.




  • I can see it on my front end, but not the backend.

  • Likely due to the old fckedit program.

  • Im trying to figure out the next step to replace the old FCKeditor within my page with ckeditor4.

  • My site was custom built from scratch (I didn't build it). I have the ckeditor4 loaded in my include folder and I was able to test it using my URL.


However, I can't get it to work on the page or show my content that is not reachable on the backend.



Here is my page coding:



{include file='siteadmin/header.tpl'}

{include file='siteadmin/left.tpl'}
<h1>{if $action eq 'add'}Add{else}Edit{/if} Page</h1>
<form method="post" action="{$_conf_vars.ADMIN_URL}index.php?opt={$opt}&a={$action}{$qstr}" name="frm" id="frm" enctype="multipart/form-data">
{if $show_msg ne ''}

{$show_msg}

{/if}
<input type="hidden" name="page_id" id="page_id" value="{$page_id}" />
<input type="hidden" name="alias_id" id="alias_id" value="{$alias_id}" />
<input type="hidden" name="page_title" id="page_title" value="{$page_title|@StripSlash}" />
<input type="hidden" name="adapters" id="adapters" value="1" />
<input type="hidden" name="btn" value="{$action}" />
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="listdata">
<tr>
<td><div align="right">Page Title:<span class="star">*</span></div></td>
<td><input type="text" id="page_title" name="page_title" value="{$page_title|@StripSlash}" maxlength="300" style="width:532px;"/></td>
</tr>
<tr>
<td><div align="right">Page Alias:<span class="star">*</span></div></td>
<td><input type="text" name="page_alias" maxlength="100" id="page_alias" value="{$page_alias|@StripSlash}" size="60" />
<em>(a-z, 0-9, hyphen (-) only)</em></td>
</tr>

<tr>


<td valign="top"><div align="right">Description:<span class="star">*</span></div></td>
<td>
{php}
$sBasePath = $_conf_vars['ROOT_URL'].'include/fckeditor/';
$oFCKeditor = new FCKeditor('page_body') ;
$oFCKeditor->BasePath = $sBasePath ;
$oFCKeditor->ToolbarSet ="Default";
$oFCKeditor->Value = StripSlash($this->get_template_vars('page_body')) ;
$oFCKeditor->Height = 500;
$oFCKeditor->Width = 700;
$oFCKeditor->Create() ;
{/php}

</tr>
<tr>

<td width="31%"><div align="right">Meta Title:</div></td>
<td width="69%"><textarea name="meta_title" id="meta_title" rows="4" cols="100">{$meta_title|@StripSlash}</textarea></td>
</tr>
<tr>
<td><div align="right">Meta Keywords:</div></td>
<td><textarea name="meta_keywords" id="meta_keywords" rows="4" cols="100">{$meta_keywords|@StripSlash}</textarea>
<br/><small> <small>Separated by commas</small></small></td>
</tr>
<tr>
<td><div align="right">Meta Description:</div></td>
<td><textarea name="meta_desc" id="meta_desc" rows="4" cols="100">{$meta_desc|@StripSlash}</textarea></td>
</tr>

<tr>
<td width="270">&nbsp;</td>
<td width="689" align="right"> {if $action eq "add" or $action eq "more"}
<button type="submit" onclick="document.frm.btn.value = 'success';">Add and Go To Listing</button>
<button type="submit" onclick="document.frm.btn.value = 'more';">Add More</button>
{else}
<button type="submit" onclick="document.frm.btn.value = 'update';">Update and Go To Listing</button>
{/if}
<button type="button" onclick="window.location.href='index.php?opt={$opt}{$qstr}'">Cancel</button></td>
</tr>
</table>
</form>
{include file='siteadmin/footer.tpl'}


Thank you,
leon










share|improve this question





























    1















    Issue:



    Starting off my issue is that my content does not appear for me to edit.




    • I can see it on my front end, but not the backend.

    • Likely due to the old fckedit program.

    • Im trying to figure out the next step to replace the old FCKeditor within my page with ckeditor4.

    • My site was custom built from scratch (I didn't build it). I have the ckeditor4 loaded in my include folder and I was able to test it using my URL.


    However, I can't get it to work on the page or show my content that is not reachable on the backend.



    Here is my page coding:



    {include file='siteadmin/header.tpl'}

    {include file='siteadmin/left.tpl'}
    <h1>{if $action eq 'add'}Add{else}Edit{/if} Page</h1>
    <form method="post" action="{$_conf_vars.ADMIN_URL}index.php?opt={$opt}&a={$action}{$qstr}" name="frm" id="frm" enctype="multipart/form-data">
    {if $show_msg ne ''}

    {$show_msg}

    {/if}
    <input type="hidden" name="page_id" id="page_id" value="{$page_id}" />
    <input type="hidden" name="alias_id" id="alias_id" value="{$alias_id}" />
    <input type="hidden" name="page_title" id="page_title" value="{$page_title|@StripSlash}" />
    <input type="hidden" name="adapters" id="adapters" value="1" />
    <input type="hidden" name="btn" value="{$action}" />
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="listdata">
    <tr>
    <td><div align="right">Page Title:<span class="star">*</span></div></td>
    <td><input type="text" id="page_title" name="page_title" value="{$page_title|@StripSlash}" maxlength="300" style="width:532px;"/></td>
    </tr>
    <tr>
    <td><div align="right">Page Alias:<span class="star">*</span></div></td>
    <td><input type="text" name="page_alias" maxlength="100" id="page_alias" value="{$page_alias|@StripSlash}" size="60" />
    <em>(a-z, 0-9, hyphen (-) only)</em></td>
    </tr>

    <tr>


    <td valign="top"><div align="right">Description:<span class="star">*</span></div></td>
    <td>
    {php}
    $sBasePath = $_conf_vars['ROOT_URL'].'include/fckeditor/';
    $oFCKeditor = new FCKeditor('page_body') ;
    $oFCKeditor->BasePath = $sBasePath ;
    $oFCKeditor->ToolbarSet ="Default";
    $oFCKeditor->Value = StripSlash($this->get_template_vars('page_body')) ;
    $oFCKeditor->Height = 500;
    $oFCKeditor->Width = 700;
    $oFCKeditor->Create() ;
    {/php}

    </tr>
    <tr>

    <td width="31%"><div align="right">Meta Title:</div></td>
    <td width="69%"><textarea name="meta_title" id="meta_title" rows="4" cols="100">{$meta_title|@StripSlash}</textarea></td>
    </tr>
    <tr>
    <td><div align="right">Meta Keywords:</div></td>
    <td><textarea name="meta_keywords" id="meta_keywords" rows="4" cols="100">{$meta_keywords|@StripSlash}</textarea>
    <br/><small> <small>Separated by commas</small></small></td>
    </tr>
    <tr>
    <td><div align="right">Meta Description:</div></td>
    <td><textarea name="meta_desc" id="meta_desc" rows="4" cols="100">{$meta_desc|@StripSlash}</textarea></td>
    </tr>

    <tr>
    <td width="270">&nbsp;</td>
    <td width="689" align="right"> {if $action eq "add" or $action eq "more"}
    <button type="submit" onclick="document.frm.btn.value = 'success';">Add and Go To Listing</button>
    <button type="submit" onclick="document.frm.btn.value = 'more';">Add More</button>
    {else}
    <button type="submit" onclick="document.frm.btn.value = 'update';">Update and Go To Listing</button>
    {/if}
    <button type="button" onclick="window.location.href='index.php?opt={$opt}{$qstr}'">Cancel</button></td>
    </tr>
    </table>
    </form>
    {include file='siteadmin/footer.tpl'}


    Thank you,
    leon










    share|improve this question



























      1












      1








      1








      Issue:



      Starting off my issue is that my content does not appear for me to edit.




      • I can see it on my front end, but not the backend.

      • Likely due to the old fckedit program.

      • Im trying to figure out the next step to replace the old FCKeditor within my page with ckeditor4.

      • My site was custom built from scratch (I didn't build it). I have the ckeditor4 loaded in my include folder and I was able to test it using my URL.


      However, I can't get it to work on the page or show my content that is not reachable on the backend.



      Here is my page coding:



      {include file='siteadmin/header.tpl'}

      {include file='siteadmin/left.tpl'}
      <h1>{if $action eq 'add'}Add{else}Edit{/if} Page</h1>
      <form method="post" action="{$_conf_vars.ADMIN_URL}index.php?opt={$opt}&a={$action}{$qstr}" name="frm" id="frm" enctype="multipart/form-data">
      {if $show_msg ne ''}

      {$show_msg}

      {/if}
      <input type="hidden" name="page_id" id="page_id" value="{$page_id}" />
      <input type="hidden" name="alias_id" id="alias_id" value="{$alias_id}" />
      <input type="hidden" name="page_title" id="page_title" value="{$page_title|@StripSlash}" />
      <input type="hidden" name="adapters" id="adapters" value="1" />
      <input type="hidden" name="btn" value="{$action}" />
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="listdata">
      <tr>
      <td><div align="right">Page Title:<span class="star">*</span></div></td>
      <td><input type="text" id="page_title" name="page_title" value="{$page_title|@StripSlash}" maxlength="300" style="width:532px;"/></td>
      </tr>
      <tr>
      <td><div align="right">Page Alias:<span class="star">*</span></div></td>
      <td><input type="text" name="page_alias" maxlength="100" id="page_alias" value="{$page_alias|@StripSlash}" size="60" />
      <em>(a-z, 0-9, hyphen (-) only)</em></td>
      </tr>

      <tr>


      <td valign="top"><div align="right">Description:<span class="star">*</span></div></td>
      <td>
      {php}
      $sBasePath = $_conf_vars['ROOT_URL'].'include/fckeditor/';
      $oFCKeditor = new FCKeditor('page_body') ;
      $oFCKeditor->BasePath = $sBasePath ;
      $oFCKeditor->ToolbarSet ="Default";
      $oFCKeditor->Value = StripSlash($this->get_template_vars('page_body')) ;
      $oFCKeditor->Height = 500;
      $oFCKeditor->Width = 700;
      $oFCKeditor->Create() ;
      {/php}

      </tr>
      <tr>

      <td width="31%"><div align="right">Meta Title:</div></td>
      <td width="69%"><textarea name="meta_title" id="meta_title" rows="4" cols="100">{$meta_title|@StripSlash}</textarea></td>
      </tr>
      <tr>
      <td><div align="right">Meta Keywords:</div></td>
      <td><textarea name="meta_keywords" id="meta_keywords" rows="4" cols="100">{$meta_keywords|@StripSlash}</textarea>
      <br/><small> <small>Separated by commas</small></small></td>
      </tr>
      <tr>
      <td><div align="right">Meta Description:</div></td>
      <td><textarea name="meta_desc" id="meta_desc" rows="4" cols="100">{$meta_desc|@StripSlash}</textarea></td>
      </tr>

      <tr>
      <td width="270">&nbsp;</td>
      <td width="689" align="right"> {if $action eq "add" or $action eq "more"}
      <button type="submit" onclick="document.frm.btn.value = 'success';">Add and Go To Listing</button>
      <button type="submit" onclick="document.frm.btn.value = 'more';">Add More</button>
      {else}
      <button type="submit" onclick="document.frm.btn.value = 'update';">Update and Go To Listing</button>
      {/if}
      <button type="button" onclick="window.location.href='index.php?opt={$opt}{$qstr}'">Cancel</button></td>
      </tr>
      </table>
      </form>
      {include file='siteadmin/footer.tpl'}


      Thank you,
      leon










      share|improve this question
















      Issue:



      Starting off my issue is that my content does not appear for me to edit.




      • I can see it on my front end, but not the backend.

      • Likely due to the old fckedit program.

      • Im trying to figure out the next step to replace the old FCKeditor within my page with ckeditor4.

      • My site was custom built from scratch (I didn't build it). I have the ckeditor4 loaded in my include folder and I was able to test it using my URL.


      However, I can't get it to work on the page or show my content that is not reachable on the backend.



      Here is my page coding:



      {include file='siteadmin/header.tpl'}

      {include file='siteadmin/left.tpl'}
      <h1>{if $action eq 'add'}Add{else}Edit{/if} Page</h1>
      <form method="post" action="{$_conf_vars.ADMIN_URL}index.php?opt={$opt}&a={$action}{$qstr}" name="frm" id="frm" enctype="multipart/form-data">
      {if $show_msg ne ''}

      {$show_msg}

      {/if}
      <input type="hidden" name="page_id" id="page_id" value="{$page_id}" />
      <input type="hidden" name="alias_id" id="alias_id" value="{$alias_id}" />
      <input type="hidden" name="page_title" id="page_title" value="{$page_title|@StripSlash}" />
      <input type="hidden" name="adapters" id="adapters" value="1" />
      <input type="hidden" name="btn" value="{$action}" />
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="listdata">
      <tr>
      <td><div align="right">Page Title:<span class="star">*</span></div></td>
      <td><input type="text" id="page_title" name="page_title" value="{$page_title|@StripSlash}" maxlength="300" style="width:532px;"/></td>
      </tr>
      <tr>
      <td><div align="right">Page Alias:<span class="star">*</span></div></td>
      <td><input type="text" name="page_alias" maxlength="100" id="page_alias" value="{$page_alias|@StripSlash}" size="60" />
      <em>(a-z, 0-9, hyphen (-) only)</em></td>
      </tr>

      <tr>


      <td valign="top"><div align="right">Description:<span class="star">*</span></div></td>
      <td>
      {php}
      $sBasePath = $_conf_vars['ROOT_URL'].'include/fckeditor/';
      $oFCKeditor = new FCKeditor('page_body') ;
      $oFCKeditor->BasePath = $sBasePath ;
      $oFCKeditor->ToolbarSet ="Default";
      $oFCKeditor->Value = StripSlash($this->get_template_vars('page_body')) ;
      $oFCKeditor->Height = 500;
      $oFCKeditor->Width = 700;
      $oFCKeditor->Create() ;
      {/php}

      </tr>
      <tr>

      <td width="31%"><div align="right">Meta Title:</div></td>
      <td width="69%"><textarea name="meta_title" id="meta_title" rows="4" cols="100">{$meta_title|@StripSlash}</textarea></td>
      </tr>
      <tr>
      <td><div align="right">Meta Keywords:</div></td>
      <td><textarea name="meta_keywords" id="meta_keywords" rows="4" cols="100">{$meta_keywords|@StripSlash}</textarea>
      <br/><small> <small>Separated by commas</small></small></td>
      </tr>
      <tr>
      <td><div align="right">Meta Description:</div></td>
      <td><textarea name="meta_desc" id="meta_desc" rows="4" cols="100">{$meta_desc|@StripSlash}</textarea></td>
      </tr>

      <tr>
      <td width="270">&nbsp;</td>
      <td width="689" align="right"> {if $action eq "add" or $action eq "more"}
      <button type="submit" onclick="document.frm.btn.value = 'success';">Add and Go To Listing</button>
      <button type="submit" onclick="document.frm.btn.value = 'more';">Add More</button>
      {else}
      <button type="submit" onclick="document.frm.btn.value = 'update';">Update and Go To Listing</button>
      {/if}
      <button type="button" onclick="window.location.href='index.php?opt={$opt}{$qstr}'">Cancel</button></td>
      </tr>
      </table>
      </form>
      {include file='siteadmin/footer.tpl'}


      Thank you,
      leon







      ckeditor4.x






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 16 '18 at 5:09









      lagom

      3,149102138




      3,149102138










      asked Nov 15 '18 at 21:56









      Leon Leon

      61




      61
























          0






          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53328458%2ffckeditor-to-ckeditor4%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53328458%2ffckeditor-to-ckeditor4%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Xamarin.iOS Cant Deploy on Iphone

          Glorious Revolution

          Dulmage-Mendelsohn matrix decomposition in Python